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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.329-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.329-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.329-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.329-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.329-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2f62799e7cc6267b8593801f2f6dc9ccfb486cf5ab41955092887a8a515bff51
MD5 9e484fd4b2e450b4b457d8718b9107ee
BLAKE2b-256 9ca7b45acbd2d68a314a776206a620167ea30dcc2634a674bbd82b198745ec1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.329-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.329-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 324359c3a2f64b391386014a7a78785642d0cb651c1d85309e3caaecf42310d6
MD5 735d9c75b4bc8a3868cd7b9758a8b66e
BLAKE2b-256 5cdc27317c7325eaf2f4224c32d0d30d1e9091f7b1c974d80bbdd7b2d6c0eb1c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.329-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.329-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 67772e6b1c9daddb77b95fb5f7a6896cac574c75b99301fec7ebc378612e9b05
MD5 03f0cebcf2d2cd805325bd105f100734
BLAKE2b-256 04e53483f20b7f62bdd03bd763fbd730878f2063e097fc1576a895fd21e81d06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.329-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dffd9c0615ddb544806475f6883ba834ffa47c76b41c05be279fe6bdb378a7fb
MD5 326d8fb63297d34a6584a12a30c77be2
BLAKE2b-256 4d1ee44a5723c0b512069ca05308d1fad4b1a62ceb3a99d234eba58da05ba90a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.329-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 215b1b93f2ef39331abc7f000c1b0f1aaca396d59c0ee5c8813bc5aed694126a
MD5 321fae0dbd41697516317761e2a6ab66
BLAKE2b-256 6bf88b6d45693d490cd405796eab9b721fcfcfd8156194dc1b6d2ef4f3530b34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.329-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.329-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 34aa491705004117ac2cc681ffe381653c23bf4e81bd0d787a26d39f3a4df9b7
MD5 9d8959d85fe8012b9e331acf274cb6e6
BLAKE2b-256 8a922b6218c12b90d26c11671f158d7cfde429429e8e25c459f7d4385f098b2d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.329-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.329-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9c6a6f96c8045f3270f433b586867c6421c434176f308db8da32c7ea0fb6b8be
MD5 ce8d6cf805d64f40fd68b940173a442e
BLAKE2b-256 8c710a045505f2e58995eb8c2813dc80a707c7764e3939c47057aef768a7f836

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.329-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0acd062cb69c48e5e19d4d2ec274d6eec8a1a2d21661c5652128d976734649bc
MD5 9f7ee86451bd4ea04904e15103cd0a1a
BLAKE2b-256 67159d1d07a63bdaa76f41f1db4b5b310f75e6db78478e6d8aa289ed82162e17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.329-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bff6a60ba77010e82a4df776b0e5ff248db4f93ba8c450bc07a866549c44a556
MD5 e537d6b1d4a43be75de3503073316009
BLAKE2b-256 a3fb688289a8b0674449144371dd208691e82bd8fb45d2a3b008f6a5a1a70bdb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.329-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.329-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a5b61f36500fb4f2aba0e16712eb0a796d660122de635fa20e87cf1d9bece289
MD5 4917a06b472f3001f67ab5a26fd566be
BLAKE2b-256 4bb6e00ab3b0b1953042c03dad6aa68b5da00e7e9fc9a67f4c263c761b2c0e2e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.329-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.329-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c3f2c9a0e1d64eebd8368a1a4bd5dbf3836a2e9afff627ee876a8b8293df9756
MD5 ac90a49b17952bdcfe41c0abac5ea2af
BLAKE2b-256 96519ceb2eff69a0cc9a8c15786fc97f33840b9e10577e0084a722b06a31a94b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.329-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61323e099c1f4e8b9102e886709d4eae384678974abd629bd17269316800f5b1
MD5 ebdb7ef6ae83268891eacdf877aeb4ab
BLAKE2b-256 18115ed7074203329a3fc39e2bb9276481a5039c46926c31a815c082cdb9a53c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.329-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.329-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 65f5aa446d3c1c035fc31cee75b88364290650ec3955c40a324c888ae75eb690
MD5 d8d860d6cd46fcc3b1cde17925487272
BLAKE2b-256 5deaf7f33484c2d8c487477a641f8bb8eeba8768d8b9a26968b8fd02fe34623b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.329-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.329-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4991330e2e907a47afabfe38451580f6664f75f4099182ede22c51e3b49cb5a9
MD5 98b9e5b558d433a901365e15360d448d
BLAKE2b-256 b51dbb7520a9494483708cc063fecee743fa556107439c5d6b359802d2b68309

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.329-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.329-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84f811dfe4f39093d3f6465e935d8c93ba13030f90c33e674cc4a3fc66cbf656
MD5 6d456d6f347d62bfecee0a60dcad799b
BLAKE2b-256 eaff682b3562a4c4c0c3e997cde9b7a5ae66897f1121c4ce3a87d1613ff320a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.329-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 971fb17cd714237b52cc4c590e41dd56cd8f6852c97ab9b28c8accdd63b65911
MD5 af178966b57dd28d79c0ef1942d4dcf7
BLAKE2b-256 ab900b949a0e7da9f3570f69e096be8e50d8d369603c97cec4fc01a2fa5dbb66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.329-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.329-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4b7f153e8ce43d679b418e473a2bb3be38596e17a371f5a20b2ea10436e9ea6e
MD5 c900dd5b7227e7408c4cb75947a56abd
BLAKE2b-256 ce883021bf57fca968cd4dd04a7c61287d76707f44928d2a96836c5801f97fd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.329-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.329-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 53b31ad0a7ed72e7a494b4914c3ff709efdbd2a6e40ea0e700393feb3216935e
MD5 4f98efcbbd08bea3be630f4d4cd714bb
BLAKE2b-256 2d47b8c869f3281096a24099642b85c706497471851ed6726909a3783dfd6e77

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.329-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.329-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1f315c0fa738de790e41fd7b61753ce2ce7a8901b807a8072a31299e0ca34921
MD5 9a0db8b5be7bd3852e0d466dd9a9c1b7
BLAKE2b-256 25d40d466400917622566c3f6e5db454f5cda3e2dd6f17bb257a4a54d9f03466

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.329-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14626dd7bb1e5a3897a17e05f3c1ce3006b9205b14a959092b92b7ff9a10dec4
MD5 bd42a9aae8929de5e82b2f3d6977fdb7
BLAKE2b-256 7e4db4e5c260f828c5d7a3dab081ebdb5997db1095919daad55b9dec128c6ad2

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