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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.752-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.752-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.752-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.752-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 516a5e452b81669bb7081c3e4700e265c6fdd91bb3fafd6abfd02a2b642a11f3
MD5 ffc17c01b41e8bd346dbcec535ea7243
BLAKE2b-256 cd860875c38639d9856335387dd8c04b0f12b891863594f7b930751a09ed5e6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.752-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.752-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d803395b4b98ec80cba9c412c53c335e828ff20ffae08a0a9ccf7f23c71f5293
MD5 9040a575f1a45fc389dcee75973d4716
BLAKE2b-256 81aacfc42ae26d0d65addb2620b520ab8d2a622a0f286980dbbc7cc503e9ed5c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.752-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.752-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8610d8c0ed33cac3fe80ee2136b53f06cc044517ff55c93993a50dd18f362b04
MD5 61ede64a8993f350700c71398589ce85
BLAKE2b-256 0be7523b8c99bedd05950c79107960005f7f7b932d37f2165e4542dbf2f12ae6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.752-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37e6afb1d900467a5b084ce2c215b005c6194499d118b9c391a3bad5c265f79b
MD5 f66f7d913a8a27986834e0dce43ac94f
BLAKE2b-256 f528ca8d21b38de1258f3cf0459befdd7c46d4ef97deba9b2cc909762a34d82a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.752-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 800a2ad614c55353a31021d765505837289f86bdbf233eccbf896f78bdf4e825
MD5 314fd9d8a37c58ed7cd9a8d9fd8ca213
BLAKE2b-256 c1059527e1b23929be23e593f4ebde0e29e4a39438d32f57739cf2bb9aae8ecf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.752-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.752-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 70eff7a2879b6dc8948b71a6ceb2c5b1d34ede4026e9ce17e933d7464be2f655
MD5 9e267e217c1b563d9a3093b3e4dadf2a
BLAKE2b-256 f88dc4342b57367c0333e510c29e25c25ef528f7bee0f72d62b54e4ceabbc8c5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.752-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.752-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f410fe63b80c7ee5ea8938c67fb92aeb99e9645b212faf2a8f3e3ed904262a8
MD5 d2c54c45dccbb2f14f82953be48c5e64
BLAKE2b-256 1c29dac84669f028a97b273e34e56229f1daee0fa4c6c948f6c21def06eb9266

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.752-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b04a276a42e8d84f03c168f2da9f22a75f633793dcf7247745b61504ea0d2e8e
MD5 1733debc0776a41551ad8ed74731029d
BLAKE2b-256 7710cc5d68968eb41768193d5fe3e171ece58b60ad328ce6ca615fed0cbaeab2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.752-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f5d315c0d839386d885f6eb62456c9339d5c591efca1953fc5b03cd606a69169
MD5 7b4fda405a837ca13f56b4f3a36a47b5
BLAKE2b-256 848da9b05e4cae69e26606c9cf38e7f709656d5be261010a9b2ec48cd01e7c59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.752-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.752-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 59f957010cc3fa35e4e1699f079a1ed0ce5a8a9e4f6bc0b5b2933a7745ecfaf7
MD5 140980cdd67fb0abf7b2262c7badca1c
BLAKE2b-256 b1e8933eb561ea06a648b3a1265405a1ac2a3ad920f9c38962d827125e40f2f8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.752-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.752-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1683a5cf2061436521f2bc25b230430feb1bfeb658732f4480aaffbe3f7e04a1
MD5 c99ae8f74fbcefa33d9d0c3198c72d82
BLAKE2b-256 a98fca82159c5f9be87a8c9f2ac193d0438b8dd2ed0ff533afb2c8f186b1aebf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.752-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8e9f3433cd7bf16b897e9badee8bce69a66cf60436574190a4258725e73eee7
MD5 3d45f5a1e7fb9827994e53995a3b2a97
BLAKE2b-256 ffb86a37a13fca34f34b0b7840b53dc635636e607f57148c2b38fa63765a5fe3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.752-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.752-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 800b2349ff026d8052f302eb661f38f14cd131da1aadc23828325b212783a933
MD5 118ab4ef158615600bb41839a10b9f36
BLAKE2b-256 7ffaedb09b55ef4b19d71c6d094e0ef592737dd5abab27973e692040909e4cd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.752-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.752-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0d344c4ec7b6e427089f70d279c0f3f6ad32d1a24cbc229166cac0a243211204
MD5 14353752dfb98f70d56123f2ff9c46ca
BLAKE2b-256 6882926fd5f46c25167f8a23d93bf496ca207118172c74ef682434f1f71723d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.752-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.752-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e01c2373c19982733d0be065dea91e01e180e054ab9c201dedc7ae3076ad00e4
MD5 fd43f9678821c9546119d8fb738e4ba1
BLAKE2b-256 1eeedba86db714f4d76b6acf8ca67908a146f7b76fcf8abf42db3780a02af3a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.752-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b05e570e51246eb5f4d07b2304e8c07a5fb04e4b4d1f4c36d2c37b3e0656d03b
MD5 ab8be4c0ee33381cc9d9c6f26306a5f8
BLAKE2b-256 86202a14f586298f71f2f7a59d682b3594346b98a3c9fc54a175c37349a94467

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.752-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.752-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8f5fe56fa8df46546f6fe2206944b3f20e6ebc938ef1e52072f14af1f708cd69
MD5 f8bfb18e5792b8a514d6925f39ed185f
BLAKE2b-256 f55a7466507a5235740a8d27d87fad85cdd1cf788805ede8905986b7d699d650

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.752-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.752-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a9b898ba334e2caef0bf88e3449001abc2c1917710928d1ebb42217e39969142
MD5 db40da4c1155059681d63f367d8ce756
BLAKE2b-256 c4a6a97a9bec033d174241bb6c91c77a185b0f6d1931dfce9c3f4c4f2207f0c2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.752-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.752-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ced8fa558f4f8893146bf2f3e308c940703a3f5c3d30e626e73cb039b25c5892
MD5 1cec3fda4f2b36fb8e826660015bc928
BLAKE2b-256 e87ae57c8f95e2ff88de58c24c826add67e2b1679a92f1c086af5527224886b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.752-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6793bc8a79132ed10e86b9389f6c2e9bb07a6a266a9327f9f26c2e7721279a5a
MD5 6d8715109f21bee3f7e02e05b4670135
BLAKE2b-256 547fa6781f4ea05f0f41c10547633c6be476ddee13c101155cc80c5845ca07db

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