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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.717-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.717-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.717-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.717-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 449d1cba9e2d1af4b69bf85bea9edc9a5df33804a44d98ec7695e0f5146e7908
MD5 a77d59c64e725cd28bba583840b9c663
BLAKE2b-256 50572dacc4afde3d6749ae39bc2f08d8177875d27f5dde72a89db509b7270139

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.717-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.717-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8db583dcfad851cc6b12f1328ac488a4bf09e9d452e56df4d2e168b5097e2331
MD5 74e704c74a78ce3763cc7152591b6172
BLAKE2b-256 33a2fb29e5caa6d54008edb2af87b1f5214888d21dde4a3d7977389890b76f78

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.717-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.717-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c32cfd8860aa60f55f54db6e72c7bd17cebab4e17c4a0fc6fd52002e844eaa34
MD5 b3de400fd23ec3b930d2346ac13e62fc
BLAKE2b-256 88ceccce1ff12521da90ed07ca3aff3400537f7e630260abd41dc8dc3da66503

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.717-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e65952a5b06f671a288cf95aa3823b1f42e4f2b957ff55a0f0ad5c21f1ee82bf
MD5 6a9f5b6e8485975044fee7256a03dbec
BLAKE2b-256 85f7320f8d2089fb85ced393912692724fedc67c8dc90d994b6cfffffc092c27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.717-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 86376ed2d12263b07fcc264f413cf71b2e568ca5788eb5d92534b1cd702d0ad2
MD5 400932aad4c6d5bedd989d701860796c
BLAKE2b-256 5a9e2ebb62fe8fef4ec43b8ca51e8e69aeb00e30f6b5d562d5a98b9c2c65b30a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.717-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.717-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 cd4293b36cc4b7810881c3ff6565fa568c1230f22151f2282622cc2961ff5bfe
MD5 0c243f9f40a52af46e2ed5294275606a
BLAKE2b-256 0aa2e5eacbce4d18d35158aa0a552b2878044cbb8e9921d9529886ada0d8f695

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.717-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.717-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 171aa32b966bf9dfb6656e2778ba717d99c8acddd4eafd0ebee88879a7782c38
MD5 ba14e62fea67f1e79a6a9b7c043c7b25
BLAKE2b-256 844ee9708af302725613445f500690a6d6a8ecc7e6c83c0f93e1401165113daf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.717-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0f9aff39632fa46a51ff29b9da40a98131e699146b406b32ae7fe5ce1529fe19
MD5 b34fe83797481042bc1365f26035cb1d
BLAKE2b-256 c37a20f92e6b6fb9015fdbfd6edd70cc5d4384df5cea2801bb89c0fb883cba54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.717-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 da512e4e51bfdf76f56f4c908a753f9a62e9d66e43608f698863736f904acfa3
MD5 f98425da715311f250e7e239354050c5
BLAKE2b-256 ed05a4b14b35f1445d4bf74b8b9eb38a70f0660f814d6e2bb9553f04597a79c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.717-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.717-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e5d5f6c9239e9eeff34c30198a8b2ad377e64703c269b3e16a063b1f5b5b860b
MD5 acaa217bc8c57935b7e7864c7f38bd31
BLAKE2b-256 2ab2883b03eb8fb40cc84734e2221a9d0e7dff01aa330db0e2b2959c074bf5ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.717-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.717-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 933795d1631a213eeb98e6230a6854d9a262951cbd294c4e358cfe9ca7c785ad
MD5 05bdb13294dd790fa8e1f1605e58671f
BLAKE2b-256 583cfaedae9b6929366f3f3993138acde8cf5a1e88a3036bcb7343bb882527ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.717-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8396e3caddc9fa8543adebdbcd80314fdf3505b0642739b512a6ca65a9d26a6f
MD5 552a3fa9d3ef3c4fe4417665db244b22
BLAKE2b-256 e23ab17a395aab1ccba008e6f53b6b0e7125dc5d1d1b952698909769ceca7223

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.717-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.717-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9cec174ce5e2038083ccbe7b3d1cb77e1cc37922965fa3b0b016e8089fc7bc0d
MD5 c03a3041fc023cd577d4cad30b703b03
BLAKE2b-256 401ff0af8393565bc1557ec9033a3a0366fe4c444906d107e8d727b5c59df76c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.717-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.717-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 27b13f3ac73fed3a515411975cbab26c72794cbf503e9cdde1785aa2870d6cf8
MD5 6f4bb31daa01522f6269be110aefb6d4
BLAKE2b-256 7da078c4787c477a4d29fe390a2236e4f8528592e97276e9b4abcd75727005f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.717-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.717-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 097dd5c82516f7cba37a16e48aee2fd3d5563faad1b28ac7a5e930bd716ef251
MD5 c1c1be070b22ea1a1bb74b56ab06d7b1
BLAKE2b-256 3cdaa68698f063ca50af768503f81618d43200c1ac98b518a614de935c09693b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.717-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c2592244db5e915779c9f1be30410553baf9109a07882d1938cdfd6e959c7f5
MD5 38d262e2bd48b51051959bd0e3355d10
BLAKE2b-256 7ee30e6bdcfd3a887488db00ad9093b02fa52d56a1a81d008f61fa2750d0ac3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.717-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.717-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2c86c2606f442a054b173a768e8c67512b4269b157b59c8c5cde0a9f2cb6c667
MD5 2ebf21f9f02a8c9e02bd8f92a8744e8b
BLAKE2b-256 b7a2af0bbae304f9ae569486a72ba45a9ea8053aba5a846c0aa4942842bd0ea8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.717-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.717-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 94eb4440b2177e7262e5e1835a0a048a823210a397c4cfbf6f3ae5cc5faeeee6
MD5 38461585d3f933ab689df2ff672d6256
BLAKE2b-256 6848fcf4268548ff4fcd0b378fc9570bb5ea47468010faea804922500744b42a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.717-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.717-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b12a3a297a6060a0873fef2b692142041e7684c974134bac70047188f87ae71e
MD5 4d45b41276cd2f9ec0407b1a4e400f2a
BLAKE2b-256 8e692e4671046289286634f03f9c46fad663e10b43b3736bae637a50f80d3a67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.717-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 960d4ee03efa4d5b308d6cb0b14681d337b49927bd8b7be6eec3cd2fca956914
MD5 7a59266650722952de26d96d6dd341ba
BLAKE2b-256 374cb73072243651544fb4e2f6a41ef499f18d55810209d5688d5ee5c78bb34d

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