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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.139-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.139-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.139-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.139-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9fde124a6187ac0af3480d681332a478f1247b8fd1b7f8ac719c36479f713918
MD5 9cf6340621d0275b7d348065c1dc73c3
BLAKE2b-256 5e9682a242a96417ecc38747804a27077ea3020efd8afbba6b7bb8af748981c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.139-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.139-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 461141b83a72bc39528b08062bb34e562a3ea4811690e404868041c08007a82d
MD5 8801662d20a280b8426f1840393f962e
BLAKE2b-256 770d0eff8b3c196e36513c15bd8de8964766560c55ef3fd44efb5251a443fb93

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.139-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.139-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 489b01a37468cde01a3c3aaee73047ba8c89df4edf88f4e3f5355ca571d332b6
MD5 2d7d2a8a7a434585637a71857e43b6ec
BLAKE2b-256 43349b19fda9bc16cdb1f69d8e147be196d63b2ab87c4a853131dbc530c8766a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.139-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 abfc46dfa19310e64bf0a80ff018b9f7f486287bfc4f93546e564c3b5514d7df
MD5 54c3be98ab039d9f970f22f8f90db119
BLAKE2b-256 90d412fec74c2eb008ef2f4ecde63ff8d689fc27348a6fbf7e481c2b4c8e07e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.139-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 498e1020b76ead7ec09bedc404f758bdd1d91d4cbf32494cd0d0b1f669b844ca
MD5 4f303e6522e550332615177101fa0c87
BLAKE2b-256 99d98a61559db8b439867539a928976162af8525d9743d793aad8162d11ff367

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.139-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.139-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 513a24a60c23d3af37b784f309017c909cdc11e7b2da48dcd0f2b61e35c8efd5
MD5 cf339045e01c349facafe14274b01773
BLAKE2b-256 db1a48b865157153ccbeb559d49e106bcc91e536e4b97a3d64e713018a820e26

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.139-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.139-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c26b323dff2c15a7200cf7beb25d2be6086740fcb459b5b6bb6bbd481e758cf
MD5 b5e9243b30e412963a59c61500a97504
BLAKE2b-256 265276cb3e23c1251857f0bb5c3cba831722dc3f172baaa25b4e0b720422cb0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.139-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 09d72ff4f7cfdebcb856ed2d3c8a5d976664e55ee6e692cf37b6eb6187cfdf91
MD5 f8221f27ffb4dd45c370f4fed32aa282
BLAKE2b-256 de31cfb51176221783de3c2e37f1322cd85adb09e0758b08e428d9f80a9e8291

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.139-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a53bac1ca650961cdc33a1c2338a2b7d56d783af485e5196f82443d8925f043a
MD5 23d8c6375defa1cd93a1a8f50609249b
BLAKE2b-256 aef49b2aad9933561ca45960dbfffc746f4a271ed20301927dd2928ca3e3ff48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.139-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.139-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 aa88d06be769e94e2e280456131b84bff21310c627964793949adff132e89fc4
MD5 64ea0efc50f15a1bc2ba24777809213b
BLAKE2b-256 ec4ddd1a3ba1cd6ff3295875397d92a4909bad7423471e5f829375627084c9e0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.139-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.139-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ec60e4619e7bf4735607b34e543b3a926da26c632d54c1bfc1ca0111971c0b0c
MD5 9aa199953f3b65519d302ee6f9888864
BLAKE2b-256 fea87ae60890ec9d258688b2ffec9b16769440d2e5e01505fd044bf289ebe5c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.139-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 276d39dd9e7c58e1c61321abab5062f22696c7b18bf6c33be86f6869b0674f3a
MD5 d904e4a6fb1ade2ea60a04aa592f8b01
BLAKE2b-256 fd12e5e1d41af8470680cab6e8ec13b8e48829268ba39211a4d0d79b02ab7ca0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.139-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.139-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7b08b6217daba633cb38680c04d39c0240d74bf0c85511a852915d2dd0705df1
MD5 a75a1282a06d2993736974d8a917f943
BLAKE2b-256 cb9d63084e2bf4fa135b945e4b3cf64950f50732c786797f5b0fc263b9725bec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.139-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.139-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f620542681c57686d4d945859cad9508512693066bc81260941423536b22230f
MD5 e7ace0e2678caa62084939ee238c30c5
BLAKE2b-256 a98e1db42ec3aa70fc35c34a1782305db5855391df277615e55ed57d4497f278

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.139-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.139-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8bdde3fb611fbeda3367e99bc0207cb86e5f3f903c312f942a54e1d304788ba3
MD5 4c95c6d67e9f11828c91afa20f6eb483
BLAKE2b-256 60040ab63a587ef2eb43e2064dccdad3730a80facca2332d237d101ecce57aa4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.139-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 141bc6ac2d3146cdd737742b075c6427be126766783879dd73d3c415bf86ca23
MD5 06c2d22b662528d38ee40608a3d75f92
BLAKE2b-256 c7a7c3cb3c2940f2cb9d9a648b46ef93d46137314f074d8dedb3593fe37abbf8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.139-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.139-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 df1fa19e425c123b88e0ebdc70f43d7b3c3db3fcf3ccb2c2c3e096d52d0b7ee0
MD5 65ff54184c800d0ee79737014b756fa8
BLAKE2b-256 74d48e23962f491d3cba508a31b5a1a26dc0175d31aad78e9a634f55f3e91f3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.139-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.139-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e2512ad5ebfebf4ca532f04af591cada396f73b4be7c01df91d3d68502a09d6c
MD5 3333f4413b14cc0015d91d11a5704783
BLAKE2b-256 5fc89d9a8328be47ddf9eb51fe6809ef9ea14313f6bd878018e95ea5c3903785

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.139-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.139-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb02daafb165be8b634f11042550fcef2d7ce08596c73c41ea21de6129aa9e6c
MD5 b417d65de6b0a89f05341780b31b46ea
BLAKE2b-256 7412549bf857b6dc840ba4032ead2aeb4a330afa8c2f0475008410ad912f35ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.139-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbb5408b7c8404616d791bb53f3d70fa7d41b4dd71b4901131f47336e459af9f
MD5 6f417ee63e1985ed142391341d60bda5
BLAKE2b-256 a56961dfdb40c714cdffffa4b22bfe1c21f53eb4fa018c33f2fa08878c725786

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