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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.525-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.525-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.525-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.525-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c205539c33a8188238a78e62b9a80506d5fa0016962283b8c4f31daaa9cdbfa5
MD5 07fa634431cf714f2fdb632017ce0140
BLAKE2b-256 6075cb518f121d1c6cf17dc6c2ffc7cc42936cb188a95ada04f55243098a4a50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.525-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.525-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c6b3a76116a5b750fbc5ace6dc680fbe40214cc63f019aad71d13eba5ba61efa
MD5 3dd8056ad783364e45c76ae150d08841
BLAKE2b-256 cf685638ccff64e63fd2de7ec2d42a350f1ceaec6f4b2338c45c4789a9d08062

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.525-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.525-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5ce71e8566dff82eda9cc8f65fe429c13c2fba1a2212f32c1db70bb47750a5c6
MD5 8f9e349a8007e1d64f7b698925ea085d
BLAKE2b-256 c110ff06e11c8ef7a3318e7b71052329fa944dc229a217315619f98ea928e76f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.525-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b70fdef5f127ea8355f5b1d9abf0e658834f59dd30f82d1fd9ccba3a6a01f062
MD5 2f1f0af3c581d45862d2f582b8e67c07
BLAKE2b-256 7ef16a1e09dfa7127aa7d09ef65cd6af300e504d9c38c1a93faf0934130cc844

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.525-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 87ea04c2e5c8c5fada247c2fdcf9a23ef85636f7848c5ff8dfdcbc8a7918045c
MD5 04ff5446360cf1b02f66f9741bca2bb2
BLAKE2b-256 0c042e405c76ce7e863d1e6bf98bd5ba2c1c0593618b31af8cbe37d1c2661990

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.525-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.525-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 94342abbdabbb68f782a91071a281a0c62a2a555359d1b1b977b9b4d05998168
MD5 3a5740f1cb3dd0aa90abac235f277720
BLAKE2b-256 4d82492a9ffa5376d5799ea2b10c5cae4e84e705c6b28264834a4509613227f0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.525-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.525-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3015c7438ab62597938493620b28290eced40192dd4bef2d0180b2a37e5e49e7
MD5 2d2a3f9fef5bca181b812e2b7b57079d
BLAKE2b-256 d3f8aeda0eec685c901c11f0edc205dea7f013219c153c38384b966e733120fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.525-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9ff32391b77c70a8c47de9b84b45e3a943602a6cca3a9a70a36d0a1c3ed0e85
MD5 f54de26a8acce99136ebfe1b484c025b
BLAKE2b-256 7e1239cd594c102975f8ce4a11c82cd3512dad878cd88287332f02a0bbfb3980

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.525-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 779931559ec8f651b9c5faffbc7f288d4257194130bfeab7fec0ae4883078080
MD5 7976cc4c7641e6ab52bed5c5b758d72d
BLAKE2b-256 c66770734d7f8690aacfc201011055c9fb558f0035311658a434716aa9d216c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.525-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.525-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 79cae7f42dfda39a943122fc230418ed2c996fefa71b9ca1ba6e0d6cc7bb1e12
MD5 d29102b6512a7658c08a95263598224d
BLAKE2b-256 ad5804675b3fc358a6ed937dac79bb6b89d7e0421341ce9966cd1923f5e690b2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.525-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.525-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aff07f36917f5c9302cfea040941eb7c68b04f495fbcd55884f66cd15cd3e7bb
MD5 ca0b1c0c6f5c5a4388c6d131912bcc26
BLAKE2b-256 0f5695584a533a40d3fe3518363900162a8139083d6ebd1c0de2bcc89d85c197

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.525-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8baa353447424caa3a0ff17566beabfafea2f2418e132b9bd95db1279ac2ea1
MD5 8930f3dd40ed02b2e12c502f4bed1583
BLAKE2b-256 709ca3e36ed1abb0e5c0b873e4bab826201a978a771057926b9222104648be70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.525-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.525-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5b4b014bea2e04b65da38b10d6c45ee483ee78b02b23236d431a18df0679ea89
MD5 8438194611bfaa2713c5e74d5c5ff492
BLAKE2b-256 bdc58c457db263b51959b321f1b5a9a921ac20d7219550bdebc3aeb33a69b4a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.525-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.525-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8bd46ae2def6ae39de90af6b1cf87b5527e2cdae7f1f3dd9e3d38740f59dca07
MD5 0075d2c8bf35be306bc725624ad7e2a0
BLAKE2b-256 1d2a0f063151303915119b72be1fc6c967b0f44ac5468e02afb99e01e29d99ff

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.525-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.525-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8cedb1a43fd1c239585edd3624693f162fff38f7a07f1df0967a845a93155d25
MD5 44a89fe6e4f710a81de744c53a5afbce
BLAKE2b-256 1fadaae6ea72fc7abbc7a0ebada6a4b91a170275f3c51a9b5247b7a85d09c6cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.525-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1aa578968604f00f33804c2cc91b128925aac3db50505146a9bbf71f7abdb23
MD5 4da7b420ddd10367b406ed99e6c6cac8
BLAKE2b-256 fac62fea531e1dfbb24efcd2833fa07de1b6c8ac0b125f1544d7ba52c04820ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.525-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.525-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 67c32bc11525d6d81e697d42a0d557caf35b64f4710bf6acdab0518a4fa08911
MD5 b2338f60150aea7c3c04115f15380355
BLAKE2b-256 b79cff54b5092dda26d129234ec7151a4d21baf02427f2c43dd2bbc9877ccc04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.525-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.525-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2d36880be2507c93584423a591f13b670c74ed1727bc8cea27654fb589ec379a
MD5 d1cfc21947cb87c9d5c4fb3bf0bc25f9
BLAKE2b-256 2d4c089e778f2444c9c65d04c5c7be182472e87ab39696d8720dd0c98bec74d5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.525-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.525-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c4bf09beacfc034785217f64007d8a8e08c77d9e69ed9507dd31f6a25ad4b732
MD5 97b67c2cb4cdf77d0318eeddfc86d4e1
BLAKE2b-256 e7e3a5313197a749acbcaf9372d2fde8ee265188a8d12565ffdeb8c340350d68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.525-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac563bf5fae50b01061a72f6fb6c4e7f78f58a1d0055686cdb1d8626cc1113c8
MD5 58a4fd39f5f3568bd0260b7aed7c696b
BLAKE2b-256 40655567855b5b6e0de2fdcef3f73693f9b4644aa118fc9cca269f9f6b2c528f

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