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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.642-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.642-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.642-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.642-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e8d5d36d7679cd329b36b7023a5de297d0d443008e178d1adaf6ef8663ed1a8d
MD5 e3ad84552e8d5b9b3f9522734fe18763
BLAKE2b-256 280d344d82c73ab28a70b759b6f44c49805c13485ad2d9782d88f3a071a30697

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.642-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.642-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2d501c6e52660e80039589086d3ed9c17d0311b1ded96d956942922470900e92
MD5 b7a798b754c2912e97bc33e1c4e7b0a6
BLAKE2b-256 c9237f1ad8884dce27a02f80627febb93ad9b6e952e3a764144b2fb6d39c2e50

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.642-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.642-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 10e81eca265a6939840e10aebbfdeb792797eb3b55e736f56d35eac9805638e0
MD5 19ee28d0c134e2c6b44dbd28e3eb0fb7
BLAKE2b-256 2e23d182846bd2bc5c8420b1e5160388ba0ed2e1e9a0c11b5d26dde66d03388a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.642-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5e59a28669891e3e72a98799a3de52677e268ff1f8eb15f8d8d50cf5115f116d
MD5 15b0d3412383c0d666fb991eb87d1a3d
BLAKE2b-256 ea93ce401c370a2a9b912aaa3fd1065691da3bc9ea92205820886172ae0c5e6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.642-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8a9b7707fa2933e22f5034337ae1f83aa6add5399e491e4765c4c98c14c943e6
MD5 33f2aefa7983c12d0b08fb0b8f8a6d30
BLAKE2b-256 02647b8dabfccea2a04d374972a4a8a2288f5d5e730d493071e393684565416f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.642-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.642-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7d50abc0066f2ae7ab0748fe417ac711a181e449f5b9628a7e999342999131c4
MD5 d5cfa335eae6c2b9a566158ebdf41b7d
BLAKE2b-256 9385df12dc3f9048d04aee600f2971a61a2d10355aaf5212157767bbd31af0f5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.642-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.642-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2ea3934543fde39f8f607ad5f4ebecab90f92ab3918d4ad659cc0ee5247c495e
MD5 b84e7e4d1a690796b3cb3c5c0cf49358
BLAKE2b-256 aee54b62fb3cbd4d2150b7c254c895099576454facbc931ec503e5b6aa993d10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.642-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 426b8c6e83932105dc52cf3b3e5001787a89e440810f1d3ff3794c5404c84774
MD5 c7e7f22378d9a980afac3482a9d21ebd
BLAKE2b-256 644c7ae691da2dc279c028c3d89910e0456442d64eb01ef0bf6f3ee5c2a8ac52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.642-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a89331780321ee3f122e447d872b968187adc428317090689cf2472ba4a72755
MD5 da2ec7e9c67630213f81e6908cc67f11
BLAKE2b-256 7cc7efc00cd778fbf710a5489c208e32cdd8010b8ca6a8a882a126acb59a8ab1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.642-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.642-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a2efbf7187a73242c7b8e5a97228c3a63c94f920e289a6c1ec55199fc60d8627
MD5 d5555569f8f0bf69a57978dc011b11be
BLAKE2b-256 ca415a86362c65e4361c4abffb5a671f47f98e3765e34d2a107ad1ae34b020c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.642-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.642-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e17f517861b157c9598d831c39a02f5eab228d96ae25c36e84df4e0a9bad7b5c
MD5 c788b2df8d08c948d54366fcdef21f7c
BLAKE2b-256 813adf4d59d2e1ba52ca267722ff71afc3b7dffb0b2d38eeaf6bcfda24a678fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.642-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 27698d30aa2a00e85d2a1d4523e22dcf1522dd217f3552b996b7e496ab824058
MD5 a661e85d4b2cf5a24eb242a3f9f9f8e0
BLAKE2b-256 16d51f7a8b2b7df35875279704a435bb0f5abaa406496bcb9915a59536d60191

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.642-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.642-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 71289d4dc8f33d0f9b9cfb39948fc83226ab4dd307f461b8ebf2d84eeeb338c9
MD5 b25824794a929d918ed1555c81b1a25a
BLAKE2b-256 8ed2952e03847be148afcb51a7020e9733d07a6377e0e4b5321a07a30d35dce2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.642-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.642-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5db29899bbfc1bf515ff8d67fd93ab2472e30eb6e28869469281cd2ef911ecb7
MD5 797ac7312836dd17b9a4e48aef1b2142
BLAKE2b-256 3053aced547cbcf2fa18f9a0af04563246d85f3d7b5fe99d369bf22e60d74c28

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.642-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.642-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c522f9b576f34f1e3da92f746210eb654ac5cf1894e518a4747846890e4621d0
MD5 eb21724eb34fedaba9ce5d2c4bb52c81
BLAKE2b-256 18584c90a104b3c7cebc7800b1ba9d9922e603dc54651b88b3ef3004db1d4f1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.642-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ba5c6fb4fa033513c874eef9b1ed515556938ac3935471ae5fc17b85f64edc2
MD5 a9e45f0a1aab129c5dfaf0317902e40d
BLAKE2b-256 839929a399566ef0ae5480a67d39d5d782680aa94756a4fc91b2985cd6af09e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.642-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.642-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 529e3add9d11195a01d8957da8adcfeb902f1c0d32da7ed545ac3f0555984cd3
MD5 7c431066ff6ac8e884a0a5e587be710f
BLAKE2b-256 c34940b970e61c0ff911fd3159e21df6a46933923dc7068012145226a41648f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.642-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.642-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c918aa7bce12bbd98b2191056fded5790ee4de6e7c549d2d02eed8202445dc5a
MD5 616731bb20c1ea05164b255214551518
BLAKE2b-256 8ed9c645a689bf096385187d6c472efc232525019d9497cf551539932a17cb14

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.642-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.642-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c9c6b0e838c478060623ea52774303875c929badc21abd921dbe628a01b64af5
MD5 8cb09e1929deb79868f7cd18d3a9c419
BLAKE2b-256 fdc5990765406599b923bdcd279a330828c667070014831f6e3ecfbf178eaa62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.642-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab22731af987cc138413806eaa2ae6c676d31a6aaa8db6c4606e9d0db2adff76
MD5 5b5922d75c0748e6ac1af78ff959ccf6
BLAKE2b-256 a1c840780c8f71b5cf2de458029842a2cd582d08f4470a7356c75916855dcba6

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