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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.402-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.402-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.402-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.402-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 08a33f895ec91bf99b4512c8c95c3b7436bf8ff1336967c3acc4299557651dac
MD5 b01ff96dd10ae33b4af6c76712a01e2f
BLAKE2b-256 68e44dcd9671c6eafe83762aaa27987705eb2ace1bab459b31057531d7fa1fea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.402-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.402-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3b4581ccd7b97d2b758e5df6e68974f347619bc271563da5a98ed4f0cc95979d
MD5 147dc0fabca7e563348018f36ec49f5c
BLAKE2b-256 02823f4142e717e7f7bcc71964606c7344a886964956b4f8e3c082fb1ad98f39

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.402-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.402-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 39764a91f9db0866e890c6ef42bfcb2c06050fe5b5a75f842ebed96c32d86edc
MD5 cc736bd661dd1e40ea6dc25b75dc8b9d
BLAKE2b-256 6e4268115563fafca5711d3246bffea7fe4d6696b288645cf06a6c846ce8fd73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.402-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f458f591d90c25ff710275c5a8d0e4742e0a921064fb85c0a9c3840a67e8f7eb
MD5 4cd9a379d71b9aee7550814c5bf0d293
BLAKE2b-256 73e5f14b91db258d4993d2bd92cab79d8593d9476e52112ffdfb02e039a2f7a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.402-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c9b7be3c7409b201134f582d75daeb1ba5a49af16fc95ece7d45525092a9314a
MD5 e927f9a71f7f898a2702f45495adf36d
BLAKE2b-256 e9f56e042fa21edc6e21356cf43fb97f26e9970494285940cd339217d6544bd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.402-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.402-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b1053a73c4e509ed1bed04d8b35466a5e07010aec81fe8e60425111f42e2e05d
MD5 8f12183d39a53a38d3f513d897e67940
BLAKE2b-256 cf66bd63bcaf9d8586098d79aa10e844f3f8007cbc091555384b3176dd5ee09b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.402-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.402-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 40259c2cdc826d4d0f9c2b7116026e0ba5340a91e27daeb0408e546458df30a7
MD5 588ded51b2fa687b4eb35aaa3e581697
BLAKE2b-256 f5cada8f6a6c37f15974f8927bce153647c4a56c8c51d8c61244b872a781c2ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.402-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c69ee90f6a31a36f12199a7b297e24cda9b8f955541f4f575d7b949a12823493
MD5 66b0092c65127e3a37e4366f6d728950
BLAKE2b-256 3108eb49cd3ea78a16732b07ed933ca1ea16005f363a0a11a13c12fc01641aa6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.402-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ab9268e2b5ce057d060db87fc7e0e9417ecf84af7213c0c63ce2d8ee964f56d8
MD5 d191d516846a19170ce16e8d6d33010b
BLAKE2b-256 425a6024c96b8f4b5467fdeec7e04839569952b6232f377d05573e96d612a808

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.402-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.402-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7f343a60651ab267d3229a71d18bb8911722121bdc50a4a9d803532fc146360f
MD5 c92f87e1a659038d3f6d48a8989f544b
BLAKE2b-256 7ccb4898c9e1c986f6fb281b3fcb88b2b1ee46f7d3677868bddfc53d4dba00ce

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.402-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.402-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ed92003d1a7c755245a552c6b9877d1be924190c423ef2104ccabf045e28127a
MD5 456e6c7f3827407fe2b7545aac3e08ca
BLAKE2b-256 8c868d193ef8b3595abdf4ea4e84aefe97ac61237cc07e35f3431af1eb424a42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.402-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1e4c1b24489239bfda276d272fc63415b8f40c9960900ae17d69445a43371b6
MD5 5e018f9cebcdeedb66d93d9949a49b80
BLAKE2b-256 b7682f8f7a7fe36a3ca38db79f5a79e8fc6000854451799f67c387e9898d2bfa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.402-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.402-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bd80672d094e3de91a0d4b7dd5d5dc3880977e9cf19a83b28012da6ba283d919
MD5 cca8ad71eb0c57e2f6a9bbe00cf28438
BLAKE2b-256 9ae4e975a135e7000256f3b75e9fb69c6f1b35fa3e2370ab9b5b7e8882238a54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.402-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.402-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 012e94cfe01e57d9ac90b6b6b838a591198dfa05bac5c2fc7b2bf2ddf3a9449b
MD5 84a60d0774d32e1995a9705903cb1059
BLAKE2b-256 9a208713627c1fafbb7a6417b19da04e6b5941a1e4b72f550193d6b30a0b5777

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.402-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.402-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b816db11d6588c6a32b002da81c1f46df8fc39a9dd30df313e4670e1bd69969e
MD5 abba679662d7075cd1c8b57ff713d1cb
BLAKE2b-256 fc908f51b84ef5de77e273bb69553a591afb7ebd92e01fa9b29f0fafb1958bd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.402-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dfe15e6358f9303bff96b880ac31575e8bf5b264ce515f5cb1ba521ae2e0d7db
MD5 9a0ea5694869e07acbef8913c5f33dc5
BLAKE2b-256 4d7d61a168b02e1d85bad139ab1775f687dfd59eace50ec2bf86555a7156920c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.402-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.402-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c284a9b4c2fbb53f69de72ad065c689fd73f3c532246c5434b5dfab0a5cb8156
MD5 3dd6738ac0df2d8ffa00c50d79b06f76
BLAKE2b-256 a7a1e79a076825c53fd6b7f1e43077d9da6e092b27ed9c24d1ab2d2eb44d0e6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.402-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.402-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 55b5508cda96ef0530f0a33a15d7f88631da5bee6a27739738f9ffa1fae6637a
MD5 d87da8002c521f698d67aa30a4551804
BLAKE2b-256 42a897eedb2edffa3776030ef482da645f5dea5586cc53500d65f071d74ba8d2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.402-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.402-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 000b5959cc2bc26ac4fa9f19c97aaf8d8580dbaa459ca742bd33e43bd887ba8e
MD5 dc9c7cb2e79be311718b3dc0c8bde98f
BLAKE2b-256 aae79660f61b4528f0b858a5c77f4c835fdb61ae0a815ae3f4226f31448f63f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.402-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 839ff71549a49f5d1f60d178d31c14b6137d77aaece0124b196ccea157d3faab
MD5 eebd6815b180f2ed08863c5d0f75c8c5
BLAKE2b-256 c06d51161e0d3ebc035ca09c1477424b1439756bbca9bed389246a45df71e403

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