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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.69-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.69-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.69-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.69-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.69-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c9c1fd9f7e836b1c450cca593349175070bd0ac9e4b3580a563010bda9c44596
MD5 a6b91f48ef7324b011d2c8ed708be0cf
BLAKE2b-256 83c7adea226d3d96434a82b24f77d2bb1c04f6f78ceb5bd7bef6a2e93b7104cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.69-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.69-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c6be9e4280405c1938f90970d79c9f0e9080242bf9b1307b91652add4b4d7512
MD5 8f2abbb4c2f9b9ca89e9684d0a853b04
BLAKE2b-256 912d35733b3c51d573cad637a4baafa5f92c69a7636edc3429c9e7308dd78d82

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.69-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.69-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ddc3dd34fd21d3380d8f67faa5a8a2630d45bca1706fdb3e91061ea92d4f8b63
MD5 549d4074c3a3b0f96b9b18a1848a6cc3
BLAKE2b-256 9d183696cdc61c34ada9729a3cac3289845857b616dbe7ac42ef5e2167eee549

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.69-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dde928023d219816c9d295decfd88095b088ffcd393c28558b3c47032b48f7f7
MD5 2566a2b0baa4db1e08646228188c2336
BLAKE2b-256 46d60b8e030b8f2651e6f51e19d4a4f323e89cabc9c69515322d9801120fb398

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.69-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.69-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ecfb4ee2c1952128412a29a24fff62de4f41a1363d384428bde304edb0ed0d9b
MD5 f7a0297eeb5948a03166159797064dae
BLAKE2b-256 90e5eded5ee0ef308724c6b6cc1a243e240f57af1a47c10830a8668b33d83bd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.69-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.69-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 14f1b5855c19311912d77315789b29691e3f7fbf78d333a6fcda74a88ab23297
MD5 7734d1612ce0dbac49f7181c7c6cc19b
BLAKE2b-256 e3ace5035113ec8c59d4d21dee31d1a54a4c07ffb47429ae3a7fb3fc7b392f5c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.69-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.69-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 92ecde20aec84031f28d28847dc932f22363c5d670fb235ff03157175eaa58ba
MD5 fd339998d89d864dc864b62866f5e9cd
BLAKE2b-256 0dc293ab1ab276ace222affe086fd45e2e0f2aca47188882dc9ceedbbe1c74b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.69-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66853838cdeef15d26efb7b4c24b3a7d667a55a8e675609fc46f06ff0f9ed181
MD5 3d7b75ac8d8a195250950c9f939ef179
BLAKE2b-256 319386f054c27e54b7b39d31f0426598da1bacf08825315be911bb4b354a4a1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.69-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.69-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bc87a83e809d301f019ec736bd4dc678a8a99103093e1d62c6e807defb60b782
MD5 0fc626d03bb96c344b82ffb09e9ed272
BLAKE2b-256 cf79b6ecee38128f49d6cd8e600c9ce52c275a1abe5b8180efa4c5495f1ebf1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.69-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.69-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0da3440bc518a895277e6cef96307c1d65af17b49023d0d264a4b731ad6b4603
MD5 1c7e74f3307049d7b15bc37034058d7f
BLAKE2b-256 299a05166695d32c8d432921f60ae2310b986eafcec7f8af8904559c68e099f2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.69-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.69-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76c79307a4cabbc6aa608aa0f55ac1b1e61e407426009507cbeeeab37d51ddeb
MD5 54ce6b6e395aa3c7e2309fa27ca9591b
BLAKE2b-256 525e97b4f4d631098e3af8557ad983bd395d5a43acdd3995295d37fa3bb8fa17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.69-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e03ebd3f60c091cb35b3937ceaa293335f09c31615dcbcfd2d1c0612f450aff0
MD5 1df10db1b39934c4b61c3887f92f46c5
BLAKE2b-256 5aa6c62d19f91d84db9925689b10b83c5348f9dbbd2b8f226980bc51fa41721e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.69-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.69-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d6d6b15fe1cfd73781d21b80b8cfca8eb139471073a4d6cae0e7bbf21145d24c
MD5 c9a6ea7f258c0abfb8200ef5b93ee7e3
BLAKE2b-256 674dc67a47a2f06d84fe891cffbd0f70be5e74d695121ccd493b9428587c0e0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.69-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.69-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1d5eaba39eeb9157a52f7d6c2426188c19cb576fa274d82b683d3545d3b02c47
MD5 d01974a5a9923c4d897ee5b29f8c4e38
BLAKE2b-256 265b1a0df79eb7366d741b48f359d08af697feabf654fd0e1d37abd7839d11db

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.69-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.69-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d76361afe00cfd31fd00560deb435b84d3cda71c93bd2d972ea4d49263829e11
MD5 a4d45242921164d3e2cd59f1b80a4d7d
BLAKE2b-256 fbc690006d003bb42ffb6e69b109e6882c062890f6bd4b6ac9db565aa1629bbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.69-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ee6d70130bd50fb716fcd5b089834ac8b20dc95367443d336fd3c72abf07659
MD5 1ffa782e4cfae139c4a02a74a419be05
BLAKE2b-256 daec517b619491659ba06f426d7cbcdbedef703d5de204505cc9fbe265552693

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.69-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.69-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7072934f6b22777a8aa167c161417a076d75f7a288e0f12ed10c944922fdbbac
MD5 ce6198937a2d68b9a904d27225db6cce
BLAKE2b-256 22ce4ee07250b925a037b71ec1ee8720b09ba7fb40e466dcee484d7361409577

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.69-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.69-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fab4ed5dc89a33fcb5dfa647c9f07f9797f3239c0dd703ebcfc52083593a9737
MD5 10f44c2d941785c8cc6e97fc9c24cfd0
BLAKE2b-256 d15c8a0f0240d1e91afd0e24253080d2314754ba033be770d62bdb2b0fdef245

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.69-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.69-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 feb0131fde0ae71bf469ba151e93cb675b0d9db1f8cab0f3cc410b8c1675913f
MD5 ec89d8d9135d980b6bec4d8b4617b8d2
BLAKE2b-256 f717b009faf46e3274eaa1d8257be2b217eecd707801df8bb22926c150a4c369

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.69-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fba68a39ce660dd0f8facfb17819e370e5de540b8ef129baefb22498b2e6c4fc
MD5 9741fbab946b8b183cebc7d1a01c3249
BLAKE2b-256 3bada35d67060395b47ed43d1c95b031c0c25723d237e660e850155a622ada05

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