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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.562-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.562-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.562-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.562-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a764649b2a657623c6398b09a95d8930f1f13c304bac5bf6e61cde5b5d32453a
MD5 05dda601ee9306a1fe52e8ba4f988218
BLAKE2b-256 f0620b8fda6731d75241c1efe15939dd99d5345e441e4520fb42c724e2652628

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.562-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.562-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 492c8f5b7186c2a4a05f8b0d47f921d8637edc02b525cfe117f72bc033d58ecd
MD5 2a66337638c758870bfdac280290e9c7
BLAKE2b-256 6b1cf350808c2336ce93b1158d0ea0510bf24d1bc218510bc2960857bfeda204

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.562-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.562-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2e64bb125d8563a40706f4faa892a66e8469bcd56e9da78fb56b870b1c9d0037
MD5 3c1fc2f4ad72c6a6bea2a3a329f194ee
BLAKE2b-256 6c00b43e39722353f61906ef791809ffee1f3a036072da52120656104bb13d9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.562-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab3e83119eeb4fbd81b1f1a911c4757f7fc477356b5830d549cd7da0cab33805
MD5 4d442681b0ec327c40d4cbe8920a18f6
BLAKE2b-256 8a191902c7a727916bc2ddc4e2c1a959c2190191159ced6ee58808318591eb3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.562-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b0e86a9829bb183c26314ed6ac289532d845bdc68fea51692d190a1f6489f2c2
MD5 63527aeacf7fc95586aef25bb0fc5931
BLAKE2b-256 c8743d62f2bc4771d55afe00135cc954770af16938f42d677a35c1912a342c4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.562-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.562-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 138568361f0a92130b306e921e3c7bf3ccd0e8bc9cce29b5b0c9187a17b45204
MD5 3f075af0a4f87e603eefda720be8c6cd
BLAKE2b-256 ed9659cb4b380e7c6b08108be02b8523c772d0570c5c982b15b0f910ab13667d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.562-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.562-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cd69967702167574b77bc62c9916667c7d0d9c95311f7c34c2588eb3c9afa50a
MD5 b91a9d4c5d83dcbd0929ad4319c45f15
BLAKE2b-256 d09422bc27ad8bf0eded018202f01b70c14a2bb2ccda32d55dabe02f59c21d3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.562-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d12bc6d3ddfd97605ac0823145f1485e8738e0c31164a29c8ac90887e0c8a9a2
MD5 70c6e97ccc70568b2fbaf7039ec0cc41
BLAKE2b-256 58b2a6e900583424213deece05d5524606d01db5cc1af9f045c6d7bc65bddfc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.562-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9217d29d543ea7ec57caf849cd66e4bfac6caa8752ddf9865ec0063b1600e537
MD5 e5bb99edac4bdbc531dc4e2903acbe0a
BLAKE2b-256 8999a9fc1b11610e71c14aa241310526b0ee46ff7210729488b47b367a22fa5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.562-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.562-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3ea364c7d4591537bcd13708a401c5b247f9a1db22d9e63ea0871248522b1a1b
MD5 6a7a336fbeec08e57f6d332efdf9170e
BLAKE2b-256 e1d94ee7b6adecbe6f83901d5b172bcf8215ead64e70670045c494ec2d836923

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.562-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.562-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f5ad13612b013cb22b5761992698d2343b80af21238ee3f830af906c7076b047
MD5 6cf326695f18b929cc60b34ce654d83d
BLAKE2b-256 ec6ca1aaab2093e797911c607ada12cfe3278b1d82c0f10a2551fb9d3b640db4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.562-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8416c7016f5ecd7b91be09eb18222951413e84386a033419960b8dc4372c1e88
MD5 1aa2248a543380ff6525e380ffb3ce44
BLAKE2b-256 7482822fd1e9aef8ce5c50a6db813e60e5fee8f422c39d252ba4645930f17cf8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.562-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.562-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 97ce7e5295eb0bab2d46d8c29443557e07da141142fa494bb7ddf5ee84830d01
MD5 ad31daea0acdbead6d108f31b7f9feb0
BLAKE2b-256 48cb93a5de1d215f422e787a1a1f9bff8a3d4117dfeb17c5e8e0e30792be6eb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.562-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.562-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bc4b33a470d14fce0560783c3693a1e38f474a2a2bd58662cdf2fcb5b1782f0b
MD5 9db0164c1784827fe7d12ced65c9e513
BLAKE2b-256 6f4688a3eb59afa2e9e8d76c5147bcf493ce7ffe46a21791dbcfb1dd3c6bce92

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.562-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.562-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a16070bf9df7bc111e6689eedaf06859b5a658027e8052330c58fefe5501592e
MD5 64b12647fc5206faae0911cc04b966fd
BLAKE2b-256 6fb9300047d45c370d9609cec6b55bd1ecba1fcf700525a07ae616472f97695d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.562-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9d57df1988bc4bfdaaceab9bc6f42f1df082a6e07b0df7d7e1306c335b09b6c
MD5 ae62b61642664f56ce613704f459d545
BLAKE2b-256 2f5bbcfb6ddd317d2d8849b4f1dea7de159c4aff52b3cf9c6b6bd3f2de679080

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.562-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.562-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 04187dbb9cd98e87941f6f09e58b593a49127257db1913ffd4c69f9617808869
MD5 602ab5c34fee3c1d988da631ebffe923
BLAKE2b-256 01fd98576e48ee535c94f702200d1cf6e6086a0b43edbe41a3879f8e288ec326

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.562-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.562-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4bcf370c9b1e45c3a8151f0de22406d05100ecb5ebd232b70bb435c32ab15d2a
MD5 e2737449cc8d85df21179c8549012397
BLAKE2b-256 2a46af37cdc6e5dd8ec604abe22b543f16667efa2b16730b30acf68cc3530048

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.562-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.562-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c1ded6411038a9e58ccd0adb69c7d397e89abe13878ebbba60a05b9823cbe2a
MD5 18a56204d42715e1b739297489f65224
BLAKE2b-256 0c418ea02314671303eb4e3eac4b3293274242f56408126e9257007bca4238e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.562-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 692b6ba11ef4ee11b86ac2d92475a12507374c62381b2f60b3c115402ae8aa03
MD5 c1e4139761680e4a71b9baeb530fe831
BLAKE2b-256 4fa12d9d40156bd4a10e1c3cee3237eb63a2667e18b3f031e74d0fd25320b44c

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