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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.91-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.91-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.91-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.91-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.91-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.91-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.91-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fbb1710509d514f38112e115f2f0eead5b465dcc228928b86bb691794d460875
MD5 d27fdda2f930fdd9ec81f6d2cc62550f
BLAKE2b-256 122cc5ba216e743cc0a856cfeb650f565819805bd93fb79683b0c7bb72fe4fc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.91-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.91-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ef23024907e6cc777c49c6edc11389d2822a67c606b192f932dc0760ec425542
MD5 c01722f34311aa852ac907578f6cefc9
BLAKE2b-256 806cfa3bcc14c5f840c2479ec827a111448a9dbb270afc4900d6f0a7162cb275

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.91-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.91-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7fbb3bc970b302a74d449c8e1e8649dc35fb64e875966c875c5753725a0040c3
MD5 6d0351dd689e41f63c1292fe64104cbf
BLAKE2b-256 b54d13fc47e5f6c59b131dbb77a64a08f4672762c0919bcb4c33401fca3c89da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.91-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ea93c3d03f24b4c09a5d9625c9554fc136502ab40ae72f770d777c6db63a875
MD5 1efec08a83193691acdfcec2690a25a7
BLAKE2b-256 6cfe6367e7d69e44b1be053c4958519abae51097f3abf8b1ca3e8831596c5402

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.91-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.91-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 49cfd181c62bad853e4ffe9555e0140e61d550537430eed12906e050a03e6527
MD5 80f3ba783b1698c7448dcb155587f133
BLAKE2b-256 7a12da394448b965776a36e2caa5c09e42a411d9add9e4b0406c8f80549055bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.91-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.91-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a774fb6cdf9a1e5af5bf823294a9837dbcff684f8998e47beb10c9acd26c4728
MD5 2d3196012d3268241f2ca573cd5af7bb
BLAKE2b-256 9cea1fee068c43edccba7233fd5e2adbd7e5aa7bbd155c72af77cdcb3149fec4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.91-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.91-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 64cce6eff2e563a8389465ca2eb7be5a9ac83b6afb2876eb4ed37969368b841b
MD5 c8b0334292ae71496d0ed55c593bb28e
BLAKE2b-256 3bd38ba25844727ecfbd8a843f4d3853f0eb486acd7210c88106fc47b50d742c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.91-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67506aeb9b6e914bf90375eca86cb7a692c59f75bafe7ae07a1652eba33570e0
MD5 f72b79f9c4bf12760cb3cffdfda7ad30
BLAKE2b-256 d02aed7393ea88a2b5875b659ada2ff4aeba0550c1c57084c54a86e6651328b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.91-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.91-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0d29a79fb9e1e47e0dc6ee3d419d1911532c6c73daa924b54fc4116fd9e22a18
MD5 635e744bc42700e423df9367012ba1ed
BLAKE2b-256 cd380352e8bf90c9596e4d0e211cd481c2b7751c076e1361119a1456979ad406

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.91-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.91-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9588ae7d957cbe3906bb5675c504b729dbc6c0fc558126272d5941615e72ed53
MD5 fb9bb569f27c2537a4174f2e5f940fa1
BLAKE2b-256 95d532485f156f21439fc5cb8e2c3ef5550ea0c4795c34697207f23304d86c98

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.91-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.91-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4e3dfdae2fae458060dd02ae72e690526ed631a90f532f4dcf3c094952db9649
MD5 54f5b4a338a59f4bb3d609746c501875
BLAKE2b-256 140531e9db4fdf5061594144a0f3c138731d14e18d7e0e9806c511fd887adff2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.91-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 92f89a36b15db75822376b1aacbdbab35fb3c5050d98e507a37d24a776e27c6c
MD5 30308a2e83a5d1bf40edc2e7cb4275f8
BLAKE2b-256 619c4da71ee2cc9f42d9ca3e0091ca530eb3f91e351f16ece717e9f51a457463

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.91-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.91-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5434eebb47e6c351fdf22270c48b4214cb5aed99eacf9bd55b6038ab3252a441
MD5 5c3a95aeb04130e3f75affec3f0c83ab
BLAKE2b-256 6ab0ac1390777bd509d07b62caecf36297d2e45eddfc9a60d1f3b151125daf54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.91-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.91-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 14ae50960cbd2e066536941a6b67f5d1ae7601b8cfb35c5c6f2db5f1844ccff1
MD5 caced8dff2bc853665b061b5791a003c
BLAKE2b-256 1eacf57ad68b3d1ad6b96b3daa2841fe10d86c484eb2a7efe0e6685a17901d9c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.91-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.91-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 193d81e4b69935d1f886d12e443e0f886f76283b95c287c712ec98397d0812ab
MD5 01b5223945d5bfcca11b20dd1d7c83da
BLAKE2b-256 afd1c04a9e24302745c1221b0624589b3861206b70947bdb3ec6ed6aff0fc47f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.91-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8a59a0e6d391d9d67bef21c282dac8e84f6f63fe5f2445f8a4cdadb21ff5d78
MD5 1561f0b3068ac55333c2836c9cfade49
BLAKE2b-256 afa12454a60ec300e7143176af153df9b2f129278cd4011d63381292b38a26aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.91-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.91-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3fb4fb7affcba17dca0b5d17c6b0151b46cf9050473f924559c9d205695f2030
MD5 657961261346650b81c7e51c53cd18de
BLAKE2b-256 8511eb411257019c9ed43f688ce38e2fc40ec1b6253c7454cc3f5547370cf71c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.91-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.91-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a7ea77299f71148704e93a1804292d05ee25362402302e109840edd9e88df6c4
MD5 810c9b3c069caf47b978e0f77805f1a6
BLAKE2b-256 392a82affb36cb3c95a687ef69801e14b3da4da826ea834053a835c1bf49891f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.91-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.91-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 36980f93abbc507be1e8efce1fbd64a9fac9b1a21b43caeff65c5cfe19116167
MD5 b13d8df299c41cc7349548b8984e9ffe
BLAKE2b-256 9a773c1d3c0bf46c394f1f51fc769fd68b05f8c6c2c35eafc9a5cb72fd0e0719

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.91-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bcc0c6ca21451e27bed559499957875bc9a88093082e34dc822397a66e17957c
MD5 6bfdf13086fb2bd509e2aa5259b1f45f
BLAKE2b-256 d1dda82084c9c9bb4cbbece7140e2dfe0df4bc703dfab11f383aed0bea35f65f

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