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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.661-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.661-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.661-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.661-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ac5670feb900fcd026f74e81cc07fcce0552555212a6675e675fcebccb7b7737
MD5 ce7f2530102ecee592bbbd239eca0d31
BLAKE2b-256 ea70734b948de44e50d89ea24e6bba26e6e9abe2ef64e26ab2ace654d0850cb0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.661-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.661-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a1bfcc1951230d9cddf39dbc4576f6b81232a341d3dd973735edccec99f71c82
MD5 2c0377d6232b9ced3423448eb6fcdf99
BLAKE2b-256 665510571051028f611879af9263ab5765f442ec5ee8db15b2f20d4a1fd92a1f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.661-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.661-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d422667703a3362b213b4cc183a62ce1f568f0140fc32e121f4ca18cedf858aa
MD5 3fdb749e8dde6b1d17559749e426ecf9
BLAKE2b-256 11741f982c3c839b40b92dd9cc903f53a60c8d965533ddb2dcb01c8f284c6962

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.661-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 808710de1890f837dd6add1e85ca45863a0a0b53cb3356bce16b7bdac2aef7f8
MD5 e67bf4b997049ad3b9e089df58f6f85e
BLAKE2b-256 81e64eb58b02b04fed307a4fb90d70aca949469ba15b238a33060a3bfec7036a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.661-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 abbfa960d5976bd294e0d8e353f509b8aa6d0887dd7bf233a948d5ad5b3ce0d9
MD5 7f139a55ae1c51564d8015573769635e
BLAKE2b-256 d73a2f6df6946a0567463d2b18071f301d1a8b25a2ff9b3af904f6147b132b0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.661-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.661-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2cc1edfb79a3281c7714c1ff7f90fe795ab564a208ee98b8421a0c84f8d017ed
MD5 9fc0007edd046a50d48cbdedf7ac0094
BLAKE2b-256 13d538639ac359b53fbbeffcaf1e01aa4c89d2c60def08564cb60345348595e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.661-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.661-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dd90fccb92a231fa40026903b5c7ce34fcbb62d79ce80f847ef38562c8df3d90
MD5 74a5cdf52214e53240582caf981f4c9b
BLAKE2b-256 afb3ed4858a3cfd5b22f18ab4f65dd0cd38362fee1326c7fe365c6b3401cb395

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.661-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1727b26df8ed727efc61d4ec8a3802bc10862787e75463b8b576f870c7b82d4e
MD5 6586a15b017373e33946e744fbb08c3c
BLAKE2b-256 0c25847670b522a15b68324a46d1797dc284a9d79317a56ba40eb3825053d1c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.661-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4b4fad7cdcaedc5d2434dcea386a95ce19e324783585f3b2006585496d17c54b
MD5 6febf4afd5ca85b495e1e57be4b169a0
BLAKE2b-256 5a3967fb0c044dd7c350c4b59e31764c0fb02ecb68c9edc0dfb24de2b31f475a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.661-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.661-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 df108931d534d80b6bd54e8eccd5ec291b2b54576d945c23c6641854e918cb6c
MD5 4831374f322960bdaf4115bedede427c
BLAKE2b-256 d15dbaec2bc27c2e39ace7f5facdc81a4b112e23d6049612575904c30df1f00b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.661-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.661-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ada01085e5f8455a005c06c4175812796b10696b47d91f95c977e81812700add
MD5 788a00ca4b4c7386f949f7c56dbd86fe
BLAKE2b-256 ef4b28af16cab8340b54f33e5fd30351b74cb77003a71a449846b3fd15c9f9e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.661-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 495341c3d426c2047f6383070da34fbed00624944a2b40884191ecf80ea1dcfd
MD5 dfb37b67d04978dc5e6b8ace92d87935
BLAKE2b-256 0f9ae7ab59b08f4e2b5418fbacd3fb714c93fef29668f717ed9f71adce1ab7a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.661-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.661-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 75f70719c11e345f1ec529fa4d1d2ff47478053ac87ac22f22e45c770a5e2872
MD5 e4e49fc4887f2d658f39a3a342146c55
BLAKE2b-256 0cf3f0420ef4fe51c61e855538aa23c8719653c3ee765b132af84dc7145d38e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.661-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.661-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8cfb88d8c88840962a4c4b4b77c2894db7e113626cf4772d5b533fa904444d41
MD5 896f88fcceccd26312d4bdf510683162
BLAKE2b-256 c87c982cb4363c92264e81885235afe3cce0f24ef02a31e7527d4932497f3e00

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.661-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.661-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d94a9abc88dc5ffb36735e3de4b0165357922640a5186818f71f65c7ca12d882
MD5 560dbac086a23bd3393c73d99c5d5116
BLAKE2b-256 f0e68acacd091fbc6dc49366f75ce802bb3b6d2872b0d050d12cd35738bcdfe7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.661-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15a653f37fabad3aa8193ed1baf6355332843e4cc95a1e3f263586946ba10446
MD5 7255f0004c30fbdccd7154a5f46ee1bb
BLAKE2b-256 7fc719742ebfe409a078512b4763981980fd7a94583b404fbcbdb021e6de1046

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.661-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.661-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3cf4b277396ff543e73c748fbdbf8119ceabae276f3955d8d31fd20b5e55d97e
MD5 f3341958fbef901dc717a479278a7939
BLAKE2b-256 15aa21e950dca02c1f8bdee9f6ed4b002dbd30bc2d024fb78ebd3edd54c4788c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.661-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.661-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4712d4fa605c60ed92cde860fc57c3be06cfe0fb15f7fcb820f8f07107d2f887
MD5 2cacbc9d8d153cc266d629f05080bd45
BLAKE2b-256 5c908c8080c84aba56087c3ab292cdd9f455be77b8a3825c2b66ed8e3c0454f9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.661-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.661-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a37c6f5b553685bac9784aa2afac0a1ff050d5fb0c5668836ce41f845e155b17
MD5 8662b3309c31766a195e32e4014fdc37
BLAKE2b-256 6cd59f732190efd595ccd8cb84588bd35b4b4f1bda1debef6e90a2f7f9591ab3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.661-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 200bd007db2682ded8395a8a3ade02ccd40a36ebce41e8a72f4742a2f62dcc33
MD5 bd3b0d948679b1c6d2218238fb793bcb
BLAKE2b-256 c13ef766d9d95d424f8f24b0e56c5c65ab748122af4f2cf6cd8570ab8f370fad

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