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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.157-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.157-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.157-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.157-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1381ca2e733057a85b8cdfa3fcace439f99087fd2641aead79e6096900dbe323
MD5 8c330ea707c348b46d6561f6c9753549
BLAKE2b-256 a75400eec1bf790d9d54db9df8d7036a82b0600807cc1b93add0d4e7193b8cc6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.157-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.157-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4a561ed6a758e07a0698cf2098199a515a340ae6420356f0572545157f111098
MD5 3d210d6ecaee05017ff5c0a7873475b3
BLAKE2b-256 c83e8d67de54ec2f08ab154a229aadc0cc21a333ce8caa4cbbec83e7d3378bb6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.157-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.157-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ea12b75b4352784961c53604dfbbce7717bb8e97a4a99c554a697e3926062846
MD5 96aa7f4380ce0f8bf8e903126a251ac7
BLAKE2b-256 2fbd1ada927c5760c383189fe9c98ca1eeb234e10e195124b4d886e46049eeaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.157-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d22f59aa6ffe98b44151ca1563622a0336631036b482690c48e83f7f21edbd07
MD5 ae903cd5200b0cd469e9272060af08b8
BLAKE2b-256 96c165503bae845cd2e581066f43d89a9b0ca91979c311e505017fe66811f890

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.157-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 de849f363c12923733a31f0cd2f6ffbbc3b7c2b12c5191a5899d0b5df8b41440
MD5 670b118f38fdb658fa83fbacfd9c4c41
BLAKE2b-256 4501f06d4df15d872de751dd64b769c45d76935c156f90f302819dc8bf0fd322

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.157-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.157-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3d0426ae5dab78919b92d76a723b7536343045e862446d653b1ce4922f19ba0c
MD5 cdb3ec9c2040f88a7375e3ef07d4bdba
BLAKE2b-256 3e68c6b32b7cdffa658cc61b529228e08c236fe1abc0ec2102634109831a7f87

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.157-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.157-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b27fcd1710fd8c634eabe722e186dd61b0518f466d00411b7ce6a9e9ccb205b7
MD5 5eee42c7ff48495dbb132552da178c50
BLAKE2b-256 45481b2740cac5859018b280d38b31d7eef288df5965ceff857e168a79bde8e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.157-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a3ca97758ab25833132efc74cfe2e31f9a9fbf11aade470c79436954dfec2b9e
MD5 6c65bb80c4e7d7a71a7f9d62fb0b4b83
BLAKE2b-256 193c2876269ee119beefe920e25ad094ab2f978b790dceaeace49d98173f317c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.157-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cb3f946f293ebcf6196d29c04a12394a076fc2933812f529ed21328a782ac875
MD5 c9ce3c18f51ea2df9c7c972b75c5d6ef
BLAKE2b-256 5e6d01a0855db8c5da31e4a7ee7df5d583f1949f2c970f7c3b135c50c5d80b96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.157-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.157-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 08a1c491e16901027fb1d7d6972b2fca74daceef46fae76264eaab08fc082e77
MD5 407e2223077da39b5faa2b9c0789e71e
BLAKE2b-256 08478c67a0bdd934b90aaca9c29fa343bc5dfa2d31c86f59b740ce90e5af07b3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.157-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.157-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 46784efe80c90e7be983baa471ca30f03ec3e94728a9ee668a39533fbdd52526
MD5 ece51209a80a0cba9036f0889a1d0a5e
BLAKE2b-256 308fe77d8dfaabc0b02d8568173c24720f9fa70d68d4fb7e34abad5de5a579a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.157-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a118fb4cab31f437191ec57bb2afa63c1bccab9564051e0b465a7c597ec131e8
MD5 4e653de0962cd33c097572e6f013273f
BLAKE2b-256 e7ace28d2091f5f14d0d53fa9efa75da7ccaa6b6d00856e16d452bf99fb142dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.157-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.157-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 44dd5e4ba8ac9a3cc08fdbe9491ec25edabe796eb4cb6d523ae7c4c493f8d6b3
MD5 6161fe3a1e7209323eeccb75bc4455c7
BLAKE2b-256 7f91ae2029738cc400fce663b86c2d4804ceb771778c5838f68229031621b1d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.157-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.157-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cc05c69a3b50c05b5e326fa7d78f7ab9b43f3c06bf93c8f2048414d7fe568b4f
MD5 c3412304a775cd21b216a72bfb9ef840
BLAKE2b-256 b6ff7074b9fe5cb255bc15df5ebe1e76fff69f1b3a1e132a655da09797a2cd59

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.157-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.157-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0ef48a3381ec3c187f2521cffd4bf5bdcdef634c23a81c5c42c215bdf42ee565
MD5 29937d28f0b01fe418b29d1ca627472d
BLAKE2b-256 9e490f5ad2f4c3863a75350f66f14f44b1490b2ce292aed15417e85e0552ea5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.157-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c5fcb11aa10ac672a7b8209817ea3172cb2861f43119a74aabd1c813b8a3ec0
MD5 bec899f987b15f97bf793cc0831e96c8
BLAKE2b-256 cae753f581dc6ed0958f400d913fc004c5f88d20af48eed89b99bdc347a0d637

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.157-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.157-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 de15fa6619012e1d19311ceeccf45b67cbd892e66c871cfbacc4d73ef2d3a82f
MD5 852ea82e5d625a1fe2166a5f27b0038e
BLAKE2b-256 4a167b3cc7390e0a2f709e14e653b3d6e1b876265a4d7db6b9669c18622dcfb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.157-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.157-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 00f1a0fd0f3ad53a61991e3f18530124dd1bc200c96094cdee9657074bf615df
MD5 1bab3b933c5d808ac84bf49959cb9d43
BLAKE2b-256 ba50b088aa8024b900bcda415e2fa0d4e46b50231537eb1367b5cfa7271b517e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.157-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.157-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2bf7dded2bccb29bd97bca46fee24a78aba413da87871eb5549f9e96f5112028
MD5 db5aaf4be2d194fc2ac0f5d2cb0dec66
BLAKE2b-256 e110b9961cba9e9547508ed1a7692b147e4d72c7dd3b9b94cf0e4d3c4f22bd94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.157-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1743947184a455be6094273fcac34a4c1be9c07cc18d329a9542015aa8ee43e8
MD5 9aa4d75798f402929f4581c3aded0294
BLAKE2b-256 690d9209317d79d9421111727d253279a999988976f1811059ce3334309ed546

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