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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.647-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.647-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.647-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.647-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 43b0358f834125c84b4eb00f208ba6a9c2b9da757abd992cc309c75fd2f1f0e7
MD5 9057cc062f3256cca7bfb525c7e4d9f0
BLAKE2b-256 8ea792cc7358db93100575912bb857e1b41851ea7f78fa4bbeb6be29f0436499

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.647-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.647-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 88a95e9684c899e0eaf2225a7927a87c11f78fec660039c7f3c643fe41e21aa6
MD5 2ebead114ab86bf07a262531357a7ef3
BLAKE2b-256 8bc31fba33f8937f35e60a9a07d97f4e0841d2b1ee49b50e1d25c98d66d2a1ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.647-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.647-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8ba20c2495653039092a276d5d4e882e54e4275809461506c222057f3237a05a
MD5 110528d24ad7f6aa5b982d7b492ea0ea
BLAKE2b-256 59bab911af7cfa7b8429b95aa7050bd77d2d9fc9d149e0e16c2265ab95da23e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.647-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 604b9dc34c4ec3c89643899238d6d9e0bcbb5edc7f8a35f679e85cd39f3e0299
MD5 513b8af47377c4f759705f9dbfe6f349
BLAKE2b-256 6087758db2b78cabed6971333a58eea68ad239e3df496c919feae104e10f0b15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.647-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eea5e75c03153e104aebab8dc32a1a8ec2408037b1c41dd0da743de3fe3e0f07
MD5 eca98eafa3d15d05a1b1ac627fd18cdb
BLAKE2b-256 025b3e071f8785aefd7ed0ab58d826d56ac840242f174b3f9fdd5af8f88c596c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.647-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.647-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e67574b67a2654d31030693c68f2409e344bc35573b00287012b09c8207411f8
MD5 46d2e0e102104e1d9f57b0c99a66234c
BLAKE2b-256 d424c052f33be037df17931bf4d3cd2a331d0755863875d54a82630277dd5b3c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.647-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.647-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7a674796b90e8182274763291b3340ca20e448719c2d1c82c1919e27f5a2a251
MD5 1834cd6a65df347b258a07a75921cccb
BLAKE2b-256 b0a240cc0807130dbf2fd6c2177db3f70e51afc86e1857e593a769d111a20f1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.647-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fdb33da571d6492ddc6ea128ea863d51736a6890642e385401610e200c00df36
MD5 14c8b32214c92b55e167c676416eea41
BLAKE2b-256 838f1e46c095ad1160edcc490ed8e25d4785653ff2f9ba5e386bb257cb43d7a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.647-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2b5ba9f6aa3dadabc69caf4314ea1177c507f1020b08829bf617be4eefb1248e
MD5 f84fe86e17b3c83e4dac7d5ce1447c50
BLAKE2b-256 6b2791a5d9c8b34fb6a885c11b5aeede02b099b822bd46014189bfe1e0df1a95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.647-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.647-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e675555d29a5aac0b3828a7ba3280aa447273d8c598c2352e74df1e85bcb57e3
MD5 6426bfef5daad5a3d58f0ad17da38d1d
BLAKE2b-256 2fda2684b162e331426c7eb9681965be41c675de88d9254c49015886f4913501

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.647-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.647-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be2bacbc3c24d919a13322c5c0184c9f456f2c350c51a0d5e6aa04fa48ed0102
MD5 4d673b7b7af16cf2892579da464f9d47
BLAKE2b-256 3cb7c9b6b9a9d4f7467462e206b18d02a25592de090f4f1d29a245705da5da8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.647-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb607bc1b7af6d8ac53dba5f4d82babb58832a6031cb75d424084e04f9b2c0a1
MD5 14965c8934de299cb96982b60d3068f1
BLAKE2b-256 96eb6cb38b3aa8a720f3a7b9501fe94aa99332401ade88026a650227a971a6b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.647-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.647-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 801f96b98ae9350f2369d14a2b0a99c641ea9ea0ad6ec25bb458575a616ff10b
MD5 c845131b2aa746522a11ee6aae8fc11f
BLAKE2b-256 40c9400f69d11a0a40fd9321a8a8e387481a528cc8d3cc3cea1d9c81787cd504

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.647-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.647-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4caf19f1fe7f0b11dbc69ab0629379b59c5efa2d8223a2c59222b487ce7238c7
MD5 f7b75b68a6b7282102136092aebcbe69
BLAKE2b-256 32a41d329e8cad6c6cf3e50b7a014fb4660475be450fb1e70ff4a0b194803cc7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.647-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.647-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a75f8f727650db72d70f6594ddfe85e04e8252b596ef5428200831294aa64e6a
MD5 58fe91642e6252e528b28a2825a5ca61
BLAKE2b-256 d90cd3057dd72b11b4bb6a4585801a4040dae9c3066339042af0bbe5a3851628

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.647-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 60678c37470b2ea2b4dfa83c36f31c5a264693901715ef3729ee3e1c94551078
MD5 9828dfe16954301c7f1b4dbf6d8c0e23
BLAKE2b-256 547963613fad8746287d572924be7e19dda376a3b29861df5e55037139cd69f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.647-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.647-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a54bc2b00d3a8113d1092afa9a24f16b64474616b4af48fb999b72bf79f1bd4e
MD5 a2bb7346ea0d658744d20d5bf125d83b
BLAKE2b-256 3f310c14919015a4be2775d399c583970276f1f0178003bad437ed49f27d142f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.647-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.647-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 26b11a712ae0e7b1b6d8700e68eea69a464b7787d1ee9840eb4627ca0562bcf0
MD5 368435935ea54d6713c4afb5ff87df09
BLAKE2b-256 0e725c0275ba574ca672d062a74c75561d601dbeeb4e5d82a2a7b68388c45699

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.647-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.647-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fe17d8ad393a9db707edbda4e424b51615c102566114c326ec5673bc75868eac
MD5 da8dca7c187677922018d8f9fb7cbfda
BLAKE2b-256 ffbc2741b8ce28e05dce0b091351ff32010f7b656bb94f9e7be71c9395e41e89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.647-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c3da05a5261ab9652e504b3463a3570d5ca8fc76d8a100b8285e403b701a82bc
MD5 2ad2be7c8e50ea17422361d14a5f1d38
BLAKE2b-256 0d065c058d3d688162ce2d89e393165fec5f46e66d74de5609c96c9d6defff6e

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