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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.732-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.732-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.732-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.732-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.732-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cd13ab749debcf417195725cf8bff8962f71e5b9710aaef9448b01373e7d3c3c
MD5 37c686fc23ec1c6b3523a6e340e40661
BLAKE2b-256 a0459dc066a9a354ce648a5ba63580c7df7de10aaa5a6adc96031eb76f26bda1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.732-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.732-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3544284d03ce6937058446bc42233ace0b8d19e4efd0a17790c470f72f85af3a
MD5 11b6963f04357d62824d2427eb12387e
BLAKE2b-256 032d695fe01c44e72be5818a02add5caab917d4d1db7e94531dc97ca5992eb52

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.732-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.732-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 48d2513100bf16fd981cf8698f472cf9eb1b2df1307f58fa7ba33853e4bb25f8
MD5 356bedc26cd5642b4e44f7a6b8befe44
BLAKE2b-256 a06be316240228d1b26aa4c872cb9c5e067eb5ff5c622705025dd861a7c0b2b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.732-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f63aa5d20e8ddadbf0cc2f852afd735d1860782689a079e4cf18b886ce73b56
MD5 e0ae795a4059c540f36264b00c894d50
BLAKE2b-256 e3a7b939d84ef81f560285c8680354d53e6ecb7419c3b69a6f669b0319c63a15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.732-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 232161d0d0e90bec69e658fd3ff64cb791c6f5626685c54d570aacbf1b3d8159
MD5 0f9a2ea32ff596f0c4ca987fdb4b4668
BLAKE2b-256 744a0a447f606fd717a843d06382eba4de411997e41f9e7d19915700554e851e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.732-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.732-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 67255889a2d6225bda849f56785d6f825568462f4516ba1c048018729f4a7ef8
MD5 7d4f8aaf162298861c59b7960610d450
BLAKE2b-256 654294a093bb4a8dc65857d89c352583f902089c88a79aabe5c71c0f9ece04b2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.732-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.732-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c16d4244a2fb76ce257ec4cc76ede791d9feea3a51548c916707a267b6b0708
MD5 f1505e21d2f6dcb47804844e9b1cb283
BLAKE2b-256 202339576c990dc70e72e8f66f9772e245285db58e4112a38154d1d5690cf5f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.732-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7001ec651b17034c97deea96edd1c47e6e5210511d406440e354e7eb04a814d8
MD5 b4c030277d248bc714343ad52b914e08
BLAKE2b-256 d16dd8be89323afb5f7be413507cf3114c1d295e3ce9c027b6a2a2d3e741fad4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.732-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0a1a4a3e2b4773fcd2d3bb604acac0f16151a2f159ebfcf793d48e6c20e17df6
MD5 80bb00dcd066c3d6b484717224058f8a
BLAKE2b-256 f4ba61636299573bba443d34bc074f8b5257bd0dc8af53349a08f1d9ee2fb329

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.732-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.732-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e8517e46b87e4023780d8c1bdd72b289efba7ddc331cac4a71b36192d28003a9
MD5 1d36a7e9c0cd1ec30e92ef35e64667cf
BLAKE2b-256 eb531d064c07f47642d04e71ceafdb3ab4f3bfd7fb0940f6c95c3ae62e316c46

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.732-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.732-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f28fd1f151861c36d65717270c9e9530e271f19acbf2651495a501aae3b76cfa
MD5 714c86b113dff0b562b915e423108bee
BLAKE2b-256 1155a64e66efcf3d3ab6bdbb0f71ae8c197e4f7a607832294625cc09a6251558

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.732-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4faf4d3cf13ad777f43c06af999c3172625b172ef6e3308ab5aedd89e56c4fdb
MD5 417a0abf15841e6d794a19d66acd5404
BLAKE2b-256 006c471da724dd7c1bebbb08e9d93d8a3affa8dde5fbb772e5b007c59b2f7483

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.732-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.732-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c3b866d0936778b98e150e3104d4cd45ca2e20f9cd186cfc10469caa75f1743c
MD5 dc17e764abc14319a1dbd0a616c67356
BLAKE2b-256 361e91996f85beda113963c6ecc97c28014711ff73e5ffc4701be6f253fb5b1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.732-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.732-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 838bf3957a20509759d7e12a1055a48f7e95cb4f901356c7e0f5fb6aff84a928
MD5 0b3c225df8e46acefc87fdb86bbfd973
BLAKE2b-256 79fa8fac4e55a74720a2bafd5c9c78496c68f68fa224e6c709f41ae2cd1ba7a2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.732-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.732-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8541b66240cca19ef146e93091dc5685f8f33fc1fda916759000ceadfbe7630d
MD5 5dd2227c55eeb741fd3c6d664a093e7f
BLAKE2b-256 d543229e8004ceb4a9503c50e7f82bdd3ecd92901afb8f4a14bfb4b5a4c26112

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.732-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 521cfa7043febda9298e850d3b2b526433a8986708a28fc0d62ef150056b60d3
MD5 2e2f7ed447182db21a31c234b72c8e30
BLAKE2b-256 cf100cff99a580e6c4ac0430c57038b9167b5b4555afd128749d71021b111c50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.732-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.732-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bd4becfc1787d9c097e785915b119d654a1db7185194c5d6172383b23ccf79f7
MD5 b080781a32a604b7727626a111f5533f
BLAKE2b-256 33c192d3f789bacf0822fa993a843e68b7d43e6bd06340c06f4253b09b480483

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.732-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.732-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 16749ed93278ef6fed8194b6074b6c7561d167762d651d920a95dd3cb3c79ffb
MD5 4b3f24806758716948becab9c28a4cc8
BLAKE2b-256 0c4c70b3badab2857aa28f5d04e5254af54c0314f0e1177685a96ce01e5dcc59

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.732-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.732-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 255271e9fec35dfd609c3c72dcb3a944d1099f3eabfe914afcf96608f27424b3
MD5 c712e00976dbf46d61a8cf494354d418
BLAKE2b-256 14e49d2571cb3dac18e5b990bdcc677023b27fc2e33a847d930c7fff20678e50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.732-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75461768718fe9d36d031a8e020ba480a62501e0f03108cd8f1938972b4e3394
MD5 af6ff0a6b47db949c1a5496260d81f53
BLAKE2b-256 612d0cab93701f316d71190e66b9192531d504c2c4a7d2729cbd1b3b26ec6663

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