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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.28-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.28-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.28-cp312-cp312-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.28-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.28-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.28-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.28-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.28-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.28-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.28-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.28-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.28-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.28-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.28-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.28-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.28-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.28-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.28-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.28-cp38-cp38-macosx_11_0_arm64.whl (114.6 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.28-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.28-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 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.2.28-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5716308a781a1fa158159ef802b942b649eabbd30e6c674efd84af67b4b85b7a
MD5 bc653eec655d79d204aed4c782bb2f60
BLAKE2b-256 57f4048d6f06956754692efbe38adbe9202b68d2f13ebee726c1df829efb43cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.28-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.7 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.2.28-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 abc7324990eab6242ce24b9063c0e150563cde3cc47ec9dba6591dd8aa898e06
MD5 ad08d40f98f9391493ea5854611cb65a
BLAKE2b-256 7f8e1558fbded510b4b78f7d12d4265677e621dc853ea4740825887ede0fc519

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.28-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.2.28-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b181885188a4345c90bc6f25e432395f166bc899b998805f590984ec8df999d9
MD5 a28b8e5d6ecdefa46850a5a8bcb32120
BLAKE2b-256 d3ec55ebdece877fdcc815c39878927706c60b8f079ce8556ea3dcac4a6363ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.28-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 738abcc29f34d8cc2f2200cba700f327de249640167e8c09d4fa297a24c796f1
MD5 d61629c7db3541866cde660954aef344
BLAKE2b-256 6cf3986bfe9a5ac1321d567238a04325d916741e9f77f130d7d8d50e10bb596a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.28-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.28-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5acdff96cfaa14fd8453ac36285d10379fe0d6d320c33f7c6ae00c29162c5dfb
MD5 53bae72adc0d6e660fdde893d56e09e0
BLAKE2b-256 0aedd3a73c3ea29d5adeb97a9db37ea27f2ffb229fb411e5daedbc46071a92c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.28-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.28-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 47dddc56aaa53d718ace3b1ae6057e1756cbd46499e7b375b95daa9f11c308f9
MD5 ee05c390c008c1e8eb8e604e5085fc7f
BLAKE2b-256 3be263c29e71e9367792d3a278c6708cd2712060cd7038ae3b0286a099f7e15a

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.28-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.2.28-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7a4012066ca514d87f8a923ca10ccdaf4eeb30f3d4fed4eb2b4852c2f900b2cf
MD5 5060be35df2fc44f3d9fba17cab17987
BLAKE2b-256 4e01ac27760ea586453e30a4238aa275da80bbe213dd80af81a9074ec1a6f189

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.28-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e372cc343d71e1145ab6b775be1d06bf9c5684c866f5a42512afb3d3d1f9022
MD5 0d613e000299d5e5493972c85164a878
BLAKE2b-256 bcd1bbe762e81fe8ce6cbaccc5be588ce7b15a9d887098d9746c0d042553c8dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.28-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 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.2.28-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ac9b04f2174c4e158f496cbfdd8b1004a8e6e735bb51913ed566bc88f9a33ca2
MD5 7844631137e7bb849183440c2d9735de
BLAKE2b-256 5f2b481af5075924cee94ddce423293dcb9df0f3b953bd0c96b3536ecb1cf5c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.28-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.28-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 229cbdd15b81b6db2d5de8ff08cf2ae704ec04839333f7dd2efb136d0e9d7f0d
MD5 01278ed591f0b26be6732c292dd58c5e
BLAKE2b-256 26cf4537ae12ab0f3f0cb96d3e7ddb54942efb53adb21fdc476d87b50947ceb1

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.28-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.2.28-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e439959b5a380118f0476a76c6f5159506f4d56e3d72789ce37c36a99d3d8239
MD5 8e16901285fd4e404b54f6993033686c
BLAKE2b-256 0a464d95529281cc6b2e622260251110d038e93ab8669dd84e39a3aa2ddf3762

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.28-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6721c1941bfa1085ddb2c75e4c28cdd0714ddef50bd51642fab2ac1e96a8902d
MD5 75e5eeef790f9f7b5aa8f63bce3c057b
BLAKE2b-256 12276cd122a87f196365dcca0cb108c2940348f8c6442e9cfeb66a71bbae179d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.28-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.28-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 46b28bd3a92929d0bd506cd5a2436d0100c076bb4188e3e91103a15c77169bfe
MD5 cb1743d12f8a81affb9df62a1d5efc3c
BLAKE2b-256 9b4cd3b4a283e2c5397b5f21e2d5a99cd2f5fb305ca7275c31c32843cc33981c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.28-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.28-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2a3e0b3822e61bba8cf3261df13319e6660375f31ad7d2e0a3583ad317d6e762
MD5 e162b52587349515cfca12804cdd01c6
BLAKE2b-256 de85fe001e93c43a34fe4c0fdbcffc68c923e0cfc362b171c5dacb1abcb38406

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.28-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.2.28-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d4b9e702c26b6b8d00b9621baaeba5a38fcce79867ad6cb3c9dff75f8de1bb8a
MD5 483901e7ee29c1032e8c8a7129640e16
BLAKE2b-256 95c1807b2d6eef59cd6c716266056a5eeef187d8b5ef7091cc2ef6705215df91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.28-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72b87c430e6da4e1bb6e7a36402ac01fdad96e408eff90d97bdc22b3f3091c35
MD5 a84575cee5f429ce14d3ea868026ee76
BLAKE2b-256 7afa38b8adede985daa87929308d40507f5095e0f2ae34607bc1fc37bb8aef5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.28-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.28-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bd8f893c42745bdc25e8d539935a63699ebda63ba1325d1bb43aa42b1bce3ddb
MD5 48ca7b0e8f53d17a1a07417126165f3a
BLAKE2b-256 a430327bde0c4da480745096fb3f1f9d11f38937b8cbb429d3702184844bd958

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.28-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.28-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fc2dfb3c86c7967cad79bc042a65fbdc31998d5df16317238da66eae1c1e0d04
MD5 9e30c42b28c4030631d978fb5fa566e3
BLAKE2b-256 694c91801103977713cd43dc6fd787884e88e18b4ae67eee5fede987c448821f

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.28-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.2.28-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cb813714610fdba86eb4c68ab907cb9932cfaf090c022fc31e4b47e5588521ac
MD5 b2a88942af25694de5e901275bb5d382
BLAKE2b-256 a85445c1ede56535a5964a3588dad2d0cbd3e5e17ab9953d418cbb72223946c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.28-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98e3d9f42922fe2d2e98e67bd96659f665f3d9f1e0b27dd1ae66ee8e20760ab5
MD5 a2fea72ad9004e86d52ebd147b8f56b1
BLAKE2b-256 cf013df93f5aacb6bb43a2479bc124439fa7557edfd2b69c99bd8c9c3463f8a2

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