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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.26-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.26-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.26-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.26-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.26-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 148e9e846efe9fd1fdc1e915c1d8bdb86b8109bc937bc085f41d8582254da74d
MD5 3f9b2231159f679a471a0d3c5119a3be
BLAKE2b-256 add5b4754458580277062ba264bcf37bd97faa4e0a1da381c70d65efe8a231bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.26-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.26-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 735342cc9b9dfffd5aff283fd79c0e582f1d7edd51609c1be32b55adb577c2d1
MD5 1166f89fe71961e461636488dbc8e246
BLAKE2b-256 5b09904ca6a36dbe2f18b7838f78aeebcb8958ca25192c907d6b02464550c13b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.26-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.26-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a0a416f6555f396059bc6fe6f1b9335dc2383e014480e8e754cbe03d4fdc8a86
MD5 67ddcd759fd758655a95715cafe0e130
BLAKE2b-256 c331a5a6d5183760d170ef4196b1eaeea046e2ee7d96a63602e3dd0c5ccd7242

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.26-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f577650df7c196d28cec38380676becc2f52448faffcaabeb4ad9f0229d9b6f
MD5 96f2e4ee3683890820d8f38367f5824c
BLAKE2b-256 6a339e91a80f08c93ca2abf0e2309085c67b121cf9a2974923888c704fd75ce9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.26-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.26-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7b2f158dcd2001ed9fe20639fefa61082fd7fefe6f1162054ca847cdf0882918
MD5 fad3a51be889f4875b16c3d7c5ddd954
BLAKE2b-256 a5777096f2d7d050b270c3d6075f592d4bf3a4bc9d0ef553e64bc04b01f7b849

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.26-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.26-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d343f8e63b4f627b34f638cefee97e175ee8141bb1610502f399592a72acf45e
MD5 ed5943fbec281e250206846d964431f8
BLAKE2b-256 dee155787fdfe64ea6754b2b3ebefc7a930eb6ca94a1445193b5f8dca28132ab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.26-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.26-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3a587f8c581a1dd1dd18ab16083fd712e048a35d032a7a3d682daee6d7677732
MD5 b912344a37d494220b5ac7492f0254a8
BLAKE2b-256 680656f826cb814002b4f060387af93789bfb96e54d15e3eb503554562e35e3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.26-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a8dbaf99e168d076dae962dd192d454946ecad9b3ff78b216da1b6098d79018
MD5 6d264cdfc9d5ddeeb54743eda55eb7bb
BLAKE2b-256 a1bb549efb1b0feb4306cf0681d78834582df37ba65ddbbd02b5f8c1b9c03346

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.26-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.26-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dd53225fb9bbb21f17a9e4c6cf58e9230e382cfa1e15d51c5d4b0fdf899f47bf
MD5 7a556e6d399831ad973e280fece7b59c
BLAKE2b-256 a6afde3dcb6d3a1fa715029c2fe4f5c2d252160be3cd416441f3810497d64920

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.26-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.26-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 78c86160f36f784b3ea5b309ab807058b1cfcb9f3d69f7dcb15dbaa560e7f448
MD5 b4029182af085b3def0229163d7c5848
BLAKE2b-256 c0e503cc27f95f53a5e19d6aec850cc0cf4a9e0f77dc3770f4c0e08c22f0becf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.26-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.26-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3df5e38651c79e968a0dfc1469adcb3a63d8508119f44ede361f51d72ec08168
MD5 a082ac0d4eeb392a7078b62b77ad9bc3
BLAKE2b-256 743a6613c5afb67ff0203b9d98c323eb8f1a78bcb894ca12f9e5790ae57e8e7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.26-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c0bfe473b8e9b27a3600a4c42d90c4959a0a546c69f9f3b9d6bed092e7485bb
MD5 ffb8e595ac9843c46821e6232ff277c2
BLAKE2b-256 bc0e7934232ac3fee275c92c7dd231b7c677a32bc282f54f43a476d494e856b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.26-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.26-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 330d959a5d75ec03aade52febccfdf1b3cb3c87d039ab537f1dea0552160915a
MD5 58f794b96a00e8052f403aa339e9d82f
BLAKE2b-256 72be4200b2055eaa4816d8418e1f44c7268333ed7bac0d65325a6b2f742f4468

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.26-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.26-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6d4780a56dc33f5aef6d9e979bd455b62bc8867eae31bf70af590ba043ac743c
MD5 00b73b9ba0bac0599e2991e010853a6d
BLAKE2b-256 4424bbd6d7eb32105a18ac69aea013e6b51df63f54c88172c13b5c420dfb2029

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.26-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.26-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9856b9d78526e6143cea4df78851d79472b0e3ef8d298e8440765cd17c42da85
MD5 08707e181f61613a41be7336d993aeaf
BLAKE2b-256 09785264ca2687c9d6ac47e7188fe2576fea70b3b17763571b47c87dafcecc1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.26-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3b3c59855090e48d4994dc78668f3f26de584201ba6997487da25365ed2ab04
MD5 4e0052b74640f07d2862f52a539f07c7
BLAKE2b-256 484c16d8582391a61ae7d78a484281992a5290f14803af88efc0bf76ad6cbf70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.26-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.26-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5f45c15a973721aac895b58f566d1c481649f230eb2710174ef677b76b86f319
MD5 9047f54042ceaf26e6e358473aa0d823
BLAKE2b-256 33deeb3ce93d904b2053b9ed732d472e2781d2b07734ff94638f63aa6418d71e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.26-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.26-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 77d77e85ad280c708068fbf138ea4cf126b5f7b2ff9afd3a08db9705ee69aa98
MD5 40e2c4fbc6f8126d4d3cf17487ea63d0
BLAKE2b-256 70e98557520757d9f9577b230e2bbf98eabaf562389a7406583cf2f31701e0fa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.26-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.26-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dcc97821d9a7d416295ba75cb066a827e3592e1a682e0907002f6269e31fa5f8
MD5 4e2e36e0aebe5b8ba7d41d4347b7d398
BLAKE2b-256 33ccd5fbf7621cf9e1301672e6676f79bdceea241afbaa65bcbf9209e3f10a41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.26-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a9c8177ba74edfc47f30f482fabf86d6b225a8c39a59b1491c8749110ee0a3d
MD5 8cbcced4bd953cbf369296ba1704e86f
BLAKE2b-256 ad0b140667b5bdb16a44d645dbc9a6dd152d0da574ff7311d53f77140260657b

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