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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.190-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.190-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.190-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.190-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 799ae3038b6a67808bef19cbf7db03fc675cbf123b278be8f1902e76c4f6fadf
MD5 47ab96f7a6c8aeff51870dc4b70c2ced
BLAKE2b-256 3daf00ee5206022a9416c4d24350127e277ec00c68b5dc850c202ab84762ceff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.190-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.190-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d8dadd577a25149759503e4add630ec4dad043d53da137384ad917a294e839f7
MD5 41ea63b075cb95e704b769606cb0d5aa
BLAKE2b-256 f9b31573cf173217ea6bdf4e01a8f1398abf9690ac2b546d8e863e87ad7916d4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.190-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.190-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6f52671a4a96472bc63b61dcbde142b04a04187436b825c0eb78e7bdda67d78e
MD5 48eb0bc52186b9f5a097a3dc433eb022
BLAKE2b-256 76d7de00e10332ebcbed58ec8051c765a4f5a7d74dfd6d862d8eafc2255f5c8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.190-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37592f56c9e7bdc5e0fc0b608858b201256b0c95a22bfcb8ecd6cf3a2130eed5
MD5 1810d80cf8064a1dbae13ac4d439d2ff
BLAKE2b-256 cefb432c9ea576fcfad7bc0461dc55fd9edde8c2b959bff588362ed1c71bda75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.190-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eb4b313a532c9b25b62098e5c359ea277f928f88bb6a5d992a241e0769642f7f
MD5 c3ae6e08a737193e25c5e16d40b4375b
BLAKE2b-256 431673ca627096ac075ab609ac8ee27ce5a943477479d45047fa7bd71a9f9f27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.190-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.190-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6ccd8a76d38101f6b3ddb8e123433fe1e929fafa9c03dbb7ea93e262c8719555
MD5 58373054114a9eae51540b2bd4f8d54f
BLAKE2b-256 630bad87660b8c5ae92b0a3661b278a60ba807bf4871614e1ee53d5cf7d6eb3c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.190-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.190-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d9284f1516479cf1a5c39dcbbea8ecdf7e1133ec95836417f8a73ea3448c06e9
MD5 66d2f78276dc83a8522b0ce6f2aa49d2
BLAKE2b-256 a304f707ae250f6ec6df925d31f8e6c693edd96b5b33ae1fb2b48cc733770b85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.190-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1662d9b6d5697fdf5b08903f90ebb845040fc51e4bf1845979888aae12f4789d
MD5 7a25e3e5745feade92b4a27c545339b0
BLAKE2b-256 d8c63d8a937fa36eff4218f353724390d2f9e85c981c2e2188290c088ba9f222

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.190-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4c4fe79fd6951e358c46db253e34d8954c4522b660ac5dcfa7d089caec087d89
MD5 88ce3de66f4dc55ad0c2a30d45e68543
BLAKE2b-256 38244ae5009071172d0ea5617535e856d0c4f4fa3c7cbf61523792e820528b2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.190-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.190-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 36f23a89453469bbc16a483c5541e03395c03a73a75e94804454c49ed9c04847
MD5 f61bb96a944d3d24dda38a80750eb37b
BLAKE2b-256 5b921ef65fd56a7d8b099d133833bed0995db26eda4c19cfc8bc34617e255cd4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.190-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.190-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b1944d639168407807e711e9428b9d8d99226d8b99b34da3508d35bb07825ff
MD5 65409463f8512fa912f7d2f7d9157864
BLAKE2b-256 a42f7baaa7d5832b4fca6910ab7144b4d98ce21aa5e827aa83545a52fb44ed20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.190-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df775729cef0fd464cbd0fea507a8f63e82c5d18123305fa15d9c26952dbdbab
MD5 10545568c5c317121e9a541d7dee29b5
BLAKE2b-256 ec978994ba7b71d1779e93a751f34764418f5b446d30ed03424fa181c8119018

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.190-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.190-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7ffbda83848f7950224460f1680339a0e895e555c027b533484c1aaef445fca7
MD5 bf6420ba30e16527719fdae73eea7854
BLAKE2b-256 0bdd05d29240ac30e637c26a83559b0156c69dd696cf7dcba7490fd8194d4dac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.190-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.190-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 dba7ea909b1a4c851936b8f091a9c2a127cf287847265c6834c9035721f62655
MD5 4d7467956f109fbe7a01aaaf05601835
BLAKE2b-256 52b4e3e1b1912014ec01372b9d96fe9f9e8edb4ee271de3aa181df140ffeb3fb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.190-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.190-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 78eb835515e517dedae093b07cfd77866e254f378c96b18bef5d9dc2b66b5771
MD5 975cf57c31d3b0e82b88b59f0a544a31
BLAKE2b-256 eb6bbb40ebad9a4d658f799177883e000052237947e620aac5c2b6d442e0eb78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.190-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0bb4e15f76c4615effeeb84ae1a3edef8b002ae73700b5e2eaf65dc440ff26a0
MD5 864978b6aecc03adc8354c6bbf40ea9a
BLAKE2b-256 7ea012912faeebda08d0ac64006949d32f7612a8e28265442c8bb75d89b81306

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.190-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.190-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5c55b07b98f41dda3a4aa096682809042dc54db0791e44d1ae5112f38d9ab85e
MD5 40a705bea386abf559f11bddfdca9304
BLAKE2b-256 0374a7436416701369dd32ee68159d699305dd92d3e779302ab4b088d9743667

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.190-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.190-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4d92a2ef15ce1677a3190f8f6a532ba452900fefe7d547eb13b2bb51a01c6ca5
MD5 911162149deabf579ed9e1303b387422
BLAKE2b-256 d6a883314351f1d58f01b93ea909eeb403a16d34d6a7b6965b37c6363970ecb0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.190-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.190-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a573c8655097259e7692878fd88b3bfa63366b2f7a8574e167f7bbf849c17d85
MD5 acdeefedee64100d5eeb90a6219bfc33
BLAKE2b-256 b57b29de006ff433cc81a48e8f57d43a3cf0c83bf50778eed1824d40efc6c9c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.190-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14b5d4bd0e5636ece7aabfd81c67cc4cb64ccf83842dc6c91688eab12fc31a35
MD5 5dd77fc14f7ed61c893bf8b64e069129
BLAKE2b-256 3e9b4db3b1d33d091e5e44b1f6afbe3d66f90070c03ec3c4441bb6d322f30f4b

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