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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.690-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.690-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.690-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.690-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.690-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e618d8116998e216822fe8d69b5cb06c75c88a2942f7526aaea332ce248ad26a
MD5 9739bdc6e7091a450e29fd8745edc91b
BLAKE2b-256 6b31a01f6b83399f33d4c1627452f90b352afd0cd71d04eda76f83d3229faedb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.690-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.690-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c8e89204daee1df79dabb4127dbdc0754e46f895d9a315350aa34f6bf4d2bcc5
MD5 5efeb1292d71553244c035883b5b5961
BLAKE2b-256 7dec656c28d56619a81d36e1c70d414602c6b31d036bb0c0317e99b3f03c6190

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.690-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.690-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2ff514ffdf43d831080c65c978c05651b7f8ce15d95244b611b267bc9806a5bb
MD5 1552414f6110a0134df48f1b26a9f0f1
BLAKE2b-256 79db45fcd39ab195d9b140010ebc4cba7f085b1eff60d1a02283d7e3ec7ff246

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.690-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8ea644e9a43e0fac81d75e2c7b1009252d09b963deb01b46a6db5a8bbd5fcf4
MD5 bef6e1740eb395930b3587359010a8d3
BLAKE2b-256 f3ac79a085d57eca866dcadc3f00869c416940c50e8853e23f15302f6f9e7736

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.690-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b899ca6d541981a7780d92f0e9e92200e88a2180d023b8ba05f4f1fd13ecd2cb
MD5 97a640cbcadd5380b0d536b1450ea6b5
BLAKE2b-256 747d001a6a172b6bb2638ae0dba1e5c0500654a5ba7a3856361375dcd968a95c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.690-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.690-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ccc04b4fcbd039482b59431e7d63733e8573207e0b0fadd75273e235a7b41109
MD5 87c4499ff1098c904d7962f8390fdea3
BLAKE2b-256 13e153bd53f9391adcbfdc6a52bcd6758aeb76b86311e6d12becbd35410a864d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.690-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.690-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9ff0deea23769e9164ae718be20b19e32fd34b75d63aa9aa6cfe7e6c66298938
MD5 10ee19ca12c30fb2034ffee082c8a0e5
BLAKE2b-256 2e20320a83e98466eec8ae6941099124de6df5883b30d3767f8960d0acc4853f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.690-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ee92422446a87b2448cf28cb367db49abca3ac0625c1ceb765df8a44d73abb5
MD5 6e9cdbb8ad565a636b04b756627fcabe
BLAKE2b-256 6a99474db5a1960d1313a45c38ba2d8bdfc3334334af8a1109bad82398518e34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.690-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e4622d55f72c533da35090d0a024aca60e273a6b6894ac51ecd8e844f24b87ed
MD5 d7efe9cb045f72dbf9821b54586739a7
BLAKE2b-256 8b686499209d389bea7a0f676481cf0a580fa1adef0d464ebeea5aae20e889fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.690-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.690-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fac7c2cf099194598a03bbefdf1d19e1c57b3a525cb41ae561f2d767ca2406bc
MD5 4248a1609e8f8f658ce3a9bf318f259e
BLAKE2b-256 5a8705fd62a337c546dee3352c49d0c663afff5a344c776d97521037110f826d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.690-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.690-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c81a29bd7944c914e776dcc5c0edd559cf31e1ea2777474d3292098c3e63b594
MD5 ab2cb7234405f675b0bad3f43f783d7b
BLAKE2b-256 dd20b146fb9c0b365db6010d9fccc790ba351fa72b73b1e181e58037b6122eeb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.690-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c232c314ca0facea4662a2fff993eac69d10d5766e1f5ff0897ff21433241f96
MD5 988e1b7d67ca48072026a7fc41c2b709
BLAKE2b-256 62c6bc2c121e209fea71ed19b25b162f7ff2ba76c7e545dd29539b129b5daa1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.690-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.690-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b764bb6a1d724890d75651523442dc72497d2fda46ff702ae8a5cdb381d3a09d
MD5 fd39ac439ec4d09d15d5491609dddfed
BLAKE2b-256 06d14b7fb46cd47460ce34f8b998653a30259fb8429a30216edba3e4bd54071a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.690-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.690-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 558c260a94aa4c655a65622ecf5b78f0a0e8c2e295b8c224fa712a32a106877b
MD5 c0ef6b5c44ac0b0d7252680685ab9d42
BLAKE2b-256 29f33a85609717906a18b67a99c8403258dcd2ea9f62b2a94f3385df566739d0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.690-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.690-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 90f1372a6b48f7281aa262ad951aaa0573094f742facca2f0945347bbea96069
MD5 bde9bf04d57cd2ee6669aa80c95e58f5
BLAKE2b-256 66f5e29e60ce681e83ec61c1354eabc6d52550c1c79376690b957d1f0642bd5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.690-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e277733e3fc3ae18aa1a9c7cfbde574e2f1221386353c68e2c8e44fb2fe6bc58
MD5 8224a0f34d914c53932d4887ee78bb46
BLAKE2b-256 c525f91891e4a502d96beb5ca8615aadab974973fd344fa5af55b4c0e52ed11c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.690-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.690-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 60b93f5ba2518b32e7f4126adaa041fc47e4dad7c9e91c779448ce99c995150c
MD5 15c72ba6b49bdd9f9f41389ffb1d6601
BLAKE2b-256 4c18d1ebe9601402aa3dd7b7141431d8bdf5fffc7845b186e78eff832d04d17b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.690-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.690-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7690d9546a33aad88cb61e90e63c7cae4205c2e593108c66ea5c4b1ff3e431bd
MD5 14f92bcc854848759514dbf05e1d427c
BLAKE2b-256 b45023dea2789f6e8810709ed4f2a7bf97eb90365e111a5180cc4f1ddc0b3c08

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.690-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.690-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 642db42f4bb6d036e69061be61916d6df8590455b3b87ec3144b1061bec68b6e
MD5 d791e3813d95a6dace02f1af89a25623
BLAKE2b-256 93bc5ec352a8b2491f5c997ad2658f24c31362cb4fca85e051928f12e6a8358a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.690-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8811bce300f84cfc30b20f406479db80d84c62152ace1b229856d46bce08ee0
MD5 2eb46f2f24550dacef4ab1bd8ac50024
BLAKE2b-256 9c4c633daaff545df451737eb80b9daebc11ea5efac694866c6fa73cf38024f0

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