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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.206-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.206-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.206-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.206-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 493ca07f595feb8445083da044f5218eea0745af1299444ca9d53798db52f082
MD5 0c1599298a6bff52237b451bf3ce53b1
BLAKE2b-256 01a337e14c2d2f883cb9889fa96432a5687b51e1cf343713d9997e4eab68f0d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.206-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.206-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3a571a9f281c496e0d2599e2a4486b266461718b06eb36439b0ea5a66cf81d44
MD5 99b90cfb21b31a092b02f2935911d5ea
BLAKE2b-256 448c0d37198c73427663657ffb281193f7d710297598f4e7e9e2fd616c641bf7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.206-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.206-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f2ee18235eafd3632425497e80b5e744e5b9ac9ef955a2df4f1fc0272a35b677
MD5 8ca6ba223835cf9f359933574a35fe75
BLAKE2b-256 b6f97ee7fbfadfb96aa38c22348a6740b12b6e5000cde1399377c1a9a4dc9284

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.206-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72d03066ffa66fdbd637044e9fbfbb4accdb5be5309a1db2f1fce783a311fe7f
MD5 d3cce925be48caf1f8258346043b2665
BLAKE2b-256 c32b2a89c255287ff8a00292c244740876b1f3b6beb1178adb5b2af6d6043a3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.206-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4a2e6a9fd99a379ff8a729d0635a344089148e29a783d0d9255d5dc08a408cde
MD5 47ece3d88086437651a993ab736359ac
BLAKE2b-256 3592a87ab4a7d78945ea9b5c50011d72aa70af68a71e7cc8132375c44635ffd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.206-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.206-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fa0feaba82a8ec9c7b113abaacd7e9695152be5e1281a1dbdbe5c589358c75da
MD5 2273977f3a34469c190b7a14566fca0c
BLAKE2b-256 b10d6f88f4e4a19507e0cb6cfc2a03ca9f9d6debffb5d886e0b7a10d803306e4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.206-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.206-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d86c94b5539bfdffac7960a9ee3edb08edf42b1714cc69f5fd87aea21d95c373
MD5 15be6cfda61c184c56189acb8ea48916
BLAKE2b-256 1c831439d2194bc88132a70e09c099103e2c0d6c225f523b7223a7a3b107fde5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.206-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 384c0d3504d1dc45a940905b0c87c902fff2e8ee91e25739d41eb26ecf64ce99
MD5 5cfacd3cf35546819adde59bc5eabbb1
BLAKE2b-256 3f12f51c001cb9812e6910a02a8eab4cb60b574de481a178ed49213f75be23a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.206-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cd0f2ba8e0ac9afec2a408af8204820a3b0aa6a6f8d8b724ef35afe851f0b874
MD5 f81fc33730a07062a61eaac48a311ebb
BLAKE2b-256 d4e87d575cb38969882a78baeab869be8a12370ef979d79faecb7d9dd681285b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.206-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.206-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 92eb523a69f4aea0fc54f2f02de88510319caaa46b5e3d218baa4646b51183d1
MD5 9cc4c3e5eb553f68a4384ced0f0184b2
BLAKE2b-256 a5f12087420d31114b97b8b6ba6d4e10ee9db01829f65cd0c0d015720148e0a9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.206-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.206-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9a577871bed65adadf22f0814994270ac9a56ae7a673ffd697be8dcc142a847b
MD5 5b1e3b909ff5ab14070135aa197ab7ae
BLAKE2b-256 f8f31eac1224cb2a0c04445699fffe060508043cafb692b03b8293d1131bfa8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.206-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5bf0a823650d3b1c591648a34c6544f0c43e48f80bb079d25dcecf6f7e620ded
MD5 7f038087644e6889b6915c8c33bf1e14
BLAKE2b-256 0d2333f9754e95d0ed94a86684abded41299b99bcf2533445e281fc138fce686

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.206-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.206-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 167fdba40938b1097f5c278af35752302ea4c2e412aa1c3655c4b3901a35b95e
MD5 09a2fcd45cad31843f2c18c464cb12cd
BLAKE2b-256 9425c0f8c714134db5614e7f05cdceda91e46c61763c3c6b75e4491a1394563c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.206-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.206-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8c8156377c479efc565c279e9f91fef6f9a8fadb90066cebf7215ccf9b82cfa3
MD5 0644862a9ea0be895152039abbe29058
BLAKE2b-256 26d56c2bb77dc9a5d8d3524ea86f345ab9cd4a4e7db9bb6f2bf8420f9a74c362

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.206-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.206-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e1f4476ea8f7367a6296f8bc1748e8d75699d88b11c34ecb9d5b116e26f82fed
MD5 5b0bb9aa581260abcf8f83b4fe07ded9
BLAKE2b-256 670802902d92e6b938001e79ba7e57957bab9f3ba29b95efee3cb9372b0666a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.206-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28e69f110edeea59e07c449073b58e37a248e472b7b775b088281950fc7ce872
MD5 af6fa6ea7fc325b3e835bdda551d95e6
BLAKE2b-256 1093128ca1033cb157f7da83e20f67283fe142ad58f454263ed9d4f5c22080c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.206-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.206-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 966234248901f5d6c572b669f1f5dc3ebb82ac641970f376a51ff8359ac68d9c
MD5 d9a2e1051b68edb40ab112385f640dca
BLAKE2b-256 9b0bee306b76a24cf33e4c3185dd25e7e190c3e7c0190e4e7ccf1a421ce3425b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.206-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.206-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fa4a1232ea7fc6dfa5e3e556f6b70aa9235e539dc8ec764693fbc6f872ed7cc9
MD5 086f0b6ed2b6bbd6667adb8e1fcef85a
BLAKE2b-256 43c81e150f5eae13b33ab3f11d475fe74e135b635b6f69cda080ef58d5c2fe24

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.206-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.206-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b85a8281a0bc2a3e4ef7e7238ab8c135154296bda7786e89f3cfa1019e7fd886
MD5 bbed712aac0e2b3882c09d1a132a1639
BLAKE2b-256 4dac325a34452ee5fa96b296a911c04196be74f8e9bb2a6efb1aaf6525f19013

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.206-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 feb49bcb4c1ac7f9f5af98d9d154803cf49b48285c2e0f8f6fd5a30e68234260
MD5 9f5af297548ae2d7abadf8757c8f5899
BLAKE2b-256 6b5a8d73a379f078958c5287528ca66e53cf4852f86af6a42eadc93aa7d3350f

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