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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.15-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.15-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.15-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.15-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.15-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.15-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.15-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.15-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.15-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.15-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.15-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.15-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.15-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.15-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.15-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.15-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.15-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.15-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.15-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.15-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.15-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4.15-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4cded9736bdb6ee2d1dae52b21a894d8d726c51f6a66200c1e4461fdf777e779
MD5 5d33a1a5b9b515b62464dba8e1dcef49
BLAKE2b-256 72b0bb88107eeb1b9f8e6c79df867bc30042c130b5141ebea0ff772fa3fa18ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.15-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.15-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b9550f8efc061eb3db090f5f12c5fcbc5ba720c3cd86b4040143cb56f358b771
MD5 67a670d70e0bc3b16baa7f9659d06293
BLAKE2b-256 1d0a69ab406f29f71e49733e3d78db0d84c1778f6cc26bbceba6e759e6471b6c

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.15-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.4.15-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb013126288525624f1bd74d482a9446470c0a4e0fac4e2c42ed037750f663a0
MD5 e541e7ff74e675d47728f18bab1076ff
BLAKE2b-256 4d37356192867a09899ad503744e96ba989e47cdb3a26d8795bb270dcd12aec8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.15-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6dd24d023e19ddd93a343822a154ca1c4196958d7c876acc09a1fca640660ede
MD5 32265ba355e77bfd01813c96e7965c27
BLAKE2b-256 7b16baee0dbd27bb75182c1e3af22edfc7f9bf307ce73efe059702e2dd753c39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.15-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.15-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ebc0577927983318ac9bf5c3c15864499f2bc76fca56daf9badb96d695225e25
MD5 d55dd54782bd0da1e169f321acf49eeb
BLAKE2b-256 a1c244f852c1a366e53ebcefe4606513323bb80590b076df1beb4122ce1b7677

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.15-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.15-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 460a2976930a76a0ada7a683c881fea68ed4f6201d06748d3272cb0d3297ebb8
MD5 f1056e59dcc471c388265a40c67d86d9
BLAKE2b-256 5066b393a428e84e1395469636213cd1fbf4794b568ea253bda8aace6626f7c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.15-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.4.15-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2e7b2e815ecbe551b0e43059b3992dd41c5c0b812c78881b88742ef5ba9f6170
MD5 d6c823e1ee8fbf64bb685cb9e83af2b3
BLAKE2b-256 aa8a1c43702d830a653ffc92115a0df817e742eb251ebec4a41d515fb3f1fe21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.15-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c26e1dd1f176458fdb09127a85e7c48592b6909e3f48ef091c68161b2c291a6
MD5 8495c8f4e304ebd14f0d30b17597e366
BLAKE2b-256 05f946927b8591af2d9c67e185e81f8b9171f395dcf9e97bd59e5eefda28813d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.15-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.15-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ec9473fe2098bad7240589f10a1e106cc3f52111170ed7d2b4ec25e335f2b91c
MD5 2fc7a61b5c7f9cd3896ce6b9318a903b
BLAKE2b-256 7a1690f3062965ffe90e375cc14ff038b7c8e0dfff5a4710ff96f34a00b12526

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.15-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.15-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8599f46c8f2985f7fd22272d3b481c62e851bbc03a3425945e972eb67ade315f
MD5 f996a54d504797c8cea9834d00fa10be
BLAKE2b-256 b996c76cb4fe89ddc6072d163646763884fc6ed4cea144729f92c90f8cd6d9cc

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.15-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.4.15-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b7a6fa9f41b6fee21dd4f8f57f6d3b4a8f189bb8e3bcd3fc0099aa66277ad17
MD5 0ab59bb45ff3ce1b743b537d6747fa3f
BLAKE2b-256 2a9baf183bfac42c989f24a14b571071283ecc23c8a83c65f3e79a0e78a2a4cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.15-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 535bd6cdd5b96fbb4be6886832f4c05cc9f57a84d40fc05acde452d5b635d8d1
MD5 9037fe4f238a3e886910117eca44ddb1
BLAKE2b-256 6594526b783a55257225bd09e623c72f3c5e70decb2b2defa00d19b9ebd0097d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.15-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.15-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 87497646118d3afed263053001795654282ca2122a9a3b3fcfc4230615f6381e
MD5 d47af6c81e9744d4145e2be37f53de7c
BLAKE2b-256 b59d769b09a0c55800692f8291f2dc02950dbfa34a8551623406dec1c8412900

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.15-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.15-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3e104b61f446d683a7e8a04292ad2c32f49324cc66845af926d53ca701c934ad
MD5 1e734fa39674a2175f0ad1eb371aab24
BLAKE2b-256 e2796161478d91274dd77fa192bb07afc6a285897855fdef0e39e1abe1f58fe9

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.15-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.4.15-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 848ce5846730ac96be61c84555a147dcdd77204e0281ac8d4398086fa4325450
MD5 ff0266ec64fe3d49c594c06154da606b
BLAKE2b-256 bb84d2663b12e4114981e31cd3b4ea15ddf2dc50e5af5b9ac11e1a3cd8e389a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.15-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 868ba4684bdd6026f1209b0f6666f5162b782f3c4bb041b52acfe336d7ae6134
MD5 38417c8f75b6505b71fda3cdc10870af
BLAKE2b-256 ed41b2afe1a98c7bda35a9481f7420cd104e0856b66dff555c68bca60fe5a1ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.15-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.15-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 909c6e4613b794bade199a367a449612ff2395eb14ddbff3f8662836007d3430
MD5 b53e079826140c244a0d0c28982f95db
BLAKE2b-256 a3cbc31012c0fe87806e2002ca24ff0e69843b8b48ec1aaba3ff1ba0c08fe81e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.15-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.15-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 df66c72a09536deccecfa3dbb0186eb5c5f215bfb3a5f00cf7534a41c48b7aaa
MD5 a652a4ca05298a51d9aa454d2e70aaa3
BLAKE2b-256 4397f332dd834336493e5052dd85e1ca3c523a89eac40236f199c0d645abd432

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.15-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.4.15-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bf189e12c0650d496efe7c117f34ada08c63203823955d482004b22e78a01a41
MD5 e429f77c3d42bd66917d307696165129
BLAKE2b-256 0fdf1513a73ab56826c3e5530d0c628b5391eacfb5496d9b64617738cda5ca3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.15-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 732c37fa47736161c7446a29c740ceaa7d7e9eb45e2bfca4ca219928817c8130
MD5 daf3bf364ce4e9656545ecaa563e4a3a
BLAKE2b-256 87577e3618040190f66a403de6d848bd2822db6c6bd1f87f9624660ae7d320b7

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