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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.619-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.619-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.619-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.619-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 973e5b7fe57569239bb2260bee2d228f9860dbab24a8647bf251cbf8932e4c7e
MD5 46479ff1ded2c76c4d34513907eb3ca2
BLAKE2b-256 729003361a4837869b4add26bdba013d0646468b92eac49433ea973280ba4a8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.619-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.619-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a8dbcbe33eebc4b32ab01661dd2fb8c459b0d08e99c2e118ac6f8478eb5938ec
MD5 6cd532898185674fe4393f2a7c5b78b4
BLAKE2b-256 f34b718c38793fe11a31860105d9c1d7436fe5c3e8ae656d5435f626bb22b9ce

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.619-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.619-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6bc092da86672413ab48b5f692b77f3744b9109a25541e1d0a6562840694d8be
MD5 cadcbf07b1a123752c429ff56a339857
BLAKE2b-256 9ad3007f68ca5f9ee5fda4494dc6fa47225d6740245de976f176eea7822f9c73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.619-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6aaeb0fd5793cc2130b20d42bd7b963b559f437f953301a8833540b382377682
MD5 dfa4471107a44efa3e96dc9733096401
BLAKE2b-256 9632d77a6a27a79e9474e214803e40f47dbf516b51752178395656dcec1eb380

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.619-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4df0506788f8bc65db38f58a162a5f0ac3c65c569c2c956c1d8d8e9d9e6886a3
MD5 df80fa71dc59f871e481b803c5ebb936
BLAKE2b-256 d7d60ffd8b5358ac8ec72cc9b71c7c6dd090a2433907d9cd9dbe30727a1b4dde

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.619-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.619-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c47e73dbbc715afe3201b4b239184f512512fb5682a9db5ef000f58f14e59676
MD5 c7ab0d663d054f3a92d9b78957d0b1da
BLAKE2b-256 e578df96be22c1ce078c2d536bf5f96e487adebea8ce80e9c197eb1c141e9b02

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.619-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.619-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 44798d92dd7fbc39600ffad9936d3d231858ae2465caa8dd7e46d149ac823b01
MD5 4ab0a5d08a42a54a0b15e1db4f1e7965
BLAKE2b-256 5dccb0278297840abd3b1ed7dfadf88d516583b1834760c0fae6910465bf0068

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.619-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c93fcdb076974ed3d1deb9af77e0a097b4280c755e712b8ea6b4f1429b104e0
MD5 6422ead2f11ee50ec160711ea6b3470b
BLAKE2b-256 be6f40e578f35be3f8f4858cde5d3d97bc1782ab15a7316608263db7a8813b1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.619-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fbbb430d6b95393e2b5667448783fcf411474ce493e9dbcd3641f71c1bfc5482
MD5 131708fe198248c37eeeb693fb6d3a79
BLAKE2b-256 84505418b8947c30b5146c914177de02ac1fda7455c7d7b85b6ac54992e9cdae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.619-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.619-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4f220d3914cdc85797b2b99959b8cee5cb8a440b3bdc4b8eb93451f4dcf849ca
MD5 9a5d7ab4eec82105c1402225ee33dfd9
BLAKE2b-256 f5c6a49115ec1b280c321720e5a37ea366ee1391c60d1748f721bf08b446fcef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.619-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.619-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ffd819a075cf4a4947f72174a3a4a3cf3f38804a09950cf8005c36d736bdfb87
MD5 0a53eec5ac0555610d696d167bdc7545
BLAKE2b-256 af635f95abcb19e45b410d18478169bca448e1d009458e9292d3c035decb0adf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.619-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b672b550a6bb46db60e964192f40e80fa6c1039fc228d7267ced98edc5439fc
MD5 3731636750a14dc0cdbd003c9aaec9ea
BLAKE2b-256 64ea8e39e78c7a9cfe1416e7e4df114a9346586c5670b28cd5770ef164c83a32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.619-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.619-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b82210409e97f4c306c340082155bc45bb0cb064af11c5e21dc53d9cd6733526
MD5 aed3c2a83fe6ffa6add09e015f634154
BLAKE2b-256 252ab36eb9afc1fece3476c7e22cd8e51b34e41d81e4d6c0622969bb5aab04f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.619-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.619-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 109b4ea411cd81dd922068bcfacf3d35af3a0d917e51d5018e0be6ee0015e622
MD5 f2cf58b981923df30ffc18554bcdce90
BLAKE2b-256 4d13d2b1c8df7433640bdf95d6dce0a1d5cac2403dbd169884b2fd15f6ab970d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.619-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.619-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0fe4842aa18da6346d48b903ba47e244a6f9e91cec892c8d0be28a944971ad50
MD5 637c6aa519f07fc51482495122051044
BLAKE2b-256 aa8b241697c5be65c18d529b5c32afe5f543e6116eed946d09178b96385be094

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.619-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c34734ba5221ae2e9334b01403840a39e0d71e5ef0f61c7cd52accd6979a994
MD5 308cc0d22ffb6ed0f4d782692958a5c9
BLAKE2b-256 01068e7dea3801914de98c87626a4efda78e1efb110976f071fc2f155323af3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.619-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.619-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3bf341937e2f1dfb1aa0a4b9aaa5911d2841b8358d6e62ea37781fd82f7fdcb6
MD5 79b1f52581eb8b0166b85befb2f43238
BLAKE2b-256 a2babc62dee0094a68507c1447b3b66fa35fbe8fda45f687a3d1c175f25f8f49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.619-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.619-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fa1263c8757fa6b44afdfe88d3228b79ffbc3e138276e85d9314fd548ecc4fbf
MD5 8c51e7718eea1d41674988fbebceb0d3
BLAKE2b-256 b6bd5e708f0d0dd7c1c1d64a7347f5353064dd88793d047ee73b9d8c4a504a6e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.619-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.619-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4c6dd6d8a8525ef668b977f30a338c7ae80fb752724f07de55435be5605839b3
MD5 ba827292f59bede116327d7185c1d697
BLAKE2b-256 90364a0678491970e97f6cb1baf52e239f0708bb208e64ec27905a31520abcad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.619-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f34875974528a0c359223213afa95bcc4a239ad04d0fe02b3c5b647fc564395
MD5 c85507141e6b9e5a3a44796b69193433
BLAKE2b-256 f1a603e7d0025817187aa1cce5e6173e28ebb6b7eff8bf9e5648e7dca474f0ee

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