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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.949-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.949-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.949-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.949-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 18183c07be892ee748c56615e673e9c1355f64bc49d05f21fa3ad6986e84acb4
MD5 46aae31ae4834e1da4ebaeed0595222f
BLAKE2b-256 e998fcb5479a6a05b4cbadadfa8f9f547e6dc58259e92a1916c58dee66f4b535

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.949-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.949-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3fc21f29c02392c65f6cade2cc5cc40535d2cd12eae635ae64c04258629bf9a1
MD5 8a6c83348df83a0da0407e87a23a8e16
BLAKE2b-256 131192319b4f4b5c421f5e78f54868df678343eabf3531c0a677c9b0e00b83a0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.949-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.949-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ddb061defa89cfca82b40574b9baa293d189ef31f00463b1bd8a809eaf49c953
MD5 cf65e05cd34c504182fa65fcc05b7227
BLAKE2b-256 b3453efbcfce0418a0a3ab5643686ee6f1509d24463d762f4869b5bcc14dad2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.949-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4cb1db6995fac57f03e5031b9073f9c8bcfbfa17a2c6cf431e099e1a1b3f3ba0
MD5 93aa09461eee6a9868899751646ae9c1
BLAKE2b-256 e4587037234b0365cb00e47f6a545d8c479e8a741dad100c747817dfdc0f4a90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.949-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e6fb915d52bb29f25df3d680478f7b3614d8052fb808de8c60d65d50887c4a9b
MD5 ef3360bd5d34c94e88780f67a9a52207
BLAKE2b-256 f2e410ecddc72018547b35ab6a99556eace6cf1d7349d7d017be520a1f67bea2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.949-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.949-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4f54ee2e8fbe5415fb8dccb8167a2d1a18a770ed12102646de51d4ad93d071ea
MD5 1d4e9e7958c749af8ad70da6e622a5d3
BLAKE2b-256 f63f0a6a3a60ec705ce1055319bb2fca6d4d8c034878afed33db6a937bfd49d6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.949-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.949-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8b9eac28de3f0115c29b2cbb9868cb198edb0fb149b3b7d584a0bbbd514d59e6
MD5 7bcef6c871eb4efa16b412f2d035742d
BLAKE2b-256 83c3cc4091217666ccaf6c80d170e31d18fdcaf9d067a3257a9b360b48955061

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.949-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 432e9222dbe09a2998e65f8e6dda4f9ab15d93cb10966e6940cb8c13c0e3cb8e
MD5 ca2ab7e2f731c3d52e4b6c76ff517a92
BLAKE2b-256 f40649a57065682a93a89b3c9e675a37f2a7dc0fc11016942b8f7b365a7dc971

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.949-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 101c598d847aa8bfd53a491129c51692d90f706bb28e1c26b626e5947d4ba46a
MD5 c9302378c542e52b63fb69e64c669b45
BLAKE2b-256 5e5c19c29161982f205a06f986afa563cc859068afd336d82842ac41cef80432

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.949-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.949-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c67be3281a3b4b32cb3153b6138897bd398d0ab0c8e3fbcb554f05b837f4818b
MD5 d5557d141a0215738ce3c55bcd51acf4
BLAKE2b-256 cddda45fea9642a6a2fe6693113cc359750d54d189e05b2b026dc34c02f4ad14

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.949-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.949-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e687468c0ab3cb7b3c4ef78cd1772ca1ff747422d518d1dcae9ec8685cb600d7
MD5 a0f09f67561134b09af941368da1c731
BLAKE2b-256 90d5417b1a866e3085f2a3d8e3df9ffeca043685d14ab1f8c3dcbb0514271e70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.949-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c779ccb8fbe7ebdb96e6ec786291706511f1e52943516f434ee0c2e8cd873187
MD5 cd5551903797c835d3262cb8f627a03f
BLAKE2b-256 d0589c37a6e9d87c861c75d48166f0c32b1718ba7a31e39e261f92bb5643dd94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.949-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.949-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 325b527468c7b30babd05e6af0a6af378efe1f902a12dabc7e2d0ad8efddb0e4
MD5 ae0074a718b8ecf807963ae325c20d24
BLAKE2b-256 9b228cce1e5fdff56a27e37a3bee1a6c8b73dec59d95ce895097950b18613938

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.949-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.949-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0d738db9c665f937d9e140574ad6719de7bd2c772eb2f57a0112844462bc3fc2
MD5 6daca4af3ac1674c205a8dd340a098d5
BLAKE2b-256 2b05c0dd103c9352cac5620fc65f7372aed82e2f47fc5022a624cf5e8a22a622

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.949-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.949-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cc5c1f6ea70522bc9665866c5148ce1eae3698a89b68aeb4446011d813505fab
MD5 4c4c2ca56daec40adbd1f97baddbd3bc
BLAKE2b-256 4d30267b9b1630f0a3ca69a5c83b3be064e40b60c2e4f9463681d9ca17db3462

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.949-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 472e8e2b09cbf5b531e03b780fe77a4117fd7b949d3444a3f2149ada412a7106
MD5 3c5f8c887e62ca510c6079568a21ef5f
BLAKE2b-256 c1d12b23cc5fa5b6de95248e11673d4904e2f499907433a2cf84170dcafdf07f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.949-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.949-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 31755fff45f6c40c463920d1e4daf980a956c733230dc0ccb79f4190953bbc11
MD5 101bcb2e93f8b2d7bcf332e644e25099
BLAKE2b-256 ba94c0ee40a60fc192547a1731b0e13869a0a0e34f7a416c655b498624a3878f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.949-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.949-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1623e2e9f7ef3ec24289840808b648f1906a1b1a9d1b427b8b15e226d3e2b34e
MD5 140203737fd690e6f0b73fe5609fa80c
BLAKE2b-256 55f7584099c2f8319665a1de8195900968766c7ddd07240a9067e7491674d889

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.949-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.949-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 48832a657e94915ef2b3305871408536ff9624a01c26033300c6e05177a6ccdb
MD5 28bc1eb2383e5c71216ea77a246dedf6
BLAKE2b-256 0d6d31e2baaacb059fee6326698f2fdec95e199dc994758dcce2a30efdd2e76e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.949-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94925bc3d08a12af8643188fb8e25eff6092fd93495315f7554741ef20c7237a
MD5 f16de7b1d9d5488c30859a6427e49344
BLAKE2b-256 a631595a1326432f7af933f64b88248cd43dff3b9c5091ed68bbabc8d74640ea

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