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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.104-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.104-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.104-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.104-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bcdbd076a93f82bf763b1f9a2772c0d6553bf4eb53a42e3bff344518408448b4
MD5 ba00be2938e4b0bacc461f0c058ff6d5
BLAKE2b-256 44a8fd11c0f2051ff0918b702feda7596e5af654626510f7f116e9c30e3dfe0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.104-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.104-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a9bffb43e6715768835304a33fd32fed1667bd874b94763ab1b94baf1ed96319
MD5 738e702f1e68b02507ae875811ec3cba
BLAKE2b-256 8f2c5f9761b3b03667be51b2966b96e3d8ab3df0c82095e039df04a20f4a45f7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.104-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.104-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0c67baedca5af8bcca3f87d62f420956328a8ebe51047b96cd04dc8b8a169b8c
MD5 52995e974b3e5fe1f86020c36c2986b5
BLAKE2b-256 bdfbb540004c7a1699624603d029d1e470c7bb00ba75840d86fc9ca5bdc51f3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.104-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc5e3da151d3f5b0d1c9d568aa507bc00368d4486ee289484a85668737cfdf85
MD5 de42029581e149c17c8f19c85f81bc0b
BLAKE2b-256 16e1a4ab9a1e780c3a97713e75f63c91f7fcaf3ff4115b1a92d4490532cddbe4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.104-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d19fecb76e39b6e33be6d136634ad146fcde701c05df11802247e3fa78c1c58e
MD5 352037164dfef98940cb4df2e5d11845
BLAKE2b-256 b9d06bf6c4283c37b35a8fb7de7b702398e99d2d2f9a2b3ecc93b7659cd5a75c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.104-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.104-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 be3c0d74c4902d5e9c00fbf0084df4ffbb94b393fd56c8b1f3ec416fb0e76432
MD5 a3282cea81ec56541f08588b050ed434
BLAKE2b-256 3e9f60484a17f8cb2eed692d9e4243baccbd0bb352d7d1c39cbb30ee79f0f37d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.104-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.104-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4326250e51b3aa0519fb2e2039138fe1a8b268c0688bef7d665b021c2dc0c8c1
MD5 1be7b1feeb8c1adcbda049a058406d19
BLAKE2b-256 05bad7f99a1f09440cb844a5f499072c467d3288a344961ea4a062b19c7266c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.104-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48295e2932899483a6cb3cd2b27e42c2e469462f37121789c5207178fad94dc4
MD5 b77ed3a7179487fd315e221b38710c2d
BLAKE2b-256 b6d23e57b8b81e505e45ece58c2577bb12270a914f7100ff6364368688841b0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.104-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a03729b563cd5a747ae8f62e60c8df35a6234c24df4c58797d0c2473225aab0a
MD5 e1ecc37e96b8c323ab977807c769257c
BLAKE2b-256 8eb58f06f1fc62a78c01f41670f792fdee33f4137242363652240a087d33672d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.104-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.104-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 80ab2f5be56fd2c90fc1466e9690bf350163456408365c6ddb77b6dd6e924f12
MD5 f5ff58210639ee39acde7d266cbe7862
BLAKE2b-256 d146cc6531f9c35099c92447f598b99e8865144a19dcc9028e575c14ed3fc48c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.104-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.104-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ffb309f95be8eb9caa8bd7054175b6d2cb8382ab557ba1789df2a917f3a2c020
MD5 f68c38a2249aab832b3773fbc6d29bbe
BLAKE2b-256 6277c8c9a23911e17e50df460a73ed3fe442fe76a96c0b5d3c03407cf430cc58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.104-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82307c83225addbccfe5bb7f4b4f94d577cdb02b63a2922429db61da6cd54823
MD5 505e9bde1de119b5abec5211b7a82f7c
BLAKE2b-256 153acb14f5d2f508dadb72cc0171d02a493ac8c3d31e2f665ea06ac47a88913c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.104-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.104-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 292efd7716e71afa900395796cf768ea51aab500a8c9692bb75af196d4f03925
MD5 2ebd3122c7bd326c06c3bdc39220f828
BLAKE2b-256 c3e3ad54050143169c2d1a2bffe7f99666655b7dc54f7718ae7d684e2c514158

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.104-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.104-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c062c3c3d77cf7fa709da954729793a3449c0d06739aefca43a5f8a71d78d110
MD5 8e527eb000399a32ff4335edbc285eb7
BLAKE2b-256 b4ff86fdc3cdcf0c60f74df8851e93fa00d6fe508030b6dc15899dbd39fb2581

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.104-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.104-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d7f574d9ed0c47ff8fc95d3a415971f6f999220e8dc184c9f6840ac1656bea80
MD5 1db8b016451fa54526f8ff31c7a157db
BLAKE2b-256 5a015533d1f2bb87d8bd4f01f203e58a225e9545fd7104d03a1129f79814ffcc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.104-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0ce6d97b5c15c774ff4acefbd4419ca7207ed8c0c93d388cf0d487a23fca624
MD5 52970b8f06284620dcb979d9e3dbefc1
BLAKE2b-256 e465ca59a9cff4b2dcdd629418be992f6e021a4cefa1425e14e418a13333afb0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.104-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.104-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7869564f3008480d791d41876f286704b79c8ec8e8310a2b42199d6d0468829b
MD5 398ddaa913738960080c57f109ec54a7
BLAKE2b-256 00a0f0fa352e8b0d5cbfffc12693df128f497752fe112f9d795de1a47543d7eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.104-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.104-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 10005e76bf4a347d590a93408a9f2f53f7e8772df4d0aa9de385e1d99d698a47
MD5 379bc9f20bde9d7aaf6950a50b8e404e
BLAKE2b-256 20f38b1f81a0883df6ab122a5b0f4f1b5a88fe2fb7388d6a3f73ca3063577eb1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.104-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.104-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1f2fc71cbdb37e3f0b6099299339916b61af33368a70e8b4eab03328c137bf30
MD5 81bbb26d7bc836b5fdee9c0b6c991d1c
BLAKE2b-256 7628168f4c8fe7acdf23cf8cecb636d522e1117cf4c92f44251501784d45b613

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.104-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0db895a187d685542c27a9cd2a15df78bd96244c8d43ecff1632fff0f7d1eb88
MD5 e21a11c7a27dfbcada88db8fbab2b71d
BLAKE2b-256 9746d441d9e2b10087c1d922e9d9ee994e3540a07531bd5c505f58f548003551

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