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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.518-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.518-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.518-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.518-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 534c7cda137ad318f9ed275088b93ce79376e72f9178b2e6cee7016191ef968e
MD5 4c869244e196c228769c206c004ca5fa
BLAKE2b-256 d632ecb24e73a1b73e072c4158c2c4c5d997aa3d47eaa7fb79a0d14130615949

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.518-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.518-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 92ae017a9b1052dfdeda0477c6553acb584a9e5597a45512875f4bd9df34e862
MD5 10f12e8efcc08d383026c5d601e81c19
BLAKE2b-256 d867fa744d422562ef313e7d377e2312aa83a7db7554fdf2dcbfb04fb56de551

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.518-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.518-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f3bc21024a82d72e9ab15b272dff126bde3576431d5fae776cbf100a4a0be7a
MD5 b1e9d5ef5ece863d04c589752406dfd9
BLAKE2b-256 78f0fdc49bb1e6c9c03647da2d560d40abd6d1b042e2cdf2cd0bbcdca47f3dc2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.518-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 08fe7e40e07e090db7b16f8cfeaaef6f8fb4bf5087e700600d97a3b8c325bd4e
MD5 ced6e3a6becd5a7e438dd70ccb0763d2
BLAKE2b-256 6a876995f0a012f665770bfcee58af762d774ee8c369f18d1d5776ae56d46c89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.518-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1080d37ae2d35a5022ff958a9adc69a54ec96898a02842d0d464632205d81a99
MD5 579f107cc9d46428fc7321c3e691c75f
BLAKE2b-256 63fc6f31ce1caebc20a714ffbfbba785c9dc42bfa3c811b253f62170eeb27dd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.518-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.518-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0e9f8261148356b9d8ecb852ac37c22bab8886a34590f875f5df03cb7dd0b7e3
MD5 d4f852f3bcd0d03ec34b9cf33facb385
BLAKE2b-256 9f64c2b17f1e42f270e426a9c39c6f113c58d1918c3c1d1adbb38a1e9fac58db

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.518-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.518-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0cf9e03c1cf82525f2c4d054c5da88494de34db310f01d38e4c058acdfc3695f
MD5 e5fb06e3ae761494f881f880d675e87e
BLAKE2b-256 b169b5ef50d2a48cec41974edf92bba19d1324554e8be26c31e093a4757d1ae9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.518-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53e4be740a528137fa53f701b0e73c348bcf694326ec668b6b577f6b15c37829
MD5 d6a92f7a70a61f6d432deaf242d5a950
BLAKE2b-256 3653a6adeb82db6b58f40e03796ab7b44d80196e638775c324e25382491f029b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.518-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ea06fb802a333212e025dd1b245689483c3aa094b03df3a3c8a50e26e01f99ae
MD5 a0b27c490a0f38a39fdeb71b6dc3e35d
BLAKE2b-256 e3ff5b0d7e5e4f889808eb65a4a33c6780dfb8181d938b79e5acd9aaaba1c704

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.518-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.518-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 514f605e140d0c4646a3bf9f205f21a4e31387f24fb762751d815a1606288cd0
MD5 bcb2216c78321e0d71791434840a2e3d
BLAKE2b-256 f14bb1a54ef041a882785b88cafb911518b9c0bf61f1d3d3c83908183061c24f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.518-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.518-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2cc3585df1fdd400612dfb78231d3397d7e41f86c6b950e67adb544815f99ef0
MD5 a2069efdeebcf164857f0cff50164ac5
BLAKE2b-256 3eb7ec5587b55b5b4de4b92308662a011b576e873e7e4584744c15ded120db6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.518-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f58da4cc840c4266adb025a2becfb91911ca99555b6b613fe5b74255c427feb1
MD5 dfb70d3692a6ccc45b5aad79e815597e
BLAKE2b-256 bf0536b45a1765220e0d411df5084b7e38d707a882eb0e492cb5e5e0cd5409d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.518-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.518-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 46c0188ed2c32bc4221165ce538bf348d7ea9da4d2053f02167d22ef4c02332d
MD5 fb6a85a3cc312d3bdfacb84bc577b244
BLAKE2b-256 9146936fbae7954eb5f1d3c5966c35e409949af96e7fb7dee253c7350f2e5b46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.518-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.518-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1e0d1e0ba03bf7b91f37c470681eebd1243f903701a09eaa175870a92521f421
MD5 afee9584a30a83e037ed77a9a0c617f1
BLAKE2b-256 2a4d6912c9962519ed96a2022f9ea5e35a4c8d13c4f583cb1867ab6d48b6fd84

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.518-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.518-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 595fa1a62ada40b229cb6ce2e266ebfac8071e0f5803317c6d175e9577c415f6
MD5 2dcfe5434baa5fa125c03d06993dee3c
BLAKE2b-256 4000f87da09b8550735e9d3a480895d05c771225515cb91aa78f5850556cfccc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.518-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 108da4eed75a5155fbba9f665d9b5a5d8ae3bf65a200adc5db032e6a5dce7b40
MD5 acf68eef13508b444383aeb0f6bb5679
BLAKE2b-256 60f0859fd1782dc9a9d268624203692460ec9654173205a606495aad245b82b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.518-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.518-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7b013304a25fb5e1a18fe9b94d8ae6e34360ae81a04ca48e23ab9678d6d30cd0
MD5 ef7327db8159e0f7eb3fec543ee630c0
BLAKE2b-256 47e6b7fc60fa2dbd30854ff6a0c9c9028364176fe8c60e306e5e0a905f0862a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.518-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.518-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6e194947e8aa06acade752e718962c05118bd1a2246859e44665afe8ca7f2c3a
MD5 b0f87ad64f656b654392f5c9f02b640e
BLAKE2b-256 fe4d850d4346fc5299788645387d18dba6d1718c1c7045e13a3129fb6ebce6ef

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.518-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.518-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d142cdfb13a16d48ac4900d81d72a39d545f50b6226f486157629ef19493c290
MD5 7781c01b4561d09511fab54ba6bef2a8
BLAKE2b-256 abe3aa8f2df0926f8fc7813e180b11fc75c9bae5fb8c1addb4d96fbd4d10cae2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.518-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f58bf6e1464aae7c2b09da06f7f5da5a7286f1a421be187fdd41c0c965b6aba
MD5 d8f7518698f8fc179d2ddfc6cf161d00
BLAKE2b-256 e6fc090ca66ec060fe76cee55a5f2814e7902292cac18c6e154b9f8d9c866442

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