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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.311-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.311-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.311-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.311-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8483379e0cd42ea222a83ac9e34166ed30d09e80254033f9c9d7c17ab2d886aa
MD5 e374da3637b7780afc3229ed36de1717
BLAKE2b-256 ca8775213012d7d978fcc3e0fd32d6fe53c6a26c25853917a0ee0119b6334f3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.311-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.311-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f009ea5d884195daeda2844a67cd580ffaae63cd06d776b589d0d530a445b312
MD5 0777a0a82602ab59ddaa47a4cbea436e
BLAKE2b-256 2a78972c3827a96e58729aeb8ff8ec5ae62411bf2135e0bd8b4619f10156939d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.311-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.311-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 28a034071f77dbe4c5f296a7e9e4d4ba3813552e4ceeba15ca0c97fe51aa5884
MD5 faaf48b1d702db715477860f44e8ec7c
BLAKE2b-256 4047c33fe912b9c313b7bdb1ac1c302a5ee0e211ba361652c9c0dbbec1386610

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.311-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fdaa3e1b420afc9e55a0e2861c235f5b4e1992389bbfb8af7e47635878a3b380
MD5 8b89fbe9d8273d89f0e444d4b425255a
BLAKE2b-256 9e83ded5f00899db0d58c5c9b84ac1cb3eab608074b41a1dc3c592b9303c3821

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.311-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 19fafc7ad5718ac36bb80b64e8cf995130a56972e3d439970ffc123496fe5e51
MD5 2aa324cab61f123e5701a8773bd487c2
BLAKE2b-256 e7dc4a47d6060825fdc9ed6c399e98f5b28808914f88f174db957032db3fb903

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.311-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.311-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ccc0dc6ef12c293d7f98cab310e5741094c67e4d65a1f0d08d33be056bbcba91
MD5 6f040b050913d174162d49e9d7128273
BLAKE2b-256 fa1b0e71e72b0e5b5e4afc9886ce9fa25f163a3c145ee06723d8bba8a2164524

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.311-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.311-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6ecec7206cb21522eb2ac7d71833e6ad411f01123655ef8876e919058974ba19
MD5 437d67e94ddbbddf5460c324b7d1e0e5
BLAKE2b-256 b68f8a072f723d237716982b584b98f7b099098a8547bb5ffe6e972b6cd92d92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.311-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b24857f2db874430cc0e1fa2ed7e139f28b5c65d523da9ddb3c596bf7fc6eb48
MD5 709e2b9ae45f1e214a1d45a32704d81e
BLAKE2b-256 f951472dc6645f7fb0e16c2cd73cf373a3ade2d397d6fd8e3f5fa2dae18634f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.311-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aca2e69b0a0651b016c0b4c4dd4859e3d2abb86a724b294bb6cbeef8c128eb40
MD5 dcf27966dcd2b65a067fcdfae147990f
BLAKE2b-256 ca32e84df5b3c2fb0c8029de6142f43daa3c6a8f75610bd3da5fa1d85e99c165

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.311-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.311-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1f45bec9120a8b4cb4519be18ae92775e1cdacf198839f4717038ba5000b261e
MD5 2a94a519817325467a9c206ccb8d9d9c
BLAKE2b-256 4f4951ff39bbd0827e86226fcdb999eadcd3cbbc9dba0f73c8204f30f57e9c18

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.311-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.311-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0809ee18eeca25a7ac77babf2e125cf48a3da0fe91ef7ec4bf2932be803ee412
MD5 14941bfddc39c995faf2a67efe645773
BLAKE2b-256 e23cd65831ef88d0df62888962c24618fb07d98c43668921405a5ca6d6aadd57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.311-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 328bcdc0ad107cf9529d4aa348941d4823935a1581769c97601dbf694697e0f2
MD5 2f1b8e6d466419a59e55bfc1e1f9e5cb
BLAKE2b-256 ff23a32b2dca255b9136ef8b2a9a73518df77e438213a6253866958a8c161eda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.311-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.311-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 da93e5209317d164a7dcec204885d9c4f6ae0fead37a2d0d32973a547125fcaf
MD5 cb046517dab3e3e295372155b58b6b1b
BLAKE2b-256 ecd8d25190149f7ad5cca1f0f2a7f90d512ab263e658f210f0549925acc96d5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.311-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.311-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d60afd41cebd970fb1a9d7cedfdfe1edc3b3079f0371f4c8cdc492fd682fda1b
MD5 c9a5d014140f067a345cc004648dc264
BLAKE2b-256 dc54b9609ab87c56f490f2a3776275cb53639f13920d07d99849786698d35cab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.311-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.311-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0727e4a663bd27ea9b88d5774a1b1574e04a87bd067b9dd78b1d8b76f0e7bc11
MD5 5428dcb529b5173eb3eb3203c5255804
BLAKE2b-256 cbcd2058d94badecd0d5e5b75a4ca92fbe901fa2751a24775f8ef33bc40c7059

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.311-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4bf9bd390cd5258104583a141f0b8cc3b6d6cca7a9282187c4b4cbb24dd371b5
MD5 73bd8d267837d297f36b52ad62db851e
BLAKE2b-256 659fd8a648560b85070e01c763135c769cb7b842d5e81b84381f107f4dc22f7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.311-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.311-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a8f9288d2790d1b516e8402919deb7fa8de25dac65a1e1ed16fba1663813ef33
MD5 96cb219cfdc722b4d876098467855afd
BLAKE2b-256 80afb95727440e365d8148c92ba7818fc6325856489c5213d347fa6f42e74dc9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.311-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.311-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 dbd1528fc57a38658fbfb249bb24b11d7ce6ff4e304e0f5dece90bdf1618a6ca
MD5 ec6350d149426ec53539646be4163db1
BLAKE2b-256 51af2f6764ca1b416f4a1ad4904aeac551f5d69e30b87e610db2f137a2d5fb38

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.311-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.311-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df6fefe10263d2b05ebca2f597d5959628aeebdc433d0faacba82150ce608aab
MD5 20e8b1f74268a1145c017aa885dc13ad
BLAKE2b-256 e4a3957245d75b21fda3b137a75e1568c3a39b5f188cbd94efb5f5b710eecb9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.311-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8dbaef10f758be445eb8a117c54c331a88f0becdab93e97d8578b2831460220
MD5 ba4882585587c86f46645d4e4ac60337
BLAKE2b-256 b39662255fa2b913c51becd247e3b3d23f985d5777ab8a2952f32fb503a008c3

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