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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.64-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.64-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.64-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.64-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.64-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f802a6db1f37afbc3cfcc6fa5b4e26a31676479f4f1d89908757d0c3e65188ae
MD5 0e63293fb381363d9a6ecb541e9167ca
BLAKE2b-256 637bc95c90b763eca93236cc79d7c7a98014ecc208247b5fdede3ef159b88f02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.64-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.64-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 513ec079574c25dc311d9f1e4557d5cc37dad2e4daf3d94ae5ca98c850ab84b9
MD5 8eef25249e8b451030507023da0f0212
BLAKE2b-256 78297bc8c66a894ceece1b6c2dfbfa32367941f1d02450bf1aa8e962f5f526ea

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.64-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.64-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e720cbc7719a8a9907f61ee2f8126060612921539846287009a7d4d082172c0d
MD5 d315d48a6eff1203b0659ca2d82d9c8d
BLAKE2b-256 1ec0477a358d7a7417220e13beae1838eee100495e56d774b6b9928e9a44f3f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.64-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21dda3ffbb718108efe663c1b45112ab0282db7291de7c24be0de140129cd71b
MD5 808b714b79839cf03f8e987b07a41ab9
BLAKE2b-256 c4e8f78d6452808e8d62d0b85bdaa509f0c18f95bc1b215d1e00de562bfd1f4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.64-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.64-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 38bb33c6f0f836ddbff2c73c24d3dd70273fc748b6a1baacacf152ee90b53994
MD5 881f31f2a37167620cf401a3d0015b24
BLAKE2b-256 5412dc4f0ba8ab9686f03d3e240c910e261254388f67ab8e5b3cef762c921782

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.64-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.64-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5dbebf8ecdf44f735e8a872bc923f944da9b196b4b5b17801d9146a35fc7eb31
MD5 372cee97d4480a023dd8a270908a51f7
BLAKE2b-256 50a334a2cdc64e001b20a2017f87144f1c253d85a67bf80bba5fb6dc2b97373f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.64-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.64-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1b349629046570f1e484ec58d59b8aa9e6ee933264db9b07e506b8e79967d7aa
MD5 4560f64e3b30d4e260619e3eae5eabb7
BLAKE2b-256 dcd5521f97818a42ce8cba937eb0a724f9f4cd3003f501159fc90a587323f35d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.64-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86d75197530aeed5fc7f021fc6de3d49dce48c1ac1b907a0d68080f712958ad9
MD5 3162e132c48654727fada55523117a54
BLAKE2b-256 6e75de52196d25e8e23c39412b7bb3624dde38e0be79056df362576a2532f927

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.64-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.64-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 60d65f12bf95fe015480c1650f5e4ba6c649e2d6b28e67584907a4c09443be93
MD5 72a701b4af707d1d7fcd40831eaedc37
BLAKE2b-256 e5273ad3f14a4a86db8434b8aaf92da5d35481e363e96a947f3f23cd77a5f78e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.64-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.64-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 677a186a7abddba623cb97634cd3d2a2197655b853927a0b9a794ac4f633e476
MD5 62cd3103f06fb9414ba5c93b86eee2ad
BLAKE2b-256 f4e003b068e2d32b72b1a6d650807d17d87780f20cc1a61c20ae05decc1d9c41

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.64-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.64-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8572c89b599c067ac864c78a082eba62ef103de4da96e389b854b9e57aaea204
MD5 771fb39f8a0aba30b38876617f4c0dac
BLAKE2b-256 55f24a7e2df8f25602a5f4bcc2143731d908b50b0ccdf526cee0e68acd6f1128

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.64-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7af74309c658fcdcf89f010bf50ada321e0ae4c3d8c2457b7fa45ed5a382e8f8
MD5 21577f5c23da9e1861e09c5b9c2feedc
BLAKE2b-256 1aa7a2d8130e6e67bde65be424b9d96161956e11d6c194844d84bae05cb906a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.64-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.64-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5c10d1ed303bbc48147f94b3dadf0e742d3289aaa04b0120d1a06f012b7d069b
MD5 2f721f413082160c5e23462e6c063c65
BLAKE2b-256 b30de2593d755dbf04cac37d9271e8310f6cf10330b9cbfe41bc8dd283eb0c8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.64-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.64-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bf8d71144c173417b0f806ed06d2321a253f44eaafd1c07b9db9d03719663cbc
MD5 3ceb8598ea3f14d8551bab231b19213e
BLAKE2b-256 409d32ad7baa0c00367090416f4c463b8732d7889169514bb0b28d19f82dd7dd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.64-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.64-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 78501114d1c7a9658270c4da0eb2a7c53ae10fd906ba50133863a2dfebb7c264
MD5 a7c42ceaf20cc90c24ba9dff6b578f5f
BLAKE2b-256 a4b29af8db2138ca6141e7497e2712ccb0b6bc6c17fa690b391708c95f1649cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.64-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61e6736f4fbca7e129d99a980962e377c9a033a04ebba569d3b9218b733d0940
MD5 ed2b7d5814e1e18c475c223806a32a67
BLAKE2b-256 b3f419696bd2363adfc02da5fd957f1fed4f691c4e6831e711da1eb5efb28e09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.64-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.64-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 26116d4e0c2e1806234d8112095e6a363206e154e556912006a73751fae6a128
MD5 aa2a36083c274b1c3b3a26478ac035eb
BLAKE2b-256 cd416fed7fd42dcd3dfa9e04c642b1e4862dc6af76f6d5c27a29c979cc27ce60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.64-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.64-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c47ba71fe2b5bc18b4f8e9392f7239bd5b1e8b1a2b6f68200a7b7f9707135e83
MD5 e5771461197d7c344323aa4b9a0bce22
BLAKE2b-256 305587f2e7a5c248384f321c7c52f86af5ef7b2573920ed55561318f79e418e4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.64-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.64-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b016413c29844e23f6edb9185fd8d90b7b0503320ebead141b7771bd72fa4a61
MD5 b852fbd6ea42ac209940521526bf3d41
BLAKE2b-256 ae4265e766ac3572cf710fcc96865500c0aa0d4d172f6eba577c09206b052fef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.64-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aec21ee75f9c45cf2bd370fee0dac25da7b07258604feba6c3f735576a9056b8
MD5 1ddb809ca0ce48ecce5677089c29bdb6
BLAKE2b-256 94454ef35255ad9722f9711587a1552e511056f095a49c782c9d60fd88918046

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