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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.880-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.880-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.880-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.880-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1f5c4029d119421801bcf738b7d1a1bce6ef8c0e9f9fbd5389fc8e06588c1b0e
MD5 35207c3159467d368d27a217fc2ffec4
BLAKE2b-256 7e158d7ff0faab03d53872d9da523b81c75c872c259f99d926ab21a2c8ac6179

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.880-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.880-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 199f4e68e4d4376b5fff53af59c60c706dc431439d8a24193df94e1031a5404d
MD5 2d8b8f7639a2297d3b7a633c55844687
BLAKE2b-256 27673731ea4f7f910602e3ffb0e9c7b7fe0b2e325c79571fcab2eb6ca290d4f5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.880-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.880-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d03372df5c82d305af0f36362347e7a21e6520278c754362fd5d8aefe07c5559
MD5 5c3e7d21aadbf1995c747c54625d43b8
BLAKE2b-256 8f3dbaf0f5a9ce3bde4cc76320d711ab9b24cf2724e8414c0f87b1d21ea7a9a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.880-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 268c5991efd0903ae8dcde161225a1d06f701dc0c546a5f09b56d79a570d9a77
MD5 93e7e55e31df4e1cf41f5545fdd9cd84
BLAKE2b-256 248942de3027ceadfeb86cce727953bf035465e92caef8a877acd5975d0428f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.880-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 484e1bac90e3d4b62317f1540d59571eb53f81d8be9c44e785e0e3d7943d9ef3
MD5 2fede58d122b8239e9594753b8320565
BLAKE2b-256 37677d4f07846c9ca7bbb26259083617d85eafa50e8fe10c7babdbea6cba8202

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.880-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.880-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 040ad4bd3d3187c4f4f51a90456c1897b08f1c48356964d22c2d35a5d440b3f6
MD5 2ce14791c7e49df3b355bfb4f3058d7a
BLAKE2b-256 19e106957ee45dd5d2b1e934256fd8f1621d28e71b3033c246f8dcfe0c698dff

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.880-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.880-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c4ea95ac593dcdd8eb6a68a1f0633f925e34fed1481db734fe599b92dfb55d21
MD5 0f956b600237b30b25b305d5eff39c08
BLAKE2b-256 4a314f2c34957e167286727faf3dbf717c886699d7eb65517e9351b2ab51dc78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.880-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 769750fdfb03ff0b61b3c3a8c398869044c55095d29e3384042e8ac6cca802e8
MD5 7f4e1fdd0e6d4a8a54ddd671f616f2b9
BLAKE2b-256 0a6dea36b6d1ea52e1432216088a48dd8f12f07c62342a380517517a5d2ad9ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.880-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 52c1dc84be19877b413019321370d72f16f296c8ec4986837a67b9e2c989a94f
MD5 e7758578978dbc6b0f49163c992a6f4e
BLAKE2b-256 42d86fe7b86944e5467b717211768a78f3bdceb7bd958ce8e6a751c271898a49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.880-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.880-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e64a9ebc372e80f1d3444cc035fabb826226435b60cb31736c6d6f0db4737ba6
MD5 93794160bb2e0b27290310fc734b70b6
BLAKE2b-256 59ec4a4cd37c8b2372471e7f7c8b0373b57463348f5d76cac2ab05e5ee76671d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.880-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.880-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 32a307a58d1f8b35547c703256782ff63c3ce7791d87c8d037677daba5316f04
MD5 55bd646bcdc6575ba31af45697902a15
BLAKE2b-256 d7d02129a014fa77751fab00a7fcc59f1d84dee325011a525aedb4e811aad934

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.880-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ebc5d42861190f1d7b7cf99ca82a56138887279760332d79076e544a35601413
MD5 b79f57d01c67fbf35ac23787b937a1c8
BLAKE2b-256 0a8879f370e8d8f40fbcdf8d21a8279d14d79fa9c93ab6a14354696625f30423

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.880-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.880-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 589f668e27d2628ab0a7c283ab1dc063a7d118b8acd1101bac3ac5457b932123
MD5 0ed596b79d99cccbd47d53adb0e7b053
BLAKE2b-256 f2f92370674867e6d9fe05044ea8046dfab14d7f01f74e111ffd0ce66ee542e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.880-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.880-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0fddc01a48c395cb6d98a5ed8a703e49b92488454ab7587f5b00404e770d91ea
MD5 458be7da2f494f8f5ae1f1b067568133
BLAKE2b-256 42c54493ca14adb0dfa7689d284cb5d608fde701c9227fa63056e6f7a98e8f3e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.880-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.880-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8c6966076b5d89f25e050447be2ace2ecbde0145c3b33faeb7ef14988243a55c
MD5 11327d986c51697f7491db54e1844408
BLAKE2b-256 87042e3bcb2e8d96752f8592b82f3f50dbe82bf35470c14bc5cede5ec22f78eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.880-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c06d597ab201ba5ef6f4c6d6eba9a90b5e67dec05432da9711696027c428259d
MD5 b677cc55bcaffcccf4bc2ca268b9b6d9
BLAKE2b-256 b3a402ac3fcc24e99bacfca6c9c5d909b3dd5828457444a03c19dd2539b5fb82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.880-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.880-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2af9e91d86f0e6ccabc3e81efee082e859b76b7a214c41266e31db566794f07f
MD5 2ccc408dc1619754961e25fb64183b84
BLAKE2b-256 0cda4b51802269fc7b77c492bd2b4290a880245bcb81a64929738cf3621c7b1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.880-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.880-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9920a8576c39f0b55caed115534db08600bbf8fe28311d844b25afe1e157b7da
MD5 67b19820420f0f302ae1aa050616bb63
BLAKE2b-256 d0cf69f23d83729495adb3a9d447b24ade3685fd1e54128ad55d4bb669b80cf3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.880-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.880-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef210f15bc77768a590d1645e3afa749f80208e8938b572bb9c88529c2624d74
MD5 239e5671d4cf2d7779ba65c885286daf
BLAKE2b-256 66fd84e2cc1484cba69cfe2dbbb7bdf9257c6ee728e6288acbcda86e6faddd11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.880-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7946ad508f8d854110f6af02bf884494913d4da5057b43e99dd897bcf2175de2
MD5 94b3008d7b895e0ed873a6cd3430ca26
BLAKE2b-256 59959bfc46e66280b22b596332536a6fea08c122a048c8191be99a8591fea2a6

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