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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.483-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.483-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.483-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.483-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8fd25c644ea9c396357dbcaed31cb95cff7047cc2e809b9480db1fe8b0e4ded0
MD5 9f49101b7df48d0f92e715599cb0f604
BLAKE2b-256 e1ea41a734d7bb15d6b9b7695182a29a68b638d26593ae915c5d58cfbfb857a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.483-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.483-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f7070e399101c540af66f750e47ce61829c0b582644a83f21b36d275bd2d71ec
MD5 507ee21708dc36b4d7aee4a19fc4cf50
BLAKE2b-256 21a5c24b77155f1475094dd5d2e8c057902f05c6d7feb91f167331aeeb66ad43

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.483-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.483-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e86ae04a8c9781c43b6aa794fc145c2068e46df818ffeaf82fbb3eeb0bd609f4
MD5 eb34850dc8a247462a167b9a1c796cb6
BLAKE2b-256 ae88c011eef6a584e054df2e0541ed5e56765e813cb8a670abbe259d3c572a8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.483-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76c91d519bf90d65ee79588941b2f0ef036cbc55329b6892789a890210892e19
MD5 517f4c9e90c6a1d71b9a8c9ded3fe417
BLAKE2b-256 36246fee292a48f7c6eb5880812aee385b5e9cc17a15f9f20d270e76a08d52af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.483-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 809d3b495e815a31afe2a0eeefb90d53bc939a72f08cac4851c40201cf3cadcf
MD5 2c755144f264b274c3164229b53be639
BLAKE2b-256 6f2975e6ce3abb4258d1e375caca5dce2df1b96d18744fa4dc4b21895b487e20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.483-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.483-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c82930e0f70c36f3e49d1491b877719c6891f6ca944fe81869556c18e5e97a41
MD5 ededa8859bd4725d1b5532c02a08c9de
BLAKE2b-256 306c0a7f0565b62d839d5261e063fd7b4a487c912fa51d922e26f9dd908b89df

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.483-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.483-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7c35fa50c1ff6c95a611132785129d15be4a0bd25de9bcaadd330b00dab39dd7
MD5 29a3d68f0468e3d8df96bcc89228b89c
BLAKE2b-256 119633e51e9cb76023f4aaff9fc6b2660d49cd78bf39e62979d66dd6e8793608

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.483-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a2640627bc2faecd7fd5d18c052afe499b6ed82830fef6c2a0afef91f65e29c7
MD5 d826913844f5550fc58a1d329329787e
BLAKE2b-256 cd5fba0d7b50448eba6f47959ad4ef316d74e86083fed2bb0bb5cf5a2105af2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.483-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 348d4f51bef75dc4df65334432415f805e29e8a27b5f533e5071ea6fbe8d2dc0
MD5 fae8e6f1fd3cb6f10ec5841f3f191f32
BLAKE2b-256 110ec16e35802ddfe60743df03f71ecefbc30a1edf2817c57f2669a41d55140f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.483-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.483-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b65bc6ac615c9324fd1119b0cb7eba5696aca7881f0acb89ebec6b6b7b3077ed
MD5 86f6e4c5f047374d7f20a16510399892
BLAKE2b-256 35f84fe1b1c0d9b2604efed6c3898c842eb5dd9f20fed4bf51b9e2340d4a4efb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.483-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.483-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f389e0e4951ea4a4d1bb8a7709786f0cc89d4cfd67d62589aee8061ee4120bf3
MD5 1dc12640978b73991b148e8f37ea7d4f
BLAKE2b-256 6273e29e41d025fd1fb782c9ed3a33aaac1f9ca9d32727417fdb73fd87e90883

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.483-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8bf4f51dea18ef8894a0e5c0dae66b31a0a4301abc09751566000457def55dd5
MD5 1ea37dc35e95ace12277072c46a7997d
BLAKE2b-256 83e2269df23ed37092c72b709547d74382117547876d4bb52b6b6f10c38f3fac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.483-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.483-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b0756ba72d701cb4c84acfdfda97792745705f1c069e463ae069155f346ff403
MD5 b14908b92114dcaeadf5ccb8c2a8df45
BLAKE2b-256 d4649e6fe7c5972e24d454dc8c222899c6e23bc14c83ed72c273b5cb7b11be3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.483-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.483-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3e5bd38aa26d60f13c5b08ec2094d7fa7ba331e6f5052182c89e0a7691c5301c
MD5 6394f13efe295c636c962d3785790d45
BLAKE2b-256 a38b6f3abdf56baa01ef2d11181edc5a93b879aa0e4303a55367065e6c581e18

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.483-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.483-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e509ba3bbcfb4bc2cd750e36f4a5bab7bf16b06f3beded60fd318da1d74c0957
MD5 f50f16e12c25e69f25a29a1c7d5c907a
BLAKE2b-256 f3474324a4834e61c43485181cb1e3985e38d60a760a6e8844abde71ad5d9de9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.483-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 483ef04d67fa9188616a700cef9e0260e479143a13380336cb44bd651926802e
MD5 350aa75425e290113191d08811083b1b
BLAKE2b-256 4980b4868de3abce838a221e5a8eb66f681a3d86edec598bbcd561ac9f5ae3c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.483-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.483-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 17fef5b40d48e6a1a92012613165c42f0700e259368f8f5a02d3fd0c45d3e4b9
MD5 bb67e95d4eef46c70d080d57402894da
BLAKE2b-256 0ce8a51a3917486194d8da26f438f0e3b9ce8587260015567034ab31fb48224c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.483-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.483-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d19f346d995115b5f9c6817a1ac067ef6bcf9c3b78f6c661df7f1a938749c4c0
MD5 cd0b88f561fbeed5c1f52f8fe8ff45f3
BLAKE2b-256 760f1802994b793b9e11b30c6c6b4fb21bee2692e58574ec46bd557dd1ae3886

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.483-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.483-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 52679599131cfd49b4bc717607c48bb1870411d80ea48be02a251c0860321c77
MD5 48889d44f990bd2d4ae1d01e6b56e927
BLAKE2b-256 f8f40f5d4dafc28ec772fb6198396404003f6e25f5e59aea2146d1e8efd841ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.483-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 652f8fd9252bef3d8c079fa3e48cc54136260c85d22c09ba5652f5fe41267761
MD5 dd6f4efb5da1d8dce29a27519fbb2da9
BLAKE2b-256 921368ecee7d2f17e19e60dbd1f8f678f4f82e688206b129799d52abfcb4bc29

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