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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.803-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.803-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.803-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.803-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a8f603c6dbb25987edf7560eaa1740f206510538aca05f88c84660b6f8d35b07
MD5 b4b92ded54e57aff72e956a9d5f7878e
BLAKE2b-256 b92667d1351b19058d9af9ff4bc4b0a25c16fc148d9a7cc1c02ca994c55b2158

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.803-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.803-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1432467d3f4882153501a32bc07716b06aeb80813fbe0bd76db68b7dfe5f86db
MD5 dc7eb6316ed18a97741fb38fab191a68
BLAKE2b-256 065abd50d797da24c5a614b970ec05605f5e7ca14b292521eeb7ff2727425520

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.803-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.803-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3936b4f405bb7639d464ea0bea0c62d926ca0aa51987fc4bb5fc69ef3212fced
MD5 79b462afc3314d8f8743acabe0212e35
BLAKE2b-256 5606daa316b9c3f733ffeb1b92b6cc064eeb450c4e8b196b59641d09211278a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.803-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0eb56516c2c5f6f675898142eb4ac00ae9c1cad5f7b860364631afbcde1925cd
MD5 978b890049c4e9c599db15a7d5320ad6
BLAKE2b-256 592b3d6da19d500bd93012ecae39ca144c2c6d97777b9e5145e759a7393ca9e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.803-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 131786d9c314b3f6829aab7d0c022f7f96f0857d194015d856a8959834c87680
MD5 be95c79891b1e41d6841b4870d162001
BLAKE2b-256 8228bb2f0afd7490ab26faad1103a15c2aedd7236e75ea6fc49652af8c715d7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.803-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.803-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1fc9810fc7a458a7c7fcfd5ae451b0ac59c3732b15920dcb226fc93f35b9e0e0
MD5 6d7f1fdeaa743147c61c6437ba9ccef8
BLAKE2b-256 14e98f01fa373067b270aa3b9cbc8a937862dfb736858d60c2377a8ffe76ff69

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.803-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.803-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 049670f90cda865b7d7775d2818182eacc3924cbe87ec790b157b32e03b4b767
MD5 418ddcaf055eed70d1b96dee2108a4ea
BLAKE2b-256 cb8bfb391472d044bc25eaf33e67a57122d46e3452d3796b9422f0786216843f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.803-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 63983847ec48c21d97f03dd1e6423f90bbc0c3c1c44545e318e6010bbed9aa5c
MD5 f261b276faea23d47dd40561f9f2d71e
BLAKE2b-256 e54f293a4cf9055260938a6431e09035ca55ef923cb1bac529bb51b10d94b1fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.803-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c921bf2dc2d014a8a68cfc9f990de8d5bab98fb48d75c2e6c799231f8ee4c4eb
MD5 6a9c68a81146e7ca92b5cb10ac0e3d51
BLAKE2b-256 f759f71aae1c57c010002191bbc943baf74b998d13a52ee5b65ff02381811833

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.803-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.803-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e6dd9d4c92fc17cd684b685e9c78b827978a83b56648aa1f92748df1ea1f4489
MD5 2935ea744f5b6f619262d2fe00745963
BLAKE2b-256 188a266c12ab2aad7f66467a66d6d53d33f91ea032f0310d7cc5d6def6bacc67

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.803-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.803-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bda9dffe909d3d8204732d196b5291845a3585edcfc4c0e5be4947a6ce8b110e
MD5 99b4e5e75212598d0a69ac1ed7e30bb9
BLAKE2b-256 ca3ec5cff1e3caf473880c26ca76b029bf644704fa36897a5013a1b4f892e9f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.803-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4fec027755f726d4cab0978e7286293b844a151de84bff26fe1bff15f05b092
MD5 62d4b38fdaf5834062081756cfd12a99
BLAKE2b-256 25329dc46735ca7dd1f860b4a1687de57892c76f70aed98244d40a29348495a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.803-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.803-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2439ffd4df03d6e784bded97b4b463082cf7cfe1b084495227b68ffce2a1ce0f
MD5 579c081ff387772f9375a97b13bee574
BLAKE2b-256 39e7bd66a1bcba1c039bdadac56ec265929614cff4b71d5b8df728dda2a5580e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.803-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.803-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a30c1e3a193bb98a7504bd5b95bccc1134483f73e7b5a0025fdb8da7393cf878
MD5 f6fa26d944022d96d353c3fcd7bdcaac
BLAKE2b-256 9c12562b70cdcd22e35b4592c698cad9b4ef2f453664eb9c1bac6e4415819b96

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.803-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.803-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e0219cdf7e0182bdfbeb1304466e5498f678a0d3de17b941fbb9600b606d8763
MD5 ae20507abf9cc02d9ca25960843bf2fa
BLAKE2b-256 adc24bd493b8c77369780dcf849cd7cf980e985a8a25400f9eb0ebea82b74563

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.803-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b91f1725c169c868a5df10c5b136439bdf8f707a230e11e1033539a2ffe9b93b
MD5 5c6ea8456fd255646d1ae80b4c47a0ed
BLAKE2b-256 fb4114b82bd783161ba47bd56ac4ee824da6c4f567b60b309ebe1aa10207db5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.803-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.803-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1ad096b8c239c27e86098a282d3a3e160648f3ca23a244e2e4d91bdc6e168ee0
MD5 1267e03c116ae0508e5a79fc542a5364
BLAKE2b-256 e39434fb40cbc9b2486d4cbf9d2ab885f6a5b40931821ffe732a007ab904e813

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.803-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.803-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7131b2e2c3f60a1a35afccd5dcf3cea645530333464ae17379fc125c73141ab5
MD5 f09e2de469c38d83f034d0f60d5920fe
BLAKE2b-256 721d3e67338949c3ac0a716fb0de7bdba9a368412222dbcc1c14a8b8f6587319

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.803-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.803-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9290101e324bad121a32353b7451f21ac7e8e2749da3d2cacd5bd05ff5123d4d
MD5 39c9adc86c0068b368e67029d5d903ae
BLAKE2b-256 eb5fd9f6d1bc2b334edf9e1aa527c16e1e8d06e7775ebb6793485807f4841a7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.803-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e00c17d26a72da8fd16dc7f5133434fcd46896c772d9208a880cf5649d2ace4d
MD5 681f3dae0be7f3510a31cfe5fe9e3321
BLAKE2b-256 fe7924a0a49182566953554c5e8572cf3c70fc2a6b2886b230adae596e319988

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