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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.800-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.800-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.800-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.800-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5d3eebbbaa78ab7fb5ac9de7ab2779ab7e1901446937b95daa8b284dfd8d1380
MD5 ee326acea68b7d58cf2a801b68a15e20
BLAKE2b-256 3c525ae8f6c3e18d7f1de86623026b6c74995c9b68808f87f53b370b32616cc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.800-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.800-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f32d2ef5055dcaea415fdd64dd5424c259d5ea87e3e6c669a153463aae46fd8a
MD5 f3043e87b8d90aaf39cdf9c7b942b7c2
BLAKE2b-256 252d78f5cdf827e78c93adcb9fa8a488fd11aeeb7f52ec125c57b3ac09e761c0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.800-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.800-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d49511212d8b2a0d632a2d1e8d4d3cb3eba1a375cd2c829e604bcd297394e28
MD5 86507136a92872ea489ccbd945229a3a
BLAKE2b-256 e7080000da40cce264ee924bf55c7b05cf9d73d3d1655af0261d9a98c2cc7eca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.800-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1227d254a6d48e98df868f0e8eacace780c422eb139798bd0591553469519c41
MD5 07245dafb4fb25cdf37d0d45b96cf9eb
BLAKE2b-256 dbfc138d0499de0de23fe68c2a96c0a05e4b05b090606041e15037a69a9c1bc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.800-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8cd32dcafbd5fc367e51281c27d64172eb2e27a5fa7cbec21b9f3f6d3f25183e
MD5 288b8e1340a899d4b46a713d2c71bc58
BLAKE2b-256 6bb50478bb0c5924477641a467a691291a5041f978a15a4b572ae58a87b96d9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.800-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.800-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 af7892d5199e2c6582a4bb2af132058fecc35afb186b0f1c7b6ec60d289d2252
MD5 5de5c8f68fadcc4b7d638eefc91f35dc
BLAKE2b-256 b39739fa9d793c6f07e775edcdb9297835b6af2e8c07faf7004496472ab6ec07

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.800-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.800-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e422177ba1ab139edbbd997fedfdc32676e1fa0f779229fa02d630fe5e434206
MD5 d5f3db6909f92791509963d72c691e98
BLAKE2b-256 88cdeee1bc721753539d960e65b2bb1e92e2c7f83eaa6a067bfbb099ad35f9fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.800-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec62a3d030890827d4d5ba7d0691722ce7fb07c8459869cff80d61b32c3ddcae
MD5 45025487b8f668600cc439886dc02028
BLAKE2b-256 801d9ec16626233690b212071bc82500ca2593221942b423ece0557f33513e92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.800-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dbb40105575e61b7b2842872e28ebf5f9a622acb4f3e5dd9251488b212bf13d8
MD5 d52af23de79ae4c80d4300554b4f1e94
BLAKE2b-256 8a5e1e5e76c109e67b6fe08747ace4ac5abffb713b88fc5f4bd0812186f7dcef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.800-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.800-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 08efcaf28abfee14f96a98799a5c5634dc9035c4bbd26dd8507e48a20dcd9dcd
MD5 65cf8cd3ea59d5d0d800547d9e7f0bc2
BLAKE2b-256 96707968d9b9422e44feeee9a3816492950982e167bee003ca9559eb8633d8b8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.800-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.800-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e7041d12c10a0d54aaed1bf9240300031ee8a1110cdfbe2a778140fcf5a16090
MD5 be5e66858fad310041079857916ddb6c
BLAKE2b-256 493215552509aa6c1ce0a5722d6726eb1b518f33a9783d24a6ee03bbd5a3f25e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.800-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37fd4486a9912e5201cb43b01d30d2ef928e11de144ace05c4b8fd7d6dd13820
MD5 833912397bdcc6240f9862d34fc3e917
BLAKE2b-256 e6a9dca132fc52af437d3e7e71da0543a68f5b821faea061cb61fa52d7e1f8f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.800-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.800-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 28bd403378e424ff2e866a01177a73121a157b540ff0d683942caf3d27e4bf51
MD5 90ee03078d695adef4499d2b56bfec7a
BLAKE2b-256 dc5530860932ddb523517333d65782acb0b1f8cc6efc52d0b5690be5397556a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.800-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.800-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 025c9c1aad5c7e7f95f39cb2df1e1da65859e4ac11c972551391c153a30530ef
MD5 bd32779bcc471721ba7158b20b81be20
BLAKE2b-256 21c219f62b84a9be090ff17333818e9e129cdae84ed4a29fb2118539a9ec38c6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.800-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.800-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d0b0df825ee9a96cb5c1064875a42bb496e7f8a399ff7abc5bcd78b2d7ba3c4d
MD5 20e851684f49aadb0afe08e443c9a5db
BLAKE2b-256 dd2dd6bfd563e70dd48101e15847cccf47bda26b5e557cc6447fdc5f8d3d5877

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.800-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4f9bae3306197b62ec39a2b5548657dfe9f7c60f993f941b42fe4496847f66f6
MD5 e5c329ed5875626e88a1b2448e2dafcb
BLAKE2b-256 0b8300c5e1d7a68bce5f5901292c0b941ff441a3f5823b22d24970752262325d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.800-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.800-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8a3ec9ca7fc233fcef31695cbba52cedd271758f293b06d83e182bf8abcb3441
MD5 f9cc198e38a6db0a0b272c146eb4c20d
BLAKE2b-256 ca0c33a23d94c56cea6bfcbfd19f40b3c480118fbcee5f1df47a0f70033db4f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.800-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.800-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 da2d556a6395a6b4e46a70366837e95583d45420399c2eebc918e5fe322c43a8
MD5 065825a5649f969d79c843c4d8bc358c
BLAKE2b-256 195e579f1c8f88fecf3b75621f354c76bd4691a4bc17a1e1d64a23a1d62580e1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.800-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.800-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1b3fc58200bfc6d969e08343a8df0827c7ae547dcbe51a3929c38f21b166a650
MD5 7754d527b0c7f2350a23bdb1bd901d6e
BLAKE2b-256 2a3722ee123be3a553a343c38f2b8fca5d86b934a2b8929806dc77101c6f6d33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.800-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b87fc846e3c34d61a03850e0b29827ce8d5595b8888654905a28429471b1333e
MD5 df7f796afbbcee92062bef7e0a2e34c1
BLAKE2b-256 a857f40ba2377cd090a3907008c5c13658a04d2634d50aa25cee7b04b7c70c77

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