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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.260-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.260-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.260-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.260-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ec627101c40c866589e88bb90ec5e5868223494c15a38a3f3d3ec21d479c86c5
MD5 244ac1f12d887608e6e5363f6b3596b3
BLAKE2b-256 5865b416b600d29905926467a4276df3cdccd03dbc63dbd26c63d7229205123b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.260-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.260-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f1e48724625d7e84c9346bbe136edb6355a26d7a590f1954783a9fdfaf85fe09
MD5 42f028d0aaccc83d83d5e5b0c3e964ae
BLAKE2b-256 adad36fe702279d74d5f4cc1bf72dde97656550f165ef73063458dbadfa81aae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.260-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.260-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 64cb2b97bb2daa15d785ea6810b80bb2f492bbc03d923a688cd5247a28de7c3e
MD5 1cbef16951b7a66272346ed77f19b082
BLAKE2b-256 484f945733d5869b4a3b60f37169a640878671098a4c12175319ea089cde37f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.260-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6482c7de9ac6381b62876be24dd4841883008dbc5bb0ed86050c0d97a9abac27
MD5 f5f242722498f437bd1f018db4523140
BLAKE2b-256 b737bfd0117c522a1f9ace7f4e18cf355cfdd87bf93eefa0e49257a667e6d4da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.260-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5004d0051be09ef905a419b64aa3f04131582d2295192fa2c71bccc11027e372
MD5 51a061ea45b3c80c944aa75fbe20b70d
BLAKE2b-256 40a83c4d3f63b495bbd33642964a086f7085896612343695ace4ffec853a7b19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.260-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.260-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2c0ceae7196519af9b48de67f4cde01259f1ab05121277dfeacc167aae1911cf
MD5 2231517cf8bbd0b70d382dac8d390380
BLAKE2b-256 7725f9a4017262ce1d995fc68bbfda36535b3f05915d0d791311c42af51c9992

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.260-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.260-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a4da02d24a9c6651826e6f2ae05587864a51775bb29e9c388bd62ddd7b16e29f
MD5 938bb61572fe103fb923d2c6fc386dcc
BLAKE2b-256 aaef2dfbfc5fbcda8d4280568d20c760a9a7b10d1f902a85e55fe613508ec84d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.260-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1479f3db3553a6af132f1f2c754d0106dc4f74215d62c41ba172de8999aa64fe
MD5 b6470e18a7dfbe14c79e5ad7c8c110a0
BLAKE2b-256 fdba63fd4802c4fe37a006bb2d3dfcaeae972a29c08fba47fd751a5a96ef2d9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.260-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6aa7e9b5aa9fe7d52a18949ede63735c2b8c2ac1df40531d023fbe55f1f6c94d
MD5 564c49d1d0463e95a974aa00f18c4f01
BLAKE2b-256 1b82862e5566334a015d2e21461b8ac2d6d8c4bd1a778fb69fe3a2688d3b45bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.260-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.260-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6f2ca129f1522fde4f35e84cf26b564bd7b63efaf4f70741dc43187c495d2811
MD5 9629e5875586d630e9ce632211e9af55
BLAKE2b-256 c11e31e739fb7087ef47b960fdd3a06f81eec9b51b884e6b59f5fc0c3b128cb2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.260-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.260-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d198a357f8e937b752df5e9323d8a795735dc907e7b636879499b23519633253
MD5 30038244d01c83707ff451797794a066
BLAKE2b-256 1b1fda6df6ad321846b28e7894edb8667c5a7f9d48d3590d2bcfedaffd5d1d22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.260-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef6b1c3b470004a1990aa96aa6856524ec5252543f02a9d663295d18ea46a35c
MD5 421a99e69f4dda3651c468f84044c6b4
BLAKE2b-256 0d4a0a3b0c55ec52faa7b3c4503b5fcc89eadcb79bf15d1c560be5a0ac0de47b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.260-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.260-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f1216de0ffb765461a8f7a55aac3535abf0cb44b75de50d43974162f67bccafa
MD5 f5a9e899448bb1310c85ad7a73cefb84
BLAKE2b-256 49c15619ee2d8c6465eed3ac28ac12f80c1e2dae5ea44e93dfa4e84c7475fa31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.260-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.260-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 99669630dead40bf07aa6162897a90515bacde8a9504340f380d40c581bded15
MD5 bd3ada9c177ddc75174ab889a02899f6
BLAKE2b-256 8d030b4daa61feff2f5a1eb507e255472072e5e0fc8d86e4b2be3db7208c59d5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.260-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.260-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 81bb9705525bdc64285be0868c672d45ca36f14f44b11d26dad35438ee2edeb1
MD5 017776d97fe1fa076275e3dc57d4eed7
BLAKE2b-256 a2b47fcf9c500b3d2c32bf8710c8fb03d5cc7c01b047391af77b34067e43171d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.260-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ddab348dce9ae329b3842db064c3233aff5737c223a1ddf32e853e9c6a153d2
MD5 1220a7be79ba4866499c29254e4aa726
BLAKE2b-256 4c7769943e1d69503786c167910a654770aac5b79037253b1c3217535fbe1c83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.260-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.260-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 644376cf4491ef9885f0588cf8c92a5fd0eea862db5a332610a6437a30db3d2c
MD5 55a4f8a013543b2c8d201f4873e49b6b
BLAKE2b-256 4ca8fc42c6efa14324a1d7c4c84045d0f06b54606446c87180119e18c6a923a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.260-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.260-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fc0903019039008785f140e088c67b4ef471fd12642682cebde68dddf7ebfeaf
MD5 e44563cbfc6fb68286051e125ddc7328
BLAKE2b-256 c0b2a6d6b7ede4bd255e8ab3e252b826671c6b0c345dcaa666ef5e03f5fe3c25

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.260-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.260-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 acebf336c8000d16d90e69f604f7d75c3511ac40801d6abded8304d601c4f8bf
MD5 a0aa82115a5f91de6031a5de708cc4c4
BLAKE2b-256 3150f7eddffb554c915635b814484cb4d2d68fede9129332febb816b1d1b384d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.260-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a557362973ec9156bab5e7f05f6aaed71cf25866bb8b6a3ec05ea0aea544211f
MD5 624fff1cf1e379965537893d635de0c5
BLAKE2b-256 42f7fd43e2379c3f5a7ee64360c2173b444792e55c99e421ac8841f45346c64d

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