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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.24-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.24-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.24-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.24-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.24-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2df6a7b55d497bcf5136298c863b63bbee7a2ae361de9458d9aabf0ea62b0483
MD5 7bb90a6423e30afa9ed986727f0df5e7
BLAKE2b-256 bafaa325974b8be96fc2c2d351b0e4a747e67f384661298337529fbe5831933f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.24-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.24-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 91bdd67737866e4548df15ed97fac0e65e496429931dd6a0e4a0987515390f73
MD5 fc65759659dc637337399b8826f174ac
BLAKE2b-256 b0dcea4a41da088e9d0109b983d361915e284a8e003b5f2f1b25be57ee345074

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.24-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.24-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 40b211ad41a05c72ef27a6446cccaa3be63eee011ae71a8f7c84d4a04b5ad138
MD5 82ae961e203bf0eda56467c9f5f1ad6c
BLAKE2b-256 c6f526e3f431db1a2680253c231bb0c6fcab415cc8aba37785ddb828ec33c51c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.24-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c5b5c827c068e3be9e3fa1ea619b26d5482c737c67bd600911f0c07938d4280
MD5 3c568e75f348a1828fb1abf67417526b
BLAKE2b-256 179c655b5d9a3aaae70ce7f9dbd3751243d52d72d5bbe67bd872a9de81d25259

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.24-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.24-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 49dd73db0552008eb30e14844c1179264436cde9f06e3d98560fb1723d1e448e
MD5 f3775e78e95a849cdd360d0e8ce24aea
BLAKE2b-256 bef32a6d2e994639b3a40ced0506ed2e7e705dfb77533021808315074a670c8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.24-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.24-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 357bc9dbfb6864ecf5ee878d04d1067b936e6b368820ac5ffd4e4c017cc9a9ab
MD5 c4fc1191c7fe9b4c80d9a1f9d2496a8a
BLAKE2b-256 a7f78e1374c1ed283c30e0878297d5602b5eaa3ee8b7a3b6177ea9f60aa68ce4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.24-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.24-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 93cf3ae481861c7f9354b5f6e8ec1ce8b80b4d0bc3f155c6f9b2c9c4e2016a0c
MD5 aff498c18ea774d3125a0e37cce4dec8
BLAKE2b-256 5fb4c2d7f96dc82c46f9657ce0743c29812ef1ee3a8d06b267592f0824b900f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.24-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ab8789039fe6a6da50e16258d9cbad3503fdf4867fd26ed1568e476155fbed3
MD5 4704a2799ee8d51c762c757aa254f892
BLAKE2b-256 6bcb84e1f2d51844c1fbc1e8a2cabfcf226b60934be4473f33fedea4130f37bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.24-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.24-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 eac97589f74e8338e02cdeb0c9c7f92f9a983000620448c372d1d74f027e8cc1
MD5 b6ae92f891847a7360d49e7e065c5670
BLAKE2b-256 72def2ae4c8802b0770f53393de148c2794eb9b2fc17f0e0262f15d3eb6f5974

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.24-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.24-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 62f1669bdca21bcc62ac7fe09cc177bef7d1520337825d54b5c5cde22d1bd263
MD5 f94e9d3b7c2fd327f7f4014ee11e24a4
BLAKE2b-256 1e1364bcd0699607e2a04730b5a457016231b4feae8f30123cf61c269e6f6a8c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.24-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.24-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1c3726c9d767b4649754f9824e5a6a3a65fda41f564f0e06f6014a33016a9f2d
MD5 0fa1d8a2c1a64ea7d89ac7f6f87db240
BLAKE2b-256 fcb3bc38eeb81db5f0c21fe0f465432aae9b8c652eb888c976e107dc89dc85cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.24-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c5d6883463efbf9a51500aa8dc3a5198f59c9007ddc5a4b9cfab2ab929b6eb36
MD5 1b8ed87ba9ce8d60e3129983d62ec891
BLAKE2b-256 d2b9bd0d785c575d55971fac0d25e1e6ba6c496283821b7d727faea484d6a432

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.24-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.24-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c19ee133184a04416c9ca76051471e963644af6f0665711ef59c4e6904751bb1
MD5 c9ed5f582e5f279e8e4a4f7341ecb400
BLAKE2b-256 0080c302982fe2cee55a00df34030558f80eed86bfcf62fc68b491d150c9f1fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.24-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.24-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d6f920797ea4bbd49219a195b0d334140b0d401cec055d9ac3cd35b3d930180f
MD5 5267ab105afc6a821cec46a1ea90934f
BLAKE2b-256 af1e94df6f565cdb4e8465140f261fd2b4bbe3013376b10b0addeae769720b48

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.24-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.24-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eb73c747a2c68f6da178a94fe174084ab107b6453adbdccb49dd9cc7b6a31eb2
MD5 2a8fd6a07944dfd868897acee3c4762b
BLAKE2b-256 55504ec3276764381b764f78daa7cb5a214644cbac540119cdac94a929f6429f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.24-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94e44ec29bbf0a08f042bfe922365b19e2159a4bd3cb9ca503c7277d071ba5fb
MD5 5a19eb84c84b0a2715c65a8afda3d80c
BLAKE2b-256 2333ce2a19821da8174084dc401374db972a16eceb50b5debfbd03e4edcbb971

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.24-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.24-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 63cbb706317b04f7e5a392e06713902c222615497815b8fe467223a99e0abb2f
MD5 56e3fc97fd5f1774f34032f9acdb2f15
BLAKE2b-256 4edd190316714b464180736cec212373f703eb8121903fa1630cf02d5a8361cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.24-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.24-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2bcca270ee560cd68b5ddc88bb94518b6c8e5608593fef1fc028bf3684d1659a
MD5 e46c2b22a7558c565eb666bb1b100f08
BLAKE2b-256 057862a263ded5a8b338b4ca563c02c716ff1f9b1f68b72caeed5f040d564f5a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.24-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.24-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6c27900d1fba99934fccae0d0366f825945a418bee3839655d229290860e7329
MD5 7ae2f2482a4a31e1ef032d2d375713a2
BLAKE2b-256 ebcadfdad143cc38f2a8849622f5f9ef3091ca97acbb5b414587c91b9e8ebdc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.24-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4decfc856d0b55b3efa5233906006ac47bbb6ea5655dcd4f71b95c204c244c2
MD5 d26d332f36c0d1897cbe18225581e516
BLAKE2b-256 f8e064044baff15fdbb2609118a1d0005485f6067f329000961ea7e12adba7f1

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