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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.580-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.580-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.580-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.580-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c00ed38a7836da24ca725cb99561ca6ebf64c8fbe323b11a5cf7d5980f317ca2
MD5 f1245ede8152b209826314608e71ab7f
BLAKE2b-256 cf1e9b1bf47a2546fa2256989139b21c2f48439ed496b1f7752173ac88350686

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.580-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.580-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d49c4b0eccddd0dd91bd390f3f6ef22ab6b4ad5d4f2f43c2fb565f4d41838bf7
MD5 93cab8d150bd3b24313dc4db7fe33a16
BLAKE2b-256 013b9f8dcb88835238854a6bbd9e05b30b471595662e61045849a773168d7341

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.580-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.580-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b512ac759037d60a58c5caa6321725402362e23dbaf7cf99354b7dd68829fbb6
MD5 0260fbcadd267c2c7353df26dcc2039f
BLAKE2b-256 9839c937675eebd427641a3326ada1e6a4fef868173d06b7a510731d8f8ec56b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.580-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 be805e61900ca26f20052a64c74763afbdc2e09ba24b2a982a66e3f6e1744a7a
MD5 9593ed18e4e5a04a051a50c8e6d381d7
BLAKE2b-256 25c262dad78c1eb31840acfaad99edcc97f73504ca61ba0ac28b478495fa782f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.580-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 37786964627e96de44648c1834662b670b75f1568512319f5903e9a9c312acec
MD5 41cdc31ba7720ccdc3ee1c3039abcc34
BLAKE2b-256 a1ddec96c22425add474715e870a93163b26774fe78e71c6779dadebe2617568

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.580-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.580-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9fd82c42b6724067119baa9afd90a33a48844dc9b4e6a8e84f93c1f3c325f9b8
MD5 06a21fa7502b22b42fe7ddb085f6ac0a
BLAKE2b-256 907057c79288900abd7d61a58e2ebd7c9d59193784b8804dd8ca7c6883a6b3f4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.580-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.580-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 909821f002cfc42107437b3946bc9ede8f9dc418d2bcc7fdfa239ca91f22ba0b
MD5 5757089a6803d056a57687d8cb37866d
BLAKE2b-256 0b7e8018f9eaa9063fb01899d9eac17f47c957e57742a9bf38719e49afff74bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.580-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e01db5f4bfa8256047e5fc3250be2bd79342da8b4c02afdc615175044576dacd
MD5 e2d6b0c69e67156ef920207c20007060
BLAKE2b-256 4be2e3d6d98b4bcf3c045cd06e3b5bb3b37869246433e1c72ba5dc27c08d06d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.580-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d83a00433a195ffb96626667c24aa922ad14b0f722e8964bc06cf141875979a0
MD5 fb72215bd53aa02144d2697bc19b63bc
BLAKE2b-256 eb25a38165a9d016db71133151d3f5b57ec2c9a92a92323e0bb0595d920ff604

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.580-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.580-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c7e13df8320b136e7243cac7ac32d571a8378ce8da781e962c89eacfac362ff0
MD5 87dfa426534f920f541e751cd59f0f33
BLAKE2b-256 a6eceda6acfdcb5abdf93e32277bde9fd54506d5372826040d8e5632b37886d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.580-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.580-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 21a45e7ac8c387b30a13e39188820608f9f94802d93693cbd3f7c206b0b457dd
MD5 99d570d693a0dc078bdec75136a6b0d9
BLAKE2b-256 74bc5f5f6aeff1e653540ca17c9f9470e7f3342cd9edfc4e07191db19e12dc2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.580-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 10c8cf18126266be1bf80356682729ee89ed884722aa6ac685c0f4d1d934ac27
MD5 6082ea0bcf585a181a14caa4f9101859
BLAKE2b-256 9097bb1e95f6b55b51233ad42eef8253f4b0743df64b795df6db88df02675232

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.580-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.580-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f4771a9a3d330dcda949d3d3a7a7d42231fcf4bf9af1b161be6e6c126ef92633
MD5 982154a58176619c85907262fb73b07f
BLAKE2b-256 249c40b093edb73fd46a17995be96c33d8847965d3815488efb021c501dc572c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.580-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.580-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9420d21581a8cde0267e4fb00128d185c3783d4699c48a34d68f2a8d29d1b923
MD5 3d48fe1126b19e23ec4ec55ed71767af
BLAKE2b-256 cbee0e8da49cd4d24e69e1522c18c1d41d9a1f1e20debffc7858603918537473

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.580-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.580-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ee65da4b77f356f34ffff121d65c52ab959cf528a2120e4b045d14a2693181d4
MD5 dee734d54a9b8758d17f5ef74f501588
BLAKE2b-256 e08e28866d023a7c0e1accfda9f437f2df41d0369e1cc3317439c4e1c17fd28e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.580-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a6373895b31b53a9880ef5508514d8a58da2c658154e5a1d5cc6a801c2c6734
MD5 6758d555bb52fc60925271e380f2a0af
BLAKE2b-256 e701529cd5a7e308f46b7ba9bb8d0843ef2b749bcc7d0079b9eb0a1b38c36165

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.580-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.580-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1ac13ae3f07fc65894f83e7fd1c2f799d6f53a3b7eb370b5db2087c478bd038c
MD5 33d6a196462cc890df3fb0f90168504c
BLAKE2b-256 2374a16d7c4cbd17ef5cda4096052714c5625fb6d0bc626105952d6d3a1c3417

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.580-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.580-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 356d5e9e67363dbad5a71ec2592ed7b6658d590e961e27d8a334ebb5a8864b15
MD5 24e45ba032c46c05b6b3f925479a700c
BLAKE2b-256 c9cb8005f7426ec0d313e0f9691f7701d2f85e6c6c56f6c4d58b73f4f8860079

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.580-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.580-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8afb8f30837ff94d85dee76445d5c9aa6fa90ff82dc3083b572df7cf5ef2e696
MD5 c616626ab33f0ff91896b80ee9fc21ff
BLAKE2b-256 a73586227de3c691b0cedaaad29279f5d3290a2c62c0327790dc652db75fda09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.580-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16c9c739fa8245aef3782ebdc1d555da63958248500750b47037f8266bf7db65
MD5 17f440bc9cf8ff27b9b3cbd520265f43
BLAKE2b-256 72aafc7ce9cd593c58a656073f2ce87d11aa8bbc7a82dd8e0eb59a63f6cb4354

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