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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.396-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.396-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.396-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.396-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7b8630c57e3365b2a433dd25bccd43e0c94bf8b2e411d120c554c03f7096de0d
MD5 21009725126177266a002fe2e38e0243
BLAKE2b-256 12829e56cb2a7211f6234201628e68c5f382bbc811adf41216df0b5768a1f74c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.396-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.396-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 05f738c6f2f9cb667f8f781eba3fd914c51d8e5bf33c2f4081bfc31938c52c5d
MD5 da46c7cab3f057cabd42e9c09699b769
BLAKE2b-256 80858c46a68fe9da98fe17dba66e0bb689eedf0176fe0175078217a52aa3019f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.396-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.396-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 52dbdfaa45f6e0294c1ad02b4113e32176eab76f984f9923b0a2daa8e5cfb48a
MD5 7695d6cea96f90bdf2791b534a7236af
BLAKE2b-256 401e6d8d7c37a416c736852892efa89b3a1ea92bb925bb8b125215ac80608a1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.396-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3b04ea7c4539e616ffdc812156b6c3b86eb4619bd43f17b8a47f4fa024062c1
MD5 1be5264a633395293cdc2aeb2b3bc0f7
BLAKE2b-256 8050bf9145157df3d5918cf99e87a4e1af3be88223782534ff614b7377bd73c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.396-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8268461bd0bc5244f93dd223cb1b34477251c086b6d2e488ec92c2bb012af2dc
MD5 c456dc5fb316a4979b3308f6e1ba9b77
BLAKE2b-256 fab26ad7f39f4c1b2d69e40ebc6252e1831be48b654bcd0ed4bdaff3e891a64c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.396-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.396-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2a28ed79d58ac23d15af4a318fc3d08b13ee5ce6562de7fb64a23390ab602c67
MD5 8fe63dc62f4e7a622227e2f988827ed6
BLAKE2b-256 ed7d4714ca2078b705534685293747dc738f5ce684860ab0fd2e3803b941bdde

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.396-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.396-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 592a9b962122610feb025a15a3b526b54654320e30d4d6e311dfea60513af3be
MD5 dfcd7a03f55cce605cfba0ccccc5156f
BLAKE2b-256 89bd49cf4a4125d212c548a71c8f62171dadf11924a96e503b9b54a0a5ba692d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.396-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a91889cf73d0289c78bbbc210552568724917bc61c6f88bb4938c2508be023fd
MD5 c24a303a18b8fc48a4bdb8286aa22eb7
BLAKE2b-256 a14fc86e15a64efa2385f70c39b38218de4538eaec5665427b764c0c1a5f88e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.396-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7c0fd7ff65a4ed4f5d8620817005ce1a3afb8fa1a0c7430b91a579153368042e
MD5 2df3664b07cc7f5d459e5ce93085536f
BLAKE2b-256 587e6f663fb5793656a2b35a6aef00103dc12d90c500f39f5b3444e0267637ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.396-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.396-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0879ca12661b613c619d4b699cd0669704b07ad17fbb01d8d03bb0caeabfe5f3
MD5 c8e3a9984982abf77005b9f8551baf86
BLAKE2b-256 e369f742742763ecfdb71476c47fd561738f1c1aa0bfad727b7a15117933fde7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.396-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.396-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ec2a485eceb446d917f7831528a4d36960ba47b0debdfeb8fcbec0ec0fa125d0
MD5 97788b952e3784d107bb70e8b911a09f
BLAKE2b-256 0d1fbdfe8ad23ce512819e79ee8198f80e3d82d772d6b9440c3206b68a10ded6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.396-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd2ff04db218000e485dc0be1f76bcce97d2479da98179136feb83c1adb12272
MD5 325a3fccb7e783355b40cb447708819c
BLAKE2b-256 6bdaccd683b027c1314b42c08ea3d997c1fac3f8697bb2f5309b9afddbe3e7f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.396-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.396-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ce0f0942372ba6a9c1d3578b96484bac10076790b9e9443b2586f70764eb8042
MD5 d8a50247c5d9182626f684413636b880
BLAKE2b-256 17a63da2e2dbd03a4edf23ce7aa43d30063df0bffc6d8933706ea14fe597e44c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.396-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.396-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9b98e7b29257804a917981dab041215bb8363a16d7e8eb8594d1fd4b1198b462
MD5 1763a56888205a5ab9f14770b463086c
BLAKE2b-256 d31270f0ad0f57667ebd83731342184e029add8054a0fd8a597b61c9b2966e6f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.396-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.396-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9a6ada62506a55f2ccc6dd7e6a1cf54a9e5ef9db8edae1b53ccefc0da83cd07b
MD5 a4b5eb99c06b9c1f102770090bccb37b
BLAKE2b-256 b4fbcfdfa7ff00b96d8291093c5b1ea0c545ea347affe0e1b0e5afa439c3d88f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.396-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f39c758b83f047b8d5a7c30166958c7351a44555fe295d455f27650018ee132f
MD5 dfcf683ab3a85872da96e4de35cc94ff
BLAKE2b-256 0d12563456c7e328ddb64242ccdffc4e06aa7f7d6c6513932890e0229246555b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.396-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.396-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ffb68df79c473b1279b6c4782eace24372f898885205f844601c9ac4c0bd38a5
MD5 7afb0cb9806a4713a6ee6d9e6fa5cd55
BLAKE2b-256 adc8a73de889e02df29b09ce43c7b7a54a045056a0cc3d4acf067201cc00d365

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.396-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.396-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1132ae46d925865f511b9a4e81ca332088bb5d9208253d3c1e155edf13d46e78
MD5 09b1959f5fbabf27929654a5f5b852ae
BLAKE2b-256 cda73a1f60569f7addcf2a77f1c7d0b8665a5a5dca767e732418bb11568c8da8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.396-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.396-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 77737edc55168e958091ea207dc29bf27af20d45afade45df21b06d4ef8fda8e
MD5 47083a468a5b1a4eb9b16ab2ff77d970
BLAKE2b-256 2dc296c1c94acd67da2e06dfab92df809bc9b50d65fbc693c138a0c478c84e96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.396-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e713b846bc27db1f9d3927d5c3ce316d9af6bcd213311b825a773d74109c5892
MD5 8b8a82f8c5c5d8b0a48fa5a40177aca3
BLAKE2b-256 5ef17c898932810d60f4e730e6daf9e27ec1d1de9e032c5f916c6a9645fb9cb1

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