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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.272-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.272-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.272-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.272-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 35dea115c0eb360e21e88dc0a0541d008ea840d64ab78ce736fb2b40729f7f25
MD5 6041a31178552b2ed217c544f330d0f8
BLAKE2b-256 b7bb5eb247239c1c8a68074f19f769f561a3b058736fbf49682a28c6e668da42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.272-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.272-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 36ef160b2a69f7b639c49d18df2f5b708d2ed29817b3b9f05b5d596df96750c5
MD5 067965d66ed94f0937581a8ddf916a08
BLAKE2b-256 f26214b2d0bd1e7e0ed7c2e0785498ab1bfdfe802b493f5510a40d714da7d189

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.272-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.272-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 58ff18d11f5fa58811cc800f363ec34d0fbfd36d92204d7acb05f87fd9f36a37
MD5 7ca74528dd469419cfb96c161479d26f
BLAKE2b-256 6c013b101352e9934e0838d45221b8ae98ab56f1d66a20f521af1e154a8b7c11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.272-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 898a777b797957e83836407ac4a0e022e8ee0b6011b156be4e001571b0ec738c
MD5 98c959238c08392abeac9dd0d1b0ac4d
BLAKE2b-256 a78fdcdd5bfb86ed2fe1e9c2fa269991f3cfc83aff93cdffb2378ecaf4e00a55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.272-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7c199df9045040e7bb3ce3169b7c170f530b948e9b1b995fa3b97bb1e585f04d
MD5 28012048e047a0d3e7bf055961fd427d
BLAKE2b-256 05182aee7addab44afe4626db8f5f4fd7482d5f133beb352b296b093f783a50c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.272-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.272-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 43859c0004ba1f7cc0c53478a61d1d01bfdaeebc24fa43215db7200a1389e00d
MD5 77e958ad95b0fd2d60ab8da963a9559e
BLAKE2b-256 3f5067d3549cd0b8e311d04e276944012a6dde2977cc1d37b8704735b40d4793

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.272-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.272-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b1b90925da7af032eb7d1ab421efae3d960d122a3c77f97e7e81e7fe20e64707
MD5 91239ca5ead3880c384d1bd7ea7dda26
BLAKE2b-256 6150d2f949a9a0228ca24bfa541eb8a0acb1132330601904e58f2facb1293061

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.272-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7ed7ded3ef26d9cc6df989ea83cb6cc08be63c496a9ff9e96f71354f840cfa3
MD5 737de53e5249d726c9558bfde0a066bd
BLAKE2b-256 6d0a00acc260cc8fc66b1d5ede6c823db74fb3ee63a3ae8564a80af7b5c4b421

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.272-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 afdd350823f1d54b6d360a78bf24f79c5267df5e9bfc087521dc62b4a37f0fbb
MD5 6065d1fe4be7b2f2f7679fecaf402b98
BLAKE2b-256 76864405f2406d6dfa3089566d99d100daa5db6afac80880889acbd091c8e846

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.272-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.272-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 6c71f0ec6c21505e66a7e34c6581b9688df786ac9063e650783203fdf2b2cfab
MD5 a3467fbd3d4dc79d318f03e52130fb9f
BLAKE2b-256 b3298820b55c81b899fd3ee236b82f4dee668e2b90ae97f78cf09c4cb8cf196f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.272-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.272-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a79e87e285e386a9d6826f8ed54686f8a28661d109676ac6ef742b2acacc9a50
MD5 089d92cd7687249b9a8201a89e1947de
BLAKE2b-256 ac5b247074c23cea8e5f3fa0e7362476f18b2bbb434b4460a776ccbad744247c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.272-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72aa1932074f0b22d734f5c5a5e8a18fc49e304bfd08d3c430fd1dd9e156236f
MD5 403fe14e51f48862c25e2f3c67ffb862
BLAKE2b-256 e5c0cbcca0223057711d17e183c065ffd27a9571441dda74898597069d46dfdf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.272-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.272-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 835c72935f0ea17636f9f27d46ed71499bedfc33ac1b8c21310ae4b5d565d097
MD5 e3e28177c03d0978616baa5e1ee5e901
BLAKE2b-256 16e24435c85cf80553e9a829c7470640d4c3dfab3845b98333f41a9296e8c851

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.272-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.272-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 91422f28f6f94948a18d3c483b486747cb797a19e17b0f4584c21297aa17f52d
MD5 8a918d4c505d998fae4e7485bc019c1a
BLAKE2b-256 2144091aa4692bef9db3c20b402b80c8fe2f97593fbb39ff476d6278a1b282d7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.272-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.272-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b164166dbce2919694849a29d8f9f3200c13d766e81766d3d5b226fa831c5327
MD5 d99dc5300bb58f7ca1da09cc0f436de5
BLAKE2b-256 483a9af0b514f5a09272d0b1df48e7f396987c07b8a84e5bab6272bb905bb354

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.272-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75889693c72a2454b22d83de3a5c027a21912fde91d3ad5d39d690d8dd26e555
MD5 6dc244e8cd07e5d2c69eb837917219e2
BLAKE2b-256 335140db36b36d114e5dde82a703b2597cf2c72906bebe74482ec07a0da34dd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.272-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.272-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3a6f37aa5c7ff54767f6ba5dfc74bc0d7183bb206819d1b7eaac199a9ff2def1
MD5 80555c50e4020865a9554d398d06231c
BLAKE2b-256 bd49e157910a8faab0ff1134d6359bb426eafbd52e0732f4212b96af78039390

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.272-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.272-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2e639d1beaadf7022b5e3e8e50499a9ef193b724e67e20e418ec60eea387cbf7
MD5 b31ef753ad04578b0ee72291edfc08f5
BLAKE2b-256 1a15987bed8329465b43849455f92eb97bae2396f6af4e5b182e010628ad845e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.272-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.272-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 95aeb3e119c0f3d5a954437857835058f80b1e1102d5c553e42e5c768fd529ee
MD5 4c1cb78a66081bc800ca9d3ac96a7835
BLAKE2b-256 a1ed11cf49839e2b74f4b405ab0cf9674c2516da7bf6299e8c33ddf25db7f713

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.272-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4734168107c8e98ae3326003790271d7a30f3e9ab00508ad06aec978e35f7748
MD5 00e89e92048fb4978ee8b4e28e36fd86
BLAKE2b-256 c6321a53a3347bd3d808d25fdac368cc6d937372715b6c8c77cd8e8597e02eda

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