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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.365-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.365-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.365-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.365-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 aada25fd1c1d9e07f293ee6d251683fe58c377563d3f2134655a73bfbb3763ce
MD5 43ba29ed5bc1488327d756c72b8c9974
BLAKE2b-256 d5eba7568599bfccf432e65efc8083ea066c39e7c52473381503963619094c63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.365-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.365-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 246e89317e6b4d07ca0a0b97b10d18431f97a459224808c128fa6085ea7c2a4e
MD5 1b3f33ebb815c034928820ec6ce25209
BLAKE2b-256 d23f2bd0f9c3c654c82a214e9f2efd17b49c4ddabf006c6c76c3869237276165

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.365-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.365-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ae72d1d7c8280ad487cfdc3b80edafc78a128fa6b8ceb38451baa18c88125d46
MD5 20acb32a9b933e6997acd035bf026578
BLAKE2b-256 c8c6b8732c0b2f6de2aee9cff54a0c70de31343176d565e8739e59bfb20a7cad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.365-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1dc476e2fdc852bdd1f6dc6998f90134f51ab996e1c9ee45f3448a13458b5bc1
MD5 0dab018d536122ca1cc048d63b63cf19
BLAKE2b-256 91e5c7ce96da8d0e2828313375b585ebc7dd91fb1deda501baa6a9d6dcb05356

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.365-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2647c5e26ddbac65d6d1beda2f05d20c7a4a9cbdbaa5f12e412f7ae52c1e1ff6
MD5 5b6be4354e9dc9b15757cb0ba51b25cb
BLAKE2b-256 22d34dc0efd2a4414fd074ddd17d27e09d9c9413602c54379f53596e4619a3ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.365-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.365-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e6cad344d6a097db859b18ca129eeec29235af2d81e96f1036bfe9877bad3e19
MD5 6be132b5574052b8d8961d716adeb6c1
BLAKE2b-256 193bc380bf5da790cf84d82b0afa89a7c7f460b2d9c911d8cd3a61450ca0316e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.365-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.365-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14715c8deba38a35f8ffd13666ba8ce5b05efb16af338ff440ad2fc9e71ea365
MD5 93e52191a22360e2762327690215db07
BLAKE2b-256 2212d9d70359f8969561139e50b2dbdb555836dcf46efff5f9f2ae9e2f5551e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.365-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbf86f626d0828f76508ba542e8fca8a428591ccc423cf51980235e7e2377d20
MD5 59bc001157b220cc7e37051d8cbe8df1
BLAKE2b-256 e992da94a853cdb630de625d5e699c0df657001c420f8e7bb3777ecc5110e3f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.365-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 00609b9c574c56146ce6b72a408d60cd00eaefa385df0bf5ee151dd8a4268b94
MD5 021833f6a02546011c5a5d5b9e8eeea4
BLAKE2b-256 9422d4ee83ddc8296309f7ffae13d9de4b6f8238e9ddaff199430858fce45e80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.365-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.365-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 18719b683329ef6bafc77cbbb40282d110a902fc15c689c0d095101f1a9f408f
MD5 2518ba69d5c0b739c24a25ee93274e96
BLAKE2b-256 1b1a96cd3fb754bbc0dcfeda8d30eec7b847f80adfb8e8e77ca1c646d11ab8cb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.365-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.365-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ceeb38024d22e86efbae611f281bde2ecc823640d3882595a50590d47d7a59f0
MD5 2964ca8486c9bd712990e3a0ee059acb
BLAKE2b-256 e4e5f5674a66e4b32739066f1928ff5d72c0980427e85df9df6140ea8a8f06ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.365-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8418e275e61daf2fd934793147e71e622fdf57ce32d287c221b215ebd63c9871
MD5 45500039f051fc5a63d49ee33bcf91fd
BLAKE2b-256 5acc9129b94d10e6cd76c27ba45d36a3a5b2535794a6746bf28b85ddf2fda68e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.365-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.365-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 24645dd69663f558f9bba43bc369b650d55c63c178d4f17d15beaaed3375b69a
MD5 b3149e01d5d9c9e8a95487ea801522e8
BLAKE2b-256 f2a9672232a5d2e6f9d0086afbd2b0987943357a3859295b3f10189811ba683a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.365-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.365-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 16287873ca8d9c484b7635f2739c320cb6ccfddb1c0ae3f99dfc653e36f340d6
MD5 fd8b82cc3e830f912be132d7255518e1
BLAKE2b-256 e75db069b8e0abda78a2c6d67c5d9a2d3b454d922b434a0b5c4aad3a11d22cf0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.365-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.365-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b2d1462f295408bd132e9a68073e4b78affecd54e7fe628309b6b506c73743ca
MD5 90371d535018a076d4a2f9a8a2d9c141
BLAKE2b-256 787243f6bea86d2077898f499ccbfe8d726f2233f6b5e3ea1a8b6f05938fad86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.365-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9aaf59a3991aa89f60633b733d6f9bf79bb8bf55fa72f8568c282dc06e74f46a
MD5 63adca7908cb8df271505912a58e41c3
BLAKE2b-256 4a4d85b7377798ddfe93f3e8fa780b7c09b60d4d2fa4e5208a37c13d9550f00f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.365-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.365-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6da2fc21c1d4272be2f698dcd8dbc5b13161a8f3a3617f84e27f6e35f5509213
MD5 57728356f43a6bfb6ed8cd94b099ec4a
BLAKE2b-256 bb2250f1a91785c56c1722e6341a15850c1bb4725a54961e106d6d4cf3d42cd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.365-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.365-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4270726dc4a1c03baf39a16a10d12913d33cbfc6a8ef50047ccf535e69a8c6cb
MD5 5fecfc9202529656f6fbe49ed92f641f
BLAKE2b-256 9ce0fa95b93cd2b958b83125929f1bea2016a2e699aa7cecfd8dec5c8bb91e64

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.365-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.365-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9f762c7bb154b4567b01e64d65bae16bde693e0170414bb3b36eb0dbc49f870a
MD5 4b520d34abd79b2b908917d36c4a5255
BLAKE2b-256 7ed99de2d5241babc05470b1dc482e56fb7dc7d268ae6031f6f1b3e828275a93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.365-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f9e1696e28c1838747d0f287e57e5213e7bc0b668bbb404b5d89612c7ff2ed8
MD5 5d13a3240a0694a6f413672eef0cef87
BLAKE2b-256 9a2f60660d10bfde4fbaf3f659f352098c3aba4dde07fc7db1e4896eba153215

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