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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.450-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.450-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.450-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.450-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 901f138da0ca00bdd1f8a11abff09fba42c4d8d87e5f41633711852fff46015e
MD5 4c938ebfafc20163fc065660af7ac086
BLAKE2b-256 e5b3f1e3cb75fb127dbc7ea45912bccc7d5c50d6915b58c918e1671f9baedc3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.450-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.450-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6105c054c655d7e505717fc3b04001327fc78d160e84b4c8932bcbfee7d633f1
MD5 7c41e453764656d84543730fa32e0ac2
BLAKE2b-256 3fa2e433cfdfdad43dd58b065db06c2486d1c5251dd76dccc554d5acb08ec802

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.450-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.450-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 565d4f811a0eeb365e6e796f4bdd1d92c95034920e9089da55ec0b2c6bc596d6
MD5 cb9c0df7841f55d4969228c711337dfc
BLAKE2b-256 6229aa72c5bedf5b24dde6f34c2d11574b5d52726b3e5ffcdb7f00235a76ad5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.450-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27582dd3ca6cf7b00f3ae74c6300ad86062e19f047a4e7b097f7ca47e775b8c1
MD5 716cf9d385581fb0ca9458e2ef4f5128
BLAKE2b-256 4c0f57efbb09756119091b2221e1d68cdebb5d70465f26c52f3e32699aa21fae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.450-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7184361b83f89f58c6b09d3659d96e2165f0d9a0204e81fae53aa3a71afcb82c
MD5 a18a213e99c8206fbfdb6b8dd0420c91
BLAKE2b-256 6acf5fa467861bcf50160bdd7619afda480ea2cf94130851d7135fae6a7a8413

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.450-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.450-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8b4127c6fc586fbc78e7633eac595071e7d063230be68164b428ae5500c74d0f
MD5 97d2a57a41ee4b99dbc7744867f79905
BLAKE2b-256 b0a25e22ab12d20b367d69c6f5609bee36bfb65753697dd3df880d863ab8d731

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.450-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.450-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f2d47e7c421bab95bce4eaaab5a3cf1855d93d16a66c26f034648195d03565e9
MD5 1afec42e4889f4cd84960cb999850bd6
BLAKE2b-256 9bb6f4eff9b82a4b4217aab25d0bb84195ec424358bf8f2b4d5d23deb5b0b4ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.450-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47083c6b1384c2e551e30703394e7d1514d522a4085303e36e05b186da99a976
MD5 cd87475221cc6184b5b3e892853362b1
BLAKE2b-256 29a80d17bd5413a55d88d3c135ccca7ddb4c2e2e242fb77c2694c28166216e5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.450-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f8602e0397cbd5e8314c4d2f2368bcce33ce3f5326c2b9ee8bfc3b78f286882a
MD5 a2ed7edb3267c77373d387308c24a36f
BLAKE2b-256 a0f186d33bca01c012db17589c8252533303aa0071ddb0ba2867ed962d0fb307

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.450-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.450-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d487009a5c04f38a6485737bebf89d51b33d52b3fe14dc21c281922b101a609a
MD5 0114673210b08e8764de4da95e491a3f
BLAKE2b-256 5811724049501da344a21a3af209ab10e156ecd6a9168e13ba48dee785f13b49

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.450-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.450-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 99f76ff8d50091ff63cf44d650718e21ac9161a30fa73948dcc618e71b4117d6
MD5 67f0653a85b0e47f72a5cf0f4e2b7bcf
BLAKE2b-256 655bcc75a85840381b6dbaf3e7d4f21c739113516322170cfb172176dece8328

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.450-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00c22107cda216a755644f753e5e7af02a83c1d60bbbfdb104e5b7d545dbf81e
MD5 e060e791454fd1646b315aa11d5db05c
BLAKE2b-256 e316514e9661243c02a0e104008ba99060e99e870d52305b68ff6455d396ed0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.450-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.450-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4699304c29311b25bfdd6559b706ee33a4d7f726b5bf89bedd7856e111105a4b
MD5 122398052b38e5acdeb0f55d693515d6
BLAKE2b-256 1cf6eaa5cad454430893b80898734b1a3ac51b28511260a2a3e3cecb79730e47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.450-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.450-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 91342ad08a68c3c562ee7ac40c3d676538f12f54a6df64abfb60fb630bfd5d93
MD5 a98bc53cb4ae99cfbee9b4d85b87862b
BLAKE2b-256 954cf55220dd546b44497384fb74ab3a0a4b4077deaee318f0ca8bf46bf7a292

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.450-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.450-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1e3a68a1078e32e0bd1daf018eaab2268ab44ec0ea218b8b9313adff57d907d5
MD5 e115b191f02b327423861aefeb5d1697
BLAKE2b-256 258f5bb6f72d1c9cf29fe8b13bae3c3cf1cf7c96b749fd9250811fdc7bba05c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.450-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cdeca6e830ba95340758122bfc21009fc8272ae6a81bf5a30e2447f1940fb41b
MD5 372390859a510012259c3d2d3851392b
BLAKE2b-256 2bfc6429eb45c5b5fda641a5a4e6282329e8cf547445b817a35d2b6e4a0472a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.450-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.450-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3a594b3b5fc61e5b9a79a390286d44d7595eacab1496ed6a3b478f26bd549797
MD5 7563f4aa4b84ef26e357e564d3ad6a96
BLAKE2b-256 30d407f8f3529a25c4bad0d78bb48ce9f7e6ecf52918cc98cb1e292cc9f53cb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.450-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.450-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 223a65c329c6737a68ed5fdc7b8e851c98691279f55d06d9ad64093557f37c55
MD5 6e36512f9142d02d1e9807ff8903fcbe
BLAKE2b-256 01d8bc26a0606e163ef7efc1706c621e27f6569cf54f10760c7bf3b5d396155b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.450-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.450-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5e5342a50d92b943dce937461971fcabc9321fb3adfcb490e1b4665368575356
MD5 99d13139358aad7d137506505c9da292
BLAKE2b-256 cbe9f73350b3a9be89787cc61b45743f1e16cbaf2a11b2204406d4ea8ebbeaf3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.450-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96474a44ecaa3d7c96a1d80108ef45a386e6d0c7d172fab40e4e4123035ce3a4
MD5 920b7d24a86c05aa930c2842c1f9b1e3
BLAKE2b-256 b674b53ea5d7b96adb00318b33ae97a59bfa754b23683c03ed62207934a5233f

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