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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.114-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.114-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.114-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.114-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4c8b871a986c38d93764c0f91b3d92b603d1aefa6caed7a2f7e65b6ad956348d
MD5 903544b8247c0cf261f23303d0cba7ca
BLAKE2b-256 c34c0f576ae5f870e7df15eb65fde5f057e79eb79cf7620ad596f0a04f601ba8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.114-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.114-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 864dcac424fa7453a5c12657fc3589b1071a5343983376bec56bff2acf4a2a17
MD5 ad365fa302695609fc4d94bcb3496e31
BLAKE2b-256 aa16ad60abc8893fd57d88c498e29210026615e1567d6509c72c2da41930647b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.114-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.114-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 977ed819f4cd9f568a7db2d4e33f94d190e2e822ddbcc06c3eab96ca54d80787
MD5 ed4d35ea386d8ffe486e99d4c59a0b43
BLAKE2b-256 2b3650eb99dae1207d1ce8f5706a801f5ee624e4ebe33c11651c9d63d5efb696

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.114-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 223ec7a22b04855ff792b1a172add8c683116da1bff7e61cdee3862ef22a5201
MD5 31c629006f6023b700f0b056218a0a25
BLAKE2b-256 e107cba621b36c8ca7fdee095f620546705b6c6738ec28926e2f154b90bda410

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.114-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f5df3ee42751c149d258acbd37f74a31b4ba3cf12c628e33428ceb72eaa29b4f
MD5 a472951a56f06012e7cc55cf9bf948b4
BLAKE2b-256 03ec524623afda7ce4e3e54cda44ac204b9c24676e07cfb81d8b28ece229cf87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.114-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.114-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 de946d93c82a75bd4662b7079c1ce417e85f5d6a0fd5920c1c801750c417e49b
MD5 235d8558fb81e64c8e6ade6138b3b08a
BLAKE2b-256 a00a4b35ab78f333f8a86c673003b4d83c0467cef6749265a8116db2179b3629

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.114-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.114-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c8bca1d7e886f6c7ce1d725fe11c8b310de6bb05c5d72539a296fce1696e79e6
MD5 0ef4c142dd71e7ada3a24d5d2fa7f571
BLAKE2b-256 020fd91d8bdcf1b455d676c57c169dede629d21d624dd0420e377fca3e7ef8c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.114-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3596371134783adcd93d0f26fe54dac799c4a73bfa8107215ea4bf077688d5f2
MD5 f44528c6b3dcfc1ef1338b37a83eb36f
BLAKE2b-256 b6d8ecdafbb89e10915b23532e95432b3caaebc1e306c2a2e646139b4ad72c9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.114-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b22073483ae29033e114ce641168468606e2178c01c0320404098d5dfa824a48
MD5 177ab053801783cb4ffbc9f657df369e
BLAKE2b-256 515058dad12f8bc056bba1328fdb5e4c65ddfe2b9dac005dc5b8ddd34fdba944

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.114-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.114-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c319d980b0e8b3b1ffa88495cefec86b0a734e0c0103978c8d23b21eeb772d97
MD5 a2a0f79f842a7765095cdb41d0456304
BLAKE2b-256 e7e0b538424f88e50b855af25394d57950460c29dd0a6954398dbfe7a7cdf6bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.114-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.114-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ff0447f2de241c07b2ea6bca531fe8b95a6206c262065d91d5401c8a0c24c23f
MD5 8671d3fce6a7b327bad20baa68bfac8b
BLAKE2b-256 800f16c0baaa577d83f62304f305ae6b76815f8bccef09aa63359a9768bf2570

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.114-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21fd48d324b84ff3196af89123f48813f34ca95dd900e1f7fb8e535590156ed6
MD5 035ebf8950d171f573efbe8068247d65
BLAKE2b-256 8ba8a6aaecafb26c94860a24f15251467051d99d34068ad97f2342a4e41e388c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.114-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.114-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 761d4d0d0df294c19ddd0a60bab4851da1a187a10a0a0dbefb87bbace4dbba43
MD5 0c9fd8e163a58f424ab5a31af8e79a44
BLAKE2b-256 ab1685becfdba84e21672a013ad4cca1fdb531fb04700c0ee1c1f99441ebca1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.114-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.114-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5b00b4e3fabd3e1e33ef8cf6c141c87966c1541cb8827d0c679a68482f006ada
MD5 d95a8cb6fc956a5c85a82aa028d215a1
BLAKE2b-256 5de07f1cbf7bf39931062c2fb5e43eed837c6e0f881bee8137afd40e3d8ca227

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.114-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.114-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0a534fe186c70f354d5ed395a431cf1446f4acd4322d523c2364b533a1c6ac2c
MD5 cea49964f7ff5e97c68efe313e1b8ead
BLAKE2b-256 7e438e2b2661ef3b603aa48d1a05c560019beb062fe024a984c65906dbf461aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.114-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81c1e35b9eb89dbd636dc1181a9dce5dba130948f8ad81e01d1fafd435b994a1
MD5 846e04a0ff92d5cbff3462d6c694703a
BLAKE2b-256 cac010b1b7de5a16ebfef1a166713e35deca63e95059db37d5baa0c739a265a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.114-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.114-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 63c1791bd6d40b4bef6784e66eaa32ff8d8cd01a198494c674b3ae16c3cfb738
MD5 6a3301ae417e82be05d7ae6ba7b6d145
BLAKE2b-256 aa6a8227577776ed7a45f2da08ce9295e94697654cc9f2304a59f6df3fae8190

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.114-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.114-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8b61a6adfbcc7fb01628be30e398f2768403c7be3a984c82e7e594cc54c02c1d
MD5 2911db3a56a73cf95b646755234323a0
BLAKE2b-256 6c6add57d85be8fe2665865305b0d7249f3e1e7461220fb0b91e29271a051bbf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.114-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.114-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8cdd94c2094680230f311d63e1f6a03b06850e51b4b33ff7e84fe792ff3086a1
MD5 178d31bf6a4b3444121e1e0485affd34
BLAKE2b-256 a2c273c9363b52fc568152fcc91793034a51b77f0697ff655c2c1656cb8f0068

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.114-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d166498a25288456a7ee4cc5800721401989a26b523fb58da84e93f6c98d7bba
MD5 4e3c6f638e7325042b12c2d115cd5374
BLAKE2b-256 0382a8fa14be360978fdc1b131609630a142d6ac783384927458df17aeb1ef96

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