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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.121-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.121-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.121-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.121-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.121-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b5569581dc877df6f021b9b0753e082f1063e3510fbe76dd0e8430cbca78ce2d
MD5 fe6dab811feec334d71daaaf6232b8cd
BLAKE2b-256 f0cb6db3dabf8555ae2789df0e2038f23d9fb691048d71ad086fe986a6b39f9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.121-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.121-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b5cd1e492246b84a57770dc42495abc5dcea9f13d0b06f19014fb183f948b8f9
MD5 a3fb07abedf5437b6feb6f24bcad1cad
BLAKE2b-256 13cb779b508d44c83b6fa731e3696334d7493eb6220bb6f50698989e8f6ffed3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.121-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.121-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4b4f61f40ca8151c39a6a5428ce13fbb1f658f1dc9061e920666be12b31631a5
MD5 a75c9ce5d3f94ad58c3785e98419cc83
BLAKE2b-256 47d2ea52b801b9b5e2855eaa2879a362eba4d6e019b45562844a1136f00f5db1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.121-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8bb79df6b7cb00d4acab8db9caac9c00ba8f437ff0862e3f2b6fb527b96e3265
MD5 3a3289bdcb0743fca9cbf8eb151fa93f
BLAKE2b-256 313d78e0144dcfe95730b4ac9b866ac2a399527b70faab20d076ff42e19192a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.121-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 820b10a9cf5cfdd13a72356558b781e249a176ca29fa33fe13be3eb00a253f14
MD5 3b202acd6cd666ea948ddccb92d5fbbb
BLAKE2b-256 87713ccf03eb0df1396881432253078c7a278eefe112bc470c26e1713bd0f499

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.121-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.121-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 366e68cbf31fb264b0f935448c7d50961972427a751744b1942c02368bdb11c3
MD5 082ab5491175fa6c28a077bbe072158a
BLAKE2b-256 e63aa9de28ebe0efea13cf9cadb5fc5f8808dfdda3071808944aa30fd639ff22

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.121-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.121-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1c16c955fac850a6b518c1850efbe3713698941f7b557fb6c402858b6a8fa5b9
MD5 155e63bdc200e81aac1002eb281b07f5
BLAKE2b-256 a45bdc9315b90602b2540cc4836088675ae0d0f9ac0a6f54d8a7fe0b81fbc0c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.121-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 675a0140751a6f7687c07b5686a557fc84ecaea11253877f39236011f5d70f05
MD5 d4c9052862ab327fd73283b8f3957270
BLAKE2b-256 f3e54bec3cd1d5ef7979c0e87fb4364fd8332b9643787ae29bb6aa8d254918c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.121-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0d774efb20248946ba9ca5a4e2bc64303f5e38611fcac11be8711ad13c039534
MD5 7788e2164f56f77cf06f0a75c16cf90e
BLAKE2b-256 217c56da3bf78a34998e42fe5bb34bfd867f039ac40f42f15b2629c0ec4127e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.121-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.121-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 63381362a9f7258d1ad951a4e2f566158161dfc8446adb2ec7142d44f3e0bef9
MD5 3bf87ce4a12b3736d43d6ec930ed9171
BLAKE2b-256 2bd2ef4855154cd1d9384088ca74acf045ae4198d462c061e07279bad96b43ed

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.121-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.121-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d9663254ab8618d331b98cf789a2d6f3220ce61b6acee8ad940c84dcff624b98
MD5 fd2fa58cfc55ad1bf71c5e2bf43a7840
BLAKE2b-256 716f6c33e47a21e6922ee390b794490e4c0c6b5453179001afafba5108a7d56c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.121-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2e972fae60aa7a98f3db6bf159c5029f007f53fceccf11b15d469b87a06f2135
MD5 2cda07988e11be0070581b4ca2d63249
BLAKE2b-256 d72682d3382fbbdd050b407f7283ede035c48a75dcbb3f89a405bdccaf309109

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.121-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.121-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 36b2c61257bd9d7cf1ad19e8855806552b1f9ffa580a186e7d2bb780b2f1a6ad
MD5 5cf13240e2870c6b34bab56c4017d47d
BLAKE2b-256 04846b31fb002b0b18df11edec0c56cee07a01bf7ca501a0eb0f0e401db11087

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.121-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.121-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 12d9d3af5e3c7af9015e56c53fb5c9827986a22ba4a0e315e4ab6385bac49931
MD5 b928cfcb0abeb2351308fb9a36e6db23
BLAKE2b-256 82b8f89bb9d844cf2d9aadbbc5f90e93a7f138b8ce7fe33d23dd8218788dd398

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.121-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.121-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d7c71021ccf355f6b0e1a1c612085e41c27a265050dc820e78d5adc034d7f16c
MD5 eaba86240785808736e2d90da6cfbb57
BLAKE2b-256 e9bb0f67f68a8a5b4538de88896f9ae5c1b030ccea3c16630b15a9705bccd1ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.121-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 769a01c780e302799981c240f8c840113d0e9976bd525b07ad6b58da167e9f37
MD5 44b60f57728b336a324e844281e8396a
BLAKE2b-256 c1902f4da86c0db07950bb0c03cbc3307416e083ffb119aad89a442c1a6be507

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.121-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.121-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 68b218564c1eb21864faf8e1666665b2d848ee02dbfbc237380b370801cdcbde
MD5 d031ff2029fc1f6491fe652e43bee89e
BLAKE2b-256 f8fff14d9275e5fbea96317e91ff6d7829e435978ec339ff4829c75accbd246a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.121-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.121-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d7e630cacd4a975a0333e6e6f897d0069ed01a3d1898772b3456ac9593578ae3
MD5 a0ef8d97fce3cf94b3f4af2488b0d72b
BLAKE2b-256 a280bf0de333a4f8ce44be998797c8637639ca3053980f61a05b32f9ddd2e7d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.121-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.121-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1ec19efedabd6cfbc0295b59ca8b634fdedbc9e0a603535912ce9eaac0cb5a3c
MD5 71767fea86c88096e6c332fb2a1a54d8
BLAKE2b-256 dd728e39e27555a211a9d0374982c3f1c8a2f01ccf00b0b9baa636d8de7dfa04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.121-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 35dc481eddbb36928d9357a87e611924b721305903f17bb1c8de5fccf630f9ca
MD5 af821b922f552b2778d210845c66d93c
BLAKE2b-256 b2b7d4934017cc35df0131fa73750ca23342a621923ebbe6270e5e3e07aba30e

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