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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.479-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.479-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.479-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.479-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f50608a586d407ea7b90e45c2fa946b27f8254d679cfaa74c80697abfe295b7e
MD5 e098f9f65e98c997d33c62e5e3d44a7f
BLAKE2b-256 a51ca91aa42a12d0ff89a7d02b41ad7ee6a0e0b3806e8f7059242eca0bfdb085

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.479-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.479-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a4dd83b41fa4743a45861e68edbf69319fa0b4c5fae5f2540542e128a90cd03f
MD5 373f7769f309d0f810c670a9653a7745
BLAKE2b-256 e756f1b94436b9da18d532f442d93d0fb30fea3a9f87c90cfab584a84e8aee91

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.479-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.479-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 64b6a12508c43c4f8e9acc306916a7d35c541dfa7fe0d910828c57d5a5d35093
MD5 c66a60e066a81d021e4831477adccc88
BLAKE2b-256 f5c569ec1762b1369ba61bcb12e07dcaba5e8dc12faa926c4ec311a143286afd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.479-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b83f7b74871072c86f909eb144a4ef74a823400764cf73b5d1495c226e9cd413
MD5 623cca3c0e33bc810c25ad39c49cd03e
BLAKE2b-256 a280d378704f33a77da3e07f8d6e7163488be6982e81fd2b64b549eb6ae8b5e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.479-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fc2f28a0006cffbef77e0e5e491d2da725ec8ed047f67a5d0fa9beec68554158
MD5 3973a3b581ee3b5a78f4ae8e2ee5159f
BLAKE2b-256 b5aa451ff5aa164fad6e9097d1be5e19843624942de7fc82149e151022947ed1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.479-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.479-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7422ae0f88e810d982681b0fb185f68e7fad6b4edcbec8c6493c7b123509365e
MD5 c5492addfb7994cb4f1f83c47ac7c127
BLAKE2b-256 72bfc91c7f051c60b976edc5cbb2c81188e791166fdfa21a7068c409496bdef7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.479-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.479-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9ad4f353869e6e25bef0bce9e425eb04e0b6cfb6acecfc070efb5e0bceaa75a9
MD5 b69aeea3a5550a41c5afde8cb4ad3453
BLAKE2b-256 efa4b5f2c12314ff4aad002b9201d75b8ba90c95476dfb8646cf8253c5709c0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.479-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f0998e220d59529b175fc161963ff747d6f7a26020df10d7099da508b32753e
MD5 f1bab831f8db0c3253687926ed35f86c
BLAKE2b-256 6369f095d41aa1538f69da1f1b5748705cd2c95b799e1fe363d0f985026c5588

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.479-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3b2c786df24d9df545ee219245b0eb585cacfd18e6722482a739420557bd22ec
MD5 5133a941e09d315572ce150f49e66246
BLAKE2b-256 c85a9dd127980acff196ccee9846ea69ab7d65937b4eebe160964065f04616cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.479-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.479-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 87e41dc4dc6aad85e02d6cf87cd3b05e599bf87f47ff21b329907876f4b0c31b
MD5 57f16a5304d3c5c4c5e6ecb8a7a9ba2f
BLAKE2b-256 cb38e758d048087c3b9c28ee961ea958833e0a62bad59ff6590d323934b25880

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.479-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.479-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b450fc1e749ff9737e9661750f33bf31876dd85227dbc75fe1c711c7af1434f
MD5 b3aa4d1bbf562715e41a717adfaca5fc
BLAKE2b-256 e83f496bd31fb4eff953ffe54d78593b0acc06bb9391de26c2470892ac033b2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.479-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 084c18a541e2a4773e6687ec682bd23ae5ddcb3984c805f563fa0a0e06784cb4
MD5 574424536aa801bd6fb02cbb83eaa0fe
BLAKE2b-256 aa7ef74c786ba6511ad3277a0f71b261f48067b3d280e853bf2bf40e98012d3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.479-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.479-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a65842dc7d45af53e82e3b7127dd28343bb1b088e4313d6716796dbc0686dcc4
MD5 cbaad066e3cc22458c00f841fc4c1d23
BLAKE2b-256 773b05747a48fcee47d4901559abbbc03c6b0684525b80e3bc7fec5cbd5424d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.479-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.479-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f5e127540564cbfcb74a444c59a9813d88cb937c598bc9c41e4086781aa57a94
MD5 7096b5f94af0da3e52a1cffdb3fe0740
BLAKE2b-256 c5dc3c1835d2f61efe5368fa56c12a8b7d3f94a946a21a8a3fe7d4e7cfaef29a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.479-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.479-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cf2ba3d51385ef4adf971ea3b74329254b5bf8f98cdf55e56e10c4b8de0bed6d
MD5 dd64fddd6e3ab0ca2e5f94bf14344ddf
BLAKE2b-256 7b2617ef8c0f9f5d85901db4387360c60a155acd5e614ed2e949a4e732cb66d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.479-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8693dcefff59749582f87221fe5833a5cf0b2b7c1b2944daa91c078f52f160cd
MD5 165512ec55a8bd6287dd25a33c3a5c2d
BLAKE2b-256 2a90aec5887c39a97fc24941a06fe2b46deb3d472c5d184c2e32f34af39d51c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.479-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.479-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c15c903cc826960cc2ad3d9682df6ddba193772b9d867a67d2928c369b4c0a03
MD5 f8d0b2d43b625727f21d27c603b3ac37
BLAKE2b-256 c216d55f9c3dd6e85cc9b39b6e04b7d9b28ba12a23a2d4a98421508bb7bd91ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.479-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.479-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6ecf391408b6719faedb565826aa729e1ce60c4c347f3326b9b7710582a70c37
MD5 7200096b91c146d007ed817d187def7a
BLAKE2b-256 b5edde7b99de7e6ea20fbfa9be5f876fc5f6e302c36880f6c67eedb1c7f9c42d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.479-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.479-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 28fb2bfffcc115cb1875f5b7e21a67a26049edbfb583e20e4374e0717505dad5
MD5 a7a4c883af585c6322e27c75abf14a40
BLAKE2b-256 504e02a9f89ff295e4b8b27ca58de937c246cba08beac224e6e61cc3a9624643

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.479-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9000f75d97888e400fe764171423581ccebe56c3d88282999ba10296b2a38522
MD5 cc7adec4622e95462e9ada2855881f57
BLAKE2b-256 d69c03656eee25d90db6da3ed20e4ac44bba4238295786e28663ecf4ea7ac9f3

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