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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.451-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.451-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.451-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.451-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5f9cb8e4f03862e231da0dfd5bd413b96afcc1b59c91dcffc7ec2ee0d4bb20c0
MD5 c2d00b3cc18570536c117572142be24b
BLAKE2b-256 25e284e79f25f42e8d1cdd2e20740f69c18df76fc920d8533d6086384045e145

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.451-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.451-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 42d1af33d121bf19d3d689920d30c413f0dde37b479f4c0a6368c807117eb3f2
MD5 8481efe80619aa12e130ce75ce42c5b2
BLAKE2b-256 052d874740e7da28bcd6b1e761f67f367ea054436ae9e8a5c6908c5225bf7339

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.451-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.451-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8fb0083036e696625456c023b20231dc6326dcbf8f3fc84ba663e548c615cf1a
MD5 e1b98a047dd73eb57e68d9fd7d473679
BLAKE2b-256 6099f3779e5ede13cce00afbde47e5a03591029e5c9099278d73a191f59b5589

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.451-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4c5dc365dfef43b3289d39a5ad6c7f4b9cf626ee288538521d915f3a76c7326
MD5 620667bffdcdb1674a6e8be52c8e6d4a
BLAKE2b-256 97e50620b725c5eb64b513e315f81e92cb4ee078149f64f50c2b33d51bc94359

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.451-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2971bc9f0548886225337999b8a73bc1a85af2e4f9abd441e0caf0e2479744ad
MD5 7e53bb0c6275458ee7695125e2207517
BLAKE2b-256 453be8c42a14a3d4f8907254d2855c127edf6e6d715962b284dae7fd62070cc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.451-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.451-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 10abb3790cb66c20960983c48f843041051769bca8b90014b96c0e72c148697a
MD5 e0acac80afbda100488b6bfc2b848564
BLAKE2b-256 49fa58cf252805704419a3c034c175ba2495e0930fd469c3edb3ce38407cac1b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.451-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.451-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bcdec20281eb86d7235f847a73855c8f5c0d829f3a415b52c1b764692da956b7
MD5 b076aca2b9ea103cb59aade94800a1ee
BLAKE2b-256 fd389d606d290741aaf677e018f5d4a3e38a446ebc9ac3061a4f5a29ddffaee9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.451-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df2644bb2c860198bc4b18cbc9e33f57018db5e3bedfa59600ea1b9a3921cca2
MD5 3f4d9449a284cd2a61960fbeec6f4228
BLAKE2b-256 2edcbb598f9a793206d881b84668edfb63603620451b5f23c2ef342c73517b53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.451-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 95775f560a527b4e4badef739d337df8820839a3f4b87bbcaa77377d1f2068dc
MD5 3b9f347a4811f5672c32c6d72114a124
BLAKE2b-256 7c660a628fb5949b72be25c017fcdd94aa41d7e7d35cc49794b6f6e8a1f94c44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.451-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.451-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f2991d623663231dc2eeef9a7200433f5f1d9ca0216f4279568efde689a78f70
MD5 380dc9f707fdcc27544f5182489a05ee
BLAKE2b-256 079a82b72780fe93a47a1b33384befa3b8a17124e9042f1df94fdda1b366a3a7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.451-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.451-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2ae7873f3e43b43437042e0df1ef952f5b4badbfa85751329607d38b6e9c9d2d
MD5 9aea7cb058772a84d701812d89b0f6c1
BLAKE2b-256 4a73726577b6e50f28c057dc2ecad38a86853691c2f644822a22f2f10f9b5adb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.451-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4861f98c20dac30caee85ed369be5163eb7ecbdefa1deeba81a15aa91fa570cc
MD5 7d8aeed75c76330a8817bbe60b418b79
BLAKE2b-256 c53584b827835aa6a2538505a0649d07003d6c85adf1d09af267cb1871fd642e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.451-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.451-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cc51c3bfed2d8082d92efaf47202a8da8a34f0888527f1b1b94c713899acfdcb
MD5 6eeef96b432e91ccbfa555a153c6b975
BLAKE2b-256 6e50f69d826ad82e06561189a9f688aa8cc0f481fdf53fdd7c22ac29149547a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.451-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.451-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 037b71cf843a19e0ad1de77279ac164bf45ecaf0aef25df790a633609f140d3b
MD5 182956da5403b9d2ba81edaa29e70e91
BLAKE2b-256 f9c5aa5ae6c71ddf0b5f9377ef8f0f74c562bdd1f0ad9ad0730003d1e4803f29

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.451-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.451-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 14a1c6d2ba0f611e0591d3e6069e482a5d9f3318a15116d876db728bf163b904
MD5 602ebeb390f7bcba0bafbbcd2006ad2e
BLAKE2b-256 c7761ef0ce024abe10979f5a59bd5be4781806a8f89728b08de61a7f92150a9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.451-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2da8c1429f459fdc5a292ef3cdd8e850fbf842f01c9c6905bf7a92dba6c6d4d8
MD5 cd4c6bebafc81e7cd699822d6e8884e8
BLAKE2b-256 2cc6e5437b797cc615d40c7bf1c7fc37ad657658f90dded634494029afce7789

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.451-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.451-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 56b7db8e2c4fbe08d1da0fa57a9f03a4a309c16c4e383e1798435d0cd492fb34
MD5 b675f7b3e01c8b71ded7877d82bea75e
BLAKE2b-256 0ba42004ff1dcaae1a3d677857fabe142c04df916e89e3f6bcb14614e4f20814

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.451-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.451-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 782dacff1968223462764a51c3445ac0070c999e5067bf8336bd95537c4ae9b5
MD5 bfc31dd5659e806396ab341ca2aa766b
BLAKE2b-256 d8d8b508ed5f999a1bfbdaee438cbfc09bdee084cc472800ad5b679eb4506f91

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.451-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.451-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 322830be601b29c07fa4fbc5b6100404e1d543dcc3cfcf20c893945ccc800bce
MD5 51919f7e4a68cb6d5e54de587a414ed9
BLAKE2b-256 4e15065249327eb1feb9dac9f9a7f114781436b5fa3b06960c5725cca4cbaf50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.451-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f23ae9b319f2c8af85b7ec13eae47d50db8025de27c0e3cd4c04ce7d26b1a62
MD5 c230ae6f10610de8982204fa0e1a63f1
BLAKE2b-256 ac607084a07713d7548a94b4d9c3be4e211c53d535fe985742050afcce5f623a

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