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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.638-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.638-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.638-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.638-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 875a61e668b2bee4e66f89851615e62a9d2dc97c20d3d978cf781f6f4c7eda98
MD5 4df3a9aa08d056435f2290d7404e7cfe
BLAKE2b-256 f1387ce3cd2bd310c580d75a8f9c2fead786408a1957957b90f06e56506a3fe3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.638-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.638-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a8851318387238352483ad0e7899113d24780f63e1a67be23f0f933a73359890
MD5 0b5d31e81d469f330b4457f767e0d303
BLAKE2b-256 4d46f8ec81b182c338463b33077a3f22b9e9efe448628532ea7888a27ba062c6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.638-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.638-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bd80c17844949b808dfeab6a389a044b56bd2102c9f73fc02cae2dc759036482
MD5 d657d7fd197d580034355e2c518449c6
BLAKE2b-256 4b62c5e200e8850edd90bd7f206740560f560008255950f5ca593ae193006535

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.638-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f0df5261319127163eb10d1e08567f413021aed8c5029cbacd9efcb7bba66f5b
MD5 76399b4c9ee9c82f4de6c9bc3bdba716
BLAKE2b-256 c7d434bc7f1062fd727f5094102d5c90c6b8ed1eaee89c87cc701d1d8e3f4c48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.638-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 067f0553854470dc4b6e0037c9698ca0fa16065cb5c5c4706fdb0f4e49bcd689
MD5 b1888cd21008522a582c11499017b599
BLAKE2b-256 d4382c121cec58d3d9ea52452bbfd925e22f557ecfa64f8bb855120ccc0444fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.638-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.638-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 84f2ec9b0cffef1160841e2ce5e02f5564b252dda303a6edc2027ec0083a1575
MD5 139d6e670cd1b6b6bde820f1f04b2ed9
BLAKE2b-256 bfa81fb61b3e6acd59275ef2c12bb075641248adc020370c432b5ace14d75d8f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.638-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.638-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c92e6e4304d22328f30a1e02015845971263329741091fd8098777deafe924d5
MD5 7f1f4f77185d5f1f1296e6aab6d84b65
BLAKE2b-256 77529b6f4ebbc65e2eb0c690478f20bb9573ef2a94781ba187253ae90eea9fe6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.638-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5feaf2bdc58f85ca796537404886e40b800a402f11b99b5dc368267e9803968
MD5 5875044423fe67bc9939ba158fb7b791
BLAKE2b-256 6f4227bcaefb6973138fe1871e65dc30d94cb227f143ad9b0aa25f91dccfbbfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.638-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7f7675c72f0a201c361e6a59ed4e48096f83a10dd11ff6c89a849a07ac944264
MD5 ffa99eaf78d04105e9590a740afe53e9
BLAKE2b-256 d361bdc99feaafcf122d21589788f544aa1f1e1d40bf14cc29e9c0fc103c0d96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.638-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.638-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d62b6b8434357512f0b30b084a664f81ef791224e05d2b709e62b8d00160b326
MD5 35fca791ea4fbae76427ece70367a90e
BLAKE2b-256 c44ee79b97b8da4ea71d13a8cf525532c210b77f2a8192222a1211903be09f58

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.638-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.638-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df72d6ac034bf171e09df78d41a4c5995a674e350380f89cc1ae494d50bef17b
MD5 247bf52c41e38c985a65a6503ed9cb86
BLAKE2b-256 63465243f4ac6ae8ce96ed1c07099032852982bbe5c3e5a1257103a65e27ba8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.638-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b9817b4159ce94f1870fdbfac20dd0b0ffb1f03887010f55ea7ec335875df1e
MD5 b8b1bf532980b71d88f5298f9a05d18a
BLAKE2b-256 eaf3a504ce21f9305307b73db662a562f26659fb23257ca42569d1cd4d18a151

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.638-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.638-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4db95a4deaf56cd587f5bafea400f68e333a545994d390dd45c712be9866006f
MD5 d780e1893efb9c0a91b37b759031b886
BLAKE2b-256 874b3c3f86f4060f4fe6e6da5e7c75916db139aa201c57858ca6692d16809435

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.638-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.638-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 773706566d912e89aba5cc6f2f52ac659a775dd18069a471d038f8bb494421ea
MD5 d7a03750e29305076fb5ed8ccf1cbe54
BLAKE2b-256 f067623bee8607d8ecc78db5a510aa683d9e402af61495dae2b890aabc8d9652

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.638-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.638-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c063428dc48baabd302b379341b22e1757555d7fa925fa63dc87ee39d7e74486
MD5 4c31f15802cbd3779a5a7a47ea8017b5
BLAKE2b-256 992a97bcf88965ed9a2863560310a810eefb5b21d76c894ad2e92937d558a782

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.638-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77ff49e0fe44e61f9898a5c881dc313e2320c393222a7a9ac804bc1d47dd75ff
MD5 7cfa1820cbba0795088807e25df8753f
BLAKE2b-256 2cc513999fcd805af273e88fb33cc2e1b9412bdf3fd06cfa4f690db9bac7d7ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.638-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.638-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a971d6e7816f437f92ef5a4a12f0a05021a44fc368a11ec2a5db519c94fe8da5
MD5 0a6b623c232a821fd9f5606e774bb46f
BLAKE2b-256 11dea22b8d35c65a83f6fdc4703c7c658e0b8ed7fb8fd169530d4544f2bd2614

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.638-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.638-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 94356af7c4f08a12e9530fb8edcbf546351db465dd2bd2120a6d7e586b825fe9
MD5 974c9f7c6c32ca23e44a312dea6afbaf
BLAKE2b-256 d2118771549c98565cf4f1a33b493f18db7b56b60fa2dc1fc7ea3ca6bd1ce0a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.638-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.638-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0d1cbc52b840b9ad76af2ff82255083440c0fc89c3db8b31c7517dbf15514267
MD5 8d0dffff2ae8a951d5ff2aeb3fe39724
BLAKE2b-256 8dac269682f2656ee3359a4195f7347f4804aa4c0243a32512fca244f0801b9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.638-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b0f38d3dadba6fa02229477d62c0960a94c230df310d12c54b01990e4361d0f4
MD5 19160c490b586a77892f71c6a753eab4
BLAKE2b-256 ef4779152285f9be4631113222e25da4407379dad7c15c23b356a3623dee4b48

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