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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.559-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.559-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.559-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.559-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.559-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bb2b8463824c09f67963f0bb8f8e5a633da5f5183f3119c8b991dd274fe64f87
MD5 393c4d4c57a3d2d1d73f66b09845af2f
BLAKE2b-256 090f6de6eff496988a17722574f6a3c810532014420bf42e14417790d2ec834c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.559-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.559-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7ec48ac92f69a0074666882110b4db2313b3a6dd0d2e02f9bc0309a870a5f0d0
MD5 635fe1bc1c2980bc01b3428cdb997dea
BLAKE2b-256 9b7ab94c6ad5f2c3408ea12afeb6fe10a9e9a8d92201cfe989d497529d105c42

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.559-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.559-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aa815684539c370e5c1d2d9fc784e38ba5ea0f0abefa3b0c4ce85531c4dc0ef5
MD5 0dbd6c44f82544ee9db869e2c4cd6681
BLAKE2b-256 2b79abedfe44ea1ff90134ab4f44a12c7666a77c463c0e9a672c560ba289af67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.559-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 afe325448fd56947744e69e85f245db0dc87000d5b32738ed8b48cb5b00ebd70
MD5 271e4a77812d390912d852741ff7a944
BLAKE2b-256 6b4ff4d42d900f1aeb762ffc81e757f70a95712446946b4086ee5b40e42a828e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.559-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fdd29fef16024bf28f19126ac5f02f0224ffda7a1a4e6a963e7d44ad6da22efd
MD5 b15b310cd4fe5cacbe29af52dd1648cf
BLAKE2b-256 5afeba67769aabfc2e49d1cbb738455b3140f025072434f59a514896369aad3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.559-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.559-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b950048bc79dbd9a6ad225cf18c7a114d45a75db74a4fad939aba73afd6046cb
MD5 fbf277e521737d6171305ded7c1d101b
BLAKE2b-256 19abed7e09c4340cd0da02298b7f077bff10f0bb0b923fc15e5ee2721deeef1a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.559-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.559-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6c65a6925c7a4a1d96b3829646d5b811b162ae9a9b9313f71663d507fdc36487
MD5 fda0dd47802807ec6805acc6c5f1e5e5
BLAKE2b-256 efccb4afa1db04478bf649fc1b1f5dd04549a646af9dfe9cc1470d1cf48a6857

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.559-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 70265e2e91dae2eaf4a10969f9125e3ce3417feef0787ffb8553fe30da810786
MD5 18a25474aad8b0b478afdd27f0e92ee5
BLAKE2b-256 52076add4f5e7bc739af8c56d43240b7996ad35e86a7202046871f0e9dbdd7ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.559-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 72fa270842b283210b2f1abcd296fd9cc18e5c979352a1761e8345fc16df489b
MD5 f1871a2e3f56e2e106bbc7105cf8531f
BLAKE2b-256 0bc428c74f916f184cd8c85b9d318af1af7efd1ca7eead47fdecb6d5cbd8647c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.559-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.559-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 daf831dd15bacc7d9d5c5425068b76e61763ea5c5d214ac0947c15a466224c1f
MD5 4a3b5884974339b60bb7527b26ae227a
BLAKE2b-256 c69aceca46bb125e93c29b41ecc7ba3bf2fc23f85c9bec3a214308ffa55d86e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.559-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.559-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7df460a51f202819f0f8d11d9e5f2ca5a1a12a9a12595abca4e9a409a9635447
MD5 f8d0a77dc58fe7be128d9e567764b70e
BLAKE2b-256 6aa0bef53cf1a4d934e9711c6b2036faef8b065ca1eefb5a5401a5664dce0232

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.559-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 03e8918b31f94030833cde30eb493b2cc921573011b16b42b0d815dfa395101e
MD5 6901e6850f6560fc768ade946303d4df
BLAKE2b-256 df64f97189a67c46238af052ada1ad3abad8b6a346ac8a260bc9f6377e9c2de6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.559-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.559-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b05b826cac30e98c4e45a030745c45d9e3bef09ca5d97d8ec6c02b34b4e1f153
MD5 c7e1decb5182c98d22ae7a3c3ff4ecb5
BLAKE2b-256 8357083fe97a5fa5475bc91d012892f00a0a21a9ae364e4dba4162e6ef556d38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.559-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.559-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 98aa5dc259bab887d6b4b72b88302d3169c3023123421e6e412735c3f9d869b0
MD5 3314cebe8732eafec681a09253f5fda3
BLAKE2b-256 7afb9add3c361217f54b36dead00c44128fbddb018cadb834bd512e8ef986e83

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.559-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.559-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f200d2252370da6a1b6a4044ca9179079ffad9ac822742a266b1cc5a864d79c5
MD5 cb16680fcfeb327f3b69f6e285eab726
BLAKE2b-256 f61ba0cfd455c20cc6691715ef92ba220ed871c18ba94d0dec4558a4b06736c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.559-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29cadc4f2d427f86f6ba4d9c3bf5f5a72f4a62062bf65042f90e82b936cb4aa2
MD5 b27d352c6f020fecf278508fb6fbc1c1
BLAKE2b-256 182b6d99931389bd1c3aad7503fe6646405f5b6881daeab868198d4a3e4e8156

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.559-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.559-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e6b7c4e4f9eeb0143a71868ac882e105af0a22262ad1ed52fe8ba0615630f890
MD5 9de9199ba7f9910a353624f8bf6c17ff
BLAKE2b-256 b7bfcce764d42147183fb4d3069953e0ff3454536d99700c0e0ee52c103c91b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.559-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.559-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9bd1ca23416d4dd5d70d8b09a37f4f0be620490e602b8eede953e56023b05b86
MD5 4c7a78613760a636cc4c647a67a35351
BLAKE2b-256 5655bfc2c1edf322a2504aeab3104c0fdabb15a1e03e16b00bf0110198f64e7b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.559-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.559-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 106d3a0e5e1fa6b1facbeb2048146e0d2716add3c00c8db24940f0364a9b642b
MD5 6da14757f78b7b971553bfc7e38f0b6b
BLAKE2b-256 4b579c111f599efee50846334b048222cf342ec1ecfd82a395f0b23f5daec662

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.559-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 42b40401457900267d00236ecdee229cb41b2658fa5c81d06b12aa665bc4d40e
MD5 09f9e64da2fc7f4b9bbdb193319b7426
BLAKE2b-256 28094cac3a96b4f95d20d0dbd64b436fb24ed3cd0159e5065d385524a85c42b5

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