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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.57-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.57-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.57-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.57-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.57-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6aa150ab7c57a58af782079cb91ae8a28442624e852320557cb1397e8216d3b5
MD5 5a50998c270b2f7c5a34deeaa1065ae8
BLAKE2b-256 2f208ce793727d70c805fe941dc7cb48d64a0b4eaf5a5f2b48affb264dd7bd0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.57-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.57-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4498162d52b19b6cbd9a18036dafcf02f7b10d643b0efbb0dbcf6953467b9977
MD5 f89b1bcff68d9ac924c1e315d247d04e
BLAKE2b-256 c3fa3f36b263501185be6cf5fe1c6197c5d675ef3fe9c49ea56b16dfe00ed12a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.57-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.57-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cf2b5eed429f688701592ec5627b213e305e7a04bb1dca6468b2842a205b21f3
MD5 4e53e57768cb5b8871f9e488d8d570d0
BLAKE2b-256 4bfe84f1182fc887a757dbce8c2455734bf6b01cf0451b03d97a81a005799fda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.57-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51a80b6676c50b2be0d273a35fb7ee0f2adca787717ce7b841bfaeb77b4f722d
MD5 4f4a69849e8ef10ac2a31bebc5131fc7
BLAKE2b-256 d76369031686538a7a60f12030263b6fa3150a1d42c7831d876c832b5ff2bf5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.57-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.57-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7ecfc785817366cf46038d001eac57a05218db49f893e84d09d552c24883897a
MD5 d4da676f85291225778c20e9e681436c
BLAKE2b-256 601a31c12cea55f9c9d1f995e94a31bf5ff619e4d891143229bdb6e4cfab1e53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.57-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.57-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5d1ee1dd6400481bf83c9aa5eca00d73087cd81ca2235b58437bc949daf7e808
MD5 b436a49c018372de1914f5a7a2172928
BLAKE2b-256 cf41495cb1ba45bf84dc876a45b1516f7ac700db2aac7f76ab63ef5b9c9c2fd0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.57-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.57-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d5091765930d382139017bce0563e6876834c8acf61c952043e8d53aaf21e580
MD5 9a64918f65fbeebd11b26cc4aa8f7016
BLAKE2b-256 71834275650e2e3b3560fea8b25815853d22c59f8b5953bcada2227464bfad23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.57-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8297786d08849223f58f8ddeae243df528bbe66abdb6d31523f85a1673a8a470
MD5 d3c8a11b75704fde60f16e28c5707057
BLAKE2b-256 d30c6ce41e29531719a2d4228b312ba62455f0f3c3b2d24fc1df786f0c27b162

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.57-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.57-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8a9570d61d0f13b28adc73c189ae94c861e3ca04024c6be3f347af79bf87684a
MD5 cd058386eaa7625a6a76f92c084bec51
BLAKE2b-256 6685383aa9629358a670c3435136675e135e12621f67f1bae073628d6e96d09e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.57-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.57-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3a2f72d8f9ab6510c26763befbdd19dcbaadb508b1f153269a323ff84a362a53
MD5 875d4a5ab82a8e84582f59de5e964fbf
BLAKE2b-256 1ea472641ff2ce2a06b75705426b81d6484b217ce038d6d8e025a367403a62fe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.57-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.57-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 83aec19593de3997659d6f1c6c430b3e1f8ac26dbcbb0cf922e8098cbc343205
MD5 b9cffcfca1ffa647d6c8ca9c4ab1822a
BLAKE2b-256 4dbb469511e10ebe9a8232142e4b0e371b9b9df6923784a5b44ae6ab104f6f5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.57-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 752ef09b9f5e777bcbbbdbc971955f8ede23fd98c64c8455d8865c6579aef393
MD5 6726143992d921877c916e5c51f063f2
BLAKE2b-256 9b5b132434680930ca8213d2cc48134906fc4c70e892815c0e3347d0609a09e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.57-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.57-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2935fb417eb941364fb2501883fd557a80a294b8510dd5871358a90f33eaa2e9
MD5 8623850a25f2f14dbd2494f362826d12
BLAKE2b-256 7234104283844f07a343c9f6161f776d84d0470e72756d6ac9dd1da0cbb9797a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.57-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.57-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cfb96a653eb5d3ff62c69f3b3884eff55892aec7aa2c550b6cd8e8f61bf22abd
MD5 1f43bc1cf50a09f37c53aa841bdb66b7
BLAKE2b-256 4704d911b9a30e5aa82bcd2804f9d17e3950f3572b3bf47fd646fe57e082ce06

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.57-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.57-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7161a38b2f97aa9e47c39f154315fd02d7f716d81ccb71b0faa6b7655e9c26dc
MD5 ba07d3f16573d56a2c1a33bdeccd86a5
BLAKE2b-256 f447e98fbf48310b9737f4a22f54952e36730146a6b1f34ff3304025df588e65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.57-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99465331e5520a48ebffc5e4c528c030b55a9501d4f1651bf67331ab63893c42
MD5 464add15f793ded156d342fe39fb869e
BLAKE2b-256 789c4689eda8844b8255bba47cd44b1806ec60348372cf7f528ac041ac3dea57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.57-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.57-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b39a9f050d7deb406ffb9f6006b8b495fd76df03018d1f5cf4cc177797257df2
MD5 cc861cfcb3f5cdd018688317c701b3d0
BLAKE2b-256 967746ad56830eff438aa9eb324e5033ed24f0f78f4fc3476e0b4429921bba63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.57-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.57-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a47bb9d1b330d5739c03d327b297e1d3c7886ea98bb41a60ce36df2904487cf8
MD5 41852ea3c966b18dc483146462f01a86
BLAKE2b-256 59fa9f6bcc1eef94c83e27b509b52c45ef72abf701364684443a79ad049a31e6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.57-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.57-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 49a43eb6b3fcdeb5f0585732422a78c361677b1a7568e1d2db3314b37cc93f2b
MD5 7a97439ca9fe0d8d3490d3f1610e0f74
BLAKE2b-256 874c22e336d0bcdb33fd08f2ea98ee53f447e0c7d3018094c75e5e4f53c3bb6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.57-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 62a3f55af01167b48bf4fbdffc11589a2be7eb6b22e70effa73636cacd0cc6c4
MD5 77af5005d09a4bcd771d43621fadd0af
BLAKE2b-256 b3b018c3e81bd3e25ea46a7489eeba49dd79310923a00cd58ab675df6d5865ff

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