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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.875-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.875-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.875-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.875-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 321b21e240d6572a6f6660eebf101f852b71ecef8c1a75cf4976d8b744509d23
MD5 90b1ac227aa71d072e0da20c513bd4b7
BLAKE2b-256 bd2e61ba16bb67aa028a69fba18de7d6959c6c26d711091c0c5a5c05312d01be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.875-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.875-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9af8acfe2d5a0fe30370f82bd5b2833c2f650c7c39c333c3102ecadbee5dc806
MD5 11ee39969f69c24a74aacb9a678ddb44
BLAKE2b-256 957a3ab423f1e22cba57f7d3f069cba2b3eb26c7038dc9e468d87e318c66bdad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.875-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.875-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5547a1b05292d99a8819538c869e73f3d60ae9dd3cb9ac2b248b0e3811ee99f6
MD5 3de9508a5d45a65c63254cdd7e87e0ef
BLAKE2b-256 39faf075c150f932e1316a08daa27fe83123c4345232518b93166a8f83057e93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.875-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 471da8c12678935f48cec6b4f9eff36007470cb6adcb6da34358512995e4dc11
MD5 93373604cc74d455662ec4730011fa12
BLAKE2b-256 fc256f9b0b88d087925424abdaa09f2ec1470fe5ed53fceb8d40b21fc83fc54c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.875-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 57120194baa2361e71277c10a198bd59b5c73874f5ad734bf3650da73877a443
MD5 1a96e65006753660300418d54fb4e4dc
BLAKE2b-256 141b83a0d5856b9cb28933ad583f5142a2362867ac91eb50bd8486a48c75f1f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.875-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.875-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 97951eb89513a02539c18fdda2eff5ab7dbcb181bce83da89668c5b5dad4d6f5
MD5 683488b1ccf6caef288cccc7a067a6a6
BLAKE2b-256 7a0ddf7558a562f737e83221e6faee23b42785459d714e5da03a5983af147ae1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.875-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.875-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b9a5da13ea283b4e54919f952824d44f6fcd87afd6e6b454cc68304baf992b96
MD5 432eb1f62c9bd126937ee31420e753c5
BLAKE2b-256 8a60c8e2f7dbaf0a93f29e3edbd3c7d9344362c577107540742979459da6bf70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.875-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a889968c86f21ca3aceed6f05925574d2066e6ece6e22d5868f97a3dcec5a08a
MD5 4df077cac92b0a8e5be812cf04161b15
BLAKE2b-256 c5695d8adc9ba334a737c465e136f24b2b10aba87f16da884d85be21675b20ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.875-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 682c23d9743b17500e08670182c77b8616ba6e13f823a1747a38bd7d1e3aaa98
MD5 a90a151b128bce5a828cef63b7c09b42
BLAKE2b-256 d9662dcdbd99b787cc202d781d1c2847c050064d375f2eedbf811084352d253e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.875-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.875-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1de5782949c774ab7610f2e6475fdd7c1315de55dc792fb355b3007f28f761a5
MD5 b4f85982ae9cc4cf6144acb275af8fdc
BLAKE2b-256 bdd00db620d7028b29cdb6fdb36e644a56941f751a89e2b77d442aa1e87dd061

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.875-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.875-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 871ed8ef05ce7915f9fa0939158284b33778c1bacbc36d7d1d266c643b035666
MD5 749f9d981017e3134690ad49a792c27c
BLAKE2b-256 03eaf83d7c956e4dea54e1ecac31d1d126a4ebed9dace7b76aaf131bab0a5283

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.875-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 410677c83f14228b6a147efc3948cb38377bbf92dc743b9060be695e687efad7
MD5 5785c8abfefac5ac5597be40b768cd89
BLAKE2b-256 f0fc63d52b7a98073f9f322eda367e8d1170672efda5920f0c601660e28545e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.875-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.875-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cd0e918183711fb37c452b69a780c74baf1fde6ca75921059ef89d433f3d484a
MD5 576ae8cd295e40c113ab9c66db9c8df2
BLAKE2b-256 c4494088a184f040c2c220343fe696a2f48a8107828d69c50631465a14d2fee4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.875-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.875-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f8c15fdb0b37f71db12c316c1fdd3169f9d2f4436fa2d7cf97b9b67099875dcc
MD5 a191fcfb761fa0a09039f2d56c02af8f
BLAKE2b-256 64e8fdba8520e2f84ef65498c086e4181b29ab96062fc1acb22c8f8bf6622085

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.875-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.875-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4321f6c9b3ab49acb3270bc69c8217d94ea651438828650c8f9252c232f0f134
MD5 d116fd9dc40ad50e45be814189e30f65
BLAKE2b-256 13e5ee78ae9d0d9dd0086f71d20ea76fee197f097b058de446021ff509b06943

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.875-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ccf1076c4b404e313caff30879ae7219984e6411a0746c07ce0d1032c870c064
MD5 84e55d811e47bc30e6a0439bacd4772e
BLAKE2b-256 e3077a682e5067ff1771a1e5390efcbbddb837f0f9c4b0238b935aba5d9aa482

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.875-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.875-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6d491624663380f109d24781171f94299296e4fe4de5bb211de856b4b1eec542
MD5 92d2459639a47d9acbc35b7826ac5cac
BLAKE2b-256 4f48a31948e97e58b09ca2a5a7ef44e848ffc28e7cec80548cf365e5965ccdd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.875-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.875-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d2a855c843076aa46730188a8edec0fbc7db042cad22cab4613c07ba77748ee1
MD5 ad1d58d838b3498e56a181d350d1f39a
BLAKE2b-256 29dce5605d77b6e0c73a4ca29477b37d99a9beb53bd128cf4bd82718404a20b9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.875-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.875-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 938934b55ad92cf86ba9d22c4c47ab77f4ef6951f1598290da9e594d06c770c3
MD5 949c9aa2bd0c7bd2ed2b6f6cb1439c8c
BLAKE2b-256 8e4e6ac8e6329bc261aa75ee952b5348cd897db3ca4d0431fb2352bd39914f4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.875-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b2d494503a89798c786b62efe4586ac0ec84d76a13eb4e1ef85549a1f20ab1cc
MD5 093a62b9ee7348e88df50914be2b3d77
BLAKE2b-256 f770b805f65f5e4f23decaf7e57b4ef0f6444a78ac5a218b8598893132267c00

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