Skip to main content

An open source library containing multiple known STEM equations in a functional form.

Project description

simple-equ

An open source library containing multiple known STEM equations in a functional form.

Installation

pip install simple-equ

(For versions 3.8 or newer)

Optional: Use a venv (virtual environment).

Usage

simple-equ is simple, yet practical. That is the problem it solves. Sure, someone with some knowledge in their field can implement this library's functionality. But, let's look at how that would realistically look like:

a = 3
b = 4
c = 4

"""
Here is an example of implementing a basic quadratic equation
"""
import math

delta = b**2 - 4 * a * c
solution1 = (-b + math.sqrt(delta)) / (2 * a)
solution2 = (-b - math.sqrt(delta)) / (2 * a)

"""
Here, just an import and a function call is needed!
"""

import simple_equ.math_general.algebra as sa

result = sa.basic_quadratic(a,b,c)
Looking to calculate the sin of an angle?
Well... here is the algorithm to do this, in pseudo-code

function sin_taylor(x, n_terms):
    result = 0
    sign = 1             # alternates between + and -

    for i from 0 to n_terms-1:
        term_exponent = 2*i + 1
        term_factorial = factorial(term_exponent)
        term = sign * (x ^ term_exponent) / term_factorial
        result = result + term
        sign = -sign     # flip the sign for next term

    return result

function factorial(k):
    if k == 0 or k == 1:
        return 1
    else:
        f = 1
        for j from 2 to k:
            f = f * j
        return f

"""

import simple_equ.math_general.geometry as sg
sin30 = sg.sin(30) # In case you didn't notice, this is the same thing in simple_equ
"""
Normally, we would put a linear regression here. But it is pretty monstrous.
Worry not though. This is how to do it with simple-equ:
"""

import simple_equ.economics.statistics as se

se.linear_regression([3, 4, 6],[4, 6, 7])

You just import the field of your liking, and then boom!

Structure

The library is structured into fields. These fields have their own folder, aka modules. However, a field can have multiple subsets. These subsets are usually present in the form of python files. For example: algebra.py and geometry.py, are examples of subfields of the general math field called math_general.

To import something in a practical sense in simple_equ, the structure looks like this:

import simple_equ.field.subfield as ...

Practical examples include: import simple_equ.math_general.geometry as sg import simple_equ.economics.statistics as se

Contributing

Contributions are always welcome!

The project encourages a community-driven approach. Everyone can contribute. Be sure to be kind and respectful. Do not assume that something is known to the contributor you are talking to just because you know it and do not be rude or even make comments about their skill. This behaviour is not welcome here.

See contributing.md for ways to get started.

Features

  • Community driven and open
  • Functions from different fields
  • Reusable
  • Highly accurate
  • Simple yet practical

Do not forget to star the repo if you like it! It means a lot! Thank you for reading this document and getting involved with our community :)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

simple_equ-1.3.405-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.3.405-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.3.405-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.405-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.405-cp311-cp311-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.3.405-cp311-cp311-win32.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.3.405-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.405-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.405-cp310-cp310-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.405-cp310-cp310-win32.whl (115.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.3.405-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.405-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.405-cp39-cp39-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.405-cp39-cp39-win32.whl (116.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.3.405-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (298.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.405-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.3.405-cp38-cp38-win_amd64.whl (118.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.3.405-cp38-cp38-win32.whl (116.6 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.3.405-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.405-cp38-cp38-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.3.405-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.405-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 38bcc69002d654e3badacfb2c4779d1d92915dc657dd548a852688ef15c385a8
MD5 32d9703cb16e240638cb2152602d2ee3
BLAKE2b-256 94c5069832be235748a8125658d1e52792a4894e6bd744a6336dd7ad11c37b25

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp312-cp312-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.405-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.405-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 754cd4825322c2d73fc78944d8c82ad432ac171fc6c908eff21f6323733927d6
MD5 a68e0338c24f2f145001ad326f384e8a
BLAKE2b-256 fda76132accf30eb9596fcc1b9893d606bae0292d97f69c9db3eae80fa8625c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.405-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0a10ca3ef0705cf8022cb0b069ca9274c80fdbc64f08b8253bde5a072f5e8100
MD5 fd01ab383c1bd9d8f9bd4a96e7323974
BLAKE2b-256 eed948d9b72e4e8418c6daf142ef1f86a2eb2110665f6df5de7385dbeeeb1955

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.405-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6eb0628fb39858763959801de08d6ead6cf7cfba710dc3aa133caad9cb1a5da9
MD5 aaeab57388347a5344890a20119c081a
BLAKE2b-256 ee429796e07367bac36f8dfe5995a2660f482d0992850b8a69a0e3775fa5e1a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.405-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 999e98112e2f881688a6d3f0a023603c69562f3b5ae172b9754948b175a8b18a
MD5 0e907c0e83e05443e435cffd6f0fb568
BLAKE2b-256 af42116a7da3d1cd36ecbfb4957274aee2e23aed2ec5386bd8fa765ca31b15bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp311-cp311-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.405-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.405-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 08af0c62130c688bbe21214822869edb593ad268e758e931807f383d1b4d4df1
MD5 dfe70fcda8431d44963af0b239506ecb
BLAKE2b-256 84d9e9a04a5628d13e14a85b8521bcbe29dfb8b3f8c1a2aee07a48de1c28b26a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.405-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b254a55e7478daa9862ea8bd80802efd3f398c0f5d329d6d1db7d553e56aa92c
MD5 be2deed0ebda641b8b8f92f74c0531cb
BLAKE2b-256 8bc2c1ca3e8001ada1b1d95edf9ca32d6b42b3075a7837dc0b24400f794bb339

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.405-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b13a24701852b4404237dc27e20410353f637f1bb2063f8a483e357fec168c29
MD5 2925b169085907972bb86e1a86afa36c
BLAKE2b-256 16a877037b36fac7bade67b821dfa813ac039ca9687c0ff33c76c0f102c42bc7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.405-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f47cd79fc335ffc4c2b1325269a37bb573331350c487f9e50e91c03f6f015d8b
MD5 0169a1c2fec9561b22771bf3e877b089
BLAKE2b-256 73ba1aac444bb39f6250c6cf087f26019989ada013bd49c0aa98800728853991

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp310-cp310-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.405-cp310-cp310-win32.whl
  • Upload date:
  • Size: 115.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.405-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 535dd75075f0a81f90dc8a8ce9ac44c3efb057e731cf5c95069154f2f2ba59f5
MD5 bba178d7e87a5af1d11261dc5de6aab4
BLAKE2b-256 ac00ed1d1fbc60677545b294491cbb5f63c80efb539797c9b96c092ee07a1d50

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.405-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a81baeca682dff64312939c34e481e16b7aeba85af7aa90ecacb7a34da24bf9
MD5 35f8ce9ea36cfe77e0dc1b747d425623
BLAKE2b-256 08f7d0800836342d6d251ff89c84dcf3d836dc181ccc401e05acf3bc3e7de267

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.405-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d193b7003083eefe9a3fc797e4f99340d4cc0dd72df12bd666930fe44d331f9d
MD5 f206aa21f4f2031f8c65b249b2c7b3eb
BLAKE2b-256 f3630c6240afe720354ac04b88894356f128be42d6784ef05374d03429e84a43

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.405-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.405-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c9f0c26b18c61d8edd4652741e8583fdfc5aff33a04f1a013e3b398148c4d64f
MD5 1483a846d8cbed12b97ec702086d4c3a
BLAKE2b-256 ce9f33890b33b6f8a465edfb66155b77c009ae05c5e525ed442e001ff8f6e779

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp39-cp39-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.405-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.405-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ad081be427925598516f847ffb00c248e3ff431ecc55eb107c5969064bfb0269
MD5 c466a725556c4f76572465e88b387395
BLAKE2b-256 580b1f436da25629fdd2599510f8d770189da58d77710e7dbaa2c9ba4424cc4c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.405-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0190ffa6b4a34b64d5c162d9fd53d3ca8d6b40cae11bb6d7f4ef7d35d80f8542
MD5 67c471cf33f468bae0d3d0fe5ff69e72
BLAKE2b-256 c6baa282c67245ba168cd832289c9a7dd2c73cf23dc510bb25cffd07a0fe980e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.405-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac805338168be6e0625579e96b6ccb9bda1d08193aee5a0a5763583f0946f7f2
MD5 df308cc6216d4532ff9c701ff4ea76b2
BLAKE2b-256 02e1aa5bd3f77a09496ca4be88918e9f8466953012e365e9d53aa97c18aab7cd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.405-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.405-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0fde755cdb00cd556fb800fe1e34e76f74ad600a34a40c593879c56377b89016
MD5 b7b5874f68cf5b4e799d05c09393b652
BLAKE2b-256 74c4691163a0023d1cc34bde75de97d42c092d5e131cc5a3081a31e9ca5af904

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp38-cp38-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.405-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.405-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 50cdcff4324b099d56f7c6333ecb0c37ec7ce1aa471eb980ee14879bd6ebf731
MD5 1aa85dc76a28a902b473442305748e61
BLAKE2b-256 f8788b81b9b98c1780f13e1c66beb23d0063db4361eed6565df78df41654473a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.405-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6de206f4abb3494480e30df1787e0dc5c1c1b007d02f8692560eb7c3a728b665
MD5 7acfe5928a089952518688edc3735b19
BLAKE2b-256 d9d4ce0acc94a8ac875bb0d1ad96c407d3651a73e9f95388a0ab5ae8d3f3d36f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.405-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.405-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eeae3bb03ed0ec8b3e3e1487a2f9bf3849196bc35c9f98b8d8915277145368af
MD5 e0f67646113a816d8790e8b22c451083
BLAKE2b-256 2b3fcbdd020a200afbb40122a750821a019b598d1072486b4b6e3fafdebd45bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page