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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.735-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.735-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.735-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.735-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.735-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 403278c7aa547ff7f9cd42b8c1804e4a3c3438dc074673c85f87e07c1e3c686f
MD5 e14f1fdf36439f3f9099daee2ae492de
BLAKE2b-256 70d851439d55fc061cf20f871ecaee2b1057028663a8455596d256f7f755ea19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.735-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.735-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4cbca0efdbe19dfa4398dbd79dd8449a82a2e0749499be1a6b53f35156f66af1
MD5 6bdde2fe9d502238785e5e4b21fb6228
BLAKE2b-256 edeaf637254f585eac8c50932b9a6128a68afb27b9ef0b29becf64598fb627d7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.735-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.735-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 39158cccf3ec513cfd5193da1b2bf06e2ebbcc68af3bdf1813193273b8bc406b
MD5 22ebf6af042d3a040d2c7850caa61c1b
BLAKE2b-256 a53191965138b21bb126a3313d97e9941b016d29150c179d0472af0674133587

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.735-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7e9ddff04792d9ad9c692137dc723b33aa5cf7b42781711b0bb5562a0372268
MD5 e24d830601473343feef02b49a359f30
BLAKE2b-256 4ea63c18421274a36f6ea002d71b2f9fcb862770f859f18971466ead1f1ce0d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.735-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 86743a7488b275f055687c108ba495f29b5a4a2a37f39879e80eda555667dfbb
MD5 575167e75e21090b69ab94e076265e81
BLAKE2b-256 79a46cac370c7c60154577d5b813f61781a88cc357fab80ac2f0d67de677829e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.735-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.735-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 765750d0961019846903d29d6f8ab18487ec484c377ac3f2a181d12879635e88
MD5 fb48529d7bd3da9369126cbdf1cfe9ec
BLAKE2b-256 d6c014d2abb1674ca3e1a28c9944133d1601b75d75bbc8862fae313af568e873

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.735-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.735-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9f7295518aa41a147573894edceb0468b9b0dbe92e72e9e4bcd6ce1409096fb7
MD5 b627ce915214d69eb3873d5d458d9c8e
BLAKE2b-256 eb0d8e36e23ccfdfb648f075b791a11dca6dde9caeb21347fc915838f9e7b208

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.735-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4caef8381b20152748d8c99fc8c3f1cf4c605a3dbbc80a7b40577101e68e5002
MD5 dcb0ee92b9d05bd17fcdd1ccd019a311
BLAKE2b-256 974a840f07ac5e65ef6cf61b999b7f396b8499cd3f306efe78e729f1288712aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.735-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ea99f492e83198440ed79790bd13a0d42b38cf2025567b1797c4920d71378d3d
MD5 adee52adaded6da1f060989d18899cec
BLAKE2b-256 13b0ac2c446e51dc1f0d1443b4402cee211790a28ec1878b256e3f2069070467

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.735-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.735-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e9131db69e65dc1e7b6cd969e9a88347c39c80eda21062ce0d5fe248c347f890
MD5 ba51ba9000dd5ffca29e40bf594b586e
BLAKE2b-256 66035f60f6251ef1c4d975a22b52745e81bd690f89b28435ae2c4fdc83f4e30e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.735-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.735-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 89a31b629fae9456e9123a6ed95e0aba44b4c351814143616f3fb43038dc71e7
MD5 e45a099a6a723d0b60093b2fa1d3bbce
BLAKE2b-256 732798fc7bd1fb244f4e8feac93308ba8114922f2c6dd3ccf2996d9bd23e26a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.735-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6429a3fd6065c9c9d091d51a92fb72ecff73f6341d4e798de5d9cfd879f0fba
MD5 ddaf5c3f0eac3c9c7da2b2b8e10292be
BLAKE2b-256 36814dc554133e2fe8ddfc12a55b0f92fe85bc086c7c1f75bcc9c65d4a2187f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.735-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.735-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9a262042999dc3c3f852c1f28c5191d89b1eebd1fb275abe5ff5e5fa4c2648d3
MD5 fa592117c68358e1f8cec1ba39aeb47d
BLAKE2b-256 c877e0b8640be03192ef60dbb721f922e32ce6ea3218625191b6686491e8d18e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.735-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.735-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 df7b5aed4277d6407e05355bb4b08bcdcea54cc4bd141dd11ab27080ecb3edbb
MD5 ed6d58cd8eaeb21203a6bed6f101b048
BLAKE2b-256 5d0c7536113a15574e2f381f10613a996807f2e73cb61dad7747e4aa93ebe1fc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.735-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.735-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d6617ac759720a173cac79b25354f926d2324d2621defa1f9a72ffd78123d1b7
MD5 253f7b72cf71635168ff384e6a79dc8d
BLAKE2b-256 78fa19f7ad8a0bb554df7fae9bac3e0e0ccc0c30a05dd6f3bf66605d938d9d74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.735-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da7776e8c0d8418878496a67860e2f88ddb2e3f18729d4315c18646c2adcb249
MD5 185623e3b9760196829adcfc658e97cf
BLAKE2b-256 324a0536713fa66cf65c9754db207d24beeabda8bacec83deb464c74668aa2da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.735-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.735-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9d1e3638b5a6c4ba489de4076fe3445f5e9b9d228367835605aab40b21bdca8b
MD5 508ec5293d6279553db56eb8010b986e
BLAKE2b-256 63ae4417372c7097c0ed8c8328d8d885fb98ef1a7825a5394ae520b5c0896071

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.735-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.735-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 48843f534aeeab149fe2e65107e0fc1ee5ff86f67c11fb30f9f21ef75d06db00
MD5 a1bbacbcb45e2b67e8d9ab40b1ff180f
BLAKE2b-256 cd24a3bc75a580243067529b49f25f4e62d20d4959154e2eefb7086e568091b2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.735-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.735-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73bfcda03c47b3ebd95d61a00315c10c2c81e19a75314fc93bc79f496118b0b0
MD5 fbb24d6a82f310beedff356d9843f7ad
BLAKE2b-256 51dc7e583ea70c32ae7e622ee341f61d1fda43563919698b0d62e9125847d6cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.735-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b77a3d2bb741e2dafc5604cdae952b4bd488a53140ad8dcf36d7d49e47b4c92
MD5 08664ecd68a39f0fe3e0a0e255c164ea
BLAKE2b-256 c82b3bda05ae43f4f0e3c26de1e71ab1ab86337f31da797ac64b1948e66e0217

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