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.923-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.923-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.923-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.3.923-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.923-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.3.923-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.923-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.923-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.923-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.923-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.923-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.923-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.923-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9ecd647d76572eae98dcd96cd1f5b549a4ae9124b5af328d9bd6b0aaa9971442
MD5 aed46dfecff7dea9a1200ddba33c6dcd
BLAKE2b-256 f1699eea5c8456a1ce880119b30b438e5276a3b2d5a2cad8028e428b4f84a15a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.923-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.923-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9ebb5526f3ffbd6ed10ed79b1820ec7e0e8a6816e9db2ace1f9dd21573b4b405
MD5 3a9da1193fe65a59d99b42a88251bfb9
BLAKE2b-256 7d463a722eca29aba0072cf0882ffe9430b6d23cb9f76ca01c588a2c7bf655e6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.923-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.923-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 886de1b8d7eef11b00cfd9966514f79337c4d61011986ddf869ee3db767eefe9
MD5 8eaabdb1955a34b4cbf12d4f961c0d2e
BLAKE2b-256 9f518c70ab59a76a7b928cda1a91c876f646fb4bb58a0cc18ccbd7f53dba4e2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.923-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33f53e64a8dd132eb724f61a203e2a7a638d84d9d6eec370058c9d6118c6ee46
MD5 7ee2a6cb8b91ff4c0a1900b48a30ed5b
BLAKE2b-256 a15e64042f3b3bc8321cf68858d1aa66da2cbe32df8a7dcb116cf7fc5c6aadab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.923-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d8fae3e35517a5373fd72b1e8813e6c845bc5b259e2274092e2485033c2b7429
MD5 131787d632ba9ff3c2073de1121c10fb
BLAKE2b-256 7f49fb538a2a22f9566a00aa8a7c1d52de746876dad46eb63c302252bb12195d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.923-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.923-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1fd2730e8b2ee2e14a8d24305df5637f02b750d201682966fa74cdb25adb01c6
MD5 ed221f39eb06813d06b5801309d15fc8
BLAKE2b-256 33d7f741bf9604bd656485ed2976cc3b28c452c2d4a336adad4bf7b77fefd07f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.923-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.923-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9f8437cb723a1acaf7484a1a30401668d7b8a35100d128c8aea691edb7f09c0b
MD5 e1c08af79f04c299668d07ef397582da
BLAKE2b-256 d0f230b1aac04ed3af8b038f58e7c8793a69cf0eb03225a2d8087b64b453e500

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.923-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 102d788d27fbba56e553afa39f51e9fce34c163ba45c8a0178f8f54b148108cf
MD5 5e2976634a653bbf61f8db4266a930e5
BLAKE2b-256 da5e030a9edb30d8dfdd7c2d851b6f9b3bec7da267110b1759d3ddad3ce70cc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.923-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 edd810484b438ef83d6d7dc809bd5d297cbb116cf841831fdce64c6f1905b755
MD5 5b46392cafbdf275bd8732b3ed129d49
BLAKE2b-256 e1fddcb59f4b26245c308075be374d8609c25bf2b83f70014b78b2c34e3c5746

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.923-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.923-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 975948a13836b57bb11d0f99dd5a2647d6c24600c1b13348ae52e74ffeeb73c4
MD5 969d90c53244b624f4dcaa9ceae93e67
BLAKE2b-256 bfda4ce9ff91b8e9c64ec3984b0b827914a6cd7b63c00cd257f4bf8e51d1cc18

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.923-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.923-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b4ce1afe7e823cadd8bfc10d2dbc92ed1ff772b650a15b16756b16df0bcfbc2b
MD5 64d7caf4a835065250b5542f1d90e830
BLAKE2b-256 f9cd9e894c07dd93638f342af0464454637e279b41b5cf47b3f22c83800673bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.923-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9271834280a291b73fc8d45f4d05d2299a161fd8bf55119485730934be7a8f0e
MD5 6a6c3101fba17a5779fbf789d808ed99
BLAKE2b-256 79a34cfa91c339d1b2dfbcee0281d03fea4616f4f67a3425aff966d40f863364

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.923-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.923-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5e85ffa38cd000d1e05fc59eddc47bd58ff8d1bbc9e94073369e3393ea886191
MD5 e3990e969ca15a1d8e6f14f124f35699
BLAKE2b-256 89680a97d3610f9d292c5a6c9cda4986e0e47fb217e67a60b5224b55a2c49730

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.923-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.923-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 911d004c9a8b712fbbd2252f772d0e6d2fd23f5d80f899d73f183bdd43cf3a42
MD5 878c1e8b2ba8b99c4c5c302bba2d4b0f
BLAKE2b-256 c2185d3c2afefb85f8d28e8031db393077b47eeec9c9613abea861facf49f5b5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.923-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.923-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 252ff3d404dc60d8de1dbf0cc95373f03d08c6dc382f63ce47ed372dda7e1a59
MD5 bb85d7801b98e4206583742565996feb
BLAKE2b-256 622674d3e45ccd14af1f0b53d995aed97dba748a41006a85bdbacec65ab75173

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.923-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c5699e761ec7058632e6440fc1c2c43528994212e9b0296a047f6c906d98c0c
MD5 15dda591e525ca10a3772893fa81fe47
BLAKE2b-256 83c9924839b67357d8c9ff9afa92776db84ba3e4b7fbe782030d3d3842cf2076

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.923-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.923-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 82ea9670079dfd195066c421c508d613d56f3b57c1429522d12e60e92dc9cc89
MD5 cbb3cda034d6e88445bbcf9459629e83
BLAKE2b-256 bdd5ab4bba02e59fdb3afd621bd5119c2b21ab703505d381667bbd7f805e6c17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.923-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.923-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 029a27b24d01f020e35e2e0c7472c956591aed24d7934d1539dfb967b1cc0c6e
MD5 f055af238e45ced4a5759d99cdfce76e
BLAKE2b-256 8541ab22a273a5df22bbe4dc6408a17973cb471f3461f6dce6fb1982a1f2695b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.923-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.923-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 23c84149ffd9124bfa21f0c78fd51d86e9dcdb08d7f198fe658ac855fef01519
MD5 5ad6f0030d2a30b18ccafeee4c7d9e10
BLAKE2b-256 dc8c4d7add8679935280513c7e0124a1f7a1c63279996e3c5eb9d52fedb65fb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.923-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6bc80ec4fa88ccfc62823982bc26758b2c42ebb3c2559d72053847f61c2559ad
MD5 118dd6d56629e2b535a7fdc130dbfcf4
BLAKE2b-256 f93f4a414b05cc7aaa9dd667c6861ea4a75b974307b7d160ff58311781c3d2f3

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