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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.2.63-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.2.63-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.2.63-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.2.63-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.2.63-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.63-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.2.63-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6d0fd1a1b60075512fb47e8a6e3ddf0ab8a0e9011d86a9821d22ef4006ae84e7
MD5 cc73d525bf20d5e629fa9e1e1d56d49f
BLAKE2b-256 1d33a60afb42c485192c097bcc82ef07e2cc9bd07ed682073acc46f05c6f09c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.63-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.2.63-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 90016fba4502c2b4b49519fb7d1b48e01ec884224ebb3538d28785cb3cb19e32
MD5 b35cdc342b6bc05ed83f4ef41ea63c33
BLAKE2b-256 155fc93bae016b74766f19d881a52e8e7519926e2bf2d57bdb9f7da30c16c47c

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.63-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.2.63-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 322650a3c9f77c485f8fb1c1c2833ada3d95d94aa4e6624f9d4f95273ca39fa9
MD5 33a0bf6652d51738f64702ddb5af4f77
BLAKE2b-256 cbd400b4200b463b9345007cfceb4a8eee3aa8abec496f8895bfde2f5bdb485c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.63-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8646019c6fb6d42d8455495fdbc4da082355b095ad36f2aad614bd07d3e080f
MD5 f07cb47d31a0cc3bac360dbc70a75fae
BLAKE2b-256 e09fbd911b9cfcfb51ca9c073a524615bdeee596897b8d00e6ab06fd3819f7e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.63-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.2.63-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ec86eb25e8df8ff5fc868d672fb956caf6011713c2be6135d6479ddf0210e881
MD5 4a605d7fe4ff5dddb55ae80fea919e44
BLAKE2b-256 9c1d0ea104b1d99ff492555db661276f5d77f893f061ad1479c6553ed1805863

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.63-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.2.63-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9241daf31374e5d426449d3fcfdba671bb2b5e679170762c0db6383da898b99e
MD5 1959a2150b1f6c0b0657d39186971fef
BLAKE2b-256 1d48b833900b712262975c3716e1e90feea937dda47793a8b283167f5b898267

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.63-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.2.63-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb0eed995f4549f83fb8e64f1a0561be5fa2e2a31eff576dc4112e4c1e93d838
MD5 0f69a744190c227480ba2f869e9aca75
BLAKE2b-256 89358169063ade7732d02daaebf57728ca3bb618f9993766bc81beefb0c7dfa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.63-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 55e725c978d3706a45fd9821af1456f373403f9d11c786b0ebc2f3f51827a3c7
MD5 d36e1b79353b0314cb15094183b6c505
BLAKE2b-256 77374b94d05346157a1b3d1c3026fbaf428a91529253af747f67164643e32143

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.63-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.2.63-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d65d84a934f18110d1ab99db0e94e390f9e4e997c1721527953b86389d4741e8
MD5 7817645d5516a48100c298e2ccc99cae
BLAKE2b-256 0cd5aaa640fc459643f5fec9c41948f98fadfa52e880a1dc8ec61d304160d55e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.63-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.2.63-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6f435498e5cfb281bda2f2a0f8a6c215d4edc9d11ea8213017ad29ab50abd29c
MD5 71537638940842380049254ef2e299a7
BLAKE2b-256 449d196dcf23985ec9ae5bbf4d427af95dd38f84ad3e156d7062551c20044f4c

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.63-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.2.63-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c7628685b5d7798d2007dacba43a8775a1d86263b48598eb8f85349794597a56
MD5 f625a16477088287960d6986373dfa45
BLAKE2b-256 7708b905d04ed6ebff52a1100fc34e9f61fcdec67dc37412b84006957b43d361

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.63-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4cfec4768e949bc2b377e6b8f233a052c97c133bfd6264a44f564529db76bab1
MD5 6f001915a2e007ab843501ed9d6bd5b1
BLAKE2b-256 26b8f1fd9844421ab7bba4f1aeb4d2b04efbabc649f79713590e8691c8ebec57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.63-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.2.63-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 52bf13bc5ad70543ceeb2cf77ca0b617aa5ff9ec96db4db6c9aa9841b6d250ae
MD5 f9cf7d91bc8ea75686e5da5eaecbadc9
BLAKE2b-256 6e8fa7c4f940dc0d979dd316ee2dbc381b3d65b812861935306fd0e3aa8ef34a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.63-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.2.63-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1ff816e3553c4607b553d40ffe56866ff60a72fb7bcda9414e31f70332e4a0a0
MD5 7717e2d1e5e6896d4bdc5b09d78d696d
BLAKE2b-256 39b02aa9ca625e6b73bcf96a5b7ce314fcc287e118aafcfa3149e25d0e0d0415

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.63-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.2.63-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a0f10a7b3b7e8380b63aabe9caf8df8bae39049052d7b0879064767d62542dc4
MD5 9a39b0d309eb874b1594e23a6547de2c
BLAKE2b-256 83e46cc687b15bcce61cff17e148d373aa581e9a90afeb3e76d6d32fa899c19e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.63-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb2e46ae4add4725705644f607a4a00ca38475ef7f0baf233450feb7e9029158
MD5 d4b7ce4384645ecb9d5751715e6124a0
BLAKE2b-256 8b4646086fe58f39067de1a8ffaf79541ff727a5ffd746771cd70d2c62221b34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.63-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.2.63-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4249f0d961e21a9d1e39ced807a411211a0e2f238f294885ef5688bd73effc84
MD5 cded68f400b86d1ddc289e69e4b9344b
BLAKE2b-256 3fc304c2dddf61eefffeebcc3e1af20798d88f476fc005a7bcb4552256c17431

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.63-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.2.63-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 aef39908b5f638c8bbd23bf42d1ba00b5dbfad88357cdddc14b03d2c0b5689d3
MD5 4e805f57efde455fe942020f929e76ec
BLAKE2b-256 4ed9657bf7e94cb6f8780dc55bf59a9f04f9584c76c3c7ebf25bfd7e97eea715

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.63-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.2.63-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2de1a6aeba3b220faa3d7176c887e13517926c6ca2d5472e823268584b403f39
MD5 110c7ccea76be979a596f0e138ccc96f
BLAKE2b-256 8b829216aae1e39c6a102c8667b9d52cf2cd4b1a1271c518694ae7c843414c54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.63-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 796728c1c337f8315e35d8a1b05267c8cc4ae92c6d8d3694531dfed01d68a633
MD5 330e273ee163c01e45e3faba94e3baf5
BLAKE2b-256 460fc383d4dfc3a323894a0529d69f4aede414b4c2f04b64d72c5a599e2eb45a

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