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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.460-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.460-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.460-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.460-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bae773b81fe52dd7aaa4e75bf3fc76032df05871d3ada11542615fd2db8eac55
MD5 65c0014704e3833fc358c175e78018cd
BLAKE2b-256 a82b1134e2f7e8ef1caf650aa2fc1d7eb510d4a3521ba2a4b1b779891ccb4dca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.460-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.460-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e65a86e41b3e3843ae62c8f3c0743608a6bb04887a12b9d23583e70954da98b0
MD5 eb773bf857f723502cd8491fedb7efc7
BLAKE2b-256 68bbb272585f3e194f009a3533c6316119002cd261f0016164d475f9afd6e85a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.460-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.460-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bfc4f896fcdb841dc4205e16d5c08927a5721ccac48623530a8fa2a769994c71
MD5 8e1e05dc7ad7b834b1cdae4aaceed79c
BLAKE2b-256 935955a8f441596c8da2b924090f246fdb193c72d1cf7f079e3b3f1107768d27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.460-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bfe0d757b19bc6fd5fdfcaf58ea3131b7bef0d47cc683e06ac3f32ef4e783635
MD5 471416f9b22398ce682b665e15b08d5d
BLAKE2b-256 f3dd4dbd746c40c08ba174e80968160e9316cbb5db53155e6e0ba590460726f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.460-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4314506b95e50b18980aef9915f50a75e055bf30ea8c36d2994b74ff62bd924d
MD5 f4630da7aacc184e26032417cafd9ae5
BLAKE2b-256 a65fd571849224e4e03ef606ed729cc0540c6fa7b55e8d8a0f8644b916625516

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.460-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.460-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1c335e272d0733adb7bb6592f89f20e552f5af11a73d4df39fa98825d32c73a0
MD5 baa6e5ccb958ba0a852927ab94b76416
BLAKE2b-256 b2af3c7845751bda426b7653fd0e2ddf0acb714fb9c62220c63d01cc239538c2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.460-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.460-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c358137b92b2df9b77be01617f03d580690ffc60f1de3081f02bb7896cea4b0
MD5 fc6bf29796972b90c0e35ed0f6742737
BLAKE2b-256 8f99674a067fc3e8a0f86eed59263ab1ecc671d232b2b58edc844d98bcfc9840

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.460-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 181ac4825a16cabdfe975dc6451593981bdda7f92e4500236669c8c9c6e36051
MD5 2d8f26a9731e3347fce1fb435c6a4d40
BLAKE2b-256 92343caf1ee79c41e32a3bfcccb33344ea6c67eabfa06e7477bc896895c87c83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.460-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0be5c36fdcb9dcff372cb9d896f3714e42204fa6a5c99cf8be8bdbff23c5dc1b
MD5 cd55174a52c7aabc30297eefa036c378
BLAKE2b-256 7e20406057abf6068568c7f70fb8b33250ec0f4a57e8568d831fee0dd2db92db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.460-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.460-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7e23cdfb6a075127046659da5e60fcf1ae9f042b1feacb056b411cf954e13efa
MD5 663687f4741e6754101c4f23b252dbfe
BLAKE2b-256 04d22f7182710a64b70b4024d24bfe88f1c8ddc8fae22e71c695263c349adfde

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.460-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.460-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2530a75ea1b8833f9e0c239ec2c201886683caca18a1e360f5bfa86725c42e7a
MD5 d571a304bbe8d998765bbd3af81d687a
BLAKE2b-256 5fca52fc26a2d29b6b11bbc510652a7ba409f6e769f1cd66046433b9fbc6d9de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.460-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f93e316c1e7be1a3bcd8e5b60906bd5232dda58673525dabac779af8ee4246d2
MD5 ebbe5cd97e37d78ee3231fdaa1106056
BLAKE2b-256 998b482ab5ea0dafe8335a5541b3c377660d3057de09df2cba0eeccea700e209

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.460-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.460-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bcfb413f0d575d81650ce63205c4829c161117edd1fe5eacfd27890030dd9fa5
MD5 f1c7c827266b918491198a3061ca32ba
BLAKE2b-256 e13f4bca68061435ba1bb9d71c48aae2471f143470d67c578c2af1eac50e7c05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.460-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.460-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 73a6993ae1dcda648ffaa1cc2ab08d27ce81824f883c59b2f63be1370812e9a0
MD5 4b8f6fd20cb070dcb53f699a71ebe4e4
BLAKE2b-256 ddc938c3c16aaef9b092b36899f7fe9b4b4803c31346e969443538251dda58ce

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.460-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.460-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2e883042d0304529c61d47cb5d90f44f3a8313ac7731191e75aa2650e37f757f
MD5 e63ae76ae87f5e70234c2a2f08a0d9fa
BLAKE2b-256 767e14919140c473577f1be48e3bb8556aaa2ee55f767413a100d26cadccab88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.460-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe13dfa54feafc6cb8b11985d048173abdb63dcc0827f3cf560fbe80a0e35f8d
MD5 7f21f240e5b3e879da1d71d0f2f8b6a7
BLAKE2b-256 848c338c310a217033b47ad60ea10d45beb2473ae97aabbc08b1d65d15538fe2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.460-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.460-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e1f6159c63ec50822e84f393e6376f9ce53b0ba57d2a1d182027bee6d6ebd3f2
MD5 18b0c18c53e0e9a2efcc439532477430
BLAKE2b-256 8c2636c08daf4867551ff8bc3be4963a53749aea9c291260f0bfe653483d41dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.460-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.460-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4366bb2fd399c9618e60a29c1bc05ed504327503fe977622d78c2a96040c12a8
MD5 3c244a6a3ef11a4cb46c50ca60a5fd25
BLAKE2b-256 e68f7cc5477a9d61f86e5418f72ee928c9854268bb3d18ef846f9d09b828c77b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.460-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.460-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a23baa3a59634e4908540c14c1c04a0f2e65ce5b728b40bf4d8976021918ee6f
MD5 6e64754fef3c45061c10261d60d56aa8
BLAKE2b-256 2b0410efd90b174e58caf6298a794a6db91447ef951e6338b87cc0d7b522dfa3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.460-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 836478d0ed81887937d7d6c2a90fd111fbc3e489f4ade6bacb6ff7d2d8db2611
MD5 d26f7ef4cc6c253eae6cfb3557dd5b97
BLAKE2b-256 12815c86570fa848a354632a502982604b8fbf1d24dc4a06f27d3a9ae8eff756

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