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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.4.21-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.21-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.21-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.21-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.21-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 83496e53d619b359986daa9c0333e1b701d408547bf69820a3220d3f2255fd1a
MD5 f60fe5d38b50d2612f7119d229c21ec9
BLAKE2b-256 2b62b87c016977467740bee02aa9b4547d899a8bdd276e8ccfe81630a771cc12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.21-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.21-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9f05083a0d5d49119b0b9447d5e31c800a0a63c38c7e835c4f50b93d4b85b014
MD5 a2f9ecfcb032bda82140fc169c8d5a1c
BLAKE2b-256 fd3d0c08f43c2cb8a0e925a7bfe95b072456fb1d19b9824c0b2adadff4311bae

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.21-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.21-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7cc3d094277fef47de87e62ff6d19d26d9ee52c81d653abfff430aa1047ee791
MD5 3fa87a4e67b26bd25a3dce221fb0ad30
BLAKE2b-256 98ee55fd069db6d9b2a61b9c730f5bb1b208dac607cbea58bdc6e3ce42eca4bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.21-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e944e7bcf3951b016e7db70d98b1240ca2b12f7226d1b53557fcea84852fa62
MD5 cc12b27493490124b03e6d42c154668a
BLAKE2b-256 58e5995fd4fad3352213a6ac77718ed0f19e06a2f9253cb25e4b225512f8102a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.21-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.21-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6c3dc273bf1375fbe2a0a7e433430b32401729acb64c1f8fcca2cef6a64e182f
MD5 ca797f6c364726a9dfc0dad646d2c605
BLAKE2b-256 c9ce57d058cdc67787a34643a4f31529a6fda0bf6c139d71dcc2c479f27eadc9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.21-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.21-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 428459bf9a2f5a7612a1da88b257b97d2c839b46194a50ba085ef72047c8d7aa
MD5 3f08533bf294021c9db386dbe7d1c54d
BLAKE2b-256 e73e45b15854ced6037f68af671853a82853999359f77ae22f72c234d53561a7

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.21-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.21-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ba0b303982f92a671e0e47322698d54b6b10c7d7add516171897a05bbdf97339
MD5 96c156e9586c71bdc45ae8103e2b95ef
BLAKE2b-256 6e121aca61c75a08de1cdbf06de43c3f1db23a2367e6d6e1003b7ae086e6270e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.21-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1b13bcaea6665ff8c3b0f26ceb50493100dd4c60075dcb07362461e0ca771e89
MD5 fe815d9e5e5de589519f505feee112c1
BLAKE2b-256 056d241249da2d2fada62143b11131581946160966fddcdfb21ad8fc85c3e334

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.21-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.21-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a2338cfa034dbf150f43c696c9ad7f8e8ea8c4a75fb0e728780705577ae47d92
MD5 7f30db7b8ba2a1fe0b1a2138c8eb670d
BLAKE2b-256 0b618e2fc5afa6f7dc7636b703555bc9cad82279c8d8ec9f3ac5c4c451526ba5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.21-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.21-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 13d8e2561e47c2144450ea7f335b71a29f614134acef7d1711c2923e172abc24
MD5 665d8e3d84800b71f132443af56d7ac0
BLAKE2b-256 c8a01cd1da49057ed8b352028abc61cc25302e7c960faf7e37bb1b5eef15972b

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.21-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.21-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6423dd38ea4c49954a707f369086717184ae231ebbd07ac7377df9fde54f4938
MD5 7ed4da332832a70f7e107d95ad4dd705
BLAKE2b-256 c2837118bac9b00ecc1b381caf3fe88b1ab80cf70dab24c6a925bbd788e34dbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.21-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ef5ce1c4af028faee2c17dac2df095b1420f02ced3639eae84d5ced0fe938f6
MD5 9f7bc8e49164480d3cc19dc0dd58c7f8
BLAKE2b-256 23688b760ae15a7f77893680c0e1e0c3d77b825df31f1629bd61294fa32a2f0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.21-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.21-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 915b7d16703c0cb79d24ed861771ffd2792a69f52bcf74916bffb4e28df9d292
MD5 6170f229c111815a675df1e82d7e1ddf
BLAKE2b-256 d55712b9e2d6473dcfd1272cbf41238d7be48d816d851fe9855f489f10d2caba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.21-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.21-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3efa5b0a019a6cff1e566d4a80402878ff2c68b70e8f6d6e963975927a3fba6d
MD5 6d44742c8859ec97d57475e63ab8be63
BLAKE2b-256 5c8aa33f35bc980dfa60ccba31e2eb7715dec8bac476292196976fd9db515999

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.21-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.21-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 04ab6bfcf73f3723fcb93ccaaba37b22dd9808a344d4fe873284d5f8a689a12b
MD5 429b461736f26dae9763f64dce6f04b5
BLAKE2b-256 3e33ea6a19ca19c270dd29f6c08eedc17a6fc3eb610400574061d63790ef3ff8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.21-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5a77434c27c5e479ff9b8dd7544e2c164f1a321b20b6528646c5500652ab9e2
MD5 ea2a0c8287bec303a6785bd449da709b
BLAKE2b-256 bae753225632700ee0f91e3c4e171aeb4fb819b27a1add49e4d0af4f8ee9db83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.21-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.21-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4f67d9908ddc46020ec13c6ec419ac8ec809e607c33ee9c1ddbddd8cb482e116
MD5 0d31c10b43c7171221eecbc895181ee8
BLAKE2b-256 1022e131fffe8af3df645daa858f92de4c3c4547e14d6929a6656c69cef7586a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.21-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.21-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2d53bdc4b14ba5eb3f3797630d51fcb73741796d24cf927db46ce7ef281b1377
MD5 fd61b44a575d08ea1fa5a388a02a1017
BLAKE2b-256 1144c31e69bd1fd1f71695cee07347acb56d25e45abf64cb5b18d8ab171db894

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.21-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.21-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 01197577a2692409121fc8d7062c2e497d07900922a8eeb97df7219f9178be0e
MD5 d01e97e7130c36fbb9cbf5b86ce24896
BLAKE2b-256 7ecfe1aa20edf91f0c3fc9f3aec93691ef7fcb9750a98a8093e90c9dec28946b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.21-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8bfda53f7f610f5a653d771125c54b412ac7c75d425be0aab9dacc499da1ab7d
MD5 d43b1874136f608bc259df8e4b380fed
BLAKE2b-256 8b603678499967834ab7685097c2cb783821bd76238f242ab84155ddf4bf9bc9

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