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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.134-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.134-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.134-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.134-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0d0d11944b81864866a1dfb6d8dbc3b0d05ba0f973d1d1707cfe119cc24f0242
MD5 e0fa0382de7c01a52a69608f4451c1bb
BLAKE2b-256 e32ab9472dec3e79fcaf5295b7dfbef6c01a220a97334fcc429e77aba211e158

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.134-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.134-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cd6ee31f06c10deeca924c23253450d3a5dac4204725f1ab946360d073db5aa5
MD5 511ea87f51ddc1fedf82f00733c4265e
BLAKE2b-256 bd052a9b5376c955bae8dc5891a60b6fba8dc38ede0febccdb108342dfe506ca

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.134-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.134-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f4819dea9a4372db4275701140b43057f6ac8ff533e05574c1e368027c2ef997
MD5 c9f7c44f8e1b967173286bceb59cd59b
BLAKE2b-256 f4e3bfdfc7e46fc77cc417d2e6ba20e7b3081ab347330b6766a4a0701df36a22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.134-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cce0852e17028cdc8ee7b3d824851bf938567419a488fe542df5af82e4167f9b
MD5 2b4878a93201e07b8f08d67e082c9050
BLAKE2b-256 82a153dbbc74c382b6ea541b447c50066b74d2bbed51d6c0293eaaa1745d4f6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.134-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 00ff90907fcfc0716f0f4d108ce34983e0eeb8cd11b2a0237f64798f4b3079b0
MD5 1dabd6ccd3e0a569e2eecba3e13a35bd
BLAKE2b-256 be0e52774f9378aadaaac62c1e44945e397ac0ec0dcab026b8206aa59cdc907d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.134-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.134-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e1e53f103a9f96d057771224e04288b84ba86e6b0abe892ac77c80476167114a
MD5 8d1255fbcbb014bd21059f4a6c6d9021
BLAKE2b-256 b248c28af9fcf1a09d01ca1c27efa5cbb90613ad69cc8f4610090d633d79253a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.134-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.134-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a156495d0aa6a888477a262fe4c464962e3e26d7c98c57e1142694d881a08cc9
MD5 3f049cd9509adde93383402e27e43fdd
BLAKE2b-256 79a7d2cf0662c1e35c5faea618d4f4f0ab63380e93a704d84a682e68cc2775a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.134-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 785fb1239dc1487be3d7f1df537d3e5a669f58e80845ccea134278353efa3ea0
MD5 140d3a97dcd03f7c1973d925d609ba79
BLAKE2b-256 2d746c763729fe8f360f3b28b77ee54ebe4ffddf9c4ae22dd2c5ee3dcbd772b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.134-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4801e388cef32727c4a4bdca087853ce225050becfc82b1106fbae8ef168e777
MD5 e1e9c175b6449b99c826f4f4d8f7a1ec
BLAKE2b-256 35b42cc04b6fc0cd35c87db733e1831e11f42ddbd6a85b7ef8dc71be4efb1157

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.134-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.134-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1c6c1e17b21f0f952c9e9e297dc72f865e847fa0d702aad4ac2f1ecd910bccfc
MD5 b6a89fec713614f8364145b26815e982
BLAKE2b-256 5bb5f7386957daa36abcb93adaacf6b75b2afda04bb8b907c58393dac80ba56a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.134-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.134-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ecc2ac088c5d4ba4f7a5366a69097ba2520fe3d64fde91020600f5cd90c79997
MD5 54cee34c0c02edf650fa660c37d335df
BLAKE2b-256 0645fc9b8442f7b9f826300d53544924888aca45e79980e1e112d5703fd27b15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.134-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ce6c2c45eff6841889a24ec3f671383a35cf03f17ff399b6b8b2397754a0ec8
MD5 5b8dd3c31a6da3de37ff91a9226c69cb
BLAKE2b-256 9b4da1833bd076c784c57a42dd321f2b329f1d4c7714c6400ea0a080d33b05d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.134-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.134-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 50c516914449286ecc98a2f65895d87fdc147aa65f7ce86b64ef42c55b89e16c
MD5 718819c4b8cc45984cfdf9c3eca6d6ab
BLAKE2b-256 dd5c6eece60d9371a4674a9413f3dad05efb460105926b9fe42a6f42475c53ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.134-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.134-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d6927b95682451ce64af3bb819cb93d00fef448bebb617fad2ea0813b43b1807
MD5 3b8745daf761f43cfb309b110d07a769
BLAKE2b-256 625478a2b95be233fe6e3b750f0bc11d5b8997bbd5567f0d88d6d55143f4bd24

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.134-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.134-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 75a9ff8e3767cb366e42602bd85bcb09e97c0233394830f88d65614b62e4c419
MD5 f54109e134f1bc08de6278ba622f14c8
BLAKE2b-256 58e6961e631aacdf1fe95b2fa8c93a9db02aa656333458a1ae1cd121840dff39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.134-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61a8b5352c54638f1e4525cf34db42647c152c4812bef3d90baac52a6d4aacde
MD5 a4bbb661a449eb3cf8f235d20e0ca0b8
BLAKE2b-256 882415dd4702141801e57fe8ce70cbd95c2934ec3e1e4716b964a1c296300a2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.134-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.134-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c1a5d9be6e1ffb7821a918b820e61ee1c4eba90d68b93a007fef6bdb93cdb343
MD5 ccde5f7f5e46b6bd56b600c678226a9c
BLAKE2b-256 a4652ce82f4d1cc06b2320e0a1f568d0bace65adcf315c92fd276b6d882a3ac3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.134-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.134-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 effc02aa8f41ce36ebc402200fd90985c63825e41919f99a79fb04672149e083
MD5 f96ceda70b2b9e96e1ec0bd99d263fff
BLAKE2b-256 8c8f207fd754509105d9f4512a484748a4038d4b31ec8c98763dfe737b9c4547

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.134-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.134-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 354f3b191ec6e6256c935195f371f39b83830af412e6e48c6b7695715024cb5f
MD5 fe79ddea89ef6c9a20f9baf56dfe1c84
BLAKE2b-256 b88d3fce66b6dadacd7b89e049515c47421a3394faf27aab956230317bf4969b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.134-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5767ad7b2f6403ab18c72d9a8b725cdc883cd888288ac514089f13d35d4f66b3
MD5 c83da0d768e80a792b7a080d0160105a
BLAKE2b-256 af95de9d97e557dfc819e218185d785ea56cfbb8f7fa4fe160c0944eab15ec96

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