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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.298-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.298-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.298-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.298-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 216c213650c36bc08a0e43fbaf2fb9edf6dce8f56dc72800775d0a093e3d65b6
MD5 18bca5cc81dc3f2551eae586fb05932d
BLAKE2b-256 463aba93520b1e2de449470606baad98ffbedc57f9d9c3859e0765c93a7111ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.298-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.298-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1eba68fd6cf028eb88a21b18aa6b38b9d7893f4a5a94031d2ddee50409b8e8e7
MD5 e5d7716b82aef96ad8dfdc9a82e2ff01
BLAKE2b-256 f0d6cbfe90fd2123430f37051e164e50236c7fa78aa5060868a2ce7665dd5b28

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.298-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.298-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 014fa0caeedb8d7a4a05195e63413cb3a1830f7e1d18543127a3a6a401e32c29
MD5 7541c166c6531340d73570ac1607f828
BLAKE2b-256 1965a60b66f706cfef7b7a37fa13434c3eb6d88bc10ebf3f3ab29e99d108690e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.298-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 40496a40867d30395446a7bcf1c6c6abe8b32aae0e508084fd79e1f9cc93e70e
MD5 4c8ffd99ca011485dda0d7c4a822be8e
BLAKE2b-256 bebe08302ac3e59fae3a36aa82f9d3d21410ae93d1de709988de38c150df06b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.298-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1c379f0436e9ab31ea585bd0479dc35fba242d957b7ec599028dcd8858cbae38
MD5 8524d8add06d875fb1c21dbfcf1fc388
BLAKE2b-256 42b9e4b07a68232ff22bc46bbe3c90a510aa8329e8bd2e6d94bd4e7513fddb94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.298-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.298-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 596fdf24cb2ca9977c707b56e32fa28212cfdca7f1facf157077b0aa6165e310
MD5 3731429e19ee3d889f937899ce9c4331
BLAKE2b-256 f7ce2e6ed2cc43b1ae3478452456438b2d6fb2e4752592e81b21acd5c98762ca

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.298-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.298-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cd3d6fad9b92f43c323e705ce9f9419fb70ab4b373f213ec3c74410c69223038
MD5 30ddf3aeda8e1500a1eea765279c2ee3
BLAKE2b-256 32710fef69a7e766bbc4aca00c614c4c832e28ab80ded8c70023c2d395862779

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.298-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5cecf8a331ad041304b25eb9f1ef3871ce121db60bc563d45bad8ae0959a97b1
MD5 e00a39b914e92991ab95da17922d4f07
BLAKE2b-256 e7b0b37e8b5afcbdafb22a2ea500b8cf76f8f37a7a685a1929aaf743df1c88ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.298-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 744e85e122beabeb6b36ababa919c3fe9e02a6cc6fbb683d0888beab4076a937
MD5 d8011da9f46b779b50b107e20abd876e
BLAKE2b-256 2013768c59014886538bd1cee2028a53279c7646bd4a12a04ae603881686c659

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.298-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.298-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0198be6b38a31dfece391b416dcd9bb6b5fafe173c98ebd701a96f42a0403504
MD5 0a8e4cf76bde1d207660d2b23d0686f6
BLAKE2b-256 07ec57b3576b2d6e441375ab90de587f3f68f861e618290603bf88d9ee9d9e3b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.298-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.298-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 786df7c6efd5dc76965bbe1650b6e5321a7d0d049822b2328b4ed792f89ecb70
MD5 455faf791ff8a67127ba5bcda698fba8
BLAKE2b-256 9a86d72a7cd0b6410bf3ba92498acb30cd1bce517ee6c070cab916677caa95c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.298-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 79e70b514ff534b141a2f9420e51d28b7198aa9872b859f0ebc6da7392ef1acd
MD5 211ef7d7b770760f1205798ece5c2d18
BLAKE2b-256 2847dcd0b84693182d0a11369a8a0add5f8d795eac4ae0b7978e75d07784750f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.298-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.298-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2d1533ed4d623e974ec00dd352fe265607e66b9140c438649dcc1c6d1fa60b99
MD5 a1f63c31db05e14c4671145e955e4784
BLAKE2b-256 73ba8f925577f166e0040c70a4fc3d7944c94e846f0105fa6929d60e66655940

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.298-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.298-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9b0fe3af30a49b3e15fe8223548b34a7e59524ac7101ca3a9409aa0cf0018d06
MD5 6aea756c427abcf9bc60a21f72bbb7b6
BLAKE2b-256 0b1095ccccd50b14226b04b191c95b963eabc8a3fafdb325314fbaaa6ddc81f7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.298-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.298-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9db5d8c2caa4c312f82d7bb2142cdbacba5ff9d5837bff9ee32280013eb8e141
MD5 02eee303d5944e5928bf9ec023c9a299
BLAKE2b-256 172197ddfac1ec2c1f57d7f9e9ac79104946699cbdc52e8da2a970d1c86a56cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.298-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc396e3994ecaabfdc7c2d19847772a6e9f0490f9d5f09af62c0182914e2bcb7
MD5 4387418c1029ff3feabda61bd6c8fb4a
BLAKE2b-256 fe617efffa76aecb3782203d8df442887c50dad3e99c68a317623feba825b1f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.298-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.298-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 bf72b14e0ec2233e976e5b875cfd74a1d6200bf08daf559cfccc649b9bdb872e
MD5 a0d9e5dcd3e90b12ca1422e0f3deee99
BLAKE2b-256 64fda61516a012c5a778621a7e22919ea3e7b4941d2654367f0bd4dfb0d835a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.298-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.298-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1540842418cd41bb438d7af6965cfbc3c20fb7062314b3f4276ee7f35518e184
MD5 65740aca0a0f475ccc3e204bfac18cf0
BLAKE2b-256 ecd8f76ca21d70f55f1acde66364e4d46b5339dd367e7800003cc65fde54a5c2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.298-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.298-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bbc24d6bf54b8a620171ee1a7e645aa58cd764414bf21047e070af9d0e46441a
MD5 ccc1ab0925176d651823939653921a0a
BLAKE2b-256 c30f8c78a348e93c3d55539c4571678fb3eb8b626c43cbfa4281423a2dc3c81a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.298-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a33b7aa2bc0e86c0848493ca3000c1c61264b1d2b731f49688f5d31d837e6a5
MD5 8e2f42989615ad199279e55116b0609c
BLAKE2b-256 485b4f429838e4558a3d4da63fa9394b63ab16c0e0b20959253803f130482866

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