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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.53-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.53-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.53-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.53-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.53-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.53-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.53-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2d06904e790889b6f91a9c47f4a7dd4623a7d74cb1e1af480a84b11861636d52
MD5 bac12c166cf59bf6aecadb7354d274ec
BLAKE2b-256 29018a4f22873455216aea972afc14c54c4a7dfc675c1f474baa42cd1d19c20e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.53-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.53-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b84758217f7bbed078c2aee084b9e525992213838314918481625e3d820b615e
MD5 831380cc717960a53f5dd34d2a6507e1
BLAKE2b-256 a466f8c02bbb1dad57e9475ee98b4a1ec6bf0bcaa1b31b0dfff304dece0cc10f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.53-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.53-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c718f66d6e3668486dbccc4260c263a21b1e46bf91289a3bc328e4d633950b1
MD5 52ec6557924501538884e10e840346ae
BLAKE2b-256 87c0197b4f877b1930630bbeaa98b72a4d67ffe0b22ace37cf9142ce4dafc08b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.53-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b82669e8e0515e62d7225d0a77e5ee8352043e46ea5639e69568c2ce56805e1b
MD5 d7b08c2bd0a0c9572a361ae3fcb913c3
BLAKE2b-256 8d16c98475361598339d7d55a95a5867db2309b8a9206e5f2212963f8e635fc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.53-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.53-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d122dc3ac6c1ff6c129515198ccf2322fb5ffb6279ee0fc367d2f85d3b4baed9
MD5 5ee30d807961447330e8937ef0a6eabb
BLAKE2b-256 0da753ada03e6172ac0664bf2c828983d717b6e6c9e6e65b41a8358cd489f815

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.53-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.53-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 efe365cf9f77478ab31bdd2fb8353746d984c8b8d485ae960e97851b5c0f826f
MD5 fe0cf6953b53399eeeca3dc44e65db80
BLAKE2b-256 1b27cde710a0146373197ee96cac7c030463a67dff14adfbf6964b9b56012b62

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.53-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.53-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 38ba41c268767ce79b8f853efaf9f659f0c7396b36f6441f469242c6474c5697
MD5 77643f2ee5c9abc7412840758c1c32a0
BLAKE2b-256 e042751fdb01b5b3e62f02e1413a2ce0af0c71492817b8ec70ec48960b71e4a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.53-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8c2f80e274c82cadbc22a5d640a924cc08af0579a9f6c941b158302b18a9da7
MD5 a78bf41f51db1637972f7b20e1b50d69
BLAKE2b-256 500f061475530a9cce5bcf1189741ff181e92a98a7eb4fe91cb68d3e3c16010d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.53-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.53-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 df1c9fd0e7f9127056e5599ef8593b44c36212b88bbf3034cb57e46d57f7396d
MD5 db1deaab00eca890b35f7189281ff5f5
BLAKE2b-256 7134445d26c57718f3c300beff6abcd99589c6a0504f687929a5bd9acd17fc2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.53-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.53-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 eafa988fa9668efeb0514de39dff085d697faceb4d06423405b6f0bd4ed591a8
MD5 27b84b58048aa4f14b850a8ec47b66fe
BLAKE2b-256 71e90352f50cd0ecf4d5e4a6198bd2b2955cba50fd7b34878b4723b701a0521e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.53-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.53-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dee19a5e248097e45d8a7ce405b212c18286dee2fe3406d4106b9b7497da8423
MD5 7a3cb84f7bed824f545c8e2946303e73
BLAKE2b-256 3175cc5c9c86d7c418bcdb4f7dbd3eb859b58ff4dc918f63d0b5b015a099d922

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.53-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4995f38ae9b25360752a3c3e416478254e2471ab7644a430016a78728ffda74
MD5 e4408d17fb424ccefb76e461eb6c9654
BLAKE2b-256 ec557bb807054b56a27bca34806e4a09325c629f104295ad1b7eb596de4efd52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.53-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.53-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c49ec90482f84148909b85943dc6669fb4393278ed2ad88aae0771e9cdf37ef0
MD5 c1e00851074d5e866539f54ab1e2d000
BLAKE2b-256 8ccdc3daa328cce1dfbf8f6aacdd32e5be04336e2977822ebf2fae0825036397

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.53-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.53-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 67721cde933613715bb7f4183b80577f3e8b6ac05e62e2eb08d5b5d62366e05c
MD5 1a3534dbeda952c5c7b9cf9a7145085c
BLAKE2b-256 7b18c68b651357186a3eb6cb43ded8f3e466fae6c19ceccbb57effef1eb01698

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.53-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.53-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2758aa080d81bb91f879c0c991aee26ac2de82e302a8e49cea7485ac721c42a4
MD5 d5454e41f20e49701cd6ab35a5eade4e
BLAKE2b-256 4f381ff790187e4d9d5442cdf3b925a0fb32ab8c54006ee53caafd3c178e977f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.53-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a41e972a237c5eec8def610ddbc09f5ccfd161f864135c1e2a189ef9da9aded6
MD5 1cb6b7045643e81c7378d0010d00eff0
BLAKE2b-256 d1cac6546b0466b42c97ea9da6218554a9c80ef1629e81aa40ade9d77146eeb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.53-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.53-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1a70d14ceca2fdf58ae2c8e76a1ccc11618131f8539fadf2dbf2bfc22055ef8b
MD5 0dced09338478253886355c7e77e8986
BLAKE2b-256 f75ff07133d212d30a49ad6ce1d3f2c8afd212644dffa0c9863e7be8189ca747

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.53-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.53-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 38bde321746deeff9834e4da69412941f1c334771b54304c4280b3eab6c7d5af
MD5 5eb941ffe9ec9c05c5ad7ac51df5ee0a
BLAKE2b-256 94faacebb408f6e6a65ce7747e26351637385b32ddf4b902c6c91bc5d0797505

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.53-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.53-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c22c57ab8a745acf510b70d30bc07783935429eeb16211ebdd2489595670a032
MD5 65ccfebbab225cc481f9bc81e78e3791
BLAKE2b-256 24eafd8f767cc1d0e161e255aedcaefbaa32038a847c2dead7a3b34ed5f8e12e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.53-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 576580ddd95778f9686e5186dc336f2e7153e0fb330dafd8b4f7c1be2e2337aa
MD5 f023a9cb192ba080a015bd76db316725
BLAKE2b-256 633bb69dccbd2c7f32af47f32f43dc26231310ff28f44bdd78823f82f82e1376

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