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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.751-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.751-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.751-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.751-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 24002c14539a5af3ee6192c0958746309828a1d584d6b9540e4f05d89cae3d70
MD5 8436ef404146a7e232c3cfe339e43946
BLAKE2b-256 a8ef080c35c4810f13e1807c1c9fc6cbebc50099b35e60964de3ff57a263aac1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.751-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.751-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a593afd98b6808557b8a83a486a2f8909a5813da096f9155162d83345b2beb16
MD5 427cd34663a776a69e2bc939b6250a68
BLAKE2b-256 c42dacc0559d02f8bf053c2b839ed4085443d530b6a7d07c192dd98e3884f642

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.751-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.751-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9ee8ad90bd034ae70f2fc8d4cf5a912d9b263276f2035ec12bc907c226d946b8
MD5 58e7ec65b01db569f0210633918f6f4e
BLAKE2b-256 3d1c72cdfa76119386fa093dc040396f90dccee301768b1af3c1d3d37e6c55f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.751-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2820c544b75fe30b9c239c409402492c20425d849ebbe139cfa412243c27c84c
MD5 feceaec36d33638fbe7cb576e6ebc079
BLAKE2b-256 4783c9716a1fdfb2b3592fb3e6fad64a64fad8256495d50c749b7801efbca8e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.751-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c9fb2beedc4d55c8e9319845972f95d28277fa74c664a865fd49f2b20099f07b
MD5 2c90fc4062e8b745211e966df44b152f
BLAKE2b-256 31f508ba0c4e879cc83bab9f8cd56f9cbd234a2bd4f998d4a85b6352822304d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.751-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.751-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ebf61e45f95ad84b6a820c433c91b53ea535c24afedfb7d36efd1399a24bc169
MD5 b97440ad9a46db3347117b50c7140fab
BLAKE2b-256 e550734c5eb9c767d1b1d86f4a38c9620a1b59b5a6c8cc3f8e75cbc9e365ae1a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.751-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.751-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b52e159a9fcefc901b0adeb7d4f13f84aa67819df36a4fc70f15552ad5b10239
MD5 b79844be5c0741fd20086a828b065523
BLAKE2b-256 8c897816898cfaf97aa237fd4f221385424fb56901e6dc0bfeedf5d157f1113e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.751-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 78b1e60d04dccc6a08c627a1f1c0ac20b9048bf2dc929d919bc77f6b30ded07e
MD5 9ff79835e6efbccde53d49eff155ae77
BLAKE2b-256 85af6bea1d6c3fd7e7fe71490e9afd2acb7e6ffc5c2e5878e7d8e5a2d4d8dd8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.751-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 75f3e9541e4a5b38ffb161d8b57f79818d4f3d32a920e4bcc74ffd1f14eb52fb
MD5 bb4c755071b5a4502e0403b789dd2c67
BLAKE2b-256 b8660cad6d64e1956b49afda4c7ee595f305286aba33f9116187b6c7b8162995

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.751-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.751-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a23eef6e41d3b2d3b0249e3d1f8e7d07f77d0b8338aba7e5cdfda9aa7f750f74
MD5 ee52d7259408e7a9224de4c27dd6322f
BLAKE2b-256 4325f5f7434384e5ad3c80ed625912c1c586d53d0be670acd906f700588f28bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.751-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.751-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8533b5458143ea0d11ad7dd6360d9e02db5d4ce6660d99bbc5ea7553023b01e7
MD5 a6f2f19f9dc5fd5e383f51d2d86a3458
BLAKE2b-256 c400dea3e322b73a2e57a8477b01140eb6c3d17e9e2acdbca927a1facdfec955

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.751-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2182f8ce51a7ae52fd784442f267ae7c530d1a3af55951a75347ada63ac9cdde
MD5 4b60a1044f6483bd2c980699928af7b9
BLAKE2b-256 0edeedeb58e976b5f96a716aa8896b38d32329574cce986ac8471737ac59927a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.751-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.751-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fe906c2427a4e8864a3f94068a0937a673fffa923aafb10f7a9149496096f165
MD5 7907325f7729c527372f7107d32fdc29
BLAKE2b-256 6fddfe8921b0335abb67a1635661232cd491604acabd24f8f72905cb828549c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.751-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.751-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 96110318b7dc990d835878513bd7eed4d697b7c9fd8177e7db68e7c2df7a50ce
MD5 1679ad82511a1e8e2f0c23ea340bc710
BLAKE2b-256 ead8c4f97d2176a1fc1c7f55854258ab75b94972b813975e4733f4c56143440f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.751-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.751-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a12385076f68e8c3a1c95ac9d812071eca69973495c72dd2327b022a50bfeb73
MD5 7f24de7076757b80d90e0b441c2377fd
BLAKE2b-256 9af0df6d670d1fe1c2a40fea66a1413125ff8288a1608ae46550b2977eb69e21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.751-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dfac2149e8c024ab7bf338c48d699b37fc38f3091c3b98ddf770a650b71128a2
MD5 7b86700e557b841d45f026ab93cd5876
BLAKE2b-256 d6ead63e0fbdd1028fc8d2dc4ce3625811461aad73d9ec447c92a9a7878d9fdb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.751-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.751-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fbd9f60ea8ff1a3fb5516fa5aff0b0c46ed8cd37329fe4797dabe11d67fe3575
MD5 73ce66e0c605185e5c46af43beebf6e6
BLAKE2b-256 c36a4ab977cec906b2234d03c00da765272bb5ace44771cffe1fa382fcdb371a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.751-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.751-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b1481bb78dfd7cd716c6998581e420320353620d540ea892de9048655326c67d
MD5 4d59f389e9c4a42ab7792b58230b1361
BLAKE2b-256 d51cbb75a0a2ee982c330975630e58a710e81054d285768930d650d4757e0554

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.751-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.751-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6604907d4e5b1cb63196e0dbacd9546be13ed7b44c00c486f4f74b9a6f4a0626
MD5 1f923358450b92414597b4edb86d1a8c
BLAKE2b-256 51f6c0f644594f364898ad03650b0de69019a63531cdd2764b4b009db5e8308b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.751-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ffd4e0ef4eb1473ea40274a59c4f8ffa387672b439c68f83bf4648998a80382
MD5 6d1bc8cd419373f5818900d14db14f56
BLAKE2b-256 584ac173272ff91ff35c98514d998b7c546de8db95700a87955c92e4886abf34

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