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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.32-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.32-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.32-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.32-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.32-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d7544ac8ee8fa4fabd73df76c4fba1d7187fc0ca641f512b81957ec1f9065284
MD5 c6f74d1ac7519192c6a55e396a71591d
BLAKE2b-256 fe3dbd3dd2165cbf3c7a8e30ff58f3a397ec5ea950c681a0f253fdb0ba5cf5c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.32-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.32-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d8e29b3d4eb12a58f6437a5ecd42e1571969bec42c80ff9ebb9eb10266258640
MD5 ee5547a4829cea281f645377d5a6a18c
BLAKE2b-256 9b8fadd7a15991a2cb8eae09658f5ccb99db854d508c07b28e32c135d53081cb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.32-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.32-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f12580235ac0a00b91367cee5a913e0532fce7e5a62f95c2f25f75579c3e5a15
MD5 2b85931a49b0ca461c4979e567bc1032
BLAKE2b-256 0f48b402ab5b01e58d255410bbe1c0990fa162360e91390438fb8154ddcd4f53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.32-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a1fd1e157e6cfd9b552352758ab51006e2b486bef1eb9c45d1c1d22ee31c979
MD5 aaf7e373a9d3bfb0b7042ae6182ce051
BLAKE2b-256 e8074dece004a3f0b62de17e70ad857727a1ad15cfc1b9acf86d15894d75ec89

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.32-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.32-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5ffe256efa7bc213ea14971bca00bf0ea99fd3c9e97d4b45e54a4ba2d4fc7697
MD5 f5f037914123db1791e204ccb40d9bbb
BLAKE2b-256 604c1af2bd23ba96fc189b25fa8ab8afe7a34426950d1bece901152ebad05c4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.32-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.32-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f936122ca6dc1669544c46a63a35620b40fc477d431df013feb6ae6c6dc7f9c4
MD5 40a2b11aa45eb1f0e85b61d8ef698019
BLAKE2b-256 fdf42808996144a27afa1a137035902309954d2222424fdd8528cc5f61bc344a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.32-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.32-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb17591e4b5cf090d440135bce28cf7df3198dd47a4e798156bca9f29bf60917
MD5 29d4089a2fd84c16f82094c0cff19253
BLAKE2b-256 6ad00f4d909ca6c7f63aee83f32ad1500b048f89443305e41331133715e9029c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.32-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd8ff8d774ffbb7b8cc469d1f09d9d6c60b8cfbd2d574453c334f1edf707c102
MD5 08dcfed0289c2308127a09376c3eb694
BLAKE2b-256 f3359d43548229776e3e52dd7f1a6240e71306a7f20a41339183879eb645920b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.32-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.32-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f306235da552fb8fd1595ed5e624e1d76f80dc03e0be3125189a6332ead2de1c
MD5 683d7b4b42457b33a127a466be0e1802
BLAKE2b-256 38c37d8db1aa51e89d2e61c2d9eb6ad7f806c733c1b861ff7cedc20bd8a9c745

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.32-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.32-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9777e094812184c7e6e2527d0ffcf82fa65da84e1ba340f64acb193dd0d474f2
MD5 855dd17bbb25677cf5a00cfa9b4d3469
BLAKE2b-256 bfa930cffb06cac45d252825c137414cbf7ac035b8128f79f68dc889742cb33e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.32-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.32-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8fe5dadb10ae1c166f030f99462b2c747daef3233776e302fbe8d63cbe39ce93
MD5 22d15ff8910e41250a85dfc5f19fca37
BLAKE2b-256 90061ddd8fe7ba88516838369c16d184db73745dcaeea75d11467d95c2c75630

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.32-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e81c3d11a20c988e068260a1758e76b46c2a88ac383321f16636fec91a97902
MD5 46799b1f6faaecee74a2a9d66b6ceb5b
BLAKE2b-256 41591de16e5d498e29065a14a4217c8c0cd5f3c823496a27f4bd6cb5dda7b29b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.32-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.32-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e47a3c1a6d998b9e57b41083ed7dc2e3fa27e059d595ed29aa36f58ab0e92038
MD5 0b21935698e55dc73744b39deb38d0f0
BLAKE2b-256 8933d1cadc0acb768e8cd5dfb89cd10e9c8bacf93af62a3ed6d5d4135af55ba1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.32-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.32-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e61b7930a2873e712f56cba13a40f6400907b98fe7a0e824618b1adf4290a22c
MD5 1e13aacc4b8185e98f3e8d59f3e3df16
BLAKE2b-256 8288e69bfa39e0d4ea8e7dcd730a437c87b8e26f3176cc4d2f0ba457190bc64b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.32-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.32-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cb23b2a8934bbb4e7316ab030e54c9ff727fa992e3b6fc42aefdf13a5a5fd4b5
MD5 fc627f6ab7e264b08b5fd85ea1a045dc
BLAKE2b-256 4f97cc9930fa05a3e3eec15d1158c0e2cc5c2687a27f0ae36a97c4455792a7a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.32-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a22240a98585cb7d24c3afbed342aff470adb59d541a6c249b2abcd231e6b682
MD5 fbb88154a7d4c55b2489f87179af6918
BLAKE2b-256 a925f972235a2ab92f1e48f32ee197bd61c785b8732d06371ed84f9bb49dbf1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.32-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.32-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ca453fffef34b39545de537b799d012c008abd7bcc791b19cbebad0a7ec30bdb
MD5 68aa8cdb5b9d5e59efab0defe5fc3528
BLAKE2b-256 8aaeed9f1ef6416d5006f4959236b00d5e8f253b130bfbb2dad076ba8030cec2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.32-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.32-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7b35bb6a924d5cbfe966d5a896cc1acfb3ce3525583906b072a779e38a601a3b
MD5 bc944233657ae4a30b714fd9a7689b3f
BLAKE2b-256 8f684309e5b0191234370693f0c35509c9b5aac1bd36aa437e4563f24bc13970

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.32-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.32-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 784c3438abea24a5aafc46d54f4e7095819cdbf41baaea12141d5fb9769a087a
MD5 3ed3a88e678d3d91fdc4cfc5b248ca9d
BLAKE2b-256 ec8d906b58dced721b6cf24fa5a797dc326d27878dcf3dad2647178bfe1e15cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.32-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59b38de2df0cb044006352d649a09ab96839f723c7926da7556d9af7743c4f80
MD5 b04a3d588c52ffa0566de1d5c5cdf8e0
BLAKE2b-256 3c4b85c5a397e25c8d3b8b9f1209afccf16f4ff3ad4460c2e42f8836cb247cb1

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