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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.4.28-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.28-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.4.28-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.28-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.4.28-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.28-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.4.28-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.28-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.4.28-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.28-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.28-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.28-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.28-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d3490ca45b437e7cad164c8d6bb0e039fe2bc3672f56a22ea64730742f58e5e2
MD5 fcb2757cc57b35f710fbe6af1af285fe
BLAKE2b-256 720bb6322a2a5453bc221683d103a5f6d666e034aaf30b40ee32b6864de6f1f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.28-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.28-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 470da6426be86449a4db98074716ee7ab9b49ed64139dbb1220832c5c2b56515
MD5 b7797de410706b7cd47cd6373fb209a7
BLAKE2b-256 03ed5a60d3e5ed4df6063e300e0428c562a0cc2b1a854c69c8e056e47576cad1

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.28-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.28-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c91511ca0438588c64bd65e65295e1f927b232f9915baae8660abd1cdf8b42e
MD5 fe6e30d791617e0e276384b5221a6b5e
BLAKE2b-256 173d4a74473d9923bed2b8b9b143b255eaaf7a37320d06421c566b674326108b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.28-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc52295f7add5ae8f3b2bc47296802036778a06c9749f25257ec14d734466cf8
MD5 be7942d608039f2b36a897a27ff1c4e7
BLAKE2b-256 703326b6439b5e956a2a5ef850a00c90e3b008f69dd98c6ae2c69ed8db7f66ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.28-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.28-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 759e62461ac95656fe2926c36c98eba608faec92ff5cf4b468730c3b57dab9c8
MD5 172649431af39089bd749c6f35ae40d5
BLAKE2b-256 8c10653b0db5696335984487bd38d8f00845cf5885a4805357cae7256033f3fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.28-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.28-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1b48dccb413922f1264563947a4c7622986f745745fe18435aa34deca5fc62ff
MD5 3386276be949df00054f686c5e1fa0fa
BLAKE2b-256 17e642a7cdfccb0e340bbccc5e684ce3c99bbdd08b63ce45fe031aed09412de2

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.28-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.28-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e18068322f56f8f90e41144372af400386403d69ac645112deb8a74260fc95b9
MD5 2043015272104e17fef1bc0bf21553e0
BLAKE2b-256 66e90b07204937a54e24ac31ebb9b3260b1d78165a0c0727cc8740195e0f78d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.28-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 992262b1f1d3551ccd908f46f8b71deee13ec06aae1bdac75d81e08104c8a146
MD5 ce7ed34ec1ff815875e5eeb9f6c78c62
BLAKE2b-256 bef2555698017846fa1f6f09936df2104756b6bef3621daff092bf7d467e12d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.28-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.28-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bba2a3ee50746e2812ac37346f669b7f60a1e57c51625655718b5b6b8334fd0c
MD5 ac16b6832060afb91ca263cb8c28bf88
BLAKE2b-256 6a0a804ef34ffa10330190e16384800471ecb5eb7554fd3fe519bf0a1564071b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.28-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.28-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ce3439d3dca8365347fe929d65b80725f7f42a35c38d74357d333af545d11fd8
MD5 b471230244f5ac25a2225f522246316f
BLAKE2b-256 bd9caefc480c1907268d28a70e7dfa7756b9e4021813ef4c187a6d0bcced1604

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.28-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.28-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 98ce61de50c04db103f2d66d66c025d52d91772246c64cb3a80f796a433c422f
MD5 93ae305f6ce20004cdd78ba40580a1d0
BLAKE2b-256 49504e70f1938609232056e9779c314f8480fcbce3f3e2dc8c3dcba7a55caeff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.28-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5abb1f9a68e2b3a6c2661f20e29f249c4c2e8417cdc5db4b83a02fd7e4d7d4b2
MD5 0d436aba05ec9e257382b727e9f2ead4
BLAKE2b-256 f25524775b73e8b900b2b2cf7154c213b328ba31e4ab3e1d224af82b4182df6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.28-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.28-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 28b0ffe39ddbc5aec76645d1153476eceabe0f20bd37f5691096f552f1b56d5e
MD5 e2a1c0d8ad480f6746dc1637d1482890
BLAKE2b-256 141961fb5be7c10e6d4d9e8c2904e7e23e2a0741b0dce8da7c8c2a1a69e995a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.28-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.28-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0e6bd67a32ecd78b5a1b6a76afcfc4066f3fae284e401673bb50f74de5abcbfb
MD5 4bd07af55af6cd15542ad8aab7197ca6
BLAKE2b-256 a0a20000f6b24b972be56a37bb0c6e76e6236ae94d5d67fd4e4c786f1d6f2632

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.28-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.28-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6aef3f7b35252d177e993d7b729ad6308e5151e4ee283f7b41bd5b569c147978
MD5 f326679fa9af8794a654277e32b36225
BLAKE2b-256 86b60d46ac9451822e9a3c2f132fe23af5d8ccbcb26a3878140f8db787c645b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.28-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5c843e2be3eed28c97151af2c1c0138b99eb8247c2ba339c135b48f2987b72d
MD5 ce78ae10a2953a781ad6928cab11b2fc
BLAKE2b-256 5b4428d7abe5523031c4a69a8a4c4dc91caeef75273288638eb0a26e76f80a02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.28-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.28-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 82fb44cbd58a313baaa14cdc7bff5f780ba61f38dd7651657548a7533be18301
MD5 f8ed0bdf1943b8efd7776c9fa9c990f5
BLAKE2b-256 e3785f22b34d6953f62698cfdfc9fff24e43e5e1d275d59c24607abfc64681e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.28-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.28-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 643357ca60ca625a8d6b2b222bc5d5c037b38ca6845d58e95dbcad54e2b47fb9
MD5 3461f796d02be0ca8d087fda22239cec
BLAKE2b-256 dd05b71a55a1ee02b9d753ffa7312a144dd10d2edf195751f1efed75dbce7bd1

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.28-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.28-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c511754b196ca6cd2e7090d5387672d448512dcae116134c59b298d579e86ab5
MD5 d8a8329f865a9b8c41af82071ecbeff7
BLAKE2b-256 894bed6cb1c1fb142be794b2ab616f3bad36ad0ea1c218be0ea746f470529208

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.28-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 00a71988c1961be3338bd417dcf11f97a4d90c5dee81bb315f9975137cfb2656
MD5 aab722408eea254eda8db3dcfa3c3be9
BLAKE2b-256 18763c817eeefee1116bfc733cb76e6d12eb6c922b9a58b6719faaa589410847

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