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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.43-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.43-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.43-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.43-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.43-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.43-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.43-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.43-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.43-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.43-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.43-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.43-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.43-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.43-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.43-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.43-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.43-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.43-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.43-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.43-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.43-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4.43-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c0a97b963f4adca38bdacfc5b77ec0c0ea096b887d14c84f6d92b9ca98716d93
MD5 7d39b816b896e2c76968db14f80ab487
BLAKE2b-256 f4fa142fd281b9c8759190a0375d643faec31aa26c4e5512b0998d5e0b2bc334

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.43-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.43-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2343b61f258f9c4db720ae9f4df32e5af479d256293cf8154af510797d36dff6
MD5 84316798238cda6bf7f4296064695665
BLAKE2b-256 cdf35f45204981a2021902f5c9e6a7edb97e2390ade90c05bc84fbbfa1068788

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.43-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.4.43-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20a64dfe7b408a12cc0cf636f2a17fff6aae5afacc7d5ed0b2a406048a08057f
MD5 a0819637e0bfa7b3d12da7e9868e6b38
BLAKE2b-256 1fa88832c1ce1ac09bda127959e36d31545104f97696e282504fe4c65dae1b16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.43-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b40c7da1fd70306f39889e2e46a0099339509dc6fea30d94f8e19f4a4f75d4cb
MD5 3617a8f3ae7f90196a3c0cb42230a8d6
BLAKE2b-256 f1394896db7de2feac31a86401535a592e649e0502f558db92330d5ff312f24e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.43-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.43-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 80031fa5b710c95567dbfe30b34961a2cfdc188929d58ae1e779657bf94682a9
MD5 fa9645dc4d3db0fa1d1b6d4f63c4b9d2
BLAKE2b-256 9957650c7512bf5639d99b3f3417b4c4bc2bdadc4ec4ccd5ef8fc362217adefb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.43-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.43-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 99e65aa9253a3e69edbd653ccbdae2582ee65674bf71de07c14c5ee90c5c3da3
MD5 40ef452c44ce00a68da9643e86820e5f
BLAKE2b-256 02bc7bd9d55fa06ed06b8656f84d6233432a4009e8c798d7d1b369434aa32006

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.43-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.4.43-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 de5f33bd1446639efdb2997d9f3aeb9b334a27e0f65b9d74a0766b45e08a8f62
MD5 610ff7f170b2c8200178d6eff3ad6148
BLAKE2b-256 19269430b34aaad950de3e6e2a9a394b19c542797cf893758070090f9e309c17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.43-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a61e451b364d33b95659958bdc57271f2da5908df1a2b6a5b8cc9a0eb0391e5a
MD5 05210e9fa47226edfadbaa6739835261
BLAKE2b-256 281687a441470294f9c387813d0140a71d6183f93b212a335c9ded3ec320b21e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.43-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.43-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0ee65729c2779a9470f4f56df5cba5a4f961418a077b158e343d4b6a03601ca4
MD5 4b0a3e57ecc6997b5e397826e7003abb
BLAKE2b-256 1694cdb6cecef976a45621b0ad0cbb574da8da8f28bc78a10607fb18e492e947

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.43-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.43-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2a43ad1521acf5dadccc89b63e2219f2b97c1fc74ed71812b22c3efafabcb72f
MD5 9a3b01c416723418c08d0e8792a8b33b
BLAKE2b-256 a9b2a7d35415a5168ab368ded323163fd5b64ff878c309b803f39d22b269eaf1

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.43-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.4.43-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d51e724ca8de3946a02f4f96234dcedd5f53ba53580f7b5e47a709d87ec3ad1d
MD5 f2c2dce63a3814b4692d4279ffe70d01
BLAKE2b-256 b106cf81dd7469290429421d95d8ae5b44933b2b32ee5a1f57d511240ed20d96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.43-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f7ed6dd0e1ed96c59adf80174dceee3fcf33cba2c674ad13049b98b08933e2a
MD5 9b3921926c2c3ab3de5ded0b361403ab
BLAKE2b-256 9bb673faf03f123343818f1ecaae1840f82564ed346710acadc23bd31e6a0193

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.43-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.43-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1d198c34d8691d22ee5acd7ce36d0ea27529ab4a36eca2192ba80cfece66e430
MD5 85567e38bae7bd4a553856c6a900c8f6
BLAKE2b-256 98d1ab2a4849b8e1011e8540f341560f8c3997e5008055e569ae04766ecfbc26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.43-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.43-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9387c4ff56224726ec5f619403ace99f33ce4e86cf2340de2c58d1d296078d34
MD5 802e97e886f9209bcd3ab4dc8fe7f523
BLAKE2b-256 b4d61d917071e5aba685ca2994f4568409ad8988f5ed6ef14577c18e8bb88866

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.43-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.4.43-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f36681a9d9f2293cb051b333e843c4df7af5636bfc01d2390c9e05c3429c4192
MD5 0368bc18b1c7197bf6cea31587e404c2
BLAKE2b-256 742a604db7837c2c1225adbe4978d4b9e80568aaa0a6636ef8e965fefe0eee91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.43-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bfbe6ab8b7a52e8d5d56c288a854dccfa508561f2534d2190de36402929fdb60
MD5 517ba283b54c9302b317c614b80e98eb
BLAKE2b-256 72748072a54b27400752138c2f50fb007dd1e8ad7c7f262efa4a811c35021a42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.43-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.43-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c7c53a05a2c6188d8923a72d8099e95b2382158cd7084e09939179235a15f4fe
MD5 9406db467e4ed133991bb450e0f6ddc7
BLAKE2b-256 6e11b996603815d736fee1905565f1019a2b0249e60e9acb512fd9b254b72f87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.43-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.43-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f33a2e5788cbc607af11dc82f8e187ba12a1cb5696790c4ba6c081c57dfbfc83
MD5 b9356e21263578ce33d9eb43a27a6491
BLAKE2b-256 bc84bac0186b3bdaf1a21ab802a11d440d180a93f212ee9ce8edaca2a74b3fef

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.43-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.4.43-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 276f8da6b9536ea5070fa4efcfb861a9dd80547d1f5cd8f2d39e98216b907692
MD5 baa58668e063a34b6f3726854bc8f414
BLAKE2b-256 c8a3fc7bc0b2512077458424999f258271a96916824ec7b732faf593b6b39ef1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.43-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec5dd0fbdae7498bb35f7a4c78b30b043449f50c7ee96d004f511cd340720f34
MD5 a6711a42ea8d7d1b938e544d8126f03c
BLAKE2b-256 b1a895edddc4212cf4135ee6964f6ccaf2e4d658927d5d52d8281afdd13051b3

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