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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.220-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.220-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.220-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.220-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d52a5faaa08fee1391ce019436566fef4becd5611f33317498c61a75439f993e
MD5 593938f5c3cca7b7e74c42bfa0208e99
BLAKE2b-256 d4556e9d8bd36e54f8f7379721abbb4c60e70cf2c8da14e2f03f6a908a501c48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.220-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.220-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 38d645278085bd62c77daeef3972449fc2371153e95f07731db00abaee704d76
MD5 8f5419c84bbfa90b8abccbf9c91b033f
BLAKE2b-256 b74576c9001c78b8d7bbd5a394004ff0a717e8cc883c9095c9abbe1115122302

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.220-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.220-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c8236e455b412ccc8a2fc505bb1835ceaba08af0c1fd4420179a6035698c3037
MD5 8d26fc581c7bf15d7859938e68e0652a
BLAKE2b-256 1fc9afcebfedcf206b583d6c7fc0c48845e56044a9bd54ff59540b822cf81979

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.220-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a52a2b1ad13fc3362104ec01d0536d915e45de53d5a97e0bac031b035c2009ff
MD5 938ed88d2590e3b0cfabf6332f7708cd
BLAKE2b-256 6baf9669c828fc6cce1af621a5a72de0ce7be9bb9139d4e44cb1ec4af749ae38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.220-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4c82d44ea7ff5f3f84e0b9065f9655931be738cae2c7be91d12ff2d49eddd445
MD5 2ea8c2f4189012d89d97377072469720
BLAKE2b-256 aa837e805237b4631388b704a8abf0e49b7970cfa25702abc5984f682ad2deaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.220-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.220-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2ba9a59c80cc518926c07403122fe328b870500aa5e0d4ff069736e467ce0435
MD5 1f259f570b19c6f9d6ad51dd322a33bb
BLAKE2b-256 77034761e8860828c700d8f6d7e54771198041cc1d6a7e57e56518fcda062fab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.220-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.220-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 675992df4f658e4d166e1b2bb62f302822ac6af7de5fe97f78d8bd4e29ca6014
MD5 fc503e98145743bb49d958bc553df53d
BLAKE2b-256 ac5a9f33c01c1595bfc4539a318f2fb90609e5944bcf268c842c11aed0c5d5ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.220-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb3b55d27c51200922ee977530f0ff2cf932591224fae858fb71d49816af5f51
MD5 0c69b70f38a7ee376187a1a9a9d3570b
BLAKE2b-256 31051dd340a9b112854c0d6a3091a2baf8057051463c2989aef1476d68847ec9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.220-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6d94420e0d871694ea28e60f6b9f1829b5ebf54088c5cc7f2da6f4f63f9b4082
MD5 cd01786b04016e438d7b2e2d4ced44b4
BLAKE2b-256 b5ea9e59febafcd7dd62cfce97f63d35f05935045cfe9914863203b7549e1220

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.220-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.220-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1cf91c787abb6f9873ffed8ac993f167b9c600b3d76034ae9fbe021d0892cc0b
MD5 ec9d5fa56f37a7b28ef7eda579cae830
BLAKE2b-256 b105fb9347e35c421eb2cb378cefc5292c427b846f0885573b676f2cb12e6ead

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.220-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.220-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc542c851e9acbcbcd7fd1a9f68afd89a8d71ee2ca4d3d45a13a4d1a175411d1
MD5 7e447a62e819cefe408c6aa12881e86a
BLAKE2b-256 dbe90cc5dd7741efe69e14e2aa406b84af116849fada5b7e0f2a2a1922b18cf0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.220-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dea9b7d37fd193d13ef98f9a6b7b265b15f61a6c488e524054ded1d0cdb3b4e6
MD5 3ab08e63525fff088f0cd529f6125609
BLAKE2b-256 8664963d165468d296db3bfe48e3731580189e499c9763a520c8aaeb0dd995e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.220-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.220-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ada7fc9a81eb5efce989b5de67d185ec17862ccbfd460f4b750879fc56c13fba
MD5 80a436db01d14fab508b5337b37fca12
BLAKE2b-256 565e9e7f869d8fa1bc88ebdf32fdb287c49c21c1c7ec125459080b91233944a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.220-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.220-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 42bf749619f89012787bb0492716de17389987b3b7d7f9dd7087febdde7816d0
MD5 f205b8069e40a66c19570b9d9119f91a
BLAKE2b-256 fdac75c85a4429caa0fd673f7d9b97ed81a9f43b8af9e05b658d1374760cebc9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.220-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.220-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 220421a417dc654002b35064c4bb3a64c9621618ac6b1cf18e6a7838274ade86
MD5 9a8a88d15528a63e592ee55c7c9cc7fd
BLAKE2b-256 e3ef7f8435d32b25a07b178c441b61c5e94dcfd9b67505f6bf6d7e1902e50679

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.220-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 019fec286e7f67436f1c7390210659e732c90232a77b21130d7ad3436edd24ee
MD5 03fcdbc1c4ad3a31445dcd4824fa8549
BLAKE2b-256 6c65065bf8acca09bc4089cd060920282052993dee6a4cab595a0e9298e98ecc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.220-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.220-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c494f7ea848af7bca1a9c6f12e263abffbd8b4d16ef995f71c73aea4dc64745a
MD5 0e2cf9ac684c93cb301f557135bd59a0
BLAKE2b-256 1b160e59e2087cb1967f4ae93a30770c6d147f76f04b220a0f4a8c2cf78725b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.220-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.220-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 dc5a04df30d58a2399f3c6c92e49bd0361ff2d24e2568bbb5afd0cd115f0a276
MD5 d8224504cb31a7ae1c203ac25acf235a
BLAKE2b-256 5b23fa50ea97c8725b27781999cee88911395668a625221244a15a4c9856aae0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.220-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.220-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ec8b8e3388211b2138b6b956b30e09b02f4bd419554e21c375e0415b0cdc4fe6
MD5 584323239846c225e67f285d584671ce
BLAKE2b-256 ab8851625afd42aa88804d51919207cb6b2d10a6b9837cad79b4c5ecf3948c4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.220-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 180ec33599f4650c88e6c61ea5f317c77376e653e426856a90c7f74d1e39d543
MD5 e8083c3184ed3dafc94c083804bc7e1c
BLAKE2b-256 3bfff12c5e8e48e84672a08f75effc91f269d6d999de22abd4c24b4f487234e8

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