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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.35-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.35-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.35-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.35-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.35-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.35-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.35-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.35-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.35-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.35-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.35-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.35-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.35-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.35-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.35-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.35-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.35-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.35-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.35-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.35-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.35-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.4.35-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b76bf60968172b31bf649b192b68babf1cfbe6f160a87aebaed1e43b8ce59a21
MD5 4c4f4bc75c14f648c4b562be863fa958
BLAKE2b-256 a28451ed4bf8cb99ac1e7d94538de17a295f8b1137d3c4218625c9845beedfc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.35-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.35-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c37445f79762cd5fb4ea9b381608437511f3a72e6bd9330cff86dabc607720ad
MD5 ba98da820842d5368592bac6c2fe7d70
BLAKE2b-256 9d25e9d42f091fdf4f0443b44ae9d67f6fdcdfd7aaa156e92fe9f4021e9880bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.35-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.4.35-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b873594ee84209a0c8c3f6ae9444cb3a01de38c0d0c451431cff32c6c680f0d5
MD5 085d56971a797b7dbda9f51e7131ac49
BLAKE2b-256 3b66a5d05646b5980e7951d682bd214a8d56af8eaba55bdd8c3853552b131c01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.35-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 68bbb6ad1464264ea7b69778abb1177cd48a1bc1c436c03f4f7b29b900975ada
MD5 41385c9632d3dfccd7a24f27b2ea4583
BLAKE2b-256 dcdffabb0305ffafcf51a5fed26f97a0ea14618b882008ad0875a29d9aa91fe2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.35-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.35-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 85a3133b78a9eaa64cf6b93a3e0177ef4eeb2f5ca2c43b116e9cf114dc7dd836
MD5 c96cda860218b084f1a92a717fec68bb
BLAKE2b-256 2e1822bee560c981a8dc4a628b18c26d3e436609906b27739d13441a38f72a24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.35-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.35-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e45dd075fc0caf7d93931c837e731b78c55dd9018a32aae1cd222bb010567f6b
MD5 1f25ba71b924f5c17bea725efa54e4f6
BLAKE2b-256 327a31d0b973e1677d54f5e3ccbd7ccd283020b75bee9900a8903b75aa7ac3a3

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.35-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.4.35-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c871bf8cf43f88e8692483645dca9868e2d4176926e9d1eb357093644cc38cf3
MD5 a29a64af0b1c7d9c32920a24027f4a5e
BLAKE2b-256 c748286e44f904a5592f42da3be49a93491958c79f6562ff1e7786262f860044

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.35-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3441ce5ac826e8486c9ca9330ce621364fc38760f34a367a7fd563d95c93aa19
MD5 af78b84ed59ab1c9c3a0fb709e6dd140
BLAKE2b-256 3f6af4f07c456690da068130df36ad1348ac8497dba5dbf0607747d8fea6144e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.35-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.35-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f27b44b08f8201709411c80215bbd9449a26a85cca32308daf37ea27daaecad7
MD5 b6539873b597ef1e695388c99cfb0708
BLAKE2b-256 3a6f877739dee53fd4fa5385c096996599feb629bad575bbb014b7382ff2684e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.35-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.35-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0c50b773a8b19c6a3cd30adfbcd773081b5a1643c995d6d1a0d3c185eeb30d77
MD5 08cb9e611a20c87f410682bc8d228c48
BLAKE2b-256 af4ab16b315de86b3d1e45898e48bcffc41683008f20e95fe43321d29158c46b

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.35-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.4.35-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5fc657076d75a79a6cac1936c3d4c6a3e2301e8fd829563d1745cfb8ae535c21
MD5 53c08b1e11bd29573cd903762a567c53
BLAKE2b-256 fd9190350787697d368b333fa64d0ad9c1db4fff1d40cf479a48526afccc23fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.35-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2106c5b45e986c95719a60e2e61ec4be03b25a62a8a22d9336f936e1fc11b3e1
MD5 2fc31e5bb4bcd3e66a08c613dc347646
BLAKE2b-256 2ff016da057ed25a0117f1e486ebd2b6272938028a6b2c1b498413fdd60d4097

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.35-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.35-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5430746368799e5733f0ce97b3a1a1650267071494a47426df66a3defc174d54
MD5 b79b2a3917839b540ef542aa549cb1d4
BLAKE2b-256 1976fea720755119940f9be21ad690191cce0307bfa1edcfe9e59f502125a390

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.35-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.35-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0b6bc0e0504c571c34ffbecd96cfdd610e7268166836d7cd8e762930801e940e
MD5 ae38f83109e575e80b6a17aab021cfc2
BLAKE2b-256 6bb033f3c558bb0cadd06f284be8487eb1b4cb3ad7ec89d3b48397cba8ee54d9

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.35-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.4.35-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5b744d2ff0e2706dbe2efc90a482714bee9828ebf5d5565a545bcf54fc7ed7c8
MD5 e9d4694d7f709c536c858afa607c236f
BLAKE2b-256 088837a280edb9cae6bac1e7e1f64ae7851af9d68855a0ce63a58f55c5da2493

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.35-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4ad3cc5fbb8fa38b835032b85071882a9b5b027c2633e6ce80225f9bac9b995
MD5 fe9d4ede3a3efdc3039164b488b70b41
BLAKE2b-256 a3ebfb6c4a9e75c198a3037726c7b131f94d733a8c835e3abb4e3ed199fb4898

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.35-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.35-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fe162ba3e1b3dd07636b33206612b69c0db7e59979e352949e9228b806086e52
MD5 5268a62962f51bdceff64a6d6050ef19
BLAKE2b-256 78e06124ebb08c084d3a7a443ca7ca32bf4a84ff3bfa79b947930fdcd73d337b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.35-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.35-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7decd7e87fa5e96c00a3739c7b495d0b5aed197d4a8296ff8552d8112cb36318
MD5 c0791e47e0533314533e5fe3c774c26d
BLAKE2b-256 c7758914dc53f82afb9e37a419a09b613f2562b87681ddda2cf2b7ae351539a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.35-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.4.35-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8c1fc5f9138acb00ebfb4920177c70457a5733373ea7705cc370b8a8e93bd264
MD5 963b142e3aa39efbe512a816670b2a47
BLAKE2b-256 2de70bbde280dd00dac5ffc2539dc668d988e1c6579f848ce77789005dd5756e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.35-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d2cb8067cec461ed71dbe35a05bc476cc715f4c92e8aa7cc4142da9f8e67129
MD5 b0d4f02a683232d177888af35433c9f8
BLAKE2b-256 c8b5f841ac50ad07780c56deee8f169bc5034639724e6ab731e62e7553aa7847

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