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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.282-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.282-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.282-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.282-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e8763c5572854e5079fcf1a446504f5d074301368ffb181f47c35a6b071ab006
MD5 1209805d07f6e09d205268f8d66d3813
BLAKE2b-256 75fcf04bcebc22a50ad686e5af419756542a24aab6cf9a24d3c61b0cec91bbaf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.282-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.282-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d9adb7b065989d78f0a07c2b13d4e9185b4e4c349b38ccf63065381e82fd64b9
MD5 f06b628b27d455c8adbca373c3e38bd8
BLAKE2b-256 92957a82ae890e4205f41496fa29734996c9fec5f20b36e454a4b0c936d22cc0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.282-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.282-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 da473ecb2d8efe2f80a71ebd73066461b5baf721c5137de4c5a1f3694b0ec79c
MD5 673aaec7c0a4e69fa7c09599b063e39d
BLAKE2b-256 540b0194aff0aefc35ca52aa05386f4ce082fbbe1522bcfbadd5fef38e88fc79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.282-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a3c73b0790a87cb0d21432ea716bc82240df5c4a868e6cb2dd696a5a5518cfd8
MD5 3070aef1ce6687a6a5f685da280d2405
BLAKE2b-256 10cb11acfaa83e4bcf3560ba563355056d1544788142fe03806e877c1081057c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.282-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ea18eaf6288d29b94f4fc279863b072d536a68304671b0f0b554427efca33153
MD5 c334bcdcf54f2d3d6554293f7ce383e4
BLAKE2b-256 b6c514f41cc91f2bb63b3acf4a6cc344f7067975290c4ea79db0eb66f709336a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.282-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.282-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 508fc90f55f9837f893f1bd79f9a015fdf3b0e772f7b1c3652d51c7ea407fd4b
MD5 eef3ba93cd17f2363b440607863d1978
BLAKE2b-256 114ef57c9611ddc6d6e24475628ffc1323ad1d470387ded562224f724f2ad356

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.282-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.282-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1fa5678c13bc8859422fdb51bf30ce1778865b90207fead589f3310807fb7149
MD5 5cb78aca56af5f51d8c70d1340325cc1
BLAKE2b-256 444d889b43a38023ff6a21c0897734f591c64c19bf92a873f11339b7eab2f6f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.282-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9fd0eab6b00baa70fb044b4f54d95ba71b92a141338012a07098ccdef542adda
MD5 6fd632f9caf6d36f534b12c55719a1b6
BLAKE2b-256 4b3caf91b72fdf7d7a15e9a5df9aa1798aa107b2955b43f1348e9266aa571ba1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.282-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c2d4186d6576b0a01ca5a1ee458a8ad748cd9c2b097feb779e1ec580d574f6b4
MD5 3645ca8d7f4be9444f08fa02b1764034
BLAKE2b-256 52e70fcd455c9d2ba132fa4c349a880556e758582b0f021c3fc1216aa5d9ed36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.282-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.282-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 310c95879f7930998c7eaaa0f5e440d2495bb20ac6387816a9aa34e66631537b
MD5 39746ce547c73a123a485f1b2138b03f
BLAKE2b-256 a39208eb82ffed7da20fdfe6eaf465e4bf48160ae00fd7020b3c0d976d2508ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.282-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.282-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a6e1ced1de2ca46a5c5173c7bcf2fd6d34f0eaee15c8375da08a7c83df27de38
MD5 2ef2f7df9b69007813e20afc41ba0b00
BLAKE2b-256 cc1e4aa17f6d23ba3abcef6c17d12aec2cdb438658f2e927814cb9d9c7cb12a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.282-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 212f6b22129723bcc3a004ea3d8461419931300c7db0f523502cec754c9ba0ea
MD5 a8e1ff4922fe0eac238670a5991eedca
BLAKE2b-256 95ce42519e8fb852eebdf6efa51ed903f5067eeb6f84527964921547c504eccf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.282-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.282-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 64fd1412dc42d492d1d7b2817e0ae7b6b66c06f3a63b19f93a7989c480992966
MD5 aacbbbec613ebf19e413be74ed960f8c
BLAKE2b-256 c0437c0c2c2e982a539da1fd1ec9f9c9b96b1051d8decd0bb899047ca986f6db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.282-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.282-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 35059bb5997ebff82b2ba4357682305f47b5882dbb47c9e76ff7a70b6a5c4895
MD5 152b9d13450891d3f5b52a4fdfa9a9e7
BLAKE2b-256 4396badf2aa4ac603a336ae89cd0c32a27ad35db6d47e9b465aba0965faa51f1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.282-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.282-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ce3f324bddf4f73eddb7c2e65942d65cfd6b9965aed955a29c445b3fa042c158
MD5 fae8b6195f09cccf12d0b616695e2a35
BLAKE2b-256 bfbe2e64cff9e5724bcd3c71a0bd435261ed8d2423f44aa5e5f8d5f5bafca544

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.282-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed75b5f21403d1335bb867aeb0430d8dce24f243cf1e7d82626ebf98f719c8bf
MD5 8de90f075d693b2aaace6518d8955e7c
BLAKE2b-256 43124350764f40290c96e7f46fc740b4681bb95ca59e264566185dec6787c3f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.282-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.282-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2ccb08ca240bf91dc0094a171f64b2914ad851ddca154799ef70a3947cfaa3d4
MD5 b0400a739cf9f6894f22a1e8b11131de
BLAKE2b-256 3be38cacae3691938a9e887b29aa8b13dd04245b8ae6e8b30c0aeb4d2e45e2ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.282-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.282-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7d532a45e7bb65df281953d42510960a58a4d5245520eb49fdc87a8fe8bf2078
MD5 ebb4aa8f99a323cca367d44399333512
BLAKE2b-256 87053cc0b43d020e6e56508fe9c30e6c8d075253299a70ad35149cddf17ac5da

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.282-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.282-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 99ea160339fdaf4f506f3265b6e28e420ae7fdee8990585a50bc79900dfc17f2
MD5 1f3c9e173f5e4c1057efab311f3cf0da
BLAKE2b-256 3eb89fb71553a1f9e8b421834a5b73ec86f35bf415a70b656d1806dc706b0cf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.282-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d1e45394970c27c626da26eddcc332301667942bab32178382fdb93739a3d69
MD5 7e613112c72df525145d70f53c4cac7a
BLAKE2b-256 1d75be3e1ad8cc7bd822c07d0836213495d3b33739bc02daf2435ece413ccd28

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