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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.197-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.197-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.197-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.197-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bbf2ec1be875d90a5436a596da9925901cdff028fb662a06403c17597b827111
MD5 796bd0c949a36fdc20d45e4b692b7bad
BLAKE2b-256 ceec21cb815a66f88154af441f4a9d293cf558a856d346490fea2e6eebf0d5f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.197-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.197-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9e1423b8884ab790882027e716e2946513e4edd1c68d6b711d50d0f20b1f9dc2
MD5 090ccdf128053c23096bcdc4ddc8efbe
BLAKE2b-256 88a2208ec95a3366b178288800f7108f0a2d6b3a41271274b50b532fa355a803

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.197-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.197-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 907cee3d9c0e6736a2ec6fca5c1758d39349c604d15ef001a67a7bc9c9bdb7e2
MD5 3c55353f81a481bf7d7601bcc1a2b405
BLAKE2b-256 95aa6f7cde4a3d0f961768725769df364adb7ac10a82e5ddab2f264253e5a87f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.197-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb8af93681b53238330365b4e6b6a9a88e0dae28cc35504a2ac54c6cb47cbab0
MD5 e7dab3ed641e188ac564e3f6d26fb553
BLAKE2b-256 1e26f1325edacf748817f39604f6c8ab5fcf71f24334a817e0f8e6a333645aba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.197-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 92ed23bd2294a380e7d362912d416cac6929f3af791c3b6844277c3563cac3ab
MD5 cf28ade6f49c4d72365b0c294c476234
BLAKE2b-256 a2ee284f29d46d633c86fdf174e060d710556a79ca99de9de7b00ce940ee80c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.197-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.197-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c903f0a9e77ad64b69b407b59014fbd7afdb35cb89cc859b977c239efc746b20
MD5 8919360b0237362c5a16fdeed0fef7e7
BLAKE2b-256 2d4df3f2aedd8505e58f9f7dd019645e0724d64354faf34d5b38ac14194e8c8d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.197-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.197-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84c73650949bece11fbede43fcfebd53179692aee9fd8ddc18e48b2733a52d4a
MD5 b5cfd1444f03939778ea8c1a7c695d6f
BLAKE2b-256 9ee1f0cc3ce6ede5384d905906c2ff51f3b9aafe85122d0d47b0255003a30e5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.197-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b60eee81d5c4c4e4539589fea675c2665a2532bc4d483dcaf81a07057088e851
MD5 f70b863c80c63dece5b5b726506f5d95
BLAKE2b-256 aa3791fddb2b8186a94bda999b2ce87fb518be2038eb6c3f9f96025e6a730811

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.197-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 851cd5daffc416aae882bc33fe9b31dcc148ad9a38851c6f90de66f7ada8e9b4
MD5 f335aae2fc7c251be2a272570c6d7a31
BLAKE2b-256 e215730a27d87efe2a330b1253590d9e57ef1657e4fe1c369ed24ab8d16d501d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.197-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.197-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3e650a5fb23f9ea8b95ce2fbc604a5562c10c03dcb315c78c3716e0acebc5882
MD5 030ade76478de4c82bfdcfdf91be86fb
BLAKE2b-256 ff1298c57c823a5cefbe41497f5e49da430f570ae6ba814a691c09272f096743

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.197-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.197-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb2d12daad68579b8c4fca8b4161325eb50a16bd0776115e2adac2e20ea2c43f
MD5 9c87059b61dc37f43a7ac3f96a3c34ae
BLAKE2b-256 fceb2cda6318a6211c18cc96fff4a5ded2ff99859cda707564e8e6c322d1c502

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.197-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca12a2b7f1f1ac8eba1ef183346b9363a3620ba806c809342b6e882d4e3c5fa1
MD5 932788ce855bf6510d08e228f5ea5869
BLAKE2b-256 d785e72cb3004789aba3d8fb010088b5766f82a4e646bb422d6119e43b185c76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.197-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.197-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c4eae93cd20d8d437588a99c85de6910aeab0f817cc4aa8fa5e8027313cfe879
MD5 e79eb3b22e31646feef8d4b47b484539
BLAKE2b-256 99e614d6e0a2c8e9707d8d4c86784c0dd052372368aafdc75950f77025a1f90d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.197-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.197-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 89c2d09a26cd34132822fa6d00e55475bdd67ffa2ae29e775ca054efc307566a
MD5 fe09e48b4179bad9110c064088da85e9
BLAKE2b-256 964f7522ef7a25d13e0051c9b5898356af4f96dafd944ff79d56acc8f9b8c79a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.197-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.197-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 331206e0b0526b2817f82bb640981efd7d817df2c067ec306d76726313bb6aac
MD5 a6f72cd37905fe2f7e6cb6012db12abb
BLAKE2b-256 0d78055a7e824cfd76232b5c9ad2096fb460b22cebcb22b541cf95f064788a75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.197-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2bd51e4d9f34a2b7e33ffd1a3d75b5d278968e65c84925373f2401b5d48f68c0
MD5 065b9550289559ec746140a48e64fa54
BLAKE2b-256 2f27f8f062118e5f0ecfa03002707b30892dd205cd054fdb2672211ffb583802

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.197-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.197-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0213de2bbcb38875558f607c234de3b8985cc6b47ee3c48b1f7dbca04f8790db
MD5 5933fc10123d7f21157844b588e287f8
BLAKE2b-256 bac8d9aae3172ec6f30d303ad1073a0ba88fd007c2157b25c429d97a244754d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.197-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.197-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 13a33554fb3fe981a71fdebef062ab660782cdfc80c5f6bf51841d2d1bbc9f42
MD5 f472b30da52d02c7180b9f6837001b2d
BLAKE2b-256 65c3fc9e25f88005eb4e84db62178685c1eacb487c38320b09b3058ef03b28f0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.197-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.197-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 179b7ded30b519d9807df6d4ed0535ddc02bf438d43a94dde10e65f40a21a9f1
MD5 7b612c185c4b01fb8ca8fc4c6c52c0b5
BLAKE2b-256 0e82e68ad23d73d38729c36a940e5470a2150d299a611779e3655a94a6b34d81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.197-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae90e8ab23a3650fb103a16eb0c67dd5700a29ca9738590f99d82f8312a0dc52
MD5 1924bef8af7b65585c22347bf073d98d
BLAKE2b-256 d3c0443caffc0c5e5870f0306996434099fc17ef8c4052cec9dedf6332bfc6ea

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