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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.219-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.219-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.219-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.219-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6c9a96c7302a72a5fb02c8fba8e3709e6bc9afc0deddb7e563a4fa4c20b40f28
MD5 b7e2603ade7d85a89f88d818980396d4
BLAKE2b-256 2a80f5c877d4c7a2a27cf24c27d883b0190d0dfc2c78c523ebc03e32deadb496

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.219-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.219-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 52ac35b2cebf19a9f74271167788a1ded97068c21973bb48249744a351961c75
MD5 7f8e86ecc45a7bfa57965b76870ad09c
BLAKE2b-256 e79821d137f6fbba6e495cfd4811968c06e42d763fa48966d0e2aeffe0c4ba93

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.219-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.219-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8cf5005852f348cdfdbdf86c0d8f574794ac2c8a0bc93319c867e2c1efc56633
MD5 524f7b53d9755a893dcd0932bb25bd47
BLAKE2b-256 5465f48329e8235aa8e764eacb6cc3df42f99a161b5523ae32af3e5afbdad5aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.219-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 edacfa6cda0f91eae67b6645b842dbabb4ef0a1c9ac4df61dfc44e0c4dc0bbac
MD5 ce7e026eeb286c2bdce8a80c2f9e4bdd
BLAKE2b-256 1bf9022eaef07307e40803bc30699cabe0df9ac3a0cfa94d58007dc555837286

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.219-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 03d257227b35d2d0e89991e1a2e35e95300e427879d98c436c13959c1f906190
MD5 b982f781419cb7af924e1404de08e20c
BLAKE2b-256 78d38b28464913a61f6c6b0a8ffe420969050d7d37e1dfa4146c5f8fbe0a2b54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.219-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.219-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 45a0176845d15e1df048979e4057434893ec827138afa7d8d65739c12b5b853e
MD5 e73fff1b81966b6a07262bedd9615297
BLAKE2b-256 1d13452f7bbddce4a304a469723f260912fc127046b11c7c49ac105b95ef0803

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.219-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.219-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a63e1d351605410c77a914e5629d54b85c748009770437b5ad31e7c50c69fad6
MD5 1f5e92b72e52b83bb7427f620fb71da7
BLAKE2b-256 18477c828882dea1749909d9b450db15ef20a987386803abbafff7be33ff6969

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.219-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9672f529fc788bb829e3ed59ff57502e2511c39c6e714924f8e048bc1e4d1adb
MD5 7f50156cec94dbdcb61b3a3303d79cf4
BLAKE2b-256 da3a26bbb32c9ddf575d6e6cb118bd3d4387a785918d8cc48e77b3513a083f2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.219-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e70229ccda6f17b528fbce85ee19a625fa6241fec80d1391bbc087088c3802fa
MD5 5d5b945a95a7cfdad357f5801c9fdb73
BLAKE2b-256 26848d2e03caef8fbff742ee5ae05c208e9a1ef6d6cb25549e01c631e98d6674

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.219-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.219-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a2b1ecc9c725a8956e110eeae47ad2b7d322aba53636b2be615a93fb477339ba
MD5 2e79ef70daceddd814f8c6c4b7c3b6e8
BLAKE2b-256 b7014f56967e8f69e8b49841cb3b1c9971ba03c3bda302d3245d0b5dc29d6822

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.219-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.219-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b2c801d926ab14b938aea5d75c2dd89c0d64fbd4980e28fb80062f8a507ced1d
MD5 b8e4c6fda92c784ea18a2240e846084b
BLAKE2b-256 2e81645bf7fdc0a3bde43e7a5d4ef835b7b7f7dafc7ed294b47962237416b087

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.219-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f0a04d0c7291256d43a2cd83d2f51d8fb566b5f988ede6350d47a9212ffb5c0
MD5 955e71b2a9f4d5ebb92541a757780c6a
BLAKE2b-256 a883f6d736aac638dcec7ac127e375b42411bffa75fe4048c9d6b845c871f3cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.219-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.219-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dffc2808c85c0a753095f591405407ea85fd68a2a19ef030865663be0ed55efa
MD5 b311f7f09168d512287f2ec3b40db9f2
BLAKE2b-256 879689987174f5d7f992b4d64aecbc2512d6e82b4097d6d40f109588a3656be9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.219-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.219-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 19dc33faba8180c81cf64001dadb372d8929c0621d9c1fa4800168f3ca4c52a3
MD5 816947f059cc891868630028b7311cf6
BLAKE2b-256 e7efe86f10c58cc4a8b01fb7eb45945a542ef0376815902abcd6e264a6f998e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.219-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.219-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d156ad84dc505c3cfdef858504599fc60be1f02087a11610f74d50b90f77a30
MD5 fd5d39fdf83518246d1c7f7dd4f75f3e
BLAKE2b-256 13b8a262de835b83b8ff59580fefdbafcea3eb1983e9552739311dcf1e6bff33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.219-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1af6482f555885bb5eb85dc1e75175862e78e4fb101c45b34b1b448199390ec0
MD5 bc3eb62864c8c6157b0e9a007e8502d8
BLAKE2b-256 12c7214ed481dfeed4161ae6d333845b30a07b144086ce81dda37d0748690822

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.219-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.219-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 de1d369c9994bd3be9c4c5cbd5cd9bbbabc1bfb8a2e362e51df04acff0dc46e3
MD5 9b6bc5ca4996d3833d02c989b7d2bb10
BLAKE2b-256 5de0c65eed9fa3dc17d38d72e6b1cb3eb1eded87e2af0e00f8e9082d277d2a7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.219-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.219-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a5035aa6413a08b487ca6237575a9e5a66fc0d8aef29d537c3b59d89f0049ad3
MD5 a84464538ad0257d01062d570d0c470a
BLAKE2b-256 923487264f6c2d9ddb0ceb79d6c2bd13d4f119bd3313af1bb665bca0ac34de3f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.219-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.219-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bbe40a95c5707a61b57a9c9a53da378bd2ccfdfe7795bf52f7c1c372acaa9898
MD5 f808e9c8493251afa0c713955eb39926
BLAKE2b-256 68f6faa7273a9593b56713fdaaa10ae9269079a0bd77b7b56a2ba7200d9eb6f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.219-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e00f27c6e532547d208f683cddf7a1cf4c6193d1ddb857f6fdda303450c4add
MD5 3bd1bf46d5b2335c97d57df4367954fc
BLAKE2b-256 7021058ea22afe51fa1df9fe3f48fe04c6b2cad960fec5520b9c0bb295e3a7bf

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