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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.127-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.127-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.127-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.127-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5a64e37292e4a49602ac32c855d4f83796857064c99c6155702eea33439d59db
MD5 472e20cc31e3e5f5ba5ef53fb4796dd4
BLAKE2b-256 81cd7c6e48f4b9295840a15350ef9da54a767805b82819e84671abc7ca48651e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.127-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.127-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 47bc21f57cc51641d6e3edc97853dc22a28687efeb08ada39a7ee5902ba5db71
MD5 fa140a8fb4a29d3de60ebf7fe979f935
BLAKE2b-256 cdc970cd282cbf07cb39dfc4c964c3adbbda58b0ab1ff2654c5d4399ce19dab1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.127-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.127-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 358c249de151108b94f6a1f0d115861b06aa62fb4252873d64f0be96e6777731
MD5 a3911e1af6a1d35fab381b1cfe92368c
BLAKE2b-256 c94396e6eb0acda51f2b4e7d962b45a648b6af8db4ba55826ff215ee3b5e45e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.127-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9f1f8fcb25b2638711a0a49043b37e67bc767a1e177731fb396124c8f1eadafb
MD5 830ff13331b6cbe2336580a19bc6999d
BLAKE2b-256 74e578ba326d819736270f06f0c3d511b8fcd56f613026b2f2a47951a19f600f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.127-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c4fbe2db81440110b97fcbb12348735ccf4380cf793b1bbdaff13e30d46ce5da
MD5 62f778dea70e425f73e4784261f6fe3c
BLAKE2b-256 2c7aed6fe252330719f20ccfd81a98b3381e9958daec369378b56be879c0b1da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.127-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.127-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f17c2a7b1353fe50911a56c671b73c94a2d4c77fdafbfba7711f29871db55550
MD5 957c0ad4d3860c464c9ec179cd730bbf
BLAKE2b-256 e2be8db6a8fd761cda949dd09d1a41dda75167836b6719d98b08108babfda85b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.127-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.127-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0394c9b56da770ce77ffcdf24c23c00a2a3e4c5e00ccbdb87ca033ff6d63b3ab
MD5 aaa843b52987e187092f971d96b63426
BLAKE2b-256 ea9f673a554daacb002a565a694bf8cfb69b0d20a6e0e3563ec81184c3b8ebf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.127-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03171b139a3d926a9c5c534d726e58e924a622e9c1f08255becbb158d2f03b84
MD5 5dec17dfa7add793c9512eab20aa9f00
BLAKE2b-256 f1923dc207bc4ee4f031d9f06288af46a3acb0e8ca773593d6b405e257838e89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.127-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d60ee393fde2e2de79635f094f1ef15685a9e923b931bb214b5675ad8d2b8a61
MD5 5935ace183f50208e7c486920497f20a
BLAKE2b-256 6c81e7485628322e744b2513a08e57d787f146f1d46f5a7e265c4c117c99e7bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.127-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.127-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a5ee9a52350eceb84b68186a9bd8e5e79e414c852e75cb1c085855aa65d39a16
MD5 c2032820136f610842c8a559ed1600aa
BLAKE2b-256 b0a903e1bf128944b10b483d34d30698feb992c0372d2eab2eb59d7fe261f57f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.127-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.127-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 813a52709b89c50f8afacf5e06aba309a3dcdac397bb72aee6d62288547d07df
MD5 c79f0f3e9ccc06639375953520545f08
BLAKE2b-256 b0f096d546b7c56dbba9ea639e73d26e8b0f72f8021125a14d37db0762ba5e5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.127-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f92173508a968bb8434491be93a81a8404067612ea1d904dde6a7116a18803e7
MD5 5bc400fc18c571b6a31e2fdd0cd6df9d
BLAKE2b-256 61167c31512cf13d0fb71ebcc35441ada3828bd5250e1c4a9c5f0d0fade5367d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.127-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.127-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 23c8faffc102de98a84946935af7f3847a6ee10ad1b9a77fd6e2da4917de2643
MD5 7ff14da89d8f0c8b8c2722d0963072e5
BLAKE2b-256 8a53560331a51d24e286191d48024ec9de9a007a260f186f5c18c21610fe375a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.127-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.127-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 95fb8ab2527d2f9c3feceb6eff3288f3115e9f16fae03018e321132e5bfc93e3
MD5 97f96529265a2d03d03ed02976d9d5c5
BLAKE2b-256 d84c53712058ed50a8b955519f8b64231677be59b27a9c5a2efe025a289eb857

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.127-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.127-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d6aab2b36f484e86931662ae664fb0ed543afc4b7120c15a0fa8b57cdc13ee36
MD5 b6709fea6e80570d404ca16387de681a
BLAKE2b-256 edb531343610a3c0a40033dbf7654a39b9f238e6900a5d23ce907b1cafc09024

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.127-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4d42fb66707f0e9160fcbc49502c12eccc1aab562643814094d4d508efdc69b
MD5 8bf2ab7f6c372b2f360832fec671b005
BLAKE2b-256 d371640f4d320fb9d1b096f40adb8867f284f19c4a02e0b6127beb6ca4481da5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.127-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.127-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a5ad280b717b2c89f267a4f655bcdc49781c5ff1a8464add503a86f5e9917b29
MD5 19bfefcd4035630f3863279528bbbf42
BLAKE2b-256 ec6da9c9ed75a5c63482ef0ab1e2f28fcca89395a071595cb4f1ade7e8a467e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.127-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.127-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3055492b2fedd99b4f1b17987fd2f5cf7c9a1442fbc43abfa7a3293c3db95304
MD5 788bb95b501b7073ea7cbdd541634ecc
BLAKE2b-256 64b03eb5688c9cca25f62cdbff49ed26e113b675aa7d783b57fa67b7d1d0a85a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.127-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.127-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 baba6d46dda984935ae677ec1da13ac4ccdea30c0c7f42e426a826b53740ad83
MD5 b173afe15ef5f4a581563454670c760d
BLAKE2b-256 a4e89d1855393adbaee51e56b58e3bb7a837914e278529062fe7ad442d1920df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.127-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5600606821bccddc9cd964ad5ad14e5f9d65990b0e26c87c440a1a318096de1e
MD5 c448778e53496a5e50de82e92fc9bc00
BLAKE2b-256 8deed23cb8cd1097df53498f88b16366620afe12108dc193549649f080f84e98

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