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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.758-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.758-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.758-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.758-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 533b31a081691e827de88adb8e75a0013e54406338ee2a0aa5013b7a46be027a
MD5 071ab93575f4fc27e3fcfe9d7f69656f
BLAKE2b-256 7bd418540607566866decff6ec802ceab1ead049a17ae485878946556b2348d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.758-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.758-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 30810abb8739367092ac47e957698839c7d616c6915bee56fc98dc1d579eade8
MD5 e993c6a72648385e4b7a3d147e408540
BLAKE2b-256 ff54245436ee9def754d2366dd52d340b52315ea27cfac4074396a35ff83de7a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.758-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.758-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b1a1611146a8040d7c3559803bcde019dd671146200a62678ae1a74568931041
MD5 31ce02d8ecfd15c8a0d6ac6dfca5d843
BLAKE2b-256 6c14d00c4eb60976aebc755b8d2f16db94b7a3f90c056dbc47719501b6647627

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.758-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b22fa8f3f6df6134fcb7b4e55ccfa501f0e1062d3e7fdcb0f4ec2f3933a41e95
MD5 30776244e63adfaee4110266b54d654c
BLAKE2b-256 afd79cb2a6b13d7c8fb64b9bd4a0a80a21d1a2801e33502894501ee545c993db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.758-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c84c3b12500f04aaa4d463e00410785688d97d804f35c717a12210d4c603c3a2
MD5 c12ead3f0b49a6d9ee08f3543f3006e1
BLAKE2b-256 8310bb951b70b72e5bde513f4274f16b88c2b18a8a36e377db63671598266faa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.758-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.758-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 54302818046ffb580dfd4ff98be764b3839bfed0a4bcc29b140616aea4e4929f
MD5 997a4a952008d5bd70effb200e8183d6
BLAKE2b-256 842388111f628e40ab4c18c5aff5cef47b6424f71d1b22bfb8e47488adf64b8b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.758-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.758-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5acb534d2d6cb6e1491893b9a8b6170291a02724c8391699c23b1204584c5f0c
MD5 bba15b276fb28ef15938e92201ceee1c
BLAKE2b-256 1973004979e4081b5fd9a1f79b259b286f0219d4b439da0ed96ac2b304cae3c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.758-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d58d2cc2fdcdd8fb531f0ec94c7f1ee9bea91f4f0a0c21a45e53539cafbe236c
MD5 d0881346bcdd7922e92c472b77ea69a4
BLAKE2b-256 c25a40e6c520d4811aa0379fa7a98e04046f9de27d935021365c6536606597e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.758-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 945e2c6ef0353b1e7c0fdd45144f57c4735f067508814129c5f771e9b2de3076
MD5 7d3b086755043a1fc65063ec465c8dd2
BLAKE2b-256 8de3aa27fee88ef02148ccb1f64d1d1dbc2f2de7deee868bf0e2c49b6dfaccc6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.758-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.758-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1a1df798f908a0dabcb73c1d705ee963bca28bd5eb4d57d61fbfe051e8e05599
MD5 45ae2f9359450357bed8b8de2758a308
BLAKE2b-256 6724733748c268b0962a87cbce773b5b48ee7c6ee264b8837769e7c0231a5138

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.758-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.758-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a6b0cfbdc66f32adba37a5a18a9339b49fa12c347afbbf71624090741cb4f39e
MD5 ae73f45f28e6391da01168bf270d44a5
BLAKE2b-256 137295f33cacdfbd927ade65d374a058d88aec60d1fd39891ffe688de2690c17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.758-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72bd356cabeb094bae41fedc4598ce87dec38bcd6af2d64335c7bc6a65966993
MD5 cda8d23bcfe82fee1c85c9127766d324
BLAKE2b-256 f8b99c31925d237d30592265e55d8d3c02d47a873a3d4916304efd563c89be61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.758-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.758-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c8653145cc71977472e12ed0c65e14f15cce757cc555cb724c5c7f17b8b8c4c8
MD5 fde8cc581c12a450a8ca2b98f771a7ce
BLAKE2b-256 b20fe4036d0e0b4baf430b7103180c2b62f70798fe4d9d76c43eac1a82a0bd9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.758-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.758-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c9dcae8565601380a8d69e2d2e3ccb1cfe6dec26bc1b40127212eb89ae715ec1
MD5 6a702c9e5a249ded86d734721280a405
BLAKE2b-256 3d5a86bba8dbf40c1ae17c6c8f394f12dbb7eab25247697d3afd52b95acc8a2a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.758-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.758-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d72381896741e58f0a0f0ae3499171d2d9cba91238e3810a25d62535c47af197
MD5 abf18b7c5807b5f6186676e3e08ff88c
BLAKE2b-256 0a7b90d3d959823b5f3d0289aecaa4fd895678479b65c1ea1c0ec2d5751b80b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.758-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbe4662cb9732fc479e71bb265d8e62a224236072c5002cbca0e6b364e3af35c
MD5 873235e8f5c717c0c6989b98b63b9817
BLAKE2b-256 e4da3f886015b5bf3a82f18a84546e67595b6d113ac7fa15c9deecbdb5047187

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.758-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.758-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6b99f83735676298d5edb6be5d91b18de39fd0777e97a2063c771da9495df1f2
MD5 bd44b4c4af227bf622a6e5e66972a430
BLAKE2b-256 a5d33db893d62f3552b81e756841d464d7f6d8a18ca45cd0c36d16fcad443035

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.758-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.758-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f7b1b5f76ac0504a10194031792f914afcfdedbb8201b81ef44d4fd56037df21
MD5 52102dc6f94af2289f27a7f2e0ce0e09
BLAKE2b-256 f52cd4cd30671d3fa4bf914e2b558137bccb0ec10d4d7d3e3f4c7e0b526216cd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.758-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.758-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 75c5a5d3019aaa85d5b5f1467307738e3880939f8136540df6133f72c63340c8
MD5 04819dcaaf31b27630ec12647839a95f
BLAKE2b-256 92958e728081143a3bca716e9a657d47c1a965734a702b7a0161c20008c95154

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.758-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28eb980e7a3339f9cb4da280c919c2d5395ba5ee2f8200b3291691758dd8f239
MD5 3857a4cc57cfe989535091ee9b0a19ce
BLAKE2b-256 425695c0fd67db623316b9b3e88acce75fd79ced0221807cd4183c4b63b914b2

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