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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.587-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.587-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.587-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.587-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 19efc92f077d686e8859b7a7992d3f59e0bdd6daaadf3c8fc4c66958984f9296
MD5 e9a88cbcbdc8bce3477518b7f2fb5a96
BLAKE2b-256 984971379986d95d48046b4ebf468876456cb3786e5d36251d45ddf90fb18fde

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.587-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.587-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b8b3fe3f680bda854f158366c38c62cb4fbf2c6805aabca928b11a6154103905
MD5 128571de9ae03932e14e50472fb2d5fa
BLAKE2b-256 e63259d843be675173e8112c82ac219a500de4e4af70d6112fa16c82810f6750

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.587-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.587-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 87d20940f019b683ba99cee9da96324a335a4c1334ca1ed55423e5232c826bfd
MD5 865792c8928858e8a9b4dd2bb26a9b45
BLAKE2b-256 6a2257a0a1e856643b8f82e23d6e96ef2e49a16a9064c45b09004731688d2c5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.587-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd038bb88541e6018dae3d0e8558ce4831d3f893a7af6a7471aacc43550d10d7
MD5 d04ff41e4565c7866595594d4908fca3
BLAKE2b-256 2f45bff936c94d4e97ae89e7c4c80688fd774c20aeb50fa5f240168c2894ded7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.587-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b122fb8855e774ee992b014720350b04aad673f72d47b097c8c4c18f720e82f2
MD5 59a79dd1582f0c839346ac3db7b886e9
BLAKE2b-256 e8f5145add06f6ea262858a74e226cadada27d206dd1ff476fe96cced30e253d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.587-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.587-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c3bc459c9ee1ec6cef4ba2527f5f6e8aeec0babdd3e5c5aaa44ac6e5f754d743
MD5 27d4c7c21462f41bc0a295c7ff100523
BLAKE2b-256 5bddb1fb83692ee5b3028d6570d1b5ac49c9615a7bec2ae8f8187eb98b63a569

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.587-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.587-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 213efe4b0790ec178ba65672b439fcdadf7514a862703ec94bc2b71123f91fac
MD5 3c119383e91aaf842a222369574ccbc7
BLAKE2b-256 1964b0bbc111bef6172c9d4aa351d308bcf7edaace854a03c32efa6d7ed39cc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.587-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ababd02a3c2ee0fea4a402ba8b3eee74e0d0dfdd6fcd7337af6e9f14121c3694
MD5 486868a795faae27584529cbae563a4c
BLAKE2b-256 2077f11d979ab7218ba280d20f27ecc1be6fbff80478c3cb1d5424fa3facdd4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.587-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9cb4338921bd0ecbbe33cfd45a9022bd7489bc419e27ce1a3f7a524d802f6dc6
MD5 45d179bc8698477eed58cc21e2e224d7
BLAKE2b-256 1d29dce197ef44e782ed658db6a29981cd482f57b7fb096c8cb6c0ce9a42cb40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.587-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.587-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 25914440d73e39b293a6d5df86676be961ec16dbbc543cda863aef2102c66922
MD5 259a14dd3b25462ac4edcd996fd17ef7
BLAKE2b-256 9b74e2462aa893d2fc3b959fc3d52545b9ff129d1fdc1f2b8662be1fd9feea78

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.587-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.587-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e359a04f4d9435439d3a4eab0de2b733a2394d0d4cb4b7ebf0831f8b9757a667
MD5 a563ce7304be40d2ed95ee5cb95ab5cf
BLAKE2b-256 f12e47a359aac7e149e67138d363317266cbdfe25b33e291604195b53698eaed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.587-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce9138bf338c5cc21014a690d065dda46add7bde7f6e517a9feb509cd52aa923
MD5 0cc9301e7c5f6d925e1882f63e524885
BLAKE2b-256 a040fc49f64f920181ade2bc52c0d56b628c127477ff6d0f0e5a6b5f7ae3f6ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.587-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.587-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ffc634d24fea6fe65803377181d3ef65127478e513455889c722fc1380478a78
MD5 f6a79876f81c2bd1af0d26495bccd2f4
BLAKE2b-256 636ce33df75eb4641148e9c48687f9de39c2d68ac5b9efd487237af58dd872cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.587-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.587-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7674eaa803fcd09526c6a27854943cb0642b5bb0bdff58d6cbcdb2dc94a1bc68
MD5 22b70399f7bd540bb9ff6428c50fa8a7
BLAKE2b-256 4b1c443914f2bc57275ba0a25f9e5e0ba48a7d52faa036a37326f5d622f0fedb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.587-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.587-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 66b4e5d65eafaaef0b72a44e2cb092b0f14c4cd78fa3e4ba5ff5a20cde354eb5
MD5 09fc6fadfd4a29c2100a39900ad5c632
BLAKE2b-256 1ca453e6c779495b470f0311c07d38054cdc2f0655b562a73d799d8bd3cf4f52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.587-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee44f11a63601f109ce2eee1ff61c3fda34cbcaeeba1693a13cdfe2a471c1613
MD5 9ca62c392cbf910ef21fa4cc217bead2
BLAKE2b-256 52c97d257ace99ade83aefb84e689cc3875b74fa4b2eba6ddc58e76f528271c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.587-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.587-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1887cad96ec30e5e64edc13a22036499ab714c7c9867ff592239df30415e18ae
MD5 100880becf89e4ebefdfa6a4b75ef045
BLAKE2b-256 e1b14e4f2368a518f26adfd87f2ef36a5c4742351232dfa0253087d2d2e9cadd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.587-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.587-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d8f852c1fc0aab3025011900659ba0247a9a481665d54a0cbeaa0ea25aa539f7
MD5 1151e64248b8a0d20820bd39dd18f62a
BLAKE2b-256 c0ee6ebe3e15fa9066e666e03f6800b9c0acaa5ce4f69ac414987f40226a2c80

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.587-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.587-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a4ebc5aeb8883e7d2fa6ac5e3cbaf69f01c3d405991bcb4faca055f058832e1e
MD5 f911688a0b15e3f4ce69778baf4ae603
BLAKE2b-256 ea7fb88776f3d0bf8a97d055626568537f3313a0be951789a8deecdb46531a11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.587-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4183a6456f85b159cc287b40d0e653bad1aa88d60de2f327b1829d434c06d59
MD5 e68f6c6495a84cae82ae4913a123910f
BLAKE2b-256 4d82fa5c1d74b42d3cec8abca033a6fc7aea6a07bda83c81591998be7427099d

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