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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.8-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.8-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.8-cp311-cp311-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.8-cp310-cp310-win_amd64.whl (117.5 kB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.8-cp39-cp39-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.8-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.8-cp39-cp39-macosx_11_0_arm64.whl (119.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.8-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.8-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.8-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.8-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.2 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.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4ad156034944694ea0871a72dbfef1a28988cc6749818fa925d054e841fc5d27
MD5 1b6613e45040c8363bf60984accd868e
BLAKE2b-256 48c27845d61c86f319e46d97474ac726db6c2740fdf68d0c98908dbf4323dcda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.8-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.8-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 55452d45098756dad86a6e65c54868720a081fb34c4deef25477bf09d0d91265
MD5 782aa54ee46d2bbbbabc8469db7590a8
BLAKE2b-256 4a17a5edc39898caa4efd86308b43616870fa55081b31ae2e78e3d3e937576cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.8-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.8-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bb7c41353106050629f09ce6670ea1cc0a3bfa44b361df03dae0d8d19a22d0b5
MD5 7cae5d4a6267b7450c82c6d5f5ed4d98
BLAKE2b-256 98f4a170cc3df11e063e91942696d3e5f584db271932005ca5a0c94e567ec330

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01227e90168cbb579b24756eb972644bf8c769b428105ef839834cfbcc0d2b81
MD5 80d2ef10cfb776b65d907067496c4fde
BLAKE2b-256 ef0d693eb9f3728f3d972cdd773c1261144600442ce65705571b657cbda1e1f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.8-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b27ca92a02b15c6463c86795d94a6d10db0e3e72aec879ff564ae10aa023b5d0
MD5 143ef7c201dde630fcf83b14e40545e0
BLAKE2b-256 9b9ef45843ba1c4752af507a6c60b619eb2d326e7c5d9ef1da147ec22fd3f1e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.8-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.8-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ed6849f0c3cd59d9a64968478fcebbbe014a42717b1cc81da768a0cb3f51c423
MD5 ade93d6e388d442ccf8ba92f684ad991
BLAKE2b-256 947d7c1adccd8206ac472ba39f117cadb8e929000dfc231011d2e4ce61db3044

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.8-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.8-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b4fbad9b67a875bfda20cdcfe30a9a04447841bdc831bf5a91292340a3d144f9
MD5 3bbb2386e8f560b65813d3e08fe62fb4
BLAKE2b-256 444f788fecd1e986caf92bf8be55fbfdd542ecf8b6839259f83a77df8bbf1b99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a46f013da1551c3d057b027c29724d3b1835d9df7658f6fef792065ab993d3e0
MD5 b3ce61ebe8419a005a9b90647350336f
BLAKE2b-256 cdf9a6642506713ee7545d964bb74d365b13f4932f6191ba6a8a240c7a8f436b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.8-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.5 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.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 466b5f9f04506217896a8cc48d5a930f22a77c47c024523c9fc413a2bfd3d929
MD5 191976c6afe57474daea96347d7fda38
BLAKE2b-256 2cd741e138f60b76b84ce825ba41dc637172988210e9ba7367e8caf457272a86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.8-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.8-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2104a16182ea45d9d86c81c702a92cdcb2007c94127fcab50c1d12ebda355f23
MD5 527d7a9af50407c67854f4be89d34144
BLAKE2b-256 c7ecf73a820abe3cb34887f85d720307bfcd53b9f67e9562b05e0b84a8cde363

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.8-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.8-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c8fc20c19075ba3f417e40705379202f9573cbce3b019c986f4369c6c8c0144f
MD5 8d87b228f6d818cccc157b45e428a028
BLAKE2b-256 cfa8de023209c4c5904305ee713928d86708d8bd20f66cf3780f5add99714235

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11a058add323cf67fcc5b4c90ae1f28beb0a2f194aaaa97e30312d43c3669549
MD5 07171fd14655d819dc818717c1677eef
BLAKE2b-256 5e07a4477703aec4a0785c63d45f1fce89ae3dfd5342af38b6e50dfa94ac1ee3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.8-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.8-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1ee41f69e9656382065a1500ea2bc49de51326e7f6a97e2a550794d646db148c
MD5 bd6c96a0937084a640258e76c3e480b8
BLAKE2b-256 213e4de698e4863cf3256dfc31fba775e8c5ee65b3b41949208f5e554371e14d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.8-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.8-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ae63c9255cf4aa92cdeb8e59cda3cd1054eef851f3eb2a961fc23fc90193151d
MD5 94e6b48f2c40b24bfd507b46d19b79b4
BLAKE2b-256 2fc00c6d09cbef93c64b02057f815e8056a3d5a6f07f398705fabb8f7f83f2f9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.8-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.8-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 58fe205fa7ae83ad80f9205b3c9fc65059a878ee731997c104c332256b4b5ffc
MD5 01eb70af94d8ff7f87eaa5c5527c25f9
BLAKE2b-256 8bfff8382541308e102f6edf735b754bcd282039b631e2af693335b3ab861317

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.8-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 009bd6017860cf3b479bc3ab8cc72f6ce3657764c7500f3dfad6da46040dc886
MD5 be0aff062657c16826871ab50ed5dba0
BLAKE2b-256 361f2029b10c5d9ffd8babb3bd03c3538f5304ee5cd1eef099228a3864b0c8ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.8-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.8-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d3e714dc5b0b588062559d78726f3845a979a71a427aba1968b4ce6d772cb805
MD5 7fc9414e2717a5df139e49d8af42ca87
BLAKE2b-256 7f6de4d4d9ae6515d30b4a17c219b24482a9bae408b803c4d20a8f99c1b0d0f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.8-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.8-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 65277e0a9a6c5217acb285044f69351f80aca8ac98e64460355cf797d0f7b413
MD5 a6d37a4af6275daddac335c46ed3e993
BLAKE2b-256 aff353fbf80fee9b166d4fa750ab1edbd347bf9899f38565dba6f028f84a4257

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.8-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.8-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b932f1ecbaa19fd12561b07c975a80403aa623ae1c74b08bbcac404c23fcde19
MD5 e349574a10e267fdd030b3883ef5828e
BLAKE2b-256 be44d72e62d81e0ff1d1a60df089c4caa49d8a36d159b486c0bd867b34a05fb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.8-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 551ac893bb9e1b42cd1258b08fbd86250bb9ae4618718243ce90099aecbb0a13
MD5 66231d4a8e7245a897e3815a64b02ec1
BLAKE2b-256 83a63ea2e7a4480c973c6983b02559c1803482ff580bf5d50a360d8ecb2fe121

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