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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.656-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.656-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.656-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.656-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.656-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a1a583c7a99f42f0fbd03eaaf87608fcf1fe8a4b52c746acf84077162f387555
MD5 821c9710f70043180b773a9238800fe0
BLAKE2b-256 7289adb87b78628a780e28c70479d419fd100b97fc4f2c2f6c19628a10f4eb83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.656-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.656-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 619572ad470bf8932c84a854aef2870ef91a92fd9bd5eb5bba49aa162794ce0a
MD5 afae24c23de0654f95959e9c8c6887f2
BLAKE2b-256 debc0d3ba0dbc93d9967b06dabb40f4ebba6b7f2d98bad0477e5bd5d2646eac5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.656-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.656-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b32eb50fae16f7fb4325a17e4f254b6e104ec7ba46aaeac9e331cd791625c8cc
MD5 bbdb7a847336fda05b0b6e70a81f2543
BLAKE2b-256 286d301d433522c34806fb31ced75e960843e28be178ff5569052abeb8e41efe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.656-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 444e235cce7775df46260f2a7d7cdc21ef1e73434d60b191f67e6a2b8e20e37f
MD5 bc163bb5beaca9517e29d0323b59c60e
BLAKE2b-256 ef35ed7fce30bc3e65cec7047c2601931f5c8848ff600bc350fc5d4e0b00efc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.656-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c9ae2b7b22522a0d813b3cc2e09d214c3926f1daeaf68c63be426f39956fa6bd
MD5 ea57927ba29287ab958f4b1aa4f57d95
BLAKE2b-256 dc53bf40190b4504d82fccfd683e338c3b86753fe82bf9732b8ef45c7c4a000f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.656-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.656-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6b8ab354034f50ae5cb040364675ba71e7727b6883a78e85d4c0327166d33366
MD5 b5afe95e55df072b15169ff31b2113ed
BLAKE2b-256 30d1075b5785f85cda8109e5714ff2e80d5eda935d02acc0769c65afb45e2262

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.656-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.656-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7dad896800afcc0e4f4cd375c6779919def990e810ad8623927ee3c128e1bc4d
MD5 cfa8d2b657f20ef3db272d1153c8044a
BLAKE2b-256 cfafe7aea2be6dc23dfc932f599a021cd8d73c53119eb004fc2f057f0f02883a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.656-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5bbc3e6dba7444b683e34804e7c25b0eeff7ec505d9c8702901f5839f18e9c49
MD5 f09fe11a24fa97bade21866b0e9531bc
BLAKE2b-256 d3a3510893e5daa3e4f3bc3ad982d0ca710ac23d3428a9284e6da204ab666d45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.656-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2d09a1266dcdf4319efc7c79e51720bd4f8fe2939664b80a04c7d8b483a4682a
MD5 0f1e828175c2fedc0d222981980afdda
BLAKE2b-256 c6786d372bb6c316e0f90255a364e40ad18a5dc5775e78c13bca9e2d7710f885

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.656-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.656-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d12c94eaef0eab034236fe63a5d6e9934924c8d2d68dba95cc1b2687e26fa485
MD5 aeb839b50640fd55b941200d49a55629
BLAKE2b-256 272c0be754070c17f189747348037fb08cfcf7554e1c1e847e1eb97fa4e940b1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.656-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.656-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a333db6b6c844246f80bb84748d7439efd9d0676700ecf0da956439abca4754f
MD5 0cefcab2c1830c7e37506932b2d9ddf6
BLAKE2b-256 920e6c583e0d3d5996df79c85809560108affe4f4d24fd927179ecd9555d9bf7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.656-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e343aa6947305cfb7d90e521612d8d02258ec9f42288be99783cb261d930df9c
MD5 641da8536bb9f33366f56e9467e4e391
BLAKE2b-256 d14416f119f7ab4ec079d5283735907daa2b8da50e98c41d96c6b369f2c4c5c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.656-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.656-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b7ace98d0b1eac31dc16c37b54e3ede05744c5cdbe75303b49f96c0d83b13db9
MD5 faa8c568e1cdeb898d82c7ea3a94c4fe
BLAKE2b-256 5b1621bfa10b6b4f8d0b2e25dd74e8f93860b2177b7444ccdf33f10d23a6814c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.656-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.656-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 fa8d4a5b1c92db733ced97554bfc90953210463a2f3c67c057191152d554e18d
MD5 93ed8fa79f43130a0b15f7cb0b9ee1b2
BLAKE2b-256 98f523955b49fb7e6431f7cd4dc96d40f46c8100f93cc0ca6e31b0f633838dcd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.656-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.656-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a8f3c3610a1b42ff114ba5dfbfdd420e1c19066fc6611754fbbea433698e7e8a
MD5 32268c4f83f0a271dabf7ebb641860ed
BLAKE2b-256 6101a5ad5ec1385cfa1abd69322f00a75620f824afc4b739d7dcc7148d0292f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.656-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0faeb6608cd5502b834fb43f2ff5f3c3e4f9f592cfa7cb3441d9cd8b7a81e45a
MD5 a64d3d7200e6b55d20117bc955329714
BLAKE2b-256 ad859caff14d7e1a24a9b079a581f0011a227a6e9a0d65b0c54f6bff9746549e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.656-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.656-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5422bd6c20d206cca120123cc5a299bf3822faae3364d4340d715ae19a08eb9d
MD5 0bc31d9906b2f7768e4bafe932a39591
BLAKE2b-256 2f2e461397a355122af66c5f7b79102cc522ff998b1c92209653268ff6750920

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.656-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.656-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5290133b6bbd33eb95320b88e840c8de632bf462f53da4010524207e372e60c9
MD5 9885b6e447a65c858932af3504d458ff
BLAKE2b-256 3f78f22481d586ae2457ee813e4b3941ac2b2b7d9983cc5f0cfaf66f7bb405cc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.656-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.656-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7dba38e0b7318fc48783088ceceaf16467e19affe8a39ec061cbca18f6df9444
MD5 f74e16a89340db31d46acd11d4c9aeda
BLAKE2b-256 2311bf3461a68477126b6cf1406e86f81001db6e22d62dee01d2b35bcd3db2e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.656-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1024303222ad013cb5170c3fe34cb3a3d1c08811155d9c8bc07edd8759dd63ff
MD5 eae7eb2d4b8fd00cabe43487c4699623
BLAKE2b-256 54c8d8bf68e7b7d34ade4ce49d3eba237cc4a9fcd223f04c5ae205ecee625e39

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