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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.123-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.123-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.123-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.123-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 178293582711e1327d931a0587d4844bb5bef76c172e1c025c44ced3d730397d
MD5 87b7d4ae274bf19fc0162523391688a2
BLAKE2b-256 94ba0bbd312fa0cb5ffa32a05158a7aa9aa234fc2e3ba0350afeabbf62acf1b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.123-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.123-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9cdcc25d80dba21baf7e666d14bed26a8451e1cd3bf7c1ed1b4927b9adc048b3
MD5 2568a39f01b5c837b9657e1918916626
BLAKE2b-256 a657d31d158ed4eb8838b59c476a9cb0f513d5be67311b7432ae27af6071c48a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.123-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.123-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dce3c1d7f8a9342d18bbe0e65861aaf914d0494164289b15b5b95bc97036cb00
MD5 25a6beb85978dd275123fade9f5b6712
BLAKE2b-256 52cbe8731849ac63d5164ce96ba7110f0bf01d0e370c29de3d86bb3fe5d2068f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.123-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a0f36a2acec9d0f675a451224c9936f4f466f43a25a76ca4d6539b5bee9cea3
MD5 ccc081936d3fcf410a830f252a3dc669
BLAKE2b-256 e2aea846a5c9016fbc9f366654db1891fe8ed9f3b55b0096427abc7bd942329d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.123-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c45cdbca5ae91dfcd8c351f82f2dc543325573c16d25526c8ac8c027ab7218e1
MD5 2c5fae60a08929f1f987ba2726def07b
BLAKE2b-256 d99d86959ad7ee58ed68a55a45aa09373426a31b7ea4b34eb2d61f2899a93b36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.123-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.123-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 27f48bbae2c8b9e48f468317d3f3cc87790280379c59af2dfd03fce5cc8ddb41
MD5 82f846acd643cc77c022d7411bd6833e
BLAKE2b-256 197cf340a5a9201ab5f5348b13ebaeb991e72144ea7d1b7c4811011349e77878

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.123-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.123-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 07eef616b485461f28fb294fc9dbdaab32d8ed4dc21621f0869392c699c376a4
MD5 1ff517fd9c96ab7ea163c51d44a6994c
BLAKE2b-256 f1d1fe44bf3b805e4bf7d4a27fd08a6c19bed341a2c244aa06ed981c9c46ae0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.123-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37a1a3d2f56b8d7f35b2ecba8daa8926df56751b1292128016e84ed09fe4f2a2
MD5 01c6577237a6fc16c516b0c222f998a6
BLAKE2b-256 f9c8681dc3475088960a6ef6dcfda71b774908eaa4280dcfbcb834678796d781

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.123-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 71c6408ab7be9c92b477ebfd1650ef61557e3a9af44a3c2315a6e45729c2e4e7
MD5 0d29756d2c39ac7560085a208bd54310
BLAKE2b-256 911b609bb28602ac7303b9d0837d08a0f31f5cba25e592fd42684371095a1b33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.123-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.123-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 37dd42665edce08609f2c111bc54539fd72f0a2fd8a75a8fc9ae7bab24f17d2c
MD5 4a6002aaa6eb9aec034ff0a99c02d639
BLAKE2b-256 15b933d476c3371a7d986868d60a374d702a78e4f8e0a4f2fc8237d2a117bbc1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.123-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.123-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b5eb33778ab200b06480017ba0da392c50bb093657e5d0b1bd5c149a9a2cd32c
MD5 03826def787774b992988200b1ae60de
BLAKE2b-256 d6c391ba7cb0becadd1379dda62e5f0c41947b1cfbf324b679ed5776d8d86034

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.123-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8029c9ff6e974477d40b9d9c98a3cda957d04e6b3afb47b68b6cb0fe21ba3de
MD5 16790a771fc3c8a627a360c5dac1d66d
BLAKE2b-256 56c970e3b51c07be409071bfdf752ebd1fff3fd3516b089778cd5991e646c9d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.123-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.123-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8f0ba165cd9b611467e61c44d83b8427c8af59c5a8ec34727e4e861df7e5b72a
MD5 a9743a0bec024f49a02aacb65c5c79e1
BLAKE2b-256 86c0fa4044b2cfc81d04dcb1d42df62566d0ff5f4e32215e006f3091df5205fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.123-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.123-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 834a5c9ba137a6060953575f3be4f85d56d6a45e31003677bcec1dcf1b34fe22
MD5 a726b6a81e620fbe8b85a82867f6a15d
BLAKE2b-256 3c16ed0d7375d241ea37b0cca777584433a365afda643b9bded217efcaa4f2ba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.123-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.123-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5461c3db487e32275662c770e790692bf6b0f3c3496b25d7e4c4f373683a431d
MD5 6351a8980f2b6482d7ae5532f5b655c5
BLAKE2b-256 9453939826efd87686cc38de4f593ccddf1d1e7d581e8fbb472705ad2a5d53a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.123-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d3e365931c11c375d5d4bd871a290f41ad16b8e732070a540819566711ec97d
MD5 a0a16e7124c2a047ff728f97697a4ce9
BLAKE2b-256 496e72a6f4016dab7545cc815e7a9ead47d936de6d8f9c3e3de7219dfc5ff28c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.123-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.123-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8d6b268c179bbffa82f5c28b05ef56c37fde7a26b30f7e3ab5a9eae66b0e62dc
MD5 2317694ec6cbf56a73bc2b2159742e25
BLAKE2b-256 2ce30ee259ab99d98330739b84d4d5d2c17c5336c77d6fae1bd550f7e7dd0e56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.123-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.123-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b87012acc8bc720c08254ff05bd3c28ee9b8835d411009544bb6ffc9dffc439c
MD5 2fffa708d9cfcc5b0e4a3710466239e0
BLAKE2b-256 e30a55f2b009a7d97d0abc2df8b94ad809060b35cdde3fa2689cc0602f6dbb8d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.123-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.123-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b68a61b209dfee68d1616b6834e2ea9a7c0c121505500ae1106b74b8a748fee1
MD5 ddb51c3e0e5e9fc856483df74cb749c2
BLAKE2b-256 5c1efb74a103213b7f7dca71dd639e6b63e0d0e7ec07aca7f4ff91d97525af2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.123-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e7e5bcd79a69398d1d7cb4b4310057e004c16d81b5d6d5c6f0ba287c62a715f
MD5 ec0f4ef170ffbbcfbfb9fa53348176f8
BLAKE2b-256 a61093aac408a7f3e9880b2c7998b59b9c5e661da1dba8c3f80b289b00d1f195

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