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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.478-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.478-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.478-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.478-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7bbb87fa6aca840008ff44dd8ee6a4d0ecd099c8e888e446d0de0a3f29226133
MD5 1dfb9545a46e7ada9977f50c53f01665
BLAKE2b-256 53e8fc52ddc9321e04f9dd83a8b335f00490692e8ead75c63c6f7f2c1d82042b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.478-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.478-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bff1e175d5edbc553e47b15ce41284b068bb62d9d1991417653a873a23e76d94
MD5 26b98058bd94b5563614cc48e060dc41
BLAKE2b-256 05eaccb56e4a50c345b5156b8d757c4719948ed0d0b280861e9328cacefbab37

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.478-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.478-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cd760686b00f637e100e9cde1f9c38bd94349118fd4f9ba3026e151776b5c6e6
MD5 41174515c00bccb37ec69ca9f38de3db
BLAKE2b-256 42e167d3eb65cdb2b1cba2e42a5016bcb1e27941acc7a01696a56a3f1171d967

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.478-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e062d2a3f7818084680a73e341d4b782e9715171116fa8d9737ef084f3a8b31
MD5 87176b2ecf22e7262a614871cd32a40f
BLAKE2b-256 91b1a0bb1ce0309a48352b66f5045d6a11cc7cb00e363a37cea75403363e2b24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.478-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 42dcac6435981ccab79829b50aef7a04bf03d6d9dadd74b47e77e0ab3a21829d
MD5 712d56054395639624a977e458ddecaf
BLAKE2b-256 4ce9343e5928c72d0704ea9b6470f0153dd1e9d50efad0a4533a09023c10bbc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.478-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.478-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0ee5972a7b8190e89c2b716a466d1bd6c546277ed074eeef0ee4d51c8dec081e
MD5 73f348e227017246e36621e7aa2d15b8
BLAKE2b-256 2ccc3dafa0759403a2b21e60a273467e7d9f596b3d9d358d4855a3ba33f5f48d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.478-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.478-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 95ff0b93007fdef7ef53d9f94798c564c301086a41668994a853e4bf9f86a165
MD5 bd9aad3f7b0fb71f4d982547402c9fd5
BLAKE2b-256 ced29be11042904a19be054717b3fde87648c6c4d8501b3c5530031f37f26dc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.478-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c23dcf5d4e3e21350eec5b5cb603bb87cfe0c613814be166bef2a819acc348ce
MD5 0433adea9e4376ed401e6fe62601acf0
BLAKE2b-256 4a23b8c28b75216c9186bcd29d66130787ea83dd4ea388b1c15baf21587b2715

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.478-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1598c830910eafe44f4bd62284171fe2d11a41510880d1a07ef508bac8037f62
MD5 b06ab4896ba25f2a84e586998ee573f9
BLAKE2b-256 900fe255cdc6a71fe967cae505deef42c8e5a9764e234c0cb433331c6d2bfdc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.478-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.478-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 060bf6153f2e24e8e33f028a87e33a9c5e56e9843c750280223c7e6f92d4e6f1
MD5 a269128ca0c7165edf3381eb23e38323
BLAKE2b-256 1c18dc7c9f3fe3764dfb768e17ff50b3f7b359f82b0ba4dee75732534c37cfea

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.478-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.478-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b2cebfd0fd1936eb9fc9a4d0c664573796a9c10e7d0eb579ddcd5a96541f7d9
MD5 74bd521b3365f125a6adbd7a801a588f
BLAKE2b-256 f9a4209b1fa1f733a5564e9fc89243abec1b8ecb407caf17852beb432c36331a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.478-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c1510f9542554aa4bc32b2f232bfff943d0640450299e949d4718bf8bd781d2
MD5 0f683b18c7d6ebd878c1c736b265e685
BLAKE2b-256 9deb1efde5644047efe88c11e4f64c5977cb8ca9dd66bb45d71490a0fa30a927

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.478-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.478-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8463d37e872d8ebafcd3082617610e097e33f4bca872870afe346c9babfbfe11
MD5 a326534300913073fbdf042944470797
BLAKE2b-256 e8c804e51daf41100ce1f50d6d624b9086c7ec1611d9b64c38261b170922cd9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.478-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.478-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1a53c8640da3832feb0dd572def98b105f5f9649d0adc05cf072c5ff1448afdd
MD5 05ae38838a4f7a87c446687852dac7da
BLAKE2b-256 30d835bcd704c2680993327886a2c773c93c2c6ea9ad6441adc4a339637ad4c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.478-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.478-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2348726b1559e3e2c0b3ff245fcdf2f4abfeaf91f7050bc9a2de889b8e62bb2a
MD5 ecbbe839a13f17b6b4d775e3ee1bf679
BLAKE2b-256 4b9df5b11f6a6b355c367fa4a6c628ac9a30f03189eb70bb2f9e677f38dd9dbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.478-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32e9b8d48ad0b4b7ca57c32681bffb4303906b3a9e044dde3a69c5c2e1450b0c
MD5 f5a357c80b9cb62b36ecb54908908a2a
BLAKE2b-256 1c2e26ac17b71432b343babb3bf9e9a678d70d391fe942910d90d6c8e2ddc3c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.478-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.478-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3e83e7f0e31a7ace39e056d799293c4e84cbd9394ed29512d80ed0cc07e38540
MD5 bf1a2a021dee7dfdcf7b4cc5d3ac0678
BLAKE2b-256 76e7c0f70f94ce1d50ee66347f0d51286b33f726de29433ebb5ed5d51e2be560

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.478-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.478-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a34957b7890485b375d437e6f3650968c0ff02415bde60a90e23672be9d733ec
MD5 c76cce80c32201e682afd8c4a6e44031
BLAKE2b-256 8af611aac43e5c1be78e53d609e12b38f28cd1377d4e7c740776d5ce6a97cc15

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.478-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.478-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 433677c620490a5c66463bbc0540690b0275064a45d83b5185e3b53232041a66
MD5 89143d02f225428eb7e15aa8d11581b6
BLAKE2b-256 35725953376f57443f0698e8557ac71fc2af7e217a3bbf00e10e2111a65afc64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.478-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9bf5a5084bc0ad3146bec8260429347a555fd6cbe9ffef1c29ad24910720086
MD5 50b281eafa501ade867dcaa031a51321
BLAKE2b-256 5fa478c4188f556de546b9de9b68950603e7c71b336de5171497e10f2bb3478d

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