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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.43-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.43-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.43-cp311-cp311-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.43-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.43-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.43-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.43-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

Hashes for simple_equ-1.3.43-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 83a375778269306270db0bf42a06e8a160617c6c087af4ababaa3f5dbf6b0a56
MD5 4d4b7eab00a04e9e2dd3c569c5b7c65a
BLAKE2b-256 ab398fc0f238905cd5a1927537ada4df5f01a5b5ba102f5f9ff59997d3fdba43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.43-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.43-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 de2e2475a328f74ca776dfc3aa72f5dc33f79edf9a4b2d983428ba5cdebe44cf
MD5 c5b819ef4d066b7a21257d943a80d6ed
BLAKE2b-256 d723d7706d244f0381ba7695c1eabd6d445fa33b0611a1239a664323c9e24384

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.43-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.43-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3bd4ae2cef0572d23ef8b1587115342d0bde3e106ce6550153fe3214942651ba
MD5 bf63f7bccd751efe5c1a0c2f86a271c8
BLAKE2b-256 1f31a49c744979e5b47435451395c82acd28458f4944263186369adf8311fb7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.43-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9294cd5355a5921d58efc12b6a76fbfaaa955cbf96c548c3ad00306552b5cf4d
MD5 85231a5d940b374da65d20f70dbccb02
BLAKE2b-256 25cfb937fa6ad653cfd2e38a2b5a3a9176954ed1501480c946dd1c72417a4f41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.43-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.6 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

Hashes for simple_equ-1.3.43-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f8f39539867fe86a566dae987f23488d22a3a643b044aa9471a259ea7a68f9bd
MD5 14d0136147519253571075f6de5a79ce
BLAKE2b-256 2c4fe1fc79e50485c6ddef63ea33562f04ed8ef48d5b4319a296cd05e42a4041

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.43-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.43-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f2f6a4c458a02d768857998a42784143406f338be4b819efca4c20d68e1a95bf
MD5 3d7731e7bbb041f43d4b3e506996d23e
BLAKE2b-256 704c89600bf98a3c92974e93d4d5d226d2ad87ae20cff22d039ee286295c4b17

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.43-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.43-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8e6dcc5419a539bf6042f9611595080e2599dc4e9f9b5588e853a6df6a90d30f
MD5 84c449c8dda3e32c3ea86a908a7d1289
BLAKE2b-256 bb11a0a305db9e271a82a006cebadd2adead029eff570075eda5879b8fb2ad1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.43-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 557a87209176f68383af86bd2d4d7a2cc6d3a2681368be34967a3e357b7728ec
MD5 314ba28ad8316cdba2914a742be78673
BLAKE2b-256 4fd04c8fe8225462f4ab9f7f4dc0e38581fc74785a53d3abba2cbe174d86bdd3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.43-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

Hashes for simple_equ-1.3.43-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 69fd83a0e23764b31103892613f75c9cf442ab3758c9e5cfefe32befb66c7f0d
MD5 a0c56a9e852174f0c2b1af39c290398e
BLAKE2b-256 ab3b6c91fef19582fa483e7d0916e898e1f77f23c3f6a4f5cfd9f5e834b55adc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.43-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.43-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 aa473bac2648103e4066f3f7dbac0f194dfa2c6e28c33ff4e8924bff6a7b7d2a
MD5 4be48978321afc44e0a664662cfe2537
BLAKE2b-256 7c67d464c3a3b8f0c8c78f47aa9bb46fa6b21691976d96ef7f88853de0d67f50

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.43-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.43-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3a29d340802da4c8739262b6ce42cd531290554c1dba7c9ae3e6d39e6482968a
MD5 3e26e3aef8ebacbba5fde08178b2b0fd
BLAKE2b-256 9dd1b29d53a26aeda6be3702ad0964fd40bafbbdf6968c8e9a0bbbb75ee800b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.43-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7bd3c51c0ba17efe6b81cbb88188cd61e87146f93efe85dfea95405f0d64750f
MD5 9e2b919a0e71c261749a05ea75055bf1
BLAKE2b-256 931a652fd902dbe580660d2744aa115e5693b9344d57848d10b4d951482d5d02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.43-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.43-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c03c5ab9ddf47e608a1cc64c871540ff5bbe3d4b2ba530fcb91700d9a50791ca
MD5 e887276993b2a17010ad0ce006639e36
BLAKE2b-256 fa1e250ab6c9591e6d068b8243fa8e53c25efd758760a23a9c92c02ff106c655

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.43-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.43-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f001f6473d2e95e9d41e132d8c994e2ab60179e4af8caa861090e3333ea1d239
MD5 fdb12211cf9692ae57c3654a03bcffc1
BLAKE2b-256 b9dcf3c4262de6ab60f38b9327a1082f3894c01d06c8542cb83627871a8cb3c1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.43-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.43-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f3e6408a45c23a0c0f96a801cd46ead4309df89941b527d55dfe3395c447ccb
MD5 82b5abc254cd28af5c1b71479d43dbf8
BLAKE2b-256 64292f1a268dac842e8d0f575e6303f2250fa751c80dc6768f726dd9641ea90c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.43-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19b17c36c850c6733ea01f2ddd01f754399b790af5d791bfe887e31bd6d2da5d
MD5 d22e143b98d866d56e104e335bfc7665
BLAKE2b-256 e130b2fa6b60a1843b395ac1303e3104eee07068351d4629f5566604e55820d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.43-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.43-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cb6b270894e70610a439263ab5a1b629ed0a9b6813893a2add27a19e934a06e6
MD5 6b1662a6553da0f5f578abbf394a36e6
BLAKE2b-256 80caf50bddc78584ceb8124a4a2d79a5cfc90ea14bffe8dcf4d47022b447bad7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.43-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.43-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bde0ee84cd2850726bebaca5378465c82f0b6fd04e21e5940d325cf46aee1342
MD5 b96b6fa8afcda66ebe40577aaa5548a3
BLAKE2b-256 65d2e59093f18c9bceba26a7994540902b61af7d1d1ac3431ce9b0b323aa2fc1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.43-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.43-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 46279f276d03a26576760725412513603e5782dc1f831a5830b589bd83174c0f
MD5 0a67c5907706243f61e161e73838e0f6
BLAKE2b-256 e9f1c1b9c8c7a7834761d0ca20f286124cc326d5a45d516d5c53a91ab6cd4b53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.43-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5af9cd0466a7a176e59b781f0358aa2b55613a8f9316581b13e8212ec94c05f9
MD5 62f6360f2e52bee5a30f9c1f4fc4673d
BLAKE2b-256 933d9813ce25aec6b3fa046de91ad089468952d9527482aeb84be4d3dcd41d36

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