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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.336-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.336-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.336-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.336-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d82cc971324386ffb2ab9be1cadcde9ee735ffec4864ace397ff4bcb268ebdbf
MD5 3e6a8ca8dfa8a59d64d7c665e6b20bb2
BLAKE2b-256 fd1a6cadb57a4f835cbe9717df64071deaf937120171357349ee23c744b5672c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.336-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.336-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cde7ae36183a920d982a8c8b7d182e20c0dde08710c5041fe63d0aaa4116e9da
MD5 f4a60f4b00b20850bd48cba87442cbc2
BLAKE2b-256 3b4c177ffbfff3bfcae9344fa75b1252ef5175fb878578716ecb0236e9ec1e93

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.336-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.336-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 92b7fdfc511d07f95a71448dc86218ee601979d16d4cba8af358508f3b0faf80
MD5 97819170ec2cb12ddcdc586ae7a451c9
BLAKE2b-256 deffee1146ad944d06395a54ac54aaf9fe45eadd9757d39f8c18525f3b8a09c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.336-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7feb248ad604b2f3b91e29454e918721342a0533cf7f0d6f813a107c7f48e0eb
MD5 6a6595a576c94da3c15650612d38e136
BLAKE2b-256 b86ef3a89199d63c4ca483eee6d7af6caeefc92fe35bfd23dc00fac8c5cdd6c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.336-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c8ace067c1eb2936718717dd7ba9ce8d138d5b39f99e5a8bc3b398b3cfd1e0ea
MD5 a9687ffc1a2cabe22ca7d93eb88d0637
BLAKE2b-256 353c50172ad47795b535cc6f346c8c1a06d1eb3bb59aae84f88e8d3481dd7c79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.336-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.336-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1892649717a9d90534307c80d60c9aec8aa95f0ff616da7c947a408cf0454f49
MD5 e0f169b632b5a7e372095b19745751f4
BLAKE2b-256 f5f7c3ebaab3d40447b378a7916f241a08c1e41523f97f0e1ae412397cd22d64

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.336-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.336-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 faa1ec7fc4fd5b833d86a58c75519b12079649fe3c5b6063a95ce56548616656
MD5 1d3f83bc20032296ce269f2a98be1bc4
BLAKE2b-256 64399c9b355f9a9fbc4edd496184f8eeab5836dc74c8271a5a9d333031e32e02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.336-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5efa5e4f2b19a39a3c9dbc12149a35de819601bcabfb0eed77d8f1cbe68301c8
MD5 fa7cdf60eb95ec0310f6b7b865c19426
BLAKE2b-256 cf0b39b28227bdf54feeda4982c4bc5a0b1cee9bbc18fa6f3a87d811c9fbecb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.336-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 af0a1ec02ac01e4285ad708976b4a21b3ef1aebc8c03dfffc2956e5e3254565d
MD5 ca4ee03b7b4768863761842b143d579e
BLAKE2b-256 ac3b2c9b398b895c4cabc8b1dd02fc5f8b4fbc16e09518a38be82e7097f8e99d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.336-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.336-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0e5b588891f22f6fbdff2b400ee9a8e057b4b546af4ecd07778d247d88f372ee
MD5 390b6caefd225bdf60e9fbb619571ea2
BLAKE2b-256 8d837783b138cde8a7e3c712103ef66f809080ad947ec20d6bb4249d59cefb84

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.336-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.336-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 de201f324807f85cf1b5bb30c69fdede40972c06461f9342d6adafef833d53d2
MD5 7c1f9202f30867ca26477738f7049e77
BLAKE2b-256 c3f0c751f46e152fe301916b2a8583e3c54dfae764310f13d5ba50c99dfd0f5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.336-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9ccd7670ec571c6dd050cd4e91c793771999063d82f28d64522981be0e6dda5
MD5 ab57449bdd7e31d30d009e4ea690cf90
BLAKE2b-256 6c3b0fe8269d5f233665ec5114043024f44b8344194ca018ee42a44705b1e074

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.336-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.336-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b21a8c488951917860320f9dc2cc9eb58f011f4c01c1062ad35541db423294a3
MD5 27287d6327014a455b0e862ce7b209f7
BLAKE2b-256 de8a75bfff46823a093addf2a7368d43e734e48e7481915006c37c6626e8d368

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.336-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.336-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 48cfebdb9db4d05f85035212fdef5b88be0f8f6ed724a9c4dc63f05cbc61d2ab
MD5 d46f73ced1c76c8f2cab3948928be08e
BLAKE2b-256 6a82bd8c1d31b88943faf35161549c925d1b0994409f03faa68bc2579692a7c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.336-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.336-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b4640b4cbcf758c17917841ae6ba26bfaf646c858b69f9d1922c9740d668a207
MD5 7d79ddf5741ffacbf2ddd33fd93b5f8f
BLAKE2b-256 78d2fcfcad5f85d22f2e8308a383abe9dff3181a74321d923f08ae8ec84ef369

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.336-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95b4c2f48631a37db6c511442365ca714175b0c11a6beeaf8ecd8a2dd750500c
MD5 771575e2ef118bcb01068e9111697bf5
BLAKE2b-256 015a7393d41d87c7badd5e8c5639f2e150f2ae729137b84f25bd6dc78b554ea2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.336-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.336-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 62cb7f416180d166cfd723aaa7a5038562e39a982c38434be861c9e08612949e
MD5 a4a9cf006506a01f532ca15d0c568463
BLAKE2b-256 42d320146df393b62eff61ac16ee8a3ac07b420b5fb68395e462a11e573d6048

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.336-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.336-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 06bb554f76ad7ecfbc2a16acfad69fdd1a9eeda5a0bee2ae3fcae01260c668e0
MD5 2a5a5fd2a998d997bae0e16a4bb6e1f9
BLAKE2b-256 0679f294e5d710e0560be946f29c0d610bae55ac3e34036c119b8c7da1509f58

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.336-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.336-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 61f4131cb4b0693024adae67625175ebc14b455d3673d4d0d4241028c5d2cfca
MD5 443d65801ecc4e11a6a92849ce7694a7
BLAKE2b-256 2d87eb189fc9b61aa301b66ce77670ce87f1c3a7605d7faef12b743c153e4a10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.336-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed5fce36a56930ad2c4cd4cff5ad5a7ba223b64eb490877169f7c88c1f50e53c
MD5 4097eeb18e9471200e93117016f9f8e2
BLAKE2b-256 336e9acf5828716ddcd812b7b3b939e1f89c70660b403b76183b509643f77295

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