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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.410-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.410-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.410-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.410-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b8aa7129e48b65cbdd953d66b2adcffc4bb5c5c0d9ef6eadbb616e5eed7fc818
MD5 f99980aa256e95a1145ae2320c9f7718
BLAKE2b-256 0fb2aa614eb1abd0e5d17735e59b58165517077c715c7b5f482100ec9d15e09f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.410-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.410-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 05d02fa83a7ff5a3333bfb0fba5a95ada63cdba580a8e0d69a5343fd60cb6a3e
MD5 3cbaae4fe3445fe3219adb84d463b94a
BLAKE2b-256 00c883052dd65e5ef8e93eecf90a7eb91a17ddb46395ff236777babad46f0d8d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.410-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.410-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3f8e545963c9bebcd9bcc2ce1189b24ece8b05a347de0806e3d1713515240d52
MD5 7bfbc61f20a5bde4ff252ca88a7266f4
BLAKE2b-256 734a0043bc08a6b18977dfafb9313c7cc57fdd02c3ded19bdbb07f2f2a381451

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.410-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bde56b10b58fbf16a0f95cd95d8b8089f18a00cd2ab4d176c0bdda9df7afd078
MD5 9bea8317557559b004b1cb8c517c9c28
BLAKE2b-256 6c31fbe834e04905395f6fef082c68178b7f1c16adb37453400da33c97de612b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.410-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4b0b45a793b04ffa1066b65052371a6860483bd8f5662de73e68442df12f38e5
MD5 8c7b95bfa5914377f4a3c235f12132e7
BLAKE2b-256 3dbc06e4d4753208647dd61805edf3b6687de5900683d6d3b7faf6fc80c117d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.410-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.410-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d41cb6922408861d1e692152e4d0db407667cc7160e33fdb7120e9b709e91a8f
MD5 79a3f8cc2f0feacc6441462953c8d693
BLAKE2b-256 bdd36eb8f0788a918a63832a866d77bb37c035b885572f453250e3f58b222022

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.410-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.410-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a6031c97af2a538b51c9039c182e062164d3681839d8b298bfbcf87591c817ac
MD5 1456d1dc1613464dd70dddafd7273e31
BLAKE2b-256 06384ab498ad5eb492c70b7a49c9ceae700a6b6d96643b689e7dba19cbcc3667

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.410-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24a7c74b23b24ad30faaa487c31d0a36418edcc13b3119a311e969ef0fd99219
MD5 c00828bef768fa3b80972a508195c484
BLAKE2b-256 a51e6a2714dd9905d29e448d2ca12af1788fa3d478424926edafa0059d0bb9c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.410-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 44b4ef1097f1e8fbcc265fcbfe847b5c2e473b3f2e39264927165e4bed205e14
MD5 2c71b3ae67dc5f2552b121ad9f4b05ea
BLAKE2b-256 f10f7af956ca74d5b81d1ffeacf1d6a2037730d8a0194673305c392719ecfc90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.410-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.410-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 75c9888f438be7ad2e04ecdb30aae2b254cc2006d5a7a631bf33fb0edce1bcdb
MD5 69d8571c1c715400f3336a74f36f74d6
BLAKE2b-256 0f90dc54d5753ee2759f4ab7296ec491c041a7ce8656bbe9c63d265efa09c34e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.410-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.410-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4affc4647e64001f28f750ab3849da0370baffd3c74655cf78d0a3588c7fd8bf
MD5 b1fbb27cf713d715edd70dc20f9d34d6
BLAKE2b-256 bcbc1e029c7fdf61ecaf5c1f51bdf001005f55d47b68b52d1616aa1eb7c168a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.410-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a2f37462017e901af20e8ec87824d4b263dd9501591fb5b927c8c3617844f6da
MD5 634b29ecf0bd3606f2c6c198e0736594
BLAKE2b-256 9a2acd5a5217adfc372fbcff33a18842ffd79cac28acbfe27bdda620701607eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.410-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.410-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 626a09a97d3ac9cc25805f332ec3a53f6d860b1acf07ccfa1a8398ff06b0fdcd
MD5 8a3dfc097f2d8f63731e2a3092e723a2
BLAKE2b-256 18ea3ae46eb1f3eba4a0bfc11bc6f6a1623affc7cf27ebe3de66e2ac1d83f779

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.410-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.410-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7d29a25468d61b0f78fb7227899a29716aa9247d84dcdb9949b15a1ef8ec6a5f
MD5 62bde3e48107786ff955b7862843f932
BLAKE2b-256 ae8047b81a3f03ff18bf1e826dbfdaf140b5935a92079a219fb85a8b2fb3cd10

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.410-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.410-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e9c9db3efc7b5e025a6bd044842428be88260c6ffe210e7dbe0132de1449c62d
MD5 692e7cf6e98671ba932a9231a920db2b
BLAKE2b-256 d5cd6710523ddbc179d6b44f19124b7dfb452083d52bdee3968c296cad1b462f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.410-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7314a6400b54b286c7ede8995acc3d5bd08038f304b79f2b1c039208074c3ef
MD5 5fc1bcaad565c072a122866dc2d2e0fc
BLAKE2b-256 f6c7aac6077b62ca769ddef3b7194efb50f3b6a749f8fbd06d806df46daaee09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.410-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.410-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c763caf8bf085cef6ab1d7b9377fecbf6f46bda263900c7333454dbd9cf754c8
MD5 b1f65c6530b6535521ad3061a120d3e5
BLAKE2b-256 d35b6a0f72e71b15a18720006d16a88c78af649d3e54416f3c0109f99b17325f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.410-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.410-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6ac38243473635b9f8eb3c8861b67c30c62c130396a2656075d7d27ffe2ac4e9
MD5 1d8740463036387863fad2988869fff8
BLAKE2b-256 897370470d333ee204ba91ca38ee2ad6e53623dc2e727a34dafdda7ab1a21f70

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.410-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.410-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d86ed70e0e2c7845170ec7cb2cb1c6d35b8969c3aebb0ab04f8ebd33c0fa8e35
MD5 1c30fd7a59057035cd712a980ee8d055
BLAKE2b-256 3626df9ae75ef895d0c614393185a1a3da52a47d6ea2ee3e585805485ed15f15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.410-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ca505624f4afb48112657c5eaca3ca169b0538d71a4ca65721c16d106475b0f
MD5 4b81c6b5b8b99d7a85b7047bf657fc95
BLAKE2b-256 36262620f0a8a1a9bb1391c91d94b80ee3287a5a0ccdd959b836b6f1029dfa2e

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