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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.385-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.385-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.385-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.385-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cefcedb6fa98e8ee4e1e2e6897da749db6acf9d74a8f8fdb567f43dcf2cb820a
MD5 eda31abc0d50663273f8b42e59cc10e8
BLAKE2b-256 7e624e70a15b0f85495c744e1d0f1658de054b2b8e926657f96b8fb8b3307ae3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.385-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.385-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1905e7e5de4a9ffe90fce6ebb5d6be255ca759ad11ef177ec9cf9b5c39eb2204
MD5 fe98288f773cf0ba4ea2672fd39b969d
BLAKE2b-256 faedbcc1e3d341873e298ee9edabe64f2902060f759cc1354dc9395f8ce1e688

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.385-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.385-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 35e10bfbfa87bb43297e00c1d5b9132056bce2d243b3dd7165553c07a5d8c9e3
MD5 daf4bc3fe311be0ec275433514092928
BLAKE2b-256 c0711eddd545fee967201dc5ca5c2bd675ce6ca110fcf38600f110ff039deec9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.385-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ffa20d684fd1099e9f8cc21f6628ac992aa002927c861b3e712315d995023231
MD5 24451e4ada32304ef3d99bbe7d47ebf1
BLAKE2b-256 e9592a20263e1976388ef731561e64e9717deae675a51d3e72c872378fc83b56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.385-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 273cafd7343dbf8e71bc34d8b4b54c53bb437e45381a494a8a6d8ecda743e313
MD5 f013c51af62009f0ec63856997e93de6
BLAKE2b-256 2d43d6b63eb64e3ba5b5f2b161cb9d02b90762840a26c2fa396d61811eb1bf0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.385-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.385-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 171c84c3d580065fb5f7c0c44f79ee8d061c7990173893d7bbf1880ec6910a15
MD5 0e52f5a9886691cf5159eb629d139970
BLAKE2b-256 35b68fa704371d63c19a585999ffb88d364f67e97323e4506ae9ef17d7ba0aea

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.385-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.385-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 66845a6ee61dd4275326649a9324cf3086bfc7bfb4c2321b212cbf8f812f43d6
MD5 69344a98febaab29f2c3734578772887
BLAKE2b-256 b9e9eca26e4ab7d73a111877cf854e02fba2ae9510d5ee52ce0e98865ae9c4de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.385-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2af6780dd361ce792cc3fb4def2fc48da3c0a6576d771dad5860ac2b5f5131a3
MD5 3b9065e18fd65de723a7fa6240a3bc3f
BLAKE2b-256 5bc6b634f246b928fad105ce01458b52d972f60917815b352285dfdada0da870

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.385-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9482cdb2ee58a008b49754d441cc623770a4c7d1009f86cd95180649402b9acf
MD5 6b93dc30ba1c03fff29cfdf7166bda84
BLAKE2b-256 e6b86257266ba5861dad06e32952d3dcf3fde10c429585ca7ac4c7aa863c16cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.385-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.385-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 281387e6c80a8d662e587310d13fc5bb4e256bbfc4070e5ffa7cfd29fa4a222f
MD5 d8e9f4f7b2ff8017c58d310e6c130be9
BLAKE2b-256 d158ac6e9667dd4d84f9e334560da9b9c5f4a497e87d4c7c21dbf51ed6cd3d71

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.385-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.385-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c9e6eed93b370d3c7200339a63aba0bc8b34753e12368bef66b0dc8e9d6ed26
MD5 c45120dbde25866a00d258f9b5beb445
BLAKE2b-256 2d814e8446ad24d2837cea53b9746aa4c0a8c8a18507fc6c709e21b42f6b8c20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.385-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 97fa0012845daca24f7318b10e5e7bfa123bb4f1002dcabe90eb06357bf5f955
MD5 e72adcc845b2ecf4330dd7eccdb3108c
BLAKE2b-256 ca43491a21edc832c1ec0c542c63455eecb4ac92da00a0450dbc31a8fddb598e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.385-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.385-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 59b57cf4e13c45396d062154f9e64377b2836a99579b9aa89b8a7995e857e553
MD5 7d01d0e0b383fe7ffaaa6cda0049124b
BLAKE2b-256 97b5a871e51ad7c421feb7ddc2ed4a66012aa1ac2b6c62d8aba8cc0b886d589e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.385-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.385-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cc78a56fbd140964858f049de17425cfba50c28e80ecfb2efd6fadabeb598092
MD5 cf9ed076af799b5274bb2d7602b0049c
BLAKE2b-256 365619285bd975b84f85aba448f383c47f023db81b1dd88511215f53ce483584

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.385-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.385-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 36dbe0403f38afc73828a2360ba3cb9e8a75ae12ee121c0144722750a56cfca4
MD5 ae259c3927f1b0e289c00ad0bd58a863
BLAKE2b-256 c154f9012b3a5a490c71530875b14f7a3f15f2186204cf5b6f641d9a440da3d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.385-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 552b599b66d0b3af24d4137e87894ab0dc44a96b585efebc7224e894fc8b667e
MD5 a8bf8e67b1f46a3f36d867646db28c52
BLAKE2b-256 288cd403ce4dbaa1b645f9148852e808f4e2f41d894506455c41d934f061e89f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.385-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.385-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 90e7fa1d7639da9cee7b3e6651ee4e1f95e66564b6f35e995407cd9c8c8ca47a
MD5 e7c599800a5b4aeb4ff78fef513b7bd2
BLAKE2b-256 852409826012887c749e3d128120cc775856c3847045e2c903753efc3d228fdd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.385-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.385-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d4a2150457f43e49df2989fb55a6e2b26f156c9bb225691a51f8ca8b685b3803
MD5 b486d3058d57bbe902178ef85056753e
BLAKE2b-256 97531b5448a8fb3180a78e7e5980d75ae8692033163f59cf0cca8cdace26f72e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.385-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.385-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8e466593483131df2e612fb28b921da83c4824891365f5cd16a8fa1e0d0bdcb4
MD5 369497fbc550684285804f18b125f994
BLAKE2b-256 b732ff8af2c23e271914f487b0b589fb6f73e7847f3bba83c48a1444d3e25fb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.385-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc41ed6893a0030ad0d981a996e04d5616ebadde8345c9565d9d3f9e952084ac
MD5 24d754086b15216d2d7711eb3f04717b
BLAKE2b-256 6d46088116e2160923fd31a1b57e33f0ac4311c80d265d3224d96cd1031dc34c

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