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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.550-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.550-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.550-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.550-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.550-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0f97fb0c1d99d5a9fb1ffc181b2f3bf63e57ea46872f5edf1c292cedcc99f0d6
MD5 dcf0eb87c244b68789e90dc5cda588d0
BLAKE2b-256 62d54486b0ae0cb4093d654f30765299d29bc8ff9d7a7523d4d16b9074bb3c6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.550-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.550-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ca1b3592658e769821cb280a8936b118c02928da97991cd3eb7152e10db8411b
MD5 be27079221c9cf15ec40100951cbdd25
BLAKE2b-256 9f9e3af4300e71e74b3ef5324c6daf4a8b83bfd95d31188df7711dc1bd2b2e1c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.550-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.550-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b96966a2b426e399f0de47f0646e805c5543a87ea0b769b0560bea4a666f3ab
MD5 f13770fcb60a67139c97057b67c28f62
BLAKE2b-256 c393c4eeae4c7186736d7bdc7114bd25e95985aa4b72f2e2eed23a23d23adda7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.550-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a86a9592e373896d8b253eeee7729fad9fa828420f3e54bb50e029f1161dd49
MD5 82ae0e951104a85a4d93e74601bf177c
BLAKE2b-256 f1bcfa958989fad1e626b2b154cf8f8f9c35717dfb2781efc558df50d9537399

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.550-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3c238db577f25b883e21745dfef8e8513a58595bd32b811b58e38a4779a4bc30
MD5 08ec49ad07425cf2535c6b9b30db6029
BLAKE2b-256 06853cfa98c9d6ecbbc6e29a4cd1452dfe15f2eabc92e290afc0416cd75a3bf5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.550-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.550-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e631c93a7134e93b4a97f9ff80ba833d4312c4317bf43e03d65c244d21eb5ae8
MD5 132ea5eec63dc3286d34732a136b2903
BLAKE2b-256 0d1eb854d7aaa211ea3d4eca1974f1e052fbe1d20c1879321bff8b6409cdabf5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.550-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.550-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a0a7a33e22f3dec90f9c8e5d983e478ba0b70203c500b2b5fe09436fba15c26a
MD5 98e828d2cf91e9f2f41198b669093c1a
BLAKE2b-256 134af8766d4e7310910f7663682dab78f9d788f01d1e4b7b7752e938fac2900c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.550-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d59bfad7d7e94633737eb969d8e5a0e081893fe485990ed6f3470f13d9f1c32e
MD5 09f67d23d0cdefd5c1068d1fd97ded37
BLAKE2b-256 f6fa2097a05867e50287d75f3b71a56282aa0b89de5fe1e7c0a04d68d69d519a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.550-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b78e5bde9fcc3c43321cc1bf5c1033013f3986b30071819439ec94439103ba25
MD5 62ebef0ab360e9c3abbb26e10d850dc6
BLAKE2b-256 895eca86693bf2df8a76c46e19e74de5a8412b45ba6712afb5b2109f1885b7ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.550-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.550-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 998e28d5bbf923f54369c7f9e2cec33344c4dbf5e522ae32308a3d86775d4f91
MD5 7ccd82a70912d42d9430ec4e3fe76162
BLAKE2b-256 48e36286432e21e51da9071997e995dde8c13b44b15ba8dde0fe4e15317cf900

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.550-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.550-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ad75f0588bdaa14767e9ad47419aba9a776e7fb20ed5ea9eecd8146bc52f6c1c
MD5 7d6893abef8dadfefc3ebcbf5520676a
BLAKE2b-256 fbdc995d6158a23fc790a1dc6ab9b1bc3e55f18bc6e3240cfa7ff522d12a81fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.550-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94451856ee0bd7c7c54d4fe25b1cd3e2a041e5e60beec06c965231ef6537820a
MD5 0902a7e6b9838302adc3baca16b20d83
BLAKE2b-256 93345dee8d83f3ca82cc495f178ec6a79f569a082f873a0d8de5bd88378b6679

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.550-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.550-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d493661b3258015675a4ae29416c03e2d2580dbee3c92d4920aaaab93fdb2196
MD5 77dbbe926d1386860d556ee5bb399988
BLAKE2b-256 54fb99d9c41fdf5d77aedddb651b3c207f69094b73c5c61612bab00ac8b4a073

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.550-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.550-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e62fe8606fc7c329daecd4429b072e9a68c991e47f524f2adc31eebf58176919
MD5 facb03e6d3046f64c891a898cf88eb28
BLAKE2b-256 229410bc8cc492783e36c573933550d955641df1b82d40830cd3c7e04d8c3b06

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.550-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.550-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e9c1addd31d1458b7678fcfb1aae48056036342ad3682ee61357dce70beb9751
MD5 3c100d3fe359995936153080e662272f
BLAKE2b-256 67c744236be5f0331fa6b5fb483d524105f60fd3919cff338a393a4ca9f74a9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.550-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49c7315de8accf74e5bb945e055a521c5ecdf0a957981d33bd9110510c3edadc
MD5 501fc87fbfbc177942e53f0f0b6de95a
BLAKE2b-256 2ed131b59769289d1ca5cd8879240b481ffe0f5fc55367c5e10b33ecda3c0f1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.550-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.550-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 db2b8796d7fc996aebccca495d132d5e853d042b5e55d74ecb673b2b2fde1b2f
MD5 a287899eada636533fdb52f4266c25e2
BLAKE2b-256 051d8852c71131465b9a6c95400325e0df1dc328df2c6ee230822a6cac23868a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.550-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.550-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e4715eb87eef71895dc39b1b60ab7e4969f221f1d2435821bc30599f82906c51
MD5 75647d0ec3e7a23ad9fe748455850857
BLAKE2b-256 28039ec31fa47ee77c31cf8c97b032d551c735b88348da9d183101df3c2d92fb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.550-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.550-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aafac9c47b6fb97404d1da297c58171fae95d069246178688ba64fba0df86870
MD5 cd59ffc5dedf08bb3c3b40728d674931
BLAKE2b-256 626fba63c95a99bc2eaee4b289e8f0b1407503f45fab69fb6a2ca33fe23bbabe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.550-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ed8c394bcdb46d9ec5dd03c3ef088d6f7841b6363c947624dcd472659e800aa
MD5 fc1ac3bb4518194a6642f8042896c2fe
BLAKE2b-256 772021cde6088251d0ac73a5ef8197589f13331e55844b4842a3dbca7ccf8bd4

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