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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.5.8-cp312-cp312-win32.whl (118.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.5.8-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (371.9 kB view details)

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

simple_equ-1.5.8-cp312-cp312-macosx_11_0_arm64.whl (124.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.5.8-cp311-cp311-win_amd64.whl (122.2 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.5.8-cp311-cp311-win32.whl (119.8 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.5.8-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (332.4 kB view details)

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

simple_equ-1.5.8-cp311-cp311-macosx_11_0_arm64.whl (124.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.5.8-cp310-cp310-win_amd64.whl (122.1 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.5.8-cp310-cp310-win32.whl (120.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.5.8-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (321.7 kB view details)

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

simple_equ-1.5.8-cp310-cp310-macosx_11_0_arm64.whl (124.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.5.8-cp39-cp39-win_amd64.whl (122.2 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.5.8-cp39-cp39-win32.whl (120.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.5.8-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (320.1 kB view details)

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

simple_equ-1.5.8-cp39-cp39-macosx_11_0_arm64.whl (124.6 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.5.8-cp38-cp38-win_amd64.whl (122.7 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.5.8-cp38-cp38-win32.whl (120.7 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.5.8-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (303.4 kB view details)

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

simple_equ-1.5.8-cp38-cp38-macosx_11_0_arm64.whl (124.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.5.8-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 121.5 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.5.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a8910ab9382ccb75fd28de712ffe096a5ab0587722e1d74b3a4c9ccee001b741
MD5 c9f5456d23ec5b54268681b280bb5c8f
BLAKE2b-256 711870c43a3a989ce47bf59a34ecb31df8c661d2d441f5239efe0afdfc57956c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.8-cp312-cp312-win32.whl
  • Upload date:
  • Size: 118.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.5.8-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8773300b60f269d8d7745b90ffd7ffa109af812129cf97be4f477d870f593890
MD5 8b0c684b66f666932c15b25f05c49154
BLAKE2b-256 a58c8cecb8eed0fd485ea6898f8287e5804c0ef2e059d2a006994dc8c8e3fa29

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.8-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.5.8-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 00c1565d0329c8062dd828ac31af541fc5dddad427005bd98f03245eaeae777e
MD5 7d529dca99dff7806713c0cb264b79eb
BLAKE2b-256 200aa95b5f683aa59f3235dd462e55ceeba0b7422e9aa34638417e184a3f16c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95d3a53f11d0e87ea76818c0df41e9e2fa1d35fdf7c129e9de2971c9847a6220
MD5 a6055c18b13cf51da1c80126be744141
BLAKE2b-256 80a2ecc568deeb586f5792b89821ec30c3fea8a9a8de1be0b4937773f95a73d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.8-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 122.2 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.5.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b7ccc7fe9818d12abffee24423f624472df06517e71939eaaf50c71693b387f3
MD5 a55001fb9acca064b7bbc4115382232f
BLAKE2b-256 32264e3c367101431944d6160d49718282eb964e33955c44d179c27b7dd647f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.8-cp311-cp311-win32.whl
  • Upload date:
  • Size: 119.8 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.5.8-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1dd8ccd26e55464713fcf7add887311caeabd3e29432742fb57acc3ba329faf7
MD5 4a372f4542289b2637a7f2d44e04ac8f
BLAKE2b-256 f7592e9e10db80ad18bb244aee4a0d9d0acaf110bc9d7021d0a8eff96df56787

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.8-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.5.8-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2e338242f47363ba3c87adf71fa29b7608f83c26fb476bc11ee52b3524b0531c
MD5 4041d594197b5c945965acda2fde7b34
BLAKE2b-256 53102c73a17ce7288937c85b8bc32745b4ba1f6736690dedbcc80396cfcca1ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c2b89454ccc3ed4dad23429390bb11829887f401581f2ad45f19312880bb0cc
MD5 8c619eb6ea35239f69c6c23cb7166b85
BLAKE2b-256 788f3aa61fbe1c3266c30901302d520093e491b67d9520c0b4121d9bc68db2ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.8-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 122.1 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.5.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 568adfbb02e17e454e673512a2e4a440ff33f74248588c6bc2e87b47d5dbc4b9
MD5 7350f3888dd20bb7f9821e2c70a0a45e
BLAKE2b-256 e0fe6907a19e5e0fa1a8e0a63aa9229dc9dd78970ecf6a3f01c22370619db010

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.8-cp310-cp310-win32.whl
  • Upload date:
  • Size: 120.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.5.8-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4066338c83932ff01e659d2611266b6f52b23d943d2f35a3f05f982952f5538f
MD5 e6242b169c06f640cf98ccb5e7232a10
BLAKE2b-256 61068920758e105fcfdfd4f0b6f39450c1977b90a7a915a31f6b5201eb89ac04

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.8-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.5.8-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 839dfec2293c64e6c7134d95bb2f01a29f90a9a0ea2bf05d0c775e8d1887e332
MD5 5e05720f5c5337a01bdbab410c1b4319
BLAKE2b-256 398f37100270ac56f8978009b2eceea0d7422b474c02d2a35a881b662f87678a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 25109ee664d2e5a9ec9bc9b057fc4b4eedd3942ef411345512c9055036357572
MD5 dd8e0f244b26c5f498c75d9b9fa9d862
BLAKE2b-256 24ec25573aff9365192327e36f5d32f2ed65b43755082df84bcee45da65be892

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.8-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 122.2 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.5.8-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 183bf72c8d3fc818e97b34b449ccbec2787db3566d13742c55263c6ded087394
MD5 36692c05a1ad47a5a9bc97ddf40e91ef
BLAKE2b-256 c2fdcbbdd22964dfef55d989f79edea2eea2f722ea355a662212f8b9e7b4b139

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.8-cp39-cp39-win32.whl
  • Upload date:
  • Size: 120.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.5.8-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f3f191e9d4dd93d38f5315ef66ca739750db92dba558a210c8943a5a3ad197ec
MD5 31a0a9ead28af8c86ec4773cb554d2c6
BLAKE2b-256 d17cec0a95662b5eacea86949867ba957a707f4b0d9c9cd3c01c2317032283ac

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.8-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.5.8-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8e8ba77fc416d2205d3af4c3f8a3e658c1680c3a7f808b3c8b4f07596fea8a4f
MD5 2b14e929311af2283851c08e3a50e232
BLAKE2b-256 e86f2453f3e25061fc9d3d9a9a200abaf868b53fcd8222c8668f85aea5cff62c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.8-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 386b1279541be397b4fd17654e9f84008aa41225c7329b7d5dc02613e6d5ee4b
MD5 09103c27e6bf841215a9ef5777c841cd
BLAKE2b-256 478981e15b1731213055dd47caee6803c5a8e641231d0ad63b84a97399698d2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.8-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 122.7 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.5.8-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c393019448ca79cd1758f7e15a446fafb987090b2c154c653cef7190a7a9a3a2
MD5 2eebd5ca4f8de1c58711f6fb990662e2
BLAKE2b-256 06b804d80eee33902c8d8146770a1ab5f96dbfdcbbab8d49dc3115db7bfce330

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.5.8-cp38-cp38-win32.whl
  • Upload date:
  • Size: 120.7 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.5.8-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ff24471ea7d8cecbf1f8d038657f2926cfce3e95f726d5f496ef76be26f67838
MD5 4de950b891c1b4926f8b34e72ebd81f9
BLAKE2b-256 8465e22926ce7d75e98cf4cf41d06c99edaa6c1c810750ccfbc065e9a0828633

See more details on using hashes here.

File details

Details for the file simple_equ-1.5.8-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.5.8-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7eb98cb6db9ab07f91de1e0e3d220cf203eb745ca105a894223789f45735ff00
MD5 ec2abab3880a721c8c1057dd00d264a0
BLAKE2b-256 a08c1c4da54833488052d70b0e808baa5761d9953c56eb4b9c58821386913e10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.5.8-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e5659021c7a22b6857303698d3c6d5476d04913ec77c316cd4a310e2e01947a
MD5 c0abb6d619ecf161c7df3e448c74c7b6
BLAKE2b-256 adda916079d7e243113b63af922ef6cba845d07da6885a03fc63d20eba337d06

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