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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.24-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.24-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.24-cp312-cp312-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.24-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.24-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.24-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.24-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.24-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.24-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.24-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.24-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.24-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.24-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.24-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.24-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.24-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.24-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.24-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.24-cp38-cp38-macosx_11_0_arm64.whl (114.7 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.24-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.24-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.12, 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.2.24-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 39e85077aba15c8fba7941a3aa0d0c4d5e6166e24dbe8abb0eebf619936363f2
MD5 c6aa025ece26e35fcf5e2a1aee343ba9
BLAKE2b-256 293e11d5728dfb49e59e6f7f4fb487813d7895c3b944250d580ac9945d3c0cae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.24-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.7 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.2.24-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 85059db70156f439c26e918d9b38ba462703d546f51398d6039b10622577d948
MD5 14d7fb7be894ca85406d5b58840fcc01
BLAKE2b-256 a3640f3e1c425a68c1babb52b5cd7e98795ab0dda62c9d8b23fc5916be0f798f

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.24-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.2.24-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a77b893f71aabb16182e11154b4d92883d82284a203647db654dc9c4857a74fa
MD5 b9103e0bfb532226424160f0ac54d462
BLAKE2b-256 3fb5cdf45db5bf57b1b4cc339a4ceaf978ab974adf692aedf79c21a5ed059ce3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.24-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a07b03ebe25b52b5708cce39030d3af03d10b5f8331dd01186733b2d1fa00710
MD5 c2d163bf9e32d2f167f1715356c57fdb
BLAKE2b-256 3114ae443c72b62cb56cb4ee22ee2c682f090e98362631744a813f3600b9dce4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.24-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 kB
  • Tags: CPython 3.11, 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.2.24-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1c3ebc30048001ba206bb5739ac9beabc3d70327e11b42f2ee60344fd29058e2
MD5 9ddbc9dcf40228edacd95aef7505d9f4
BLAKE2b-256 825fd8758f9ee747bd88104844e2a2ce336671b51910616597440a3d19163437

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.24-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.24-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4d61eb73c2a940591174ca84c170aec8a0070eb3acd95be90d12f59b0d446d1b
MD5 c5b7d55a8867dd18630fa6c8fc4cc9b4
BLAKE2b-256 217ef3ee8196d0d605a178219176c05030f8fd578a47f9de7f34e0423075d51e

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.24-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.2.24-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c949bfaa1dac3709a449b51ef44a9353ca8311f0cf203ff59a4abace567048e
MD5 c95919f73fa83600180c9030e9e09bdc
BLAKE2b-256 5ccbf2f9f85b1f22cd1c5f5f468b9038a5865e0244b51c187f56f7e3eaf3fb64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.24-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 297a488556fd5ed05a172fa8aee46daf9f5dc4c1fef155653bc0c54f84d928c5
MD5 6275c982fa56bc70243797179e5c353b
BLAKE2b-256 defc1e406dd26fa21dc0517839e6a89703bb1d418e35723b956f83489a582717

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.24-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.10, 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.2.24-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c340b18169fe233f519df6ace3da23aac95cbceb48ed593dc5d16c3103f5efbb
MD5 05119b4c4a65a56f826830278f0c1cbe
BLAKE2b-256 60bf24f0419ed8c6a98e178b4065889dccc0080e3e0544c623d9bde866ea72fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.24-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.24-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 916303a9c6fa8180a1e0eb10d865d1fa50a64b5deb3f1c64452450c66bb5cbff
MD5 48ef6936ea8615e28565ceb5c1c9311b
BLAKE2b-256 c22d1db3bb5b670325942b4c468961d01eb2e557f3697cfd3071e2e866c0fea8

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.24-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.2.24-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2e2a4372c7de18da7491d283eab78f199cdb34508d09bf6cd6050b44e2dfc683
MD5 44ae276851e6b682ed874b5d1d45ebd6
BLAKE2b-256 a3042884a6d58ab19f2a9519b01bec012948c37953931e02b454e86de72f1dad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.24-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7564efa1c0459372ce2b9fa8f67477f8790118bb679e5213ab3c3220357e1e60
MD5 11bb7fb398e76a06d05b5ad8177db2f5
BLAKE2b-256 ad3d746a942c26ead869fc6ee6c0810adfbd897736076f7c39fce6bae7d54c9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.24-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.24-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 58be10849c5e11bc6d8e435b87dc729f33f66c45ca56b33a5fd6e5940d275a8a
MD5 632d9543f73acc181e9db97866922baa
BLAKE2b-256 3a06917967f70056b71e1b527a38d677a253bbdb1754e70ebefc0a6d7f245280

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.24-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.24-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ef878a55c7eb71624013c02446d5919e9b96e1b913479e4225a76c735e22b29d
MD5 e2613d3f8171e2572028bc6d387d4ee6
BLAKE2b-256 911361d01be60c2d8926132b64faec1473390704bdd2873283e5a94d78584304

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.24-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.2.24-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 30f9ef85902c14e48742e18f79aa5520b90e001664b5331069a958a708d8e5a1
MD5 ab0280d2e887c3d18bb52167126d0c03
BLAKE2b-256 c3bb68d173971dd98c8eaefca9c58f130fb67e2f34bbadbaaff8527bb481f856

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.24-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d378f4536437031e4f3970c0204a3055dfca75a33afb0225f6ef44be4590bd7f
MD5 d003fbdc6fa4ab5458d7dafce4a222c0
BLAKE2b-256 27a08891a68e21f1d6ea8b9918e45268800c5675c09da7c2e9871b7c450530a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.24-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.24-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d731ca4c76e7b08b2e83cb281d8f5df76b0b98fc2c7c5e80fc8dfec77988a712
MD5 9c05ac1d8d61cf62d56cfb1d255ac5c2
BLAKE2b-256 9a2512b2e99fe5e039357fc39d830a75d4589523714432f03a564afe7ff3b23a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.24-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.24-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 91cd18833f4732e1ac26826c78c4f498ed72e849ff6e151e7af9585b23f8f6fe
MD5 94f4909bbfe270dd116eba28a2c35aae
BLAKE2b-256 fe4d707a221a278693a5bb2aad760ac353a3e34a5c2728f0141b13e4aaeb9700

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.24-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.2.24-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b2869d58f5340439bcc8093aba32b88850c279d42c972604de1cf50ca34bcfab
MD5 7057a5a8f463836e355c0de89e647b1f
BLAKE2b-256 06c876eb748d20ecb3df8f1729fc0ecb068d248330b3ecc0320c2c33a21574d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.24-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c5286b8e1dabe13379679df038a2bd7167f385131ee4a6a63aeb80405a8e28ed
MD5 02892be49aa6a75ac5c5cb836892aab8
BLAKE2b-256 110fab617f81dfa8f6db4257e36a7520bf4f82cf83162f6393125558396d8f97

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