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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.95-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.95-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.95-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.95-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.95-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.95-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.95-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9e1feaf85b16ad61500f7f0d12b14678036e7f0ccdc473f67a85fddf598305bd
MD5 c42c80cf932bcc54e9391a8de1fbc14d
BLAKE2b-256 36ca5cb74941a2578faca3d1c6fa9739c3581dd3662d0ccd975a5efd3cc0c967

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.95-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.95-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6a7ae184c43f807c29fd6bd611e45e5dfa15fa252a0927f8cc35b03b77a32279
MD5 18e230c4e185ad8d9a0a36767c1a79b4
BLAKE2b-256 216e0e08695bbe137146592ae0f44ec4c856ea12fab64469f3cd2d85a619eea1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.95-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.95-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1c2b09b624ec081bed0ddf0defa63fe0081bd47629fe64ad028acf430c3addd1
MD5 32bce8c501abcf661e0b09bbc5716cad
BLAKE2b-256 db4ec344b9a6f2743182e67af0c3b22bb44fcd8b519ea7f0b0b95715b241232e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.95-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b320e38820bb47a34cb630409eddcce98d62aea1c914d3b6cbec67320c2b84e
MD5 1bb1316a7c7befda68a00f4aeee78a7f
BLAKE2b-256 10064ffe66e0839ed7f0fc273a63444560100faea62aa67b56dd2ae1d6799c0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.95-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.95-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1497667145c7702d92a6380186d684aad1192c4a5a06d25f8ea468444e5b1b7e
MD5 7fb6d1ba032bfc2f9a627995386dd64c
BLAKE2b-256 c2f026039a3f40a9ef4bd01ac88d924850ba094bff836ee61f9f5bd86d10ff49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.95-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.95-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 75e87bd364f7368b9a061b3eea2cf459554ea4a86919bac42e353a5a1cb95288
MD5 af17018ce137e6320e04f4013f3fa556
BLAKE2b-256 66c05128ccac165e09eb1d7b4a310b57dc2ab01a3d6395b69337a689edf5d3c4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.95-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.95-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73fb55fefc7116219175f4204aa8d2018c02da11e2f4626c3017318f01284ffc
MD5 aca490b06e8870c2210a77654b065556
BLAKE2b-256 2eb137c310699a6f19ea0539bfb5ac3d985616f00ed80275a7898cc0d74fa353

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.95-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f029e648b3b153edfa4aeeee857f6fba47e6acac2d71f2bf1ebae5648fa9860a
MD5 8677921ad2e9ddfec3b816665b5ee14e
BLAKE2b-256 46a835a03d6661ec9a7b4d4f174990b3591be8034275fc64d77c47b282779d99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.95-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.95-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 31190a497a98be8436f486958f03b5e641378b0b2ab188d9f3ea4ee3d43e81eb
MD5 b20619e9159229ca549c31c0a904ef80
BLAKE2b-256 935acfca53cb14ac89e3b6acbaf80660a2baa11b4d2956b33a976c776628ce43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.95-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.95-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 00293634f4c088ec6af51bd2783ea111eb615ed4db0771ec5bd7862f64557709
MD5 3b11ffebc146deb17cd7117dbbcb3eef
BLAKE2b-256 b757fe0ce4e09bb7bcc58ae40737e8e33c13478c5116a216e1592c8b052a3c17

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.95-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.95-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c0059853f743d7a11ceabaa1f894dddd9b6b302b8e566a2e78f4cb7bbb56c20
MD5 cd109c6c5081402cfbeebbfdbf2baafc
BLAKE2b-256 04847997640da1d6b4c50498a1ad3cebd3cabeb79d032739811496a92fd4b717

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.95-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c49d72927ec1715835bd2352f6088fed2060746ebc1362a1c9376591604a242c
MD5 737cee427c6f12e14be238a094b43a72
BLAKE2b-256 8ea3d1faf8916b51fd60577b7271b82b81d6b5327727fb6c36ae64ed6fb4d5fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.95-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.95-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b096c56d37a43d5d4b2fc11e479a67b070f837ab0c511a3d336cd2f697ea93d7
MD5 3d763de15800de2adafa3e0b004005c1
BLAKE2b-256 e5b713c90ef75456141d15f1dd2798da3628978d9395daf05cab3df08d41feb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.95-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.95-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 283d8c629765b2d3df6c7d4dc44f2181b745da901870b59774bdcb66135acb60
MD5 0584c4588fd84fb6d85e3a4ea5d85d18
BLAKE2b-256 894fea4b7bc5f98a306f6ba89b9d331bd158a8b6f05e3b0f8dea581bd5bf947e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.95-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.95-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9c409782802658e02e2dce1e102b539dff5fd765a67775f1e1283d364a53b535
MD5 a4e604a6c9f7f756d899b8ee479d9b5b
BLAKE2b-256 c50be266f6fe0130ad0528642c470e8a8a69b4102e00c1c0e540f61b1b38bf4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.95-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e14b5fa441b50d11983cd5078635c4a951cdc2d4c27fc8520052d4e904c2cdc9
MD5 85eefd230c587a3d47c6e5960854703e
BLAKE2b-256 b33c3625aa57567ad26d4ed81710db9a743295abf21fd34aa356333f7ba0ca15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.95-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.95-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e45559a8179b08ed84861b4c5c6a9d579c319ac2a3d0798847b0e1c257681f83
MD5 5793753a6c49c19058fa33e972147845
BLAKE2b-256 c2b10ed506dd4cb06a4c6ae842ff8e89c2dde777097a6d5f674f4a70995b07e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.95-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.95-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b00d59a9f6b7ce23d5bd6af0ce788ae9c539e5e8beca91537a5c4a61bfbc9092
MD5 6629a5ee23f406acdcb11d4a48c6273a
BLAKE2b-256 66e0a7173ecb7dcdb875e3484edc6649082f559145950a0bbb75d968a4fb799f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.95-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.95-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e58548085c84d76fba9a074f8c3e60d6dc3db089355c428ef7d68a9315b7a1e4
MD5 6894c0c03c1d515e4cfd4d7216602427
BLAKE2b-256 16342c2efd6c572268f7a23e91ff8dd1e8ecc30176da89db7f6ff479784e799f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.95-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db49f40869b4b9678c2b2cbeac3a9fcec4c5be329993d6a248e4e3aad5526af5
MD5 df7b396e97f19ea7802ae042e7b464e4
BLAKE2b-256 a8d3b923bfaf6a30098e7f1c12fe16bb094fe5eb469bb9d8959f2521c73e40e8

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