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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.713-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.713-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.713-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.713-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9269dafd8a4b04eb4fbafbd94357138fe8f8e94e170d328f2cce943cea90c895
MD5 d4e40887198314564a1e1d2c498181d3
BLAKE2b-256 386f58b0f79abbae0f3641fa8fea58d4e14307ed8bbbe69db244176ea8fe16b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.713-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.713-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f31dcbe6401dc9d6e8d8c297c5a2defb71075f5e49c3de16a9f5620f688ffbfb
MD5 0e9081fb46293986e4ddd76ed94e261d
BLAKE2b-256 64f1b5c1b41860ef23ad8815a707b24bf17935c2000292647fd97c0d55de4f88

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.713-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.713-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7f0cf801ae3ed43905eecf2d9c84da0cabe70a3a2e0f14e211af167cad538311
MD5 22c15338f5fa27155a5738a8cea1d357
BLAKE2b-256 8dea0e4dd27f2ab91c3d503c7aeab8aeb89592c5b406b87293097d2746648592

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.713-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f93ebd50df810cae9f0bcf6d0f293516fa7b45450af9999e25411337b383eddf
MD5 609931dff8c830899aa8f0662ced098d
BLAKE2b-256 d1bb1132e092a3d58a4cba10ad362b35b7a7773133314762dd8a7e70ba2492a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.713-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ce66e8b118da21ce27232112955ce79f3ad30cf0b756f661fd954db6cef2872e
MD5 0a0cf699d3242ff2c81cdee4ecb2bc92
BLAKE2b-256 322d40be206754861dbbbcba83845c7bd790f6f216da57e0c229680b83978994

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.713-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.713-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d380250bd7d5b077582f7f003694c08e276ff258a8a40b06a15f158f08dc1d9d
MD5 5a6a2ac3ab1d6ead64820bdb97f21148
BLAKE2b-256 d4aeffc1cba54c38cc82009bfde23f4b0b2e4be47dfed980a84d14c64857ab5a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.713-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.713-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a3d8a16bfa6f8c8ed459552564cec6f301fa08c65daf1ac0746dbb55cbbf4c1a
MD5 592f62f317c67318c74e59c530ae90eb
BLAKE2b-256 f044f6d8bd4d8235980351a4e979fcd7d09e5dec91c666cd2853b812ca1e695d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.713-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d96036b92743f3fdc356ed530531b85958925ada48a97cbef5191c43e6500e8
MD5 7bed39611faaa1c34e91edf4da7a9d7a
BLAKE2b-256 509dfe47bb8eb29214c6b1a2b2a3bc8c8992fa06a103b4a99c50426c8faf27db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.713-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 22091603360de1306ff3a3ad7ae5975218b4f76711b883f118bed33f69e0665f
MD5 88a6de88100c855734231efad0ce5e67
BLAKE2b-256 0d160bf718f4e747c3945e448abb6e28896abb070619c1d84e48d7015d1ef345

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.713-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.713-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b7c3b5beeb8f3863c0cabd21c914896d88c24558f3b78be6a563ff0d33415df7
MD5 95bd7ea796146ae229350afd40b51573
BLAKE2b-256 6f01a03a643728b123b0f5fca0ce3f7b77e97f5c1cfccccf0bde5e88afd66b05

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.713-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.713-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef6ff424ccf242fa0b026ecb80b4b4a9c42e4e5254998ba4c2ee6427159b0387
MD5 460b9a00fd16bf52cc5566e4753860a4
BLAKE2b-256 3fc72838055b627d881da1972537ede9d9e609864401d0f5ebb0aa01020d4b2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.713-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe58b0d0c03cff7b6f54095498905ade852d4b38e13ab31b1e0b9772361d06ba
MD5 9d8d5c6bb7b9fe1f2edd63ec32873b5d
BLAKE2b-256 0cae617f531960bcfb37d63720e658e81425cb0cf6155ac95b4c4d6c1e52edc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.713-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.713-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 aaaae60dcfd6595294a47d5480b032e25d26d909d8ac56ac235dfd7c268fef22
MD5 d886c086d5f4268c7daed7a543ce6054
BLAKE2b-256 3796c1faae27421fc7d261e8f622fd6a62a16e899d054a334c92e30c63f89f2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.713-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.713-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ddcdca6da40a2289564a021d3802ecd7828b207b30d250438619919eda26a316
MD5 88e48e899f825f5692f7c1376c99973e
BLAKE2b-256 632248abc2761c148247c386f54b847ff427c54fa64f52fe0edc5a3fe6db6d64

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.713-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.713-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 57b536b796b7042d7e2f0ce96d13cf7daeab97ce9f5a5be287a476eb5ec7b11a
MD5 dc558004f700c2499b6bdfc9632b3bec
BLAKE2b-256 3b4c72592ba12b436a13587dd3ef2c5403475a51638a8b62da75df77a50e86ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.713-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 527757d30141ec07662dedc88cfcd52c1587bfc7e8c271ff86af512059365e9f
MD5 d5ae00d2d7283afa53033dbb30f84569
BLAKE2b-256 46fdda78a607794c71ab7644118d9b49bcffcfbc7172b7062f38a9f916f9e7c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.713-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.713-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3db33a4a7854f93eb21afa255fa8bb92d9e605ba1838cd349278237f5a107a6b
MD5 dc552d48e2665169b7bdf14df381fdcc
BLAKE2b-256 62b06a87f9968911b3c7106e403fb286e24f16cfa9690445354f988135a59002

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.713-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.713-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6d764572788585fff57a42f9118c2fd5c07895d0b8bb184893870441a7d1a8b7
MD5 a9237a48a0f9553494d7bc40ff443a27
BLAKE2b-256 4bb923b0a26cc068a28d9410448b6b8a5945ebdf7afbdde6c1f0f36631bb5d24

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.713-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.713-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6ba306ef985a503ff61504147ebc00f7e2b76c6764d7fc44bd02cdc11b15538f
MD5 ec56b48a81b0a4efdad82aec11e0c823
BLAKE2b-256 c3a66dc7fb4d0cd6cb931f88b31482d1159c28552db7a344ac4ed182cc8138f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.713-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fda5d62d40bd2abc165fef41a9c9b8aaaa3c6bac43a0d2aa7a9b6ef62e84126a
MD5 e7b2a9722d2499ff1ebae0da7ff113a9
BLAKE2b-256 8c7480835c88709e643d3389ae98f8455a9bd8b3f69efa07c83aea45b38e77f4

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