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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.40-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.40-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.40-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.40-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.40-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 aeb8952356c07195fbe7c2a869600888a91f5502d2791969bfa8a76193ab8069
MD5 5100125c346ab8b250f6b1118dae59ca
BLAKE2b-256 7c9e5431e3408babebb1d34ce244600bf9d75f3c73ba061d50bf92617d37b7fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.40-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.40-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8f9980d4295809359edcc44d07f095a9374871f1180f6f9899a63b0988e0f2f6
MD5 33d735c38dcb8a964ec1e0f469de24c2
BLAKE2b-256 4198f12a9e5d48db1a1f86f7187dacb76a182b47367f0cd80ab8ca39cd541675

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.40-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.40-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8daa34417bc15c3854717ab962722e9ae910b2b47c303fca5877f8b3cc816bcf
MD5 c1d8da04450b16eae958eabaf478877e
BLAKE2b-256 1124618a7e464b3ab1772eaf47b3ec986ea3045f65e3fbb7bba2e6ccae7a7832

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.40-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f7ebdb7315ad5cddf745a55466c1202378d8cec08aeeb6bb1ae905bf462aca4
MD5 95d1a174ceaa4d76b1da422f34df6796
BLAKE2b-256 96f555f7df7c996198f74bc64968f968c2b325820172694ad4ed06437043da66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.40-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.40-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9ca91741f073d04326ae77ba8b0f3792ee20083301bf5164d8fe5659358529ea
MD5 b85d8d58b6fd138a64dafdee868911e9
BLAKE2b-256 7bd6f5cc38ac6e48fa97ebf22437b0163fe1c48b139c8948e65615a453dddd22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.40-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.40-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e6ba1931a2b74206caf15f3f84668e583f6484df1cfe8bcfa195cc02ccb5388e
MD5 6126db5b613f3a070407e3743217ff8c
BLAKE2b-256 1cec00f2c0ea7df808afa23d3846885d06abc694a797735c52587987d3bc95eb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.40-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.40-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 644765b6b7bf35d2a652538b96f07133e4d80429d6434325b1383ff88e0899e1
MD5 e28c0f8b6ce9bfd4a61741b38d5bef55
BLAKE2b-256 432b2ad2e601b888b4a07efe320037192c0555c23de4ed01094acbc80a6fe93e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.40-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e82ee7f1e0408090cd5755a9dcca321847a6664560bc55e4cf65d1c5eb4aff4
MD5 f63382e1697c58f49f21459e53040cdc
BLAKE2b-256 9135edc470e4da277be26bbbba99a27070d62b0a170dbfb306c0d3448b34d61d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.40-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.40-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fb298ea8647d79ebe9025ed31963fe4dcdc31b8b038a943776e2c4681fe51c6d
MD5 590bfc88b86252475ca1dd418e536c63
BLAKE2b-256 d15918b6cce24edd2eb17413bfc2d9171276c1e4090e748f18b8e0d063010318

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.40-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.40-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d1fa9081f9447499f048f8bb35b9bb9445f4c762de643c68cf9fe5fc50157920
MD5 f97434604bc5fb610ae1fe7870f2e0a6
BLAKE2b-256 ac46fd60718fb375dac85f6ae78b7de221077b85f0ffff04ae2098525955e1c4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.40-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.40-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a6fc0cf1dbace9e34f7e7cd36a28a10bff62dd0536aa5f19ead2f1d924f82b8c
MD5 39b5783252aa38eb77a86e6017bec711
BLAKE2b-256 8a3cd203e281d5ae1b68ee8c6893e63d4b55b199c389219a61178548e9bdaa2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.40-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88f2f40debc3b087db35059c769c6010a6764d49407f590b0f355559b3b7fdf8
MD5 da10b060dda21ae44f1452b27d65d579
BLAKE2b-256 5b2a80320dc899d5bb988ad93fc5b960110109334d04d45af5c93008c4fe8eb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.40-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.40-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0fc49fa1f591dfbf785ec4d4e8e2c3c06863092ea20322fa92bf8582ec7185ed
MD5 06933881dacbe686a9e687ed33777784
BLAKE2b-256 79bf1018b463791b08b2ac38c61a846e298da8f04272ccee85b7eca5933e6185

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.40-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.40-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4052846f0685d99e9a3c5b0ee530888bdf5b0fb39374ec738d4f8130cfe69585
MD5 53573e91d7ba8b97fd64b5c220cf2165
BLAKE2b-256 6ab9681e684f67e5c5d0a92021f153521881feab3f3294a3ea04da0150d0fd14

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.40-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.40-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f28bd2e8bc1e1d53de315a0cb86f839340a6ffe9237465c37d3acae94109bdae
MD5 e6633d41a9f94872547e4752f945c49d
BLAKE2b-256 3259e65a477f77f730e2bd5d5b15657aea161cda36cc3d99155bc5fca0277873

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.40-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28a14dfc494194b53aba466823d0cbc498600aa075c03511df94c190324cee7a
MD5 06a719f96018b6a6b84f22d6bb64a7ba
BLAKE2b-256 0eeac8e4b6d6859c1baca3a3848bfc03b1386e562adccd365a3891053331fa04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.40-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.40-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dafba3c8432ec485a8aee49d297d8b19ec9ac97d7cdf87b6b8a2fcbee2a6e843
MD5 1e05ece87089965ca9dae1339fe71d6c
BLAKE2b-256 0334d0c8b02074457f59dbfd1dfa9aafa67a15a4a2436849ae914e60ce00f6d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.40-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.40-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1b9baf4a620c1c9db455c5fafd558c598a00686a821d8a9c40a42527446e6aa9
MD5 a304efc910b661007f920b7e5b503644
BLAKE2b-256 28ad4b3dfa8d491656b4c752b904137ec786162d837b984614a22e4f4abd7293

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.40-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.40-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 32df16458dd2b6248ac928deff1bc21d590cbe69f22efb990d0c2333871bc0a8
MD5 dcb38cf6e235dab5dfc91e3fa6f75276
BLAKE2b-256 1d4edeca36965757df6637a0348c2d7de71bc309c665aafa09d982c971daefa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.40-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a715c8e3e953d2c55b66aff78a51338cb73e59e055e572f63ddf1c40f68f1ba8
MD5 978ae6c402a5b2e1ea933f48e1682506
BLAKE2b-256 53908273c678bf7720e3833deb8ae74b48050005ceb1e955a5b0776e30cb547c

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