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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_equ-1.3.835-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: simple_equ-1.3.835-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 117.3 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac06c078b5632a1233767dbfaa1bcbb8cdb0150a112650d3b5e6f1acec09c9fd
|
|
| MD5 |
d454235792255ccc2d226a508f31ba9c
|
|
| BLAKE2b-256 |
7e8c052f77f72be44190892b039eb85a27177612106abaab7c23b5b8ff91b2f7
|
File details
Details for the file simple_equ-1.3.835-cp312-cp312-win32.whl.
File metadata
- Download URL: simple_equ-1.3.835-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95b594fddbb8b9740deb5e03d5244b310ab8749eb67896b5615dc0748d9eaeaf
|
|
| MD5 |
723b43245ba4466f3d4fb081aa5a4608
|
|
| BLAKE2b-256 |
7047096c043819ce3d7498450abb66ec6c45aed0777bbc01b53cd1e729ebc6f5
|
File details
Details for the file simple_equ-1.3.835-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.
File metadata
- Download URL: simple_equ-1.3.835-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
- Upload date:
- Size: 351.3 kB
- Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c03455a09ec584719e87092f038c26d5660ca4751a3d0303f41a5b5753104337
|
|
| MD5 |
cfa3aa1dd56dc84448c1e77042aefe7b
|
|
| BLAKE2b-256 |
9e558eb5a6c9a47341fb969bf08ad0f42652c52d5fc6be4838808e75f39302d5
|
File details
Details for the file simple_equ-1.3.835-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: simple_equ-1.3.835-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 119.9 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0791497d4120b9d2951224328e1abedcd15a290e2620c27446e79e77e03e6ae7
|
|
| MD5 |
c7f61e25bf78bd556a12c71bc93db0cb
|
|
| BLAKE2b-256 |
507a7ccc8cf2fd959a0a2ac5721eea6417e32e682981bb1a740468e3f8d5b6e2
|
File details
Details for the file simple_equ-1.3.835-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: simple_equ-1.3.835-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 117.7 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0a60d3e4448fce8812458fe0334f589d766d6e07bccdfbbcda14b6b5e7369de
|
|
| MD5 |
7b450150a1660ce27b632a58fe914ae8
|
|
| BLAKE2b-256 |
ed15b25770513fd2992971c2bf7b0b0120885d6f9f2ee9c73c69a215125462aa
|
File details
Details for the file simple_equ-1.3.835-cp311-cp311-win32.whl.
File metadata
- Download URL: simple_equ-1.3.835-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ce4a26be49f2130916ff0c8ab532772d79842899c6a521e393978297724f02d
|
|
| MD5 |
83741a0cc1d76b408d6ce34b61e49e17
|
|
| BLAKE2b-256 |
51b3112da3153e93cd19ae4aba07f3edc72e91973664369430b0e9bf6accb527
|
File details
Details for the file simple_equ-1.3.835-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.
File metadata
- Download URL: simple_equ-1.3.835-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
- Upload date:
- Size: 308.6 kB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9221ebb1d2d94e58a6701df5c8b5b4e500a7091dddd5dfde3b900adccd74aeca
|
|
| MD5 |
bac07c00ab7ad97ce1e21ec5171d09d0
|
|
| BLAKE2b-256 |
30635976578c4c7426ff960759d6bcf980b8edba1971c07f76625ad0b1567b7f
|
File details
Details for the file simple_equ-1.3.835-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: simple_equ-1.3.835-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 119.6 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a18003a68bfc21021fa5f1950937c58568e825502326e4d68251a350c4da458
|
|
| MD5 |
3baa032b76dd031699334a463e033253
|
|
| BLAKE2b-256 |
bc79f7e14e0c99f5192d7a8eb20bf7183d28445ba0e111bce9165e053837e084
|
File details
Details for the file simple_equ-1.3.835-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: simple_equ-1.3.835-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 117.6 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c530df7a1f04e337ee92ac6ab3d024f29dac53e084678f8ba3e33823bd62b72
|
|
| MD5 |
70db23b16928034d42799416f23cba2e
|
|
| BLAKE2b-256 |
5f3ec276cd92ca3aa460eb33b0de14eefe35b1448fc620943a6b2709dd859685
|
File details
Details for the file simple_equ-1.3.835-cp310-cp310-win32.whl.
File metadata
- Download URL: simple_equ-1.3.835-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6dcfd2aad837867bd322b114aeacece0946104005c80b7fec3b6e179169fd9c
|
|
| MD5 |
2f400bb3975e40e34bc5d8b5d6e36907
|
|
| BLAKE2b-256 |
69d2b7a81526ee707e94c7a8e7dffed00586f49f7c133e61a5a6fcb6da2c4df9
|
File details
Details for the file simple_equ-1.3.835-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.
File metadata
- Download URL: simple_equ-1.3.835-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
- Upload date:
- Size: 299.9 kB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68ec7bb98ca4e7f10f2a98709304e723906fc6fa6ebd7c081b26239c8795546c
|
|
| MD5 |
a72ab936488fa0063a8cf7493ce775b1
|
|
| BLAKE2b-256 |
3893322bf4a6cfbfce9e9028d69fdd9fff215000c2a99d2bed7983b73cc416ad
|
File details
Details for the file simple_equ-1.3.835-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: simple_equ-1.3.835-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 119.6 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a701f4d475fd78159a7b91082c999cb1bcd08d3642ba7d446282a52b4546090e
|
|
| MD5 |
cc729b899bd13011d18b46b6018f4dda
|
|
| BLAKE2b-256 |
97ed16ea361cfa712ab9d21b706f395a3c02ddaeb80ebc7aea516d86c3287a32
|
File details
Details for the file simple_equ-1.3.835-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: simple_equ-1.3.835-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c322175bd076148e78a779edb266384a17ac2b413d148709a38e6357e6701ec
|
|
| MD5 |
05d40e9df51f3f4e9d26412e3e86a4a9
|
|
| BLAKE2b-256 |
fd1615b4e8b988de1da3d78629aadfd5822e884a9e8c8682a07ca776b8dd063a
|
File details
Details for the file simple_equ-1.3.835-cp39-cp39-win32.whl.
File metadata
- Download URL: simple_equ-1.3.835-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b90596248e7bc04d28acf7fd058f8282e3ffffdf018c4e2fd2b4d5da3c3b76d2
|
|
| MD5 |
d815b76a836ddc699f45e87aa865c30c
|
|
| BLAKE2b-256 |
63f0031d77c7736df2be1386395580eefb863e20575910414a15e7b28c61633a
|
File details
Details for the file simple_equ-1.3.835-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.
File metadata
- Download URL: simple_equ-1.3.835-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
- Upload date:
- Size: 298.9 kB
- Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaf3808738251a74db4a4871a6bec78db32c12f1e78aef06e5e0ac98b0660114
|
|
| MD5 |
691731bac7c0e819be37a9b86ee5765a
|
|
| BLAKE2b-256 |
808e0325c974693b901343278bfd8088d08c484cfd089004685bf7a7157e7c7d
|
File details
Details for the file simple_equ-1.3.835-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: simple_equ-1.3.835-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 119.8 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbe9cc110a889c0cafcdb439054a3281ea3ece01a29fff8a6fbf3d7f94b16fdf
|
|
| MD5 |
3c016bc114643d9a474de06ffe894405
|
|
| BLAKE2b-256 |
b05a2c85568df07c07037cd5437cc74bdcd540ae981e5eecb228962f74675ae9
|
File details
Details for the file simple_equ-1.3.835-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: simple_equ-1.3.835-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77d7e299bb93326d3e126fd066ba29b76389afbb46f57ad7840f930618a35c08
|
|
| MD5 |
b688bd74f2e3f74a57cecfe4e9d196ce
|
|
| BLAKE2b-256 |
f701c7a7d37ea7d966a2376af46ea8740d9f3f10b200acda17fed97eb0354b81
|
File details
Details for the file simple_equ-1.3.835-cp38-cp38-win32.whl.
File metadata
- Download URL: simple_equ-1.3.835-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1038ba2745f8e483bd841e4f41f05b90bed2a0ad9c7dff122ea854c595e00507
|
|
| MD5 |
521130962e1ede9ac85e59b2558af68a
|
|
| BLAKE2b-256 |
22566343d424fecf0e998d8bbc6977107d340e9ee2fd13c36fcfd04406e6dd7a
|
File details
Details for the file simple_equ-1.3.835-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.
File metadata
- Download URL: simple_equ-1.3.835-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
- Upload date:
- Size: 285.0 kB
- Tags: CPython 3.8, manylinux: glibc 2.28+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd9cca3b75e9ceec37c28c79674a03f902d92a61af2a44881481e068381214b8
|
|
| MD5 |
a07ae8416c199c643c621091d75c009b
|
|
| BLAKE2b-256 |
afcd74a06715c1510c7bab94c3a4878280907109a3ce451c40b463b491f88719
|
File details
Details for the file simple_equ-1.3.835-cp38-cp38-macosx_11_0_arm64.whl.
File metadata
- Download URL: simple_equ-1.3.835-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 120.2 kB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1979d3f8151132fa893747ebf9f6d079f2b6cacd591c250b4744a5981d899b94
|
|
| MD5 |
763afbace4bf222547bdabe5d46dac69
|
|
| BLAKE2b-256 |
e1c4238efbf689a8583b9349f6ce620c93955cbf40870dd4c5347117ca576bac
|