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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.393-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.393-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.393-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.393-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 30d33b8d06712e844d97c16c2417f0c3d7c2cb2d2879dfd4b67996f80a015388
MD5 257381549a07e8ded2f1270cd967bf3d
BLAKE2b-256 47c4aec4ac0b7cff77ac682fd0468f88c6d926aca32535ff8d5ac25f8faf0517

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.393-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.393-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0f6d39fc3a510dd6deee09422e2314764a0ad43a26ace8b78ead5e701490c1fa
MD5 608b0d8d7eaed1d18ce80dd00713afe2
BLAKE2b-256 05007818cdeea0a3025508c053ee1d52d85190faad7dbeeb2a7e128c27b69a75

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.393-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.393-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 02d6934ef11a21949266b334ecb95a263477bd3551e5ac5666c26d1e5fbb7e40
MD5 5262b7cd761f9f9d2b9e1c570f5c4dea
BLAKE2b-256 9a36c31d0f6707e0bfb4882ec4772af5111600cc1504f9b4e6bf005963704acc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.393-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85347614c672d23ab0bd8d14febca75ca0f5c59ddd9c8fa1491eb696f6f4f5c3
MD5 57004bfa9eaf3123120466cac39cb2f7
BLAKE2b-256 b3ed810127faf962dc9e085a0348b55aef02ecf42c24aec00b31839a09da8bb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.393-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4f0726f7815254cd236bec2038030dbe0012e95b134ef31b9a225f56fc417af4
MD5 51040e8c9331da6d1478bcd425b1dc75
BLAKE2b-256 b8f8a92094692d894915a01faf400b78e2753f38b86f33c990474ab709509bea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.393-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.393-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 bf85813d94d34c29fafd06cc23fb93f65afb2b17461d36a1911ea0287b5e2099
MD5 419c26845350f359c7049fe82a4cbf4f
BLAKE2b-256 224f2086aa6d8463afe1f082557f019006feeecfc39ce4cbabb4869837346af7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.393-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.393-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b21c3a494bbad18da4d2975ee5473f444d36100c82625fd2947a78f5d0449fd6
MD5 06ce73ddf427aab848cac4a27d8a2ee8
BLAKE2b-256 addd6867c2f311b1405cd99a854903fd4da808ea7e4b581eae8748227cf11495

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.393-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb0c5b3f688eb0560bf233b1ab886f614dc8eb9462e9a768386a420ca45fddd8
MD5 ddd78e3cbb27cdbe845569e2a87a883e
BLAKE2b-256 8bbcf0f9dc762504dade0bcb671eb25232e160b9841fd9386eb9e12fabef409d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.393-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8a093ad8ea6725a4b1b596b84d4ec5c18b9933107d43711ce8f317e51a86fc42
MD5 b0f4d7be99884dd3d622d9f6f2606be2
BLAKE2b-256 cba6994e03de8d64924113819d7e09dcf2a660afe4f856a0f6baf02cf70b3a73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.393-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.393-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9112198a761d03e587b0a47b84af5495d0832957841d1ed1512e4507104e90f8
MD5 4198e32aec9f6b36dd29e335c5defe7b
BLAKE2b-256 30b8f3b75d062e66641b9bc69b838d9a2e19a4c490a352857badb771de5b47d1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.393-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.393-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6b5fb9ae6702137a055ecf1a3de0006ed2097de727063212b9f59faa7b6f3ce7
MD5 24d2e8c45be8a8e2e777b12c96ffbaf5
BLAKE2b-256 dfa98d6ecb05eb4e944e0b6f22bccab543817064b3c5d54bf6ab37546384660b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.393-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 961020156d8d5272bc365494f3a94be4b9c11a1b61b8fa3a65418d99b6e7a3a0
MD5 9a110fcf521d13d0654d2f95f12ce19f
BLAKE2b-256 70169c6a9b38b7f2ee09d458d677462831e267be34a8bc031f2aa9a8abecdd92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.393-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.393-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 add7eca860b2367eb13003fd2c85cef68d4de6ea3f9f9e1491fe9d0e0f186818
MD5 9880d6a1b00f7ee210634112ab2c3b59
BLAKE2b-256 aa126e7982de58822673483adf1738fa5b7359ff0fd849f87e630c16c62a4417

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.393-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.393-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 524034f558eae3836d48068eef686f4355d0e49671ff7b49512ab9fe4bd14eba
MD5 e427dfd17e55e60fdd93f35ef303010a
BLAKE2b-256 6f4e6386f6486dff63b330d845d2d8a78df0a0501ca74e49178aa43859caa3bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.393-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.393-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8fc546d73d22b8a6166b8b06e01bf34a12278e546516e0ba1245f55380b6db4b
MD5 d4bf3f28ba6949bc46401c1127c55d5d
BLAKE2b-256 3f23fb42d12ccef24b2ab3042d5f57a7b0226146fd8f1204195d2ff9677e6462

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.393-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 723e20c8a5fb10b6b404537b0dfe19d40210e1eccd9ede39b6c67212684bec95
MD5 51b1e94ee3368766de2bd23e6b53ee7d
BLAKE2b-256 d02257c6b7a8da129fe038bb60e7eec34bc1655ef52046c6f70c4edf1d8cbb40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.393-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.393-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 43e164e4057192625e5d8fae2a688a5e138e55de87dfded66b513337640f150b
MD5 a53fb9c74d4e4f753799fe3fece9f30b
BLAKE2b-256 755dc78b79c83a617e3e2d340fded9266a9b79856afe6c98ca58d69924d08863

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.393-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.393-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 440a498dffd77f3b38bed665a921bad4811618cb0eb842135c7beb336a4babd0
MD5 10d2940cfd9aee29c7e8f55f1fe43c79
BLAKE2b-256 57b57b4c76d66ecf353ef141a3d4955332de7eeb677261864a78377d3a0cc270

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.393-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.393-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a47a0f541ca81b88c79acbb1a3c2971943f65b6edcaf6f7ab80baba406968e95
MD5 88876a5f8c5fe301d813b9ee2199f41b
BLAKE2b-256 f6510842fd34495a3c42c54ef87106036fe21919a2083100c61357d2f6286307

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.393-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a4e585084bc0928ffc905951c5d8caa96d09d6fa2705cad0ed23ecd40e187ddf
MD5 e83c2c0192e66a539952573d695d0a95
BLAKE2b-256 16326cb268e4fd3096f80c3ce088522ce2135a7b542333c64c566a8403543242

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