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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.640-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.640-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.640-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.640-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.640-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 678d4bd2d665ec8c59417c450458a5c09a6a359a7d5bbb03aab6b7503a2c51e4
MD5 e8d07667232f57e4a1f06aac579e9582
BLAKE2b-256 616a1f079c75c4d933158961abf93b990f992636549392c4f327d64516d4e9f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.640-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.640-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d3b812569c37e0ee459406e54d8fa9c9dd8ba3fb8d226a70170a7f7ec1e07727
MD5 99bb69fad0ef76ab69b9ecc0b39b13f5
BLAKE2b-256 a84f53e4ea831c77fa4e0231e4bd8e04c5525eec581b132cd84ffb53d5b24360

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.640-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.640-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c7cef46592b9d7d14870cd019cc07472a998ae8518d9f95884c5932679c7974a
MD5 316cb90a6bee9757bd1bfa560f3b3acc
BLAKE2b-256 74713f9fc00cda77520e3e118a163e0649657868a9dbdaf760360a25ace55a64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.640-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf37b5459934754b31247162f7dd86192aed3844304555e6d6694a8a8983d6d3
MD5 2d9ed150d1bf4d7e17d5d937f8e66a56
BLAKE2b-256 fde8e6a99577b67e4b52d2305d8f1f1d386bc8c2736ce8f23837cbc4f35e975e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.640-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 13c73e269b28e664fd25e5a995ae3954a8dbbaa4f2efc0b9d664d6dd3d627f10
MD5 1a51b1b252bd5b879eda7381297012d1
BLAKE2b-256 fb57d70cd5f7600a6fac8ca9a0c9bee1445cb71a6261b0320b1bb2973f4cdd5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.640-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.640-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3f0b043e962ab65ec922fb61823015df7006844b379baf6c664a61c1d3934fa7
MD5 b2397ccc160f8beb5b8e937aee9eae5c
BLAKE2b-256 ead01c4395b1af612845dd4dc0b4ee5ca63f49037f821defe58b309116956069

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.640-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.640-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 44cf2776a40a82f27230bf0eca0022cb15ce2807324e69796ad12bf9fa3f5259
MD5 704a4d451e175f62684c4eb31661086a
BLAKE2b-256 8e779bfaf9af78219f9f033fbc7582b14c2ef1efa57af35b6eba2af97b3ce0c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.640-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c57965505f0c2be3be3abd99f33ad919a2273a96e6fb49a5ce68b4aae2191d3
MD5 1c278821cc219058dd2392e5691c0f60
BLAKE2b-256 467eec99dc1ea3a4d857241afc4288bad105db0c68afab63aad9344ecbab42de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.640-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d3f55f283fbc6ff8ac12612f73ab222e1ecec8e8224892b07a0bc247af970840
MD5 caee4e4da1c0ef09a7bc72f3f6761386
BLAKE2b-256 e153fe982358812078dc294b188362787bd12b5c881af8211c48eb7afa09c86b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.640-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.640-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2df0e744aa234a8df7c4ffe174cd0dbf8693e0f4d4384a65992b55fc855d9dd5
MD5 ee446ec87144d1bf5ee44a670ed8b969
BLAKE2b-256 d45019c3ebd4f0e0b830486b0be507028d01a7042c4a0ed061b301a007e43d85

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.640-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.640-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a216fde6a14a76e5899faab0d5ca79b0a92bee29ea0f4ec8f18726fced68a4d6
MD5 e1da78805ace2ae0b626d12cbd7df501
BLAKE2b-256 ab2e9f8c59995200392f0a16ef9d1fafa7b41ffb930b3015ea767591c74ec472

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.640-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f257351de2440e16a895e2b6c54ba059d388b9320660367e4f68e913bcd09797
MD5 ac44b64184b6f502bd9bc0c94fe89541
BLAKE2b-256 52435d974c72a8ed3390a0ae737c46f23b3daba16e2c209cb6ccb2f6136135dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.640-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.640-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e2604c19b6ecad4f900ee913143496088831c7b30312d38dd1e339c35a6fd7cd
MD5 93b06837af3c01f7843ad15ac6440208
BLAKE2b-256 cb93762bb39af176ed05b9f37d80c896147723030432c61935095f59180d4e32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.640-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.640-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 78444cdd70da5ebfd5b8b86385e287c00ed371acacd05f83364d2bb89d45d170
MD5 787ce7918c07088bbe9e771e55de6a87
BLAKE2b-256 553417102f6b1b0dd9bd75868eade48c6b2f42aedd8ce653b994aa3c41e5ec5f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.640-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.640-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8e42587c01af0d67ef44b9519e2a25e4fa26d985133db144a2ba72d59442ede5
MD5 d113466952f76a0160d07fc0553ed1de
BLAKE2b-256 7fcbbe3c2b12c8d831380e22ad530895b710bb1af466225535be55bf8c4edcf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.640-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53ccc2628d916faf415048364f3fce18cbb486277cbaff4192194e871eed5c46
MD5 b61868a469a1718c5b4fcf21f2b43f1e
BLAKE2b-256 56668f81d21c63ccfac588860f1b848e11114b1ba5b38f31e744cc6fae6ad684

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.640-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.640-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8f21b340ffc097e228a969102bee91a6425705fa990436aa0e3faba9fd8482b8
MD5 f95ac5992c4b0e005039cd489b94996e
BLAKE2b-256 85adb044cb92f1b528d1038661c537050d1322fd0f296397856cdae48349511b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.640-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.640-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d3106d9e0e6abd81afe1c2cab5b4d584ffa536efe85fa973ba1790f15af80f02
MD5 f6ed99ccc03926d8eb4f6ffc8c336021
BLAKE2b-256 22991ab7aed6f9b8de7377a7802fdbc052400dd7522fb8828cd678ef9fa34374

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.640-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.640-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b69b16d360ccb905507a0aa033688c2a4b6a6de220725bb0835cc39a639dd2fb
MD5 c7124a6aead8afd1dd79fbc6019a95fe
BLAKE2b-256 2bc853bc8c4a14cde8aa399fa7b90f1e10bf2fe93f412408fa4770944d1987c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.640-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01e70a438926b25b7cd1fb35304e6aff00420da7a61affd110a213ea9ebc3dc5
MD5 baddd242b0df314aa259afdba4aadcfe
BLAKE2b-256 594aa9289ae746a0ad802e4a03e7e1e5a21a0b7391ae6c6155a273646262c4ca

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