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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.235-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.235-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.235-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.235-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1b34350cdaf2b1ce08ba922bbe101cbdd226b5b3e3419b17ff59d3c274f0884d
MD5 256b03afea4fd6aeebcfa8b67f0b50ec
BLAKE2b-256 8dbdb7f4c92af5cacd688d973c3d56e8d104334746a05faa057ffcdf95aa2c97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.235-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.235-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 188192396ca32bde14fc0dfa8c09c296846d3493a44e4497b70a03bf19c6c2c7
MD5 b673024f803f9214c2ee77273683ef8f
BLAKE2b-256 852c42856abcbea21670c171a317b3d869b555835115478b6a04679830b7ef3d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.235-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.235-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c6671b821f467f8aebdd90644728560e5c1e62b6411e6c1832f08ff10e13cd94
MD5 fbab6373ef62b5c1c665587e9980df05
BLAKE2b-256 3843661bfca5a7f233720056fa70647b2b649e45a1b7b7fbd221b6d39d8fc965

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.235-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 92df18e2f3810d1b30bed4fd14475353ef7fab186ce5f6bae636433f1ef23098
MD5 8f259cf0cc10ecec7238bbd9175be28f
BLAKE2b-256 cfdea7694731cd47e111f4f701c63127d031bdb9a7696e8bd1780e7414ce68e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.235-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3b45a68930d858610acc3175fec36e46348ce4ad1d75aa4a6c6208af27375ff9
MD5 aca6708c14978cfa57ea83d372c00a8e
BLAKE2b-256 655158fa05bcbfe68c311973c76876e1379b1e29b228e3be8a772fb54578cf39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.235-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.235-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8d8e8ae39d72bd4da513b51e96897d47029749d625c2e5ed003d323bac7ae1bf
MD5 71637c90cd024202b54865c48a4681a8
BLAKE2b-256 9eb9d5352ba70e591f8a0fe68c054a9c19388033990c31a3652f84aeea07f4e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.235-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.235-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 24530f1e612fed1571a73acdb41324b607f3f957e4484743230ab5c03205c4f3
MD5 eda68eda3651abcec56a59b203d6c336
BLAKE2b-256 ef1e3bbba5ccd747b638da7a65b6aa542cbd6695c8521c37e12856ab71f5f7d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.235-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0de411c66c49b6e2cfa7a9f87e7bf7c242ae5ded06804f6afccb3bdb0d9c526c
MD5 65e7cb1c3f66b2636c710e7de023a90c
BLAKE2b-256 4ca0d991016c7a99e021263ba38628e5881bf498a181591c86eed31223f8ce6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.235-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 409aab7d18812be9c5161a546a19900dd7b496732c29decd08e67922da036f58
MD5 70fb3604ae0ded437005392a2febe6c8
BLAKE2b-256 ce8f730b2379a167d206a0adfaf35211cf8a1837f76da21b3e20b11a64228851

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.235-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.235-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c127e3f5245da59431a68ae1aee303c131638cb58be6c4c2c2d44387a95b196c
MD5 439fd986a8f588348a9d025015a373cf
BLAKE2b-256 a3204f08859245a5d1c0ebe7f62c2b842db56c11f2974b96f736a9ea1bfa4071

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.235-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.235-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b2270a0f1e0aa91531eb44beb379b5dc92776db8be3817e9eb87c2a826f44c9e
MD5 df8fe3dba9dbccab1ec787ca65ba5591
BLAKE2b-256 bc282ebbe79b90c27b48a0becd802e9fc81e52ac84f2fc834f028c6cf152cee1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.235-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3346c5118de710ac22260b1b2ba1876168f984b9f2efa1e58bc7026d5af2895c
MD5 693e81ae451ff3a2d91e4fc0ad6fda5e
BLAKE2b-256 ed8da213bfa40f2dc6ffdccac4a9015e52778d33a382f58db13c282efc29f577

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.235-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.235-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a9aa3a63c02a6689537d6c2458fed3b2143af66a0ce47ed638981675082138eb
MD5 4ef196984729a22bf157157a73045579
BLAKE2b-256 2338632946cf8cc349f521fb4feb88e37f8c8fa166192bcbe1eb2240ab63e1f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.235-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.235-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e6b90665fcf1a760f17232fe0731fad8721dfc5a548b86b34f5897b852d4da90
MD5 63971438d34c35b732d862938d7bb575
BLAKE2b-256 60f0c0b514a3e55943a700dbdf9ad4b1a9e1e47519f93644be7a035a015ecd21

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.235-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.235-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e2bd27e0cac02e8b832a123da80e2bb865b62fa56ff7ea4352d10ea6e3a46b37
MD5 ab39d75af67f3447784f45f07d71aada
BLAKE2b-256 d65b454bdfceecdf886ff18ba71ece336b9adff133974cb7e0f2b7efe8c8b004

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.235-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8929f146bcffd8447780aef4780e02c62c65e91bf84cccc08847baaacc2b5316
MD5 8e502b924db696e468faf3eab5067167
BLAKE2b-256 729f1a15e1eb2167595982f2c6d24640f7aeace73f79fa8206ae523f54a84f4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.235-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.235-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 736254cedecb9270bae3d64a87f7230b9f90ca0efc2b38a1d7e0976982dac221
MD5 05781215c47136eda66e0182ff7f3777
BLAKE2b-256 3585ffb43dec1bb8a055b8027d88e77f262265d2613783e4c224ceb0f59c0125

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.235-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.235-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 30872f95b5fa1425834aaa9ca59436ed28ea4bfe17e251a9df531c4ed694ad04
MD5 ff732409c9b4a65365ba27d92cf6923f
BLAKE2b-256 cbcb084c6c0df7754d04ea098c99f289b21b5195b2c46f0c4c2df73a7b21a045

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.235-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.235-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dcd82fd98f77c2d9c44d50462246cfea0797b8f2b5fe1da1f641dce555b22bc3
MD5 ed7a19a3d1dfdb58a8a05139b2cc2e54
BLAKE2b-256 e917e4852c4533e99cf3aa07ec16af2965f288a1b4dec4f6096616434ec3637f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.235-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 340ff26c1584e08759da824a4706d1121a905a6118e4ff61ebf405304334db9b
MD5 82c05d5a92b2757a078b6ba0892d102b
BLAKE2b-256 8974b75c11f0c270ced03daf91fa0479af8a5a6b9fe6369f6d81e9fe310dffa8

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