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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.836-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.836-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.836-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.836-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6df42504dbf187b8d9c218a9429871b8493c2d90a83e374ee35593a9d3c65cad
MD5 7a2c5e59570e5a0e02cc6a078995d5b5
BLAKE2b-256 b4a396e52844b666ba430f5182d275dfc18faccaa95ebb6afcc2837a9b23f4ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.836-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.836-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4ffacf4e13a456f3f537afe202c4b29466fc6fc35bd1e4e705c4629e8acbc7a0
MD5 647bb6264d5dd5d501092d02daeecf93
BLAKE2b-256 00f21d9b751249e1a886390837f6af74cddb6486e8ccfbd5f63151e2ef67591a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.836-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.836-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 97afb6931a31ad66250b49213bda0fe0b5e47f6cdeb01f585601d69cf20cd06d
MD5 ef69ead4cb1b8a5b9399eb0ee98b11b7
BLAKE2b-256 77aaab890406cfb2f105f85e92314e4ba8052148ce895e171e812b27a1f7dd0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.836-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d27738ad74a2d2878d839571e905c32e52b060315043f5116b180b7ab1b5ff71
MD5 a1e458ae5f184ed14f36a1b4d40baddc
BLAKE2b-256 3a19a9d4ad5187bb7a5ca332c7288afb08e2ee09caa75d5a355049f6968c5a76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.836-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 814746c826358f4e70670c5a278f70c6c7775b84e47e3a3a4cf4a2cdfc18213e
MD5 96f3e78c08997c230d6717d8a450d795
BLAKE2b-256 017243a6348f41ad1a22593b3843ec67b928b4177a5959ed6b9ef2db5520e933

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.836-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.836-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ac454df81f5135f5536bb4fc6c51eadc8ff3f6b983418662b2a0e60472a382da
MD5 41d94580ef7b83ffdb04c41cff5180f6
BLAKE2b-256 a8994d70004c6602d75df1b34f1d51735b72cd76482e4c9ac23a70b4c42aca99

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.836-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.836-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 71be98404d0d73048702aa21199a5e07060fa15a3479c933ec4ecb03e16ec943
MD5 a65afc8f8a1a510d5c6ed6eaa640d446
BLAKE2b-256 a88ba4e5af9b5b0c935dbd14e27e7811581bb4daa6a171e0bee219af2a45f458

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.836-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9398732610d6058c3e64878f99f8b47c92a827b840bded0359901bb1d4f06656
MD5 d1c2bb36f3d84800f45fee20d97acbd0
BLAKE2b-256 285f05438c9089a3dd942509800db9009e9538596d349d8fdb2de6d521642a20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.836-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 38e4b21dd793b0612e2a65f39785c33898b0ce06b8e32bd37db21662d100a4d1
MD5 71f4ffce04dec9e16dc831ff59b35c8e
BLAKE2b-256 bd01f01ca4e327a524f9afe941ac07bce2d12523eb1a25cd6883d5271cde549d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.836-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.836-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 da915b76c2c72f55e528b87bcf050f07ee38778384dc94ffc3945222feccc353
MD5 27311e4568bf57b88ec3806f47370025
BLAKE2b-256 a2e4035adcb5a2296c163e970c76223b34093393ab2336ef7331612af7ac16fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.836-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.836-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a36e2a5c0aa50270687df0c77f571b7fbc6819c7ef363cdd83e69bf21f85f260
MD5 a69d5adcc0fa9fc9452d1eb9822a5080
BLAKE2b-256 15b3d9ba163cbf3c9cc1d14e4f0d3abe9fb0d26da185199d39f0aab9082d6fdf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.836-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 085f98a6eabdb92972050f2c86085e666ef5877569d7537c5f650eb07be22f0e
MD5 922f704693fa1967ab89f96bf2594d7b
BLAKE2b-256 3d3a3aa89b3a1497e288c3dce800bb6bb1413ac732c3481e8d7fd50eb3660ab0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.836-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.836-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8d9fc1443f5281b2b50245eb41039aa7f7803538ec18cfb101a95def323e6fe7
MD5 412d32d1f69fc7019353c61b91291cfb
BLAKE2b-256 57ca1888245b67132cece5d8f07f8e932f92c8031a31f601b34de1b53e0116b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.836-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.836-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bf04a75b89daf380e491d1b359a4551209c4e7f8c9f3eb6cb7d5ad36f87ca3f5
MD5 58a1b48ec2b0ffc2b7744aa87b06cd19
BLAKE2b-256 353fe3017262d6a6fdf210bb96c1d483b0c51ba06586a4c9fa3e60d075a0d1d0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.836-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.836-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 49c98abd6c098d747fda6c790a7b7dcd91f0821ed00c81d3471e0e1b82dae438
MD5 10b9e06fc42b30ef8299212cf2779472
BLAKE2b-256 ffc16af8395099165bc0e9b308d3dc62aa4ac42321b49ad17f75116b310d536a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.836-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c478eb951cb0b8b7e65882b6a211d3e5ddbfead05523ae3882c27e1267bfafb0
MD5 4cb52b478fbb24a13116d63b3495f6ab
BLAKE2b-256 77fbff931a5b4b1191c11762fbc841d5accd63212aa835a60a4d917ba15feeea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.836-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.836-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 44148d29779a2f8ad30dba839612d9bf1da5630450876b523eff7f5c2c0edcd6
MD5 a78a586930fdaf0a1428f3d02189e6c1
BLAKE2b-256 1e1a9410866cf044f47e96ccb8a6b0219ef023c576bd5c1c3ff2be0e65086526

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.836-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.836-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 dbac96491b98f600ab1be76268625994528dc749f9544845b8b2b0e010bac6cb
MD5 74b4e5c4f9f198315d87d397b8e6dcc4
BLAKE2b-256 6bb7856fa21bdaa43e19b33f114cf5ac20c9ce5cf090974a092a9acb8c44021f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.836-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.836-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e84c3dd5bd5f004109b5a63584365874b7c6cdfc88a5a3a7560452d4aa653e71
MD5 0dbbaa0da794033339157b2ba847c201
BLAKE2b-256 1f97bb1218eb12cc98822e3d90f784f4138eb9c113b3a2a965fed46a3a816dd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.836-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8dcdf803c24cba14e6730870dcba3369ab2632c268e687ada69272c79476123
MD5 b33edcf3fe9077577811fbb8b39b8764
BLAKE2b-256 65762ea7bac4d02d87d83347b204d3c0eb963982fec74646af8ebf8ee6c62e5c

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