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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.926-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.926-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.926-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.926-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cf664b7c288b2b767afa65d9258f54be7abf0cf57635b9fab690065c9a66c4fd
MD5 0772ff2225c958277118235c03943e0a
BLAKE2b-256 5cbe22b2c9069a2b005f7ed65785bb26d2ae63b9b3fc2eac95ddf6f2889d990a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.926-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.926-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 43ce633e4c8effb27f996795225d99296255550e7a6390790e14c3bd9fb02931
MD5 99803403b12b609e2ca2db42dc019f06
BLAKE2b-256 38404d327a3ecafee9571acca4e30ff47acca1e2af854d70b76bca841d30eb56

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.926-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.926-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a4b9bd374a4d1ae033d527337847ae71ceaadfa34bc6216bbaffc1b1cd71c795
MD5 ecdd3193c62528a41d5e08dfc06a1a06
BLAKE2b-256 5763628273468fa11e95840320c0d7048c6cb74cca125dda0958e25da1bdf793

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.926-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5977b837f56efd5803b7032802d24cd991e763465dcecb91d69d76c81b752692
MD5 2176f3dcdaa9a2732ce1689223b5f4b1
BLAKE2b-256 c9d5714280cddbbfeb7c5233d70d70cc215887ec5a12d07a4e83c2807913fc33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.926-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8e58e0286e2712e7f9b478507e7637e4df136285f7bee73145c98a91373237cc
MD5 de71fab438a82f06aeddfd8ca4b5a9c5
BLAKE2b-256 c9d0d2bbaae7f463090d408f1d470c5c17bf809fb81ad2abc4cfbe1e07b60ca7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.926-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.926-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6e381372ab1a3a9e7a1b514ffe03f6ea3f2824175842b65cebce1c9a8471a654
MD5 643148429ef4049eaed0f8e3830bc0f3
BLAKE2b-256 1d3c7f6a4ff334424a823295fb489ff59c165c5698615bea915b0f49a433955d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.926-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.926-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7ac8c51a1e496aab98a16ff24657709c8c2ab7b38079d2d7063e761099010366
MD5 1dc4f581b0b5168a52f6e875e8ac57ac
BLAKE2b-256 2cabbec7100eee5994b2c6f30466c7dda0025cd0211186b6c67fb1ce63512229

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.926-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c8b85034311b3488652811e8fb5de51d1f6f9cd01b79307cab297cea81c97935
MD5 6a4259bd0a9104c5864b2793d5a14d35
BLAKE2b-256 f9ce7c90be33503d57a5407414081aa6caada236fde6f82745ba44c6b8cba806

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.926-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 59f5795a06f8d747816b4ac76c4e8202584c618c631305e0f99b856259c3cd05
MD5 fee5e92b74ab483ed36e7318317e88e2
BLAKE2b-256 037683f5192c64b951c7c24c1c26b6750fb08f251bc513eb18d53cf23243c91d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.926-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.926-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bffdacb29a6a0fa4e9afd35d806ac7fe00bfe21b462f6654212f3a761c6ea9be
MD5 b9c5ceda19cfa2a2cfe99242ce717159
BLAKE2b-256 9cffe8bd28d9fc8dfd2f632d63e623d8314a9c3e8e6397d27492c38b8cf2805d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.926-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.926-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2e0765bb451a19e1d7434a5b8f7785798bcb08fadbdb9c834388491335294f5c
MD5 f01892c6d7b6ecc8d152e36653cc9a43
BLAKE2b-256 12de9aac87cda5bd0926a323bdc316fc2175a077464307781822b67380b12724

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.926-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb2034a563264228b2e32245643cc5b4b9d2c5bb0f18176ba36adc2a7183d808
MD5 17dcf9b629fc85ef6c975c4fb4e721b1
BLAKE2b-256 e051186703fdcee2752a9696f01bec45a36ab4b56c3b09a48d352d153df6a71d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.926-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.926-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d5fe6466e3a1f331204b6c08f284589b9b036e527755929c13aa9d53d8d0dcaa
MD5 4731ae5d3dc1eef0db7e916b5e3e6ae6
BLAKE2b-256 6a51295214778266fdc49ed00a7683da263b7ffc548a7f847052e23a3f9dcd41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.926-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.926-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 29a27e1fa2958b50561084a8035f83dc2f473474aa97abf745901289ed743fba
MD5 4ff15d071e6523b8d0a7f810561ad992
BLAKE2b-256 533d5b18b7dfaae36cff2036f963119ac334456d5c4b158c7f7014f426767c41

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.926-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.926-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 853927eca8b4d28ddc4097cf4518a180e5c5ebefb8a22aa7cee0b098b48b96ce
MD5 9035ec22ed34f70c067bc9c3287ca9bc
BLAKE2b-256 0e474963146017dc93388b8e2716d229959b83fd344162055cb6b78124c6e8da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.926-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8c970ffa3722c1cb067a71a5551ac74517335996e4ad2895379a78adc3fb8b5
MD5 c2fd54ee4d4ae3e0dbe985d7c0ecc5cb
BLAKE2b-256 d89b412fbaa1e6dd6c7f91d0dda07b27f5853f15218a99ff3d5ed4b8e3f488a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.926-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.926-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 29cf7de532c3da967381b20f0b9e09244b3a2ac6afb9f8ced9254a0c7c0faec7
MD5 dc31ee90a98eca8f3b04e064b901a18e
BLAKE2b-256 1dd5fb252573bf1c86db555643be06a638bc17bee9589b2a83f0dc146a473a7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.926-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.926-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3bba30ac9c826ef3555878e64d58e723df53e48a258593083367cb16a2736b49
MD5 4d4531514898b85deea1241a9d6f8ad2
BLAKE2b-256 0b2364dd515e726cc733d9d3ceed84acc64334f4a053687ffdfd5cd29b2c8b90

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.926-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.926-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d72861ec2f1b6d31e278af80be7a18c53baca8eddc5435da9e4a38b4a2705071
MD5 68f3fa63eb110f28c0503d22e49e26fb
BLAKE2b-256 2c80d0cc8f4823e061c0c0ab3e34354e5f7309822950936e3e308f5251e5ce33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.926-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d9f60e02704dc3cccb182517ac49f07fbcbbd12316c4c384bb730efbf054d43
MD5 ca66b856334893e43474ff15d5b3a704
BLAKE2b-256 18831b501cbb840c935c9569b8fec3d9d1d05dc54a188b56295f903b1e536c17

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