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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.969-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.969-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.969-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.969-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a87186221bfac557511a41614a64dc93daa6097ccda93122c4b4dbc4d5835ef7
MD5 b16dd33588ef1f179217e3a2657ef329
BLAKE2b-256 ece8160cebb4ec2f56b7b352a63084143165f7721a87d5cfe3da671a8bd5d33d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.969-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.969-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3c7f74257c1dbdf1800cacf4d71e85767ddf1c918ac27ae44d4e326dcae5d97f
MD5 ab9c9a9931eb902724f19e61a4913c37
BLAKE2b-256 d66c37162d499966fc077b8ef4cac3896e910d700d8f069ae889aebd9d3d76de

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.969-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.969-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bce8fdb6e28df77377a581e6e8557f5a665d43ab34b91f65cd45fc017b3f8397
MD5 0f011f3dda6b21f17b82686048035a4e
BLAKE2b-256 0b9cc3fc3ee310e7fd7c03c5591ead61fca4483ab7f5a74ec5e16fd59da469ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.969-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9becdb76e8aa7dd1af9faf3f4b66e190ce899f8b772c46667d1ee917c08c50d6
MD5 eb014d6d4617b835450007e01789d08b
BLAKE2b-256 5eef43bb04ee674cf9f54c479921d3d85d9e3ca7d65d04351eeb375acb65d376

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.969-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e8c1935923b0a6aee06f086a17a2358641925d56bde5e3ab21e52d6941cffc3d
MD5 993979677e94e79df532342abcca63b8
BLAKE2b-256 34043aa38556ffa093f5f090128afede76f42e9befaff42e5dd687c0fbf46a69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.969-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.969-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4556a9f915f501e25e57b70fcfefbf357875f61d03b3ab557282ac60f6a91850
MD5 d3b6f3fac9f4803fa96e913ae116ff62
BLAKE2b-256 38015ef702400003c38857e9bbb36bf33e6cd1163f6e57c9b0a9b48515f1abca

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.969-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.969-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a59cc7f6a9888720bb031f4afe562b9f7e3d4bb2a534b93e0d4a91460f08ac98
MD5 5e2fed6329a5552599e9120fd4073ccb
BLAKE2b-256 b595e0b0bc10da33434fc34c91814d71602bf67377ee2daae58f73ae7a1f7ade

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.969-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f05f6ac31131c57d3bd384c8fa2da4ec03fbb0949495a0292305123f2f77fdaa
MD5 70a50f47ab7aedf2fb31fc8b23b110c8
BLAKE2b-256 a6f5b9e8ab20285b339429eaeadc32b3601278b95c8313b2fa0be932499103c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.969-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a9221f4270240118b52460aecdd0d535248fc73fc4af4f1cd6cf92a319fee9ab
MD5 ec74d2953e8de4068421bedcc0c5f29a
BLAKE2b-256 c0a50b4b926cf597dd1fcd7deed4fe851ed085a553c55cf4c6b980489ac4ad42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.969-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.969-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 beb34da73e943488b5e5bb808bb6a1ef882aade0f16a1c7f8c8fe4305491aecb
MD5 218c76e9d1a48585be94a613a48c585a
BLAKE2b-256 243b41fb021760a0a84ccebc79f2cfe87d8fbf61090e31830762264385806452

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.969-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.969-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e8d764d56ec36714a7a41604ed0c1503f09f4be7afe8fbeeb195efbe22c42c7d
MD5 7a421ad1cad814309179dc4136113eb7
BLAKE2b-256 6df93cc5e6a61d12e77807883c412f4306b24f069b2cab4d724e6503dc2d01a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.969-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4cff2ec27ad3eedd30f72550635eb654457b1c7efc4a851b2e3054c1c96ecb28
MD5 27286b236c9237ae6d31431517e1bb6d
BLAKE2b-256 62500615094cc3e6e06b6e59e75e236576d3d7740350fde2507bce398c48edbe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.969-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.969-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e2147312d5aa702caf2e1b815f641b143a2e23db94c1dae40370a801a3287c05
MD5 7f1f4da2b50c87a9405e6909e81b976f
BLAKE2b-256 d8ded4c3529e3da5663d3c2e7cbcf4149af7050ce9037fc098d8e519c5ca1376

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.969-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.969-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9e1f8fcc87e3107b18c9f1f92b86f9b67f51b488596f55b16d372c57d7bd9b88
MD5 01e5b5ddee227a02a169114484437ca3
BLAKE2b-256 eee352b856492975d8ad920a058d3479fde4b89fa683b905740240baaa4fca5a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.969-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.969-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cb57a217ae9d1f3a654f43d581c3ba9b08fb6dd5601f52f8f0a65f02ed7d3e84
MD5 1dc639779cff13d8ecbfa327c781cd86
BLAKE2b-256 77b1af4577f86cb00cffb22fa787f0360c50856a83aa021203faf330b82d862a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.969-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27fc37b8b5250f3d2be9a7569835f4709076e50ba501f858b8c39b00460e97dd
MD5 8fc513f21320d13eb8c74a79b9e321c0
BLAKE2b-256 4f62417566694a4064f368201cf84e40becd821cac0bbab004194d767ab5aad0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.969-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.969-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f812a8527dca9582ae4a82a12c0c83b2d8570b75ab32ba5751b657a5f668ec99
MD5 c20a87b375c646bb9daa139a66a48c4c
BLAKE2b-256 433308b02ee449c31f4d1517c6e529f0dfa83ecf984cc6f5f0e92848aa9785a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.969-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.969-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a5824e17ecddf3de27215ef0c001f39eb808b3fabcc791f79d3ade3c7b7c234f
MD5 67c1527a9f0230b0acb4efea7cdd4308
BLAKE2b-256 f34fa11df91f143a51d1c551cdd5046f34324604640df340cc30d967c6cd2791

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.969-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.969-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0ddcd6e094dd4dfaf8c263d98c45bd01f1d1656ab93bf38041f6d40eae25e25a
MD5 4289bdc025602923e7e9609bc037c21f
BLAKE2b-256 c73d88168353738b38067331ac2ba88c68f912879e2c606a4a1642866940956a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.969-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db69ce5420fa37aef2e6b45b1b709cec47446b3ce4314f9f78b0035259f90123
MD5 6aedf867c70ae3a51387c863dac8fa11
BLAKE2b-256 ae5c3a4413d3c88829084a80d5c1f972ecc082dce125eceb275f801d4da8322d

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