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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.12-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.12-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.12-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.12-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.12-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.12-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.12-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f50ce30bfdbbeabd202d3ef90bb31e31140cad220c45ebb2d0a5b2a476ec788e
MD5 9ec62a5c79b92a3440884fb9e4fff7ba
BLAKE2b-256 c906305db5c3d2d60e8750de5a0eaa1ab88aa0fb0968b164222735a1ceeed38c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.12-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.12-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 53cd8325d8169d1c9d041357a401acd5b4c8e7af377f277715c62f8e506827ed
MD5 1449919216e0a5930c1a468b313b6af6
BLAKE2b-256 f0fa665f66205a29d2f93777207b76b6ab842f0cca427624e28dd6ae37d605c5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.12-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.12-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f58a5ca27a0acb9a3d6404580f403d47345673c3f212c9ff0896ee4e916eb14c
MD5 91f88ad26918d690bc7e03e08a7d9b63
BLAKE2b-256 bc3ba045ed6d9efe4d52998df20e769b874d055c91be095f2ac5e3c5b054cbb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.12-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b31c53510f5e4b8754d0e74b53832f073d27996a1ddafdc3b545bf4baf2a7fb
MD5 9677c26a0158f19922c3a43a946bf7a5
BLAKE2b-256 e2d1f021dad5da5c69cdad8b615051c6737135b5734e4f850dbd438fd84ab89f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.12-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.12-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d4128e03f1584e25546a97e665fc69d51a5a833bc9a809f716f23ba1493bc5dd
MD5 864ae016aeb1d7e991124225ec9caff4
BLAKE2b-256 a6d159d11e5f2eb30d379662a4f1d51c415abd32d892a98aef3bdc274bb3e380

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.12-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.12-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8a3c4e6f7829ebe862e0ca5664c88da6c8dde03666740f5cd561e0c7f3597add
MD5 23ffbcef8be7dc344b2e387b82ef46e1
BLAKE2b-256 d2d7655305a3d05fa1110ffaf9fa6a773ff86f664fc96a5f24a7dc113a637f03

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.12-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.12-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4cef096e24914a3d572e0f81b521adb6e30117dbcf80b798f7f73cddde433d2b
MD5 7155a38ce7f47efb3ab610ba225d5652
BLAKE2b-256 c0d98119888d0a51c11170147f1f400dc56061b45db90a242a0bd20436e2c11e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.12-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9944a985728a3dfd3571821d7044587a7d8fdeaf9d8bf3d9fa094a73deede8e1
MD5 c7d8a81d60ad3c807dad3d6e0e27966d
BLAKE2b-256 428f6d33abdfee1a35c9143f47d1c61f49f1ed7afc47494457441c069a589acc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.12-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.12-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6b7d9d8a88be0e8fe068935100eee9e1af070563dce66b2d1c1079d645fd3580
MD5 69e68bc47515f45afb40f53477897b99
BLAKE2b-256 f96bb83adfcc32fcdc46b553abadf3fce4bcb04f8a4d9f01b41407bfddee3295

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.12-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.12-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 53eda793c556daa5c38a1ad25d9623c276eec8458bcd99df4757c9ea14819c0e
MD5 f2da2ee4e320efa834a3a8701a0bcde6
BLAKE2b-256 4fedf7fefb254d8a4cf7540d84daf0e6203193a85c4b67cef02acceeac9bca39

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.12-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.12-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c2601edd8c1dfe3e0f1fb7e88275517249c60d1a63f5c1858c38f78b3813b85c
MD5 cad4c41228cbfb23ba0664da0fb5031c
BLAKE2b-256 bc7a72d350717863537458bb3b0132c0c782eebc18a4451aa51002ee6df325cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.12-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 415108ae28f1287b18a60442db6b49f3663d1f89c96cedc67b7e660300291b05
MD5 d593048d3776f1f3a955cc6ad4a9047e
BLAKE2b-256 aafbba993a974c5b9567e062a2c30afa5915f520cef845951910ccbd18e4d024

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.12-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.12-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 52ac86d89018a3063f119cbdfc9d7ee1abb2d6ead3f8551f37efdc0e0600f437
MD5 19183ad0a227afd8c2b43b9890badc2d
BLAKE2b-256 b4f5663a3f34ad2fc7587fe9157b27f0f57535b41c2e31cb1899307ffddae2b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.12-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.12-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 326fdea60ef2efee11a8a775e9a3858a6b90d672b4fea18b0f56315eb2869f2e
MD5 95757175b6f69826bf689a738cda86b4
BLAKE2b-256 2e630b34404a62099cd50db88ddb7826d9af8078d2657ab1431f1db2dfafd636

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.12-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.12-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 22caa740ea33f40979fc3e540e954e0d2fd83e2dc599fc12b2dfe82dddec651e
MD5 4b794a45c515f900f144c7b82d320812
BLAKE2b-256 6d7abdbad9da0da427fc234e349a13a147dcdc4097a1f3a2ae883e7457d16c50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.12-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 166c431f2c5d8c59c83376c1f364b108111743ae2f198ff88bffcd62b9aa388c
MD5 ae0c752221b2a0b22d2f6a0475e504d8
BLAKE2b-256 72645c3aba98cab5a43e67318ca399c7e78ecdf5a6de8afbcf4240c8e0f59827

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.12-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.12-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8618f0937cef1b4b420c1b24049a17f5a29e27f1763dcfc81d3f4b9a89eecdc1
MD5 1df40f50a8645eec8c5e91227f8bf665
BLAKE2b-256 e0573bca882cf171d53085a38888787dadec6ba91e78640bb41a849a137a678f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.12-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.12-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6c93230d08ddff9b60c042a60656ddc8cc8c64a0a9dfbbda20818ca9e644266f
MD5 0f561c7e122f9e5e36499b43f6bdf1b8
BLAKE2b-256 57ad96185d519aa9d20416d1cc93eb73477f427edf1903aa8e57e5e43447b357

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.12-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.12-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb04ac4076882274a99f53687de8a559df7529899811f07a8d5168b20fc2bca5
MD5 2f9a7066c2eda5f237dac6d08306480f
BLAKE2b-256 4bf163add194ba53a4c473c2e2ef982fc57b547ea5239f5cd206aef1ff4ef3d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.12-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61037654b29cbd2aceec2d240a0ef9c047aa8075e12613a2403fc020915ed07a
MD5 fb22aedfe6e4b73200fa8a6df74ce943
BLAKE2b-256 db1d62966ae4c4d3ed9139ec350269d26f54816f69b04bbfe475cdbef884ccd6

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