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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.878-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.878-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.878-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.878-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 901d615943580245d62faa88f41be2c4f64e5970e0c174906349607c4e583caf
MD5 c7c73d612e4088019e0c004cfb232b9b
BLAKE2b-256 9f9738c9b8d11561b3ce2f5b2716518f2bbe747a7909e19ac3212039d0cf5241

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.878-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.878-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8ebf16bc6a32e3463fb51cae89addef7f390fad8d87c466a1ee26fa578b77906
MD5 eeba9b45ac696c48a9f9b96b8076a00c
BLAKE2b-256 3314c37b76ae4a342125a859132d0f6d6721db532974c7a70df17922c0f90173

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.878-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.878-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 61cbb659e032c69922b0d6d9fa9078e02ffeab9ab3f776005dbcd0ab087028cb
MD5 c3bbd40b0a620530ee2b413b9e4a188d
BLAKE2b-256 b99f5a7c6cd5aceaf0edca8be42edb5038d12f2163a47c914863449aafa4e28c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.878-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 790db6f3eea4d584d684823ce649948ceb49386f055af608c9382c903dec7867
MD5 35cd2f1bfba2e214a758a55e2be7e84a
BLAKE2b-256 32cc7e1dc4cb99c209cfb4f11866be793059dd1655c9263e0a7db2a2b4c977d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.878-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 711594f4ea0033ebd4aed40dbd9a3a2a0ef88ee4a6a7513e38a0d17270feb401
MD5 837de8d7eea37d83ae38a83619f3b206
BLAKE2b-256 e01867ae665c7382a955b8c63388ace52391dda7a1711ead51ad5b357efca30f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.878-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.878-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4ed1f49ff02314569fcc55cd1fd14f93ca9c4e73bf4c22ca6035d2c6b18e083d
MD5 bd09ec96610919f1fa96985f9c1f5558
BLAKE2b-256 0296ce318eb65521ad0ba0fb96cedd53001eba26cfff0032cde8369a33ef2804

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.878-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.878-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ffd3ceda1f622d49c0597937479fa051705314c253096a927c452284dc872900
MD5 0845bde7f2ed97323b1051a997676b7f
BLAKE2b-256 b3d98f322aa64624392b9f23d20c1c4708cbd11845e67b8b48ec8f5eeb0bba1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.878-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 682cfc1ac5fb7b8eaa2ae8d185b895f2439b1fd32d3733d42a5f3d4b749f2fc2
MD5 c441bbf78be906c299eb6dbe7aed9596
BLAKE2b-256 9f91aa689a61f588f4ce8f029387e01993be46bc2920ab5154593bccc486f94c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.878-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0d0915033a56fa0fca65ff5ded86c8d79297bd14dae8efab0693771b33e1ab0b
MD5 365f3c01ad426c274564c652bd25e8ed
BLAKE2b-256 ea2035e5fce14cd3881799ae786a2b7b5b7b419b51eae0f615ebf377608ef110

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.878-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.878-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8ee65c8f17a29c6eb99d51f57e9194442050085122b113dadc9f08caaf288a1a
MD5 5a9cf729d8c9f2edd7021d59b802530a
BLAKE2b-256 bd5178a84bb4d3605529861acb29cc892c4416acbbf2fbd6d5341e87baf1443b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.878-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.878-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8bf9a631c22b9ff31d80b5750ff9ef3f2d860cd82671b286a200d58aa31678b4
MD5 aced28fda8770e217d1916ed5f8b1792
BLAKE2b-256 4aee5328d741c708df73b1bc356898c95d83969db047424cb5516fbf6182228a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.878-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a2c839364eed1ee961a77c087013dbed00ca0a99586046ef4849d37ebb15ddf2
MD5 e5a7b254881ab690b737e251f752c9c8
BLAKE2b-256 d59c1e0cbdd9c15196c3f4f45508c9072c5cddf63435b40e5aba5eca617dfc31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.878-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.878-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4c4618efe934482ca0bc6299d676e03be9f2ea1cd7c7e56ac3caf12b1cbee541
MD5 8565c627a07814e1d3e38844e238b2b8
BLAKE2b-256 c64649173e5d2f4f778ebfc8716af08ec921ae20d0cf4acacaaf8b341f63a550

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.878-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.878-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 56141ceb1a03361cc9e60c5d4e913940da715eff2213403dc4456222df0a3ec0
MD5 ff8916e4a1eb6f3d02951747d563a28a
BLAKE2b-256 b172e20eaebf4d3d73753fe4287565f119df7af8d525312a3f47c08047292bc3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.878-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.878-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6e1f102e711957d54c5185d7c3892d9b93c4dddc1f454821fcad1d6871e281f6
MD5 24f8f7db7aab1bcfad052887f6dfbe7c
BLAKE2b-256 395e4b7afa6c1333ee497c92eebc3a79b0daad28b06c2800c85ff856839bc5be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.878-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 755cdc7d1d84413839313c1e819f45d4f830e0a78ef1b1e080f6dc8ac33f71ac
MD5 bb94d538a68838585d1c7f8dcdd8faf1
BLAKE2b-256 c4cd5aab2ff6fd239ee1aa2a3a3de47313c3d78b8eef2533a7ea123f4f23baf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.878-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.878-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 26e864720bb6a96342c99e1c9cbfc2e0d3cd092bb72f9bd3c6b876815fbd34ba
MD5 ff29009e03c125fb633df3fc8ac0affb
BLAKE2b-256 5a04a35f278c10e11bbfb745d35190de63622d45d5584585a77c993a354526b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.878-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.878-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6980ff17edd788e8243f0e46adb8a311269dcaf0424bcee11de030b75256cb7b
MD5 f31a8c1d7228f878a445e7364d70e632
BLAKE2b-256 7ce32c5fbf1ec575d9f91f93dc4ad9ef21bbb9d34c4e43183c663c3c7d8062d6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.878-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.878-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 da3cbaa14eb574b5b316dd450e8e1d8027c930dc4a8cd85ed0d43a261d9d17e6
MD5 86df11e96a923e9e61707faf16df5c2c
BLAKE2b-256 706b56fab1438820b96779085766da4c85bca1e3110b12485f2f149e183c311b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.878-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f7f7d0ac620974aeacdc8b3bb3ae7a4a7cc14a473ea7cc23652a4c8dfb1152e
MD5 0cb0e51538200728f388392d17439f73
BLAKE2b-256 58c13a2c0e911ff9c2cd0a50eb47f5a31876b7b412c55fc08afdffb60c6ac8c7

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