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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.182-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.182-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.182-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.182-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dc4c1d8c76434ef646bef9193c226d4ccb73ad2d836ac707e6567e2bbfda5437
MD5 94dbcc3520a2003e69a33fedde27e217
BLAKE2b-256 3f9e82f6e31a4d11a871a7a714787d6f134858e441524c8c7048d5cc36ddac59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.182-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.182-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9494df70e92b161bea6a31ac413cd304656b4c9d1017f3e94d315b411ce0a214
MD5 ee77cfbc8d6804016aa0b56976bebdac
BLAKE2b-256 7eb4508a81159f7759618c625c2f970d6aaa62c93c1e561372cb792277045ca7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.182-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.182-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 403554bcfe762a6e1de2ab1c8e7cf47f44633c7883877f75b700434d433e7f70
MD5 46862efb417ad433f59eff64829e325a
BLAKE2b-256 f89454228ddaad39e6269f6c3c29daed5d62b8511b290f15e21065b63645143c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.182-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f84ec5878e7b06b916abd9be5f470b0f04b3bb37e4bbb9b5bf410a555093241
MD5 c3f47a183a04ffcb17cb544d1b069f1a
BLAKE2b-256 86de1eccc5e8e5ac50f6d97abc90398d2066d1dfa495cb86e7c2b83dd7ff46dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.182-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 af0d8aff5e182f3bf03d0e1e71b26f12bceeb87129facc2104c725a399e517c2
MD5 fa368c8597db9599b2653ae0dd565714
BLAKE2b-256 fbe4e3ce8949beaa688f97e871a9c27d642e7e8ebe9e3db7663e7242d319448a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.182-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.182-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 204e584a0736254a4761b7e79afb98d38aee30a7cf5cea7375fc9a86f105d6a7
MD5 17702e722184f78a83aa84275667dbeb
BLAKE2b-256 19c36a35ee64ddaf42afb5e4f709b0df938b5730ad24a9e0e23750d0b3912a4d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.182-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.182-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f747e96991d48e1622528aac117a5a7805bd7552c6bd8e45b3cb07ff9f4fec7c
MD5 a65e1f526858a3f2318e3ad50119c197
BLAKE2b-256 d7d60ca8752389e9b6a2e086406175bc02ba72e876503dd364cd964e96b662fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.182-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 631defc720fcd1571246c9955e69e804dde89606b23ba504d6a7aa97e05b60d8
MD5 8ef70fc4d2a79ddfe7359ad73ab72202
BLAKE2b-256 fd51a18ea3bb9ed53a6ad4c8e713b4c8742480dc7837babeb43f176ca9f9e421

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.182-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 290b6988d055c1197dd9cc7d3c70b7cd92374c55fb9a854d0b44800cbf93b62d
MD5 cdb5a9c2879846872a98a64248a4e3d9
BLAKE2b-256 adc14d162f035b31d8eb3622682797edb2adfac76435687e47576129ad612baf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.182-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.182-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7f8e92878271c08adf71291beaf4aa6c5f6b43a6269c05dc8ab6bd5010178f32
MD5 cea36c61682f246cd944e1f6d22ef5e8
BLAKE2b-256 70d8288e4e8d4008114c6d053cb8b97d8db249dfd3be8c206eaa53c9ee48a908

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.182-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.182-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0d598e3c6ede51f66b5979b0a7d15d95d6bed7c6b722567f44017bbb98c5bf2a
MD5 0d0f0f3743f138bf70f8221fe0d07e9e
BLAKE2b-256 86363f0d3c4ef5e44dfa4c51758d7a8f5ab95ce70ec1351c0b5e43ad1b112c1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.182-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f876d30a64326e6c08eb3df13848f8058c6b0cfbdd5cdb8a64ca5b3245971774
MD5 bde3696133fba93d2226db309833a949
BLAKE2b-256 0391a5ab496001e5aad5764e3f152b1e586290dc255d9ec4a23a28298e764956

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.182-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.182-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 513b05ed8d41e17b26aac7a1d7a4972bb9a8d398f6e2da5ef6f0cac86f90e935
MD5 fa4b74486b81c8660d7b0a4ca94aa848
BLAKE2b-256 15188f1639d5de67ba460f8dfe236cb399701816b7d78c2fafe5ec6663b55509

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.182-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.182-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 aaf8f6ae51e1eb4eeb3629bb26bc10a18dfd93631860cd85b98ee3fa832c9554
MD5 434d2725921b7ff87ecbe7132320d395
BLAKE2b-256 744889757e1fed94cecb0fc36600b578b597095e9be80340b2b048dc2aa28359

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.182-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.182-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0d55f8a78d402e4b4b89d4fe4e8f7c2b331c76076646b646e968553c0d606a45
MD5 69d94c60b8cc95a9741e6fd740176230
BLAKE2b-256 fb0990d24ad63a27853f3814895c8122dc15fc36190014f32f19f70d9487bb9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.182-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c512dc6b030479873d6cb629b6d1981f778a84d566a3e1281ded7f8b116b4f55
MD5 6b87619936468fed31fbd251e1271106
BLAKE2b-256 55a0daf1859edb34d0375500c421b8e7e0df5bf013c638bcd9365a12764f09dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.182-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.182-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b00785c688941d3e5692393afcaea7f628345fab53fd4a1ea420cff5836bb9b0
MD5 e28255f5d205b0aed72bbd1085c77ce7
BLAKE2b-256 e7e06fc24879ebddc0907321dc9279d3ebe6ed5acdac6a3899a38433af5f15f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.182-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.182-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bf7e9b2fc08188201f0c3f555ddfd9106b0cc16ce74b6538ffc412989b49246b
MD5 6d679a4639aa6d00c0941a66c8dc7778
BLAKE2b-256 0b8c2944e890c31ea85c97777a62da51d41220e10ecb658468456d5a12301cd5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.182-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.182-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b360721d0f8edcd7de5380f2c8cd14933fef4cd0bbf4471f2098cd96edd43f97
MD5 83faa41df69eb4e8dd532f5867abe8a1
BLAKE2b-256 79061173ca1ef7a2e8b79cede86650a96a033132a0d2c4062e7a8189f90adacb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.182-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a297cc73bedc6af11eddf23ce4b53855c262aaff723e1d32eab22ae7c48e82dc
MD5 557f294a94deaa2b63567f15fc5027e8
BLAKE2b-256 53154a6046f808271e702a808679e7bde42dfe6475105b560b59d557a28faf10

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