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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.92-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.92-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.92-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.92-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.92-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.92-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.3.92-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 66539bb9ee3029cda3cbe7509dc2c951ae6abf1cc9ea6b65b0844ea4db535fe2
MD5 9c72411b319a7ac73ba95737f90bd0cb
BLAKE2b-256 35e0225dc5d5dcee554946c25c5462105958883bbab090819e7fe56d8a2594de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.92-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.92-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fdff5fd1d09bbd549757d54c4f4e516f06f38db89d347e471180688b393c3f3c
MD5 126344e68c863055e69ad727247cf8e0
BLAKE2b-256 22e2dbb52998802a4566a54dfe8ef4dad76b5164d102ad5e88ca52457874120c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.92-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.92-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1e553f08b9657ec34537bf0ed142fe9437ffce1d7923659b2ea578b68629dc6c
MD5 138f4163a6024163b241773ff1a73ccf
BLAKE2b-256 68381b1e6005002daa01791e3c53fdabf7eeb6ad0915b88834164c066cf6aca9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.92-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1c6594c5bd7e46edd093ed3220248fc196fd0d605b479bc0326835402392edf
MD5 245e527fc6ce83848b8754f93d06eb86
BLAKE2b-256 2f79bc7b123dadbddd60850854e10cfdac7c09fead267602ed0b155d02dfea04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.92-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.3.92-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 03281a9923fc0f7203adecb44a52339e38c048b384ece2b9d6e03005780e980f
MD5 77746834ed9ad4d3e6d43930d5fb0aed
BLAKE2b-256 11e2ffc8123b214348323cfe8501a5f64917024b919140859e47cefbb4b94d6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.92-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.92-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2fa259b74197940c53d72e74d3dbde454e4ed65134919978a0cde50a322341da
MD5 2bd951f7289984b7565432a9f1b2d331
BLAKE2b-256 cb60e1552e1e096854526dcd0f493768fdcaa53aa4db3ed35d63585f96082081

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.92-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.92-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4640388508df0ea5c58f4545edf8261439110dc294a1021151150797ed8e02ab
MD5 110a55aef4a524653996684a9b313507
BLAKE2b-256 03ddcbbb18a73aeaacd72c6af2137397ea50e9fd93fa1f01c67f4c7462e20026

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.92-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a690061d85826d2e818584efaee6acce65ca6aa94451bc7386567a4e16bfd13
MD5 26cbff3084a89f4a546335996e94e2b4
BLAKE2b-256 31a9483d57bd763d00fdbf3daf04c15be5ac82df227d552b4bd89d9bedb711b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.92-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.3.92-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ee7859c6ea5aeac6717be119390fd95a20f25ebd18493c2ad697ad97ddaf92c5
MD5 fbfadfa5d1fbe84c5e3b640c7b37c214
BLAKE2b-256 d66bc25dcbb4ab8ad415572d29219f844e6c2ca4fcb7cdf5c424cbbce719b37c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.92-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.92-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e0aac309c3d209f0454d3e6249a53ff59c8b9bc0eb50994cbeb7eb29be571a2c
MD5 f557bbb2816d20272e2551d335c0fff6
BLAKE2b-256 c656125eaec6ef0dbce95152aa428001466133c8e7697d118edfe74bf0718ba1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.92-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.92-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ba093b2e69bb22a719971da7262d80fbb51ffc4ced4c99e6b041031ec85c731d
MD5 025f40e8c9dd3f285c1aeb78a0aaae0f
BLAKE2b-256 7a9abcd94d60dd063653f7fe7c4f9eb6078a6b312b824506a23826f0d97e9d81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.92-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5bb11e58a0de6039bc9c08542a0b31fc471ed8345bef72eb6e68a26cb641def1
MD5 a0233b665e5b3fe8070be1354a8a1cfa
BLAKE2b-256 60a4a10c1405a7a22c4a8284c642469a0e4256d1eea6867dcf660eb271442c78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.92-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.92-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a1af4db5b431ed5a399c6aa1e1c4b68386e8bcc92fdd9b81e0b08a33a2842a3e
MD5 224930a15793e334765bc93d85083bc8
BLAKE2b-256 abfce214ccd2b950f7e0f3ab598d12ae2cd41474bb03abdb8b95a6b93d21df82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.92-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.92-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bc55aac87f9e82b5a53f7e8292dfc04ac5fe369a36e6a76ce5d075a034598612
MD5 c6d39271096c01b6bccd20a2509acfc9
BLAKE2b-256 ca632c6ec29bd3bca1c5cad68e89782f8aee1d665383dbb9b0845fd37bd6c2d0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.92-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.92-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f803244437d3fcadb796ff48e7ba4b70a1abf1225b7e03cee53ae57f22e5e183
MD5 236231d94bfa7bdb95ba84cd1a2f92b0
BLAKE2b-256 bccc0945e023a10c824fd871fdf151846626b4bc831c313ee97bd75eba7e7826

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.92-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9f6f4cab052608891ba854b53e7306e6ef34e90797a092c776d4ce25052efa61
MD5 9ac0d72433b2940b04a6a6f19ed814ae
BLAKE2b-256 38cd6e668bfdd028a837395c26c12ee56b4640dc3c4b9e8b2bbff198d2c07a89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.92-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.92-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0810d38a47a325e793f322548ad326bb7548e5ae440891f44ce83f81354d99f2
MD5 315d2b61f3cd22cb238295a9088fc494
BLAKE2b-256 f6e30a76caca688e733f296bf1ccb8c5dc8c3379a0a298206e6a3f8df34f08bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.92-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.92-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5c9433547c076a71440d223bd2a054e45fec7d1e18812535aa3051c9e17d84c9
MD5 e5c8fafca23f6829f22894ae6eadfbe0
BLAKE2b-256 fadb8d44a4ddf08d7dd27e5b1d32791163f17dfa222f8f4ca48dd8ceaa87bdb3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.92-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.92-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f06f2660d6ded4470b3623c651a5f9447bbdf02e78f088111a44973cf113a5ed
MD5 29463a53bb29a75e26184d13b2d63314
BLAKE2b-256 7b4632457b1d929b6ed2db0f93bbe8934444764020f56feadb470e90e93ddd29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.92-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d0542ebe6d854c62183863615fb8d8383c5161ed1e82d96e45fb2afdd81e70b
MD5 52060626aedd9828f2417dc30435d0dd
BLAKE2b-256 c28641225e0579f7e4cce8515675858bfeaef7af7773fb3352c8dfbb92b65cef

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