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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.856-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.856-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.856-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.856-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4bd2057d6a7e82e72762609b236573bf76141ebfd4f9fef9c4f49a6832bf572d
MD5 9e5fbf52d61fb2ed31c34b6ac97d3990
BLAKE2b-256 517c44089dbd38b35fedd708fa628519c8b289a57c9b6628c49ad295f4cf4111

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.856-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.856-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 978ee5e405e4a8a88edc42e95572c2d6d0a0ec3f9a89cf62feab946ecfdb2e0b
MD5 6638a5236e53c486943d7ebf0a1f9fe2
BLAKE2b-256 b00cb5614bb4869567ea73f260090ec0fe15bf1813af0ffecf7121004aba4099

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.856-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.856-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20d20a3afb8dd63c3a73adb5b175a023fd6bfb4ca82efcdb152f6ac9ca582c2d
MD5 85c25f5c27f7a30b0abe16b2de717bd7
BLAKE2b-256 fe6eb1fbb1ce90d97405cf92bc57a24248571fd0e62070d6d4e73a3bea1361e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.856-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d755f76117505af15002909a724d253e077331692fff232d6d2cd215a6730d9
MD5 655bcbfa8a583012750ca75d81f03311
BLAKE2b-256 f0abfb1d1a9c7669117995880a340c3fe62b34f7b48a74669638a7ac48231c71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.856-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2443f3b66e49d47ed8668095f5d1d87a703427b8ca03662fd11ecc4b3ef07fd7
MD5 b46f4c8f78ed19251e1833ad8badfb78
BLAKE2b-256 8f6fe9e80a64b33fe22397988267e96ac55e370669228b9409b2b30decf98101

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.856-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.856-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ae5c636ffdc9a90d34966dfc0831c8b1d8ad3ac5b96992f9893d5eac714abde7
MD5 dcdd0943a38dc87114a7d7f9f52a08e5
BLAKE2b-256 35d21211a110262b59053980cb95eaa2dd1735d3f0dedce802f8d6d0cfcf4378

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.856-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.856-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cb78d1ad3a92b5586637d45862971bada32977c9fa183db813dc5b746e17914a
MD5 2f82ba1acc4daf726d42cb0e1fec971f
BLAKE2b-256 536136f2b10d55d06937f15ff59b9f118d0775c8e9cd43265f62061f598500ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.856-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c595d7e09986f855383ec320b4a7cb896da8d2e0feaef482a4650641f4ef092
MD5 6605a5ef8b41aa920c0575d77048cf71
BLAKE2b-256 b337078a3e7c7561a1630b346c09f9d925e78f74f756aa4f1280c50f23fa9c52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.856-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a1f274842771902d575728462ebef819ec7cabc3267be2222936c405db85a418
MD5 c20f3b0477ff21945c8e25c35aaa001d
BLAKE2b-256 f0b97e0b60f205027f4ae433993b0184c2fc388687c3091cfe34d21e939335f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.856-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.856-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 56fc6ce286c49ebb4a9c4aba8513a953a85a85e4735e66666868daa4375e13aa
MD5 2d5deb249029c49fa145dfe61fea21c3
BLAKE2b-256 fac47e7ce4a20bb425b438f13ed342fe3e5481cc3ea0985f9fa723a8fad77ef3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.856-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.856-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a65ae29223c2dd5c299ced7891d11e5d131c22b111fd8d6695145567e9398fe3
MD5 161c855f8fa292d4ebc2f541c3889fd8
BLAKE2b-256 9f7b3baa1360a2634e652f4cd60c365dd9b3a4fb22b63c791cb090e6aa1100e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.856-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82cd3d92cf48bd29fd817280c3966e2ce4ce1f5843d96a6c96a1cdea7ed5c1d8
MD5 13f783d4603c05cec5671855af45143c
BLAKE2b-256 65857884103a572c6c8f884ad2d0e4e7c1d1ecb10d67068b69028a8b57fe4b21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.856-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.856-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fdad4c6a4284bbfecb864ac6e67b284f23df663729728156ed0c8d991ef827ed
MD5 ee21444f49d21284c23fb7ece0a37f19
BLAKE2b-256 107326c7ba18e873bc637260973ba0059f22add890689fd53657723ec8690799

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.856-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.856-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 41d0fb2e5c82f882d80e12d14920c4abf190aca12b8c65de81ff261b358734c6
MD5 90967d94c0c3645faade61356cfb09eb
BLAKE2b-256 8fdc1231670fc9e57260669921d11855bebebc5ae35405e08133d0e91b348146

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.856-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.856-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 19a537b2322c0515393a5b1b3b63cca4737e886f04beaa5f35ba9d9a35ca2c33
MD5 7cef6964cedb12c946e858490daaa412
BLAKE2b-256 903928c963b849dc7f4ded4ac3b65c04cfdf470719906a543c2442632e4e953b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.856-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1c306d7a66274ae83052dff82d913e917e0d75e52d535e42a903a71143dd0b0
MD5 6e11d9c2367961b0ad5623f330613182
BLAKE2b-256 9d4712b50e1564ef669c44b0378d9c308d51f61660ec1af33f481f7d090a419c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.856-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.856-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 23c88999ec7c2e02adc33b88880db8e3eb78c0c4d8165dbd44110e81c5b7c593
MD5 b9cd375766cd2244bc8597bf29e79033
BLAKE2b-256 25f79be20154f58e688fedadeaa4ab1df1d1e2c8a8598b222557ac694cb3fddd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.856-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.856-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 20cd0d811b708c13fdac709f46bd8d43d997ae6a34f9fcd117b1c93ed18c7c52
MD5 7ef42577a10e93293430fcd35e763a98
BLAKE2b-256 d5c28ae8bdb96a66ce86455ffd476683a58f9995e7e67bd9f61e9ce0413bf852

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.856-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.856-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 867f2b57f50edafd24397fe7bb5cfeab7663b3282be6ae1f2ad0d65ca9298aff
MD5 7258b017b61028f2c96e6971bfde6167
BLAKE2b-256 7da8cf707d95c03589f0bc26fa304f99bbae8533efd07b9a5372135f44ac2a47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.856-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af2fcf1a54889847ad3645b82df5521d464435e84a9ea5bf99403c353804a052
MD5 4a2256ad7a071dfbe0acc65bc979b495
BLAKE2b-256 0120dda43a09b5aafeff791932cddde1b285e70063222753c52493c9c0168963

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