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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.933-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.933-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.933-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.933-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 766d9f1cd7e7c746be1a02809fa688cc40123753ccb9fe10e76d37fcc6f72a22
MD5 c2860c214cf533bc921f9f36df995371
BLAKE2b-256 5db819d55f99bde5cf242d6698ddd69e7af0b915e8d61e4d8887048a10c8d053

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.933-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.933-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fa00709eb2b66e4407b0af57a062cc8a5f0cbabeb0fc6d509d93bb4c785beeaa
MD5 22c4811000530d63b9eb2db2f6da983d
BLAKE2b-256 19f1e60778f4bcd52a61edeea96dbcf0a06264d6865edd2be9960269f74c6f77

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.933-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.933-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ac9fa86121a6208d2b66f72f6179b07fc3def0ab55e470fce33ebb918bb84ad4
MD5 86a9be244fe8a14c69471d29d5f6a412
BLAKE2b-256 a8861fb97c85d26759969ad9f10724fdb1adbb927ac7fa8262679e27a49b8b8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.933-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52a51425879194c1baf531209ec1da9779b31c79956b8a35ca0f68bf0509caca
MD5 7a7f87e45a473fc02b9c009abdce6dde
BLAKE2b-256 ce3b68d9aabfac8c96958db52ebe7ba2366826ec3ac28b3b19d42493dc83eca0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.933-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c7bc105dd34fb560734e8b88b4c538acc0116ae0d4c9eec31f8701ab4f64041e
MD5 b20538e48f137cd9c21804a55eb438ab
BLAKE2b-256 336ecf692a4239a94cd5aa1ff8caf5e2499252c2e044ed35d0b8ee638b480ad6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.933-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.933-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 de74f698548ce2c5ffd7f77b19163770baf0dcae133eae871dbab930cdb14817
MD5 8180a4f694d07e868a38bf558fcda1ec
BLAKE2b-256 c4302d7b67c8c849277152a77e58bd777891dff12fec135ab1b5c26dc7028fb2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.933-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.933-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a63612ff6af61581dd3298509b5c765389bec32a95115f3cd33e289be6461eaa
MD5 e8c89eee494788e85b03898bb93907b3
BLAKE2b-256 ab2c2df44b5f819ec95f39ff69c2e8b53a56ad508679be8b3ce9791874e7d570

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.933-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0824b93e0ecadc97a19161382ca143e52245f285a7688d2efd9a4eafa534ffc9
MD5 e7fa56ca8c6abe27523ff6123f98e0a5
BLAKE2b-256 595e1f818e1d83514c6ea8939f96aee65f038716755f82420767d21b5139e607

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.933-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7ea28c144336b3ecb6b78b70b555f3c37a03fc2f160326d91f9cc97db4dcabda
MD5 ea5136f3b06ccd26402318ed97095ea8
BLAKE2b-256 b5eb125e4681d58fa1fbadaa2120be3692c2702b21b8c76d2f3e1c5be39db2e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.933-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.933-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3e81d06a2d71f311e0927a61656f2eb8a5eac6eda69cd5066b095940e374c257
MD5 3f32101c5e057a5a574b04589bd1ef32
BLAKE2b-256 fc8f1d39f161f00986becaadb857a3e69c8a5f4d297800cbf316659bef858036

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.933-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.933-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f80e569a1f80cd76423ca0b93da4fc20c9b7e4988d2684ff012e66593ff1822
MD5 d6aa3226a3f78711195bd3c367cbb7ba
BLAKE2b-256 1111477abb03ee56e62c0e11d5c993dc7a161ced71aa06c28cddf25294bbb910

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.933-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 801b4b15c100527af4f02c487e6c4b33695d9b07613f36f3de21199bcf236ebc
MD5 2f777e7776b9c1760a31addc278902e1
BLAKE2b-256 ada2c5e918219ab3fe261d427d51f77515eaa15a6ff6fb95bbb2a2107b9f36ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.933-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.933-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b7245f9f9762b470278bb1d8ef15b6dacbb8408a601096953f0ca8d087b91030
MD5 30ebe08129552db1f8d9cd2d1f867db0
BLAKE2b-256 6409df60bf281d42fe5775d6dba936ff9b10ee1af9b51543c753ea7fe85c0b4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.933-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.933-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 34795b7ac59f7ba629fae62981b8076e3ec0f15baf14c042ed5f1b607571c4f7
MD5 86820a6d34b6cc7d97c7bf8a660d3d7c
BLAKE2b-256 3d1b1ce4454628dc961508fe29121e2a4e757aa1f3ff7de5b0ef927ec233801c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.933-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.933-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f25cd5476ae038ce82b69b430a5fe72ca3f3f3e6c629cc878a19000e3784d987
MD5 4d8371fefbe21a8f7a0827f0600440dd
BLAKE2b-256 fc004e2b4937231fd031be4fe415184bda92b6b30ab37bf60d5013b6e84148a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.933-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1bd22b257f9bcecde6629a1afb45bafa0c2a3440ce9a667ba3ade4d1867fb632
MD5 30f9db0b55fed82d581aadbc3e760260
BLAKE2b-256 1e8ad35929faabe31a8f7d7603a819d0047c178a7242e37a147adf854fe5d160

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.933-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.933-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7a816d28a0aa51463cc0f98496192561f7397a2729c576568b5105c3b928f3b4
MD5 c7db9dc239e2cfa1f913b7dc6eb953d6
BLAKE2b-256 ea5ef717e45b994cfae2663700e3e664285d1c96ba4149f2f5d45d963ecad121

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.933-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.933-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 481550c9af604ff5f9ac5e186d1d06b5d099793d4c50450c3b726121fe858e90
MD5 6cbb1b0a692f877b54b8cedbbb6244ef
BLAKE2b-256 42c347bd3147c5878d03f0e4155f883bb16f14cae4554ea1018ab188d4875c77

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.933-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.933-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 95ff87a4ccd670c14a5e43a972fdac31a6a9dc15680e2b3f6b188e5a43e5db7d
MD5 943f5ce996845b302142c26050b136c3
BLAKE2b-256 f6eedda2e4795ba7e63fccb2c3a5eeb7844af92c39b2b782dda8393af3e3df80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.933-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f628a951df6dca5b73c1e41b2dbfca0c59e459ad85a488d4502441857aeaca4
MD5 06d7ddfa96ff0e6186d22746b086b0ea
BLAKE2b-256 41e25a93fbec405715d99751248d329d0093ef45e1c02dc0d69f37ba670b41ad

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