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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.362-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.362-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.362-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.362-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1ab027b5c6789494c1acec80ce00b9ad69e591da817e78230f00a2ab7c285887
MD5 3d2a525b23dcbf7fad68e4bba18657c6
BLAKE2b-256 f85b6cad27a81efc0a71b14e059d5e51f9248733ca796e64173dbac32a121fac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.362-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.362-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d5bcde7ae24f72bb852ac32956971c4e77cd934cfd0c3e306e8295e914c03a58
MD5 f917a0396d07fb29d61c65046ecc964e
BLAKE2b-256 2da9ee5e56d94f4771aac265ea8291d2f2df1e3eaa1d2274f774fad7e6332bf4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.362-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.362-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a2ff01ce5692281a5688e489df8f60c75718cfae3ef478abf8c84ae62d734718
MD5 26c1e60c869cbc06a70d24647447048d
BLAKE2b-256 756fc7e3b7276796448187f11977bf8e5b30dc680fd8f645446ee5bc65c53ce3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.362-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01f4772a03251bb1aaf3a808f34007f4b68782d5a527c68f9b7584faaa96976d
MD5 67cb4511fba7369dbeef5d3e88102a1c
BLAKE2b-256 5f7e1a135506c4b8c1dcb6f41ceece988a0b86ef6e78bbf39ce28151c7c95cb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.362-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7c44a57d8bf286d6304d96ebdac20094ac6aacd7a7e70230e7aed73162aebd28
MD5 a6a2396ce681e324bf3f702ffab44d86
BLAKE2b-256 8db9db3756118aae5b80d6601311a5a17367018e5407d7592d5351cca7f76fa7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.362-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.362-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9afd4b2ecc96c3e4a4036f938ee33b40d57e13aaf05fc1f5cd33b720827fff90
MD5 d3849a3d72521208e158ac8f81f7ed7c
BLAKE2b-256 891826c3df4b88006cf1d206f562dfc37cae12bb44637a4deac86a8aa4e36392

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.362-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.362-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5143d0cf120b24c2ff2dfb75249a1476fc1f11290d3c7988d0e0fa8ec56453d0
MD5 3c1152d5c720e7554883b8870ce2a896
BLAKE2b-256 eac5b10b7997f99c7343a25107f55559861938892ea759f36c0f72476d425432

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.362-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c14b133ce564303897e62d0d81c2e0f57aa710b389730c22eb8f601834b459c
MD5 694a68c219ff2c8d14c2240573b69773
BLAKE2b-256 5c80343895487307d51ee8bc951054b863b1bc888a249860d4eca903b4a6c0c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.362-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 734699ad86c12aebfb615cc1081936bbddb7fdd488556c441bc4c3f556c1b91a
MD5 bd0a9719893d219283fea6a519f58add
BLAKE2b-256 62acdaa8ac69523e9418eb87839f4eea663044e7349f9bef9fb2c504500cfecd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.362-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.362-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0ffdc65cf6c8ab2a51052b1a6750305c9c47ea7c8e74183d53a9716ca22a04c0
MD5 62f8b7bca0fa97786264cfbd80f4a46f
BLAKE2b-256 d8fae260a8a39f561367877f1d82ead61352c916018e69b7261a9772dca2ae32

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.362-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.362-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1fed2f157c329ae1dfcf367d422f7ea2812fa4af28abc020a661c837f5c8f81c
MD5 ca1800585e1585cdbe5656c44a315bd2
BLAKE2b-256 a172ec3b282220055d67b2f13a8ac702f7d013977dfe98b3a6896b4c6849323b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.362-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49b005a21520809fee0864e0e768acc6ec3ce792af45a3d345de8b4308fe5c17
MD5 9b4858efa5adb5a342b2b7020fd90228
BLAKE2b-256 db7d5ba1ca89f85630de07bb3cd6e270efc9d62c84667dcad5c8b0c3dcc194a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.362-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.362-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 945a4ac2efe00584c63338d6c8c7410b279d3eb7703f1ffadb78f57a7a9b2d3f
MD5 3f586d2608d5785c41e30a7e15bd2206
BLAKE2b-256 f72108a1c069eb0770d6c5640fd3c19a5160c992b1231cb1975ebc5bfaecef48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.362-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.362-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 198953cf66fae475d10e589712b29446cb4d69f744b87a0925626472bf459fe0
MD5 78fadc795a0943210e090c756310b35e
BLAKE2b-256 988043df5d94096f87f5bc67344e67b6073627ca7f58710c6d1332f59204baf0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.362-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.362-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6eacd0182ca8d1616af2793be2d3ff49cc960490a760a97acfd42064b8133836
MD5 ffbf3c6ea85f129b474b1770e0a1dc8f
BLAKE2b-256 bc0458ea118e72868aaa41945e10e7b6ba683b69c7bd045d4c1fa26e745f21f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.362-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0dae37c2e0598ff53dfb25d9e4e7ab5247cdd1147ce1669200ef5c01c4620edb
MD5 72e0077c69d83bee360ba9abfcf1f7d4
BLAKE2b-256 c2f1fc100b2f66c3f29be2e0fdd3bfae472d656f8b8d7f7d6e09aba6f0eb35d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.362-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.362-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dce48bc1caac1916e1dadb54399df497b514e437984da30eeba3b34f49bdc22b
MD5 d2a758991bb98ddf51051285e56ebf73
BLAKE2b-256 0f3beba1393e9a39df2c84ee53de706b633a4ddc9453ff15baf81e1a0736b0b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.362-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.362-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ee55c810416de8e0b86e08dac35b69224f95e7adb723e140ceb82d49396c68cc
MD5 eda5e77b89674f2f92a6efe35fa4ad37
BLAKE2b-256 50eeebb903ecb48eb614be56e31784d205c5ef2cdeab2d4cd4ee992663d93e6b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.362-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.362-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 26654a86f2822bbbbfbaf4dcbeb8e7f2020c52a6564973ca50ffc548c721385e
MD5 7e61386484df5cd8f6798a821a76de88
BLAKE2b-256 9b078dadcfeacd3e95a9b530bae553c18d9ae0ede7e7824011403cc6190c943d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.362-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6198a3e81a688bab93516a73ed68d771ccbe14eafefa292d76b0bf5e2660c770
MD5 57ac41f0f38d2b692c5badc097079237
BLAKE2b-256 8a7747eb42335a0eeb58a10f2cf6152b1e8bd1ef29f8abe8ff4a0b668023c563

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