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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.225-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.225-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.225-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.225-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 04e3a17921f0588a84946dc21ff306b1455ffe2ed23b3e971be439bf008b12af
MD5 4b55b70eb7598834f415098a909d96c7
BLAKE2b-256 64cab7492634781737e96a5175d555ec4f2dda63bd20dddbff365990a3fb3b73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.225-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.225-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0e684c53f124ccde114009e6e7b7ac58aac04bc350e4c53a75faf93d787a1541
MD5 591a218a63523f984f8b92c9a4eda2e5
BLAKE2b-256 fe7a78bdd7ff141a603e7b90546f5f4a44cb523f97fcae787584a4162b3ce3b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.225-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.225-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 18ef746d5d24b9936f0d5b1b5e37aae3e61b02ae8930d8c6b90839efdb4d06cc
MD5 6918b0dc9dba89f6a17c056cda94991f
BLAKE2b-256 a4508a4a5330f66cf80d29732f55896eb67d5dc87a0694ccd7d3567714a403bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.225-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b2ed731f05d1111bc1448cc4ab2e3a3caeede483899eb50f9023a7ebad323ef6
MD5 b2f7b51df0524c0c52b6e16bbe1b8fe5
BLAKE2b-256 0de28c055b15a1eafeb975d0078e0d0b743016a559355adc96dc5bae2bb160d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.225-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 57995a60a7e4fe711447c7b288eb3c521441ac338bf876666b74899701bfa2d5
MD5 e2b2d2e24890f9d4986bab7dde4c003e
BLAKE2b-256 fd5832b1be9619d484f8204a9379c6dd07690b3ea8328c2ec9457f6dcb841e22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.225-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.225-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3f40736eb00ae2ea06865d1d784f5b13433070192af57341f9221800b8d20c61
MD5 99ba9d298c2c045e6f361a64e88e2991
BLAKE2b-256 187261a9c721f52e90606ec1e8652760843954b61182f0398b47be5eed966a7f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.225-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.225-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d07657534992cda69b6ad2c2ac96bf151ede02941e3f93ba969eb8222711c38
MD5 304a050bc478a912e0101b83f9a96219
BLAKE2b-256 fcdc91c2859c29358d4793aeb25168e0cd8bab5302dca9d5010ccb7343bd738d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.225-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cbb2abb6be2991fbdd506671f360975e93bbe86c5449e25fe3e3bbf843afe640
MD5 9ba2b027495e0a3365373f71a0873c69
BLAKE2b-256 3dffdb0de61826ca3efeff851e628449b3be030c1df4db4ee35841eaede3ada6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.225-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5c37f75198566f1629c7f02ac438433dbfe34815b8fe9b27686461c6ffb658af
MD5 215cb89ac0e2006e8d97b7b44be1eb44
BLAKE2b-256 b9535b3a3548f3ea10e74fe4491b0469360912f7e3bb8078301b0dcb699fc4e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.225-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.225-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5422c9420ef4144d869623119014a4f08fae6f8552e8e0dbe202ae8d71488d41
MD5 9a94bd867068b41afe5c13e6a54dce97
BLAKE2b-256 f3290a2671234748d6509a5e2e51ea9e8f8b248ecee3dcd8ca9165a259d085d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.225-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.225-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 600fca8e0e4b58ccd06a788e45e4d963749ff40843a8e2ffcc137ed712680ee0
MD5 4d0d5d5c6f07311d13aa0ad61c648595
BLAKE2b-256 1767f1d306b259a16b33d0d638049731190edab703f197475e1a8e070b0af500

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.225-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 45c238a7e6b802f3a51bfb25b9cc5a9e538a05cb3a16d500681a426ac8239c79
MD5 dbed20afdd6244b4f6a50ba4b34e8fd4
BLAKE2b-256 ed7de68c21e3f296f6c7290d6f44009f7757c7fcd38803b848c311d234e0bd24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.225-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.225-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b53c66b8be4b24114e007445e1aff2ae7647770348311f2faa2ea4c112a8b1e1
MD5 e5014e22c24778d0f3c930227aa6ba8d
BLAKE2b-256 be809d31eaea7ec6299c549f5f100956139083327db6f2b2e46cf3f1e35243ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.225-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.225-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f68f29d83febc566be1d1d501a70f40db53758e3f9cb242448c0a689be9c4f04
MD5 8a7e8c8c340470d22e4acac7ce6ec463
BLAKE2b-256 1a0f71230fcdf63933101485457eae1a79e61c98340437700ed4224a7facd371

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.225-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.225-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 067bc48e421e23731da874dd9b4456e0223e9cc7601753c3f60e7136f9fbd0d2
MD5 eb111e0e974cfcbb6a7116291579e8e0
BLAKE2b-256 155e1308d9095c8d1b3191f30a76842e2302d1db9936738c5277edc7fe8e923a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.225-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 45c32aa85116416d7e5b0f027827c11744ba3f4d59239dbac94432a1b8ac9a30
MD5 91aebcc93179f0d3f8ee30cc294264cf
BLAKE2b-256 ce8682ba6ffba7551d7174fd05b885678a2372d10b506efa3da405f635b14b08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.225-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.225-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0a88deda78fc1cefc139b1e0f4379cd4bb521e647d13284a50eaecd54500d918
MD5 4e14f893b83737b38d6b6e0a1056bd06
BLAKE2b-256 85895df81d247f3ed1d878352062392012b3043183c1e39dfedbbc97c0e7a13d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.225-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.225-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c2a4c201b3070102ac17172d6de1052ac9c335d1d028403a49e13cf37babf1cb
MD5 e7a71fa5b17dcdd1142acca35f7753e0
BLAKE2b-256 e1278a320f0bb89512f40eabc6769b674db6f5fe14a7096b2ed69c83f1fd318f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.225-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.225-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c99fa5d0d28d8954ed0507f3f948915066d5d2a6355e876d435ffc2c2c2e1d7
MD5 4009c71a20b85029d3f804a9c5488bf4
BLAKE2b-256 d2f65f10b2df785415f7a287801c38a8aa877bf2b689b4a38aee2d1a237e2e32

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.225-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82ae74defe350b95ba346923c66e09d6851c668d72fa5672993a71f48ceb2526
MD5 9380edc8c015e16e74c1230bb7227357
BLAKE2b-256 8c18b7a250054579812dff5ab15aba7775798d66b6b0db906325ddd927233118

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