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 :)
Release files for simple-equ 1.5.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 3.5 MB
Release files / simple_equ-1.5.11-cp312-cp312-win_amd64.whl
| Download URL | simple_equ-1.5.11-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 124.1 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1fbacb2d91de1014601f89f563a6d96753d94c473b48df949562cb61dcbca384
|
|
BLAKE2b-256 checksum How to use checksums |
a433b69cfec5598ff096898691651cedef901798c6e17376a8301136c67f5ce4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp312-cp312-win32.whl
| Download URL | simple_equ-1.5.11-cp312-cp312-win32.whl |
|---|---|
| Size | 121.0 kB |
| Tags | CPython 3.12 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
2f608321ae8ba034a15ef54dd67839a499cfb8171f9ad7770757a39bf36151a9
|
|
BLAKE2b-256 checksum How to use checksums |
cfeb99e7c49517b373709122b5b26ec2607ceafffaccc362b96d1e3762422519
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | simple_equ-1.5.11-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 374.5 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
65503663c90cba8ea021f13b8c0388c9e2ed175131d77d4dae2007858359a506
|
|
BLAKE2b-256 checksum How to use checksums |
d4c69265aed620250fbb01ba2260b6c130d2341b3316b0f9f77333be91251e3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | simple_equ-1.5.11-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 127.3 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a16777b16d602938d98f108fa79cc7ebecb08b96bee259cb09fce501f449c020
|
|
BLAKE2b-256 checksum How to use checksums |
cea0929941e8579418e10e8845ac5affe61fe5a8b154ede613365aecb23d659a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp311-cp311-win_amd64.whl
| Download URL | simple_equ-1.5.11-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 124.7 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ad8d61c6422effee14170ce29e62238c8dc34477d030ff64c2ff2018ca99ae85
|
|
BLAKE2b-256 checksum How to use checksums |
dee1569fe3aeea68fb76405a9da90756d910eb082e81130ab129ddbb6e46abd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp311-cp311-win32.whl
| Download URL | simple_equ-1.5.11-cp311-cp311-win32.whl |
|---|---|
| Size | 122.4 kB |
| Tags | CPython 3.11 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
c0a72f3c29274fbeb1503522fe17657df9b98e5e6765df2ee168e8b4f13cbdd4
|
|
BLAKE2b-256 checksum How to use checksums |
6c6ab097798c186fa4ef2267e3c6f19d9f1a63c68b6aac41627824397ec585f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | simple_equ-1.5.11-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 335.0 kB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
a781362f8a4d427a9b8a4f4ec4767cb61ce0c57ae4d4708c679562c3513e8f97
|
|
BLAKE2b-256 checksum How to use checksums |
2d665c339a5d81754819cb2aa1d4032369f966fa480738d8906351a2d3e5b3fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | simple_equ-1.5.11-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 127.0 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f4e3d118098c2556b81500bf3ed0677fa63cffc8214c7f5283d0eb8cd1e1bad1
|
|
BLAKE2b-256 checksum How to use checksums |
87495d488d590d06e1d3194069c6ff0eac5922afecbb048268273fd30618d559
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp310-cp310-win_amd64.whl
| Download URL | simple_equ-1.5.11-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 124.6 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
763e0e798abad03d933432344be14c6e22d1ce14d9dd8113b6568341a246ce58
|
|
BLAKE2b-256 checksum How to use checksums |
63272012b8cb34e365132457b71364807ee55492205950b0bab139c609c80f3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp310-cp310-win32.whl
| Download URL | simple_equ-1.5.11-cp310-cp310-win32.whl |
|---|---|
| Size | 122.7 kB |
| Tags | CPython 3.10 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
06d7c2f7238bc3d85883006d3c9298a8cc0c9daaf757abb91da8596b06e71b5c
|
|
BLAKE2b-256 checksum How to use checksums |
dcff5dc5d5f7ad984f6b1b432acf156983a4283702a5201b7198aaadb813d3e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | simple_equ-1.5.11-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 324.3 kB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
2543d08731a8b8d93ffad67cacac8ff4dc776e99a28c38d283c38e5a20cb8f9a
|
|
BLAKE2b-256 checksum How to use checksums |
3c6110b2855f60f8d5d9b773cafb7913a668a614b9fc1c08d62779a76de4769c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | simple_equ-1.5.11-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 127.0 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f24ff59171ab8544ed80b177f417f7307fd35378d4248cb728d399496b9a2143
|
|
BLAKE2b-256 checksum How to use checksums |
a1e1e19a20589eac66ffcdf3f7201c95fb92c0b7b75ee46c5bb2a55be19b5a8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp39-cp39-win_amd64.whl
| Download URL | simple_equ-1.5.11-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 124.8 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
eea0d2c8151d1f9eec20906ca6c2ee0d45d0a882ed687baf11c46db8be475c7a
|
|
BLAKE2b-256 checksum How to use checksums |
5d5bc3f6b37e4f501845043d3d21e4db583d72ac93631a4b68577ac1a5d5606c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp39-cp39-win32.whl
| Download URL | simple_equ-1.5.11-cp39-cp39-win32.whl |
|---|---|
| Size | 122.8 kB |
| Tags | CPython 3.9 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
ae1483bda5185e2af30a8f9e619b98334765527643034944d86e6b09e9590240
|
|
BLAKE2b-256 checksum How to use checksums |
bff08238d9dc1d6b48d9806321cb22dfb537c8c52801859d5960ffeac80c1143
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | simple_equ-1.5.11-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 322.6 kB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
0b827a493ac6acd6cab1825d073e56f5ed946e5d85dab7370b4510664db6514f
|
|
BLAKE2b-256 checksum How to use checksums |
41eefd347d6c6d707946b6fcd9324971951c16c3bd0577005406fabdbeb9cb4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | simple_equ-1.5.11-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 127.1 kB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
aedf65766c393d7baa46d2cafec7f773e5a38b8fecc465339d3e2b7f4fe8de05
|
|
BLAKE2b-256 checksum How to use checksums |
157267604148cbb2afea6fd5f8f56affa289724f913cf71b38f962883adf672e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp38-cp38-win_amd64.whl
| Download URL | simple_equ-1.5.11-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 125.2 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
8d1a9768380501498bbb122552cd9e2b69193da4b2a9a00ef6a4d51a28db62dc
|
|
BLAKE2b-256 checksum How to use checksums |
fde5ad39b529c78d7f1b4ea50f8fd6baef4e0708a71e7335b1d5e585d641890d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp38-cp38-win32.whl
| Download URL | simple_equ-1.5.11-cp38-cp38-win32.whl |
|---|---|
| Size | 123.3 kB |
| Tags | CPython 3.8 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
521116027f7b632fe57fbd83476b3fc772deae29f443253cc93def87e8c6a146
|
|
BLAKE2b-256 checksum How to use checksums |
6398009295a4af52f8ab7cf3ec6c79635daae7990c161b7d5a8fcce94e4c67db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | simple_equ-1.5.11-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 305.9 kB |
| Tags | CPython 3.8 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
147fa394d1340181daef905669477bd4c2bc66e64a2a914dd6cda72afc1f8256
|
|
BLAKE2b-256 checksum How to use checksums |
acb1d962b626e6509335edbe6ded9d0d1db9210a7a55efc408db562d4e73585d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / simple_equ-1.5.11-cp38-cp38-macosx_11_0_arm64.whl
| Download URL | simple_equ-1.5.11-cp38-cp38-macosx_11_0_arm64.whl |
|---|---|
| Size | 127.5 kB |
| Tags | CPython 3.8 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
74e4be40ba1582a0d38f21890f0e208327715e85ce1a90928941fa1af772275a
|
|
BLAKE2b-256 checksum How to use checksums |
ff7049440a13539415626dc8bc1d9a84623b71301591ee9b928dba2dce33b4e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|