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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.195-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.195-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.195-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.195-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 309e11bf40decf0531aac9c5ccbda12fd0613ed70aa921070c764a39bca7194f
MD5 ea2bead9fa222e163087bd263dce864e
BLAKE2b-256 ef1f5f6606569855f8fd807409ad07e650c07ff603d0eb68dc24c8aa762185df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.195-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.195-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f17f56f2d13cd91c4927af4a0d9ce5c05e03aef4772b06b200827efcedf89114
MD5 30a176f48bb57b7741456b30a117e3c4
BLAKE2b-256 138c2bdc7a1c671848edc1ad19221f8a0d187d9236cc3a1f9863767175783c0b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.195-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.195-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e0442edfc8dd2a3fa232e05d383dda362eafd528a71c4467e7ceb514335ba6d3
MD5 588e2964927880d455ee309e4f3c323f
BLAKE2b-256 9a82cb029d37d0535d33c27d14c19eede86073075fbc26e831afb7179d0d495c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.195-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c8a5684963cddedc0b91e8a703e2a99837097854990d349cdea442fd837cb77
MD5 643c0edcb7f834c425ce32b02fb9d991
BLAKE2b-256 471372ddc65b7427a04fa311d805bdd64cd1048f07507f878dfb08009a7d8839

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.195-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8ee5288cb1afdd7ea443348688f13f2e582d6606eaeb6efb7f3ef43d1d21d2ba
MD5 9cc720bee3738922b2688b72277253b3
BLAKE2b-256 3ba77b5da8d68ad86b21f44d26654a9f4293eef4644dbe872da907727f10e829

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.195-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.195-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a5cbe2e9ff8a3831756003d9ef5b39adf1ed0f9a6d7f5968d7233ca0082e0c3a
MD5 0a4094fbdbb973de899d0a8e72788441
BLAKE2b-256 b67c6a9823014c36a925c90721f42a027b9986e3fc1ed7809f6cb4db793709f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.195-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.195-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b14e4539d330cc738246745b21976e575887a078e4024ec6ed2a9f5ca9c17a0
MD5 d9df4e459c2e7f4a5c438d9c5fbb40aa
BLAKE2b-256 d869d28d53ae356b9a1b71b2d63fcac87cdbdd9efba5e6edaf2bb59ff5e1252c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.195-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16f20682576371cccf26aa06fd8141e858ef396a1dca743f78740e354be596e0
MD5 a343fea0a89dd5e01d8be1aa691c6934
BLAKE2b-256 4ba221c7ecbcfb0631d403a093cc804f19e2323c9714393c3672b11952ec6feb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.195-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 304041018400ca60f7cf329feca7940f487c407f3676773cf844c66b4075cc78
MD5 fa8fb2c80cacbb05fb5f0e117ec27152
BLAKE2b-256 e40644c6881a43eda4f4222f026b5e0aac3fa3aa0cfac1f19a9ed7ec6fa37721

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.195-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.195-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a39ea2fe9ec439f6661c841ef93d5c48e03c2b97ff86c477195152564df65f9f
MD5 90c8b507080beed43f94cc24d4dfaa0a
BLAKE2b-256 688997c7a78fd6f05ce4685a66eaaba544a88009356b75ceed1f0f4a02f193b4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.195-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.195-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1eafd3e6a8ddcd2e9998eed71721c97b45832425a061de1dd6853b0836059cb6
MD5 0746441a17e4ddfac96d18dbae9b7afc
BLAKE2b-256 18ee3443dae4fbe05b3d9d6aecee742d6e7e22a9c847c65d17df245cf4e07191

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.195-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67a2ba6c20fc7489cdb4c39aea8529bef02aca51f308ebba47588d5934bc517e
MD5 cd89a37b1fdabf5dc4d516e742a5cf87
BLAKE2b-256 c952b05921b1bf1ca53240a6821d136e3eb65b80a1b1aac9e0f73cd2f6c8af6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.195-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.195-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f2b6fcac9b8794990e6d7eb563020017739acc119fad6a2e3aee21870035c789
MD5 ff6acdffea45b2c26c461e79d40d6df4
BLAKE2b-256 35447ec7c55b5bc99f82b2f7d973a6a65a85b252240a1cb3569ee0648f6af252

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.195-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.195-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f1c17adbeb92f66233e4b4c9d4eb74758efa0f2591578892778d51870d9575a5
MD5 835d3a1f09ffe0da10ae90b2f53ef037
BLAKE2b-256 bcca0e38125900e00097dc3ddbc2328d5df3412c56f832a6d46ebee367f8f961

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.195-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.195-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d48b7a900f6a285a14b145685627895ecff9e462703d8329b12108e8195e6902
MD5 b85683cc0a7d93acf433b786db13685a
BLAKE2b-256 c356cbfbd21e589d2d477d0831fe651bf577c8804979d8fa55a8cdce273c6ec7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.195-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 421e746b8db48f5c707b10c857a6f0059cb21d69c37a4c388ffb66b0f825a075
MD5 653f51ab7eb89c811945a2575649dc91
BLAKE2b-256 e424ba3a88160595bb9f38c2fd9ee281bc95a5f5d75906c90f55fb2234793556

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.195-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.195-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 443fc3564c131328d1ea135ad840ab9947fc51dbee171021e1bc02e3a957efd4
MD5 8cb9aa2af2f1778f1942b5570a96bd70
BLAKE2b-256 c0d069cf2be1e16bc29cd6604b18a78f0ba9bab3b18d8993d0da507ba5216482

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.195-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.195-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9bd1fe1200baeaeaf014584e50919f4d71c4fa469d443f95393df41e39b44c49
MD5 c2e0a6459063966c51e77c0e0e5d05fc
BLAKE2b-256 6401c5200dab7df4c18143bc16c63e5a3b253724b47b8b70b1d8dcf8744a6aad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.195-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.195-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4dec6a1580dc4a0bbf11bb7184fbd8a04df8dcdc44edb1090d0fbf3fc386e9bb
MD5 aaf8374ef5a3490e83254230b66802f1
BLAKE2b-256 736c432445a90246878aa9613c4dddc155d29919f4349139e768a12ccc457f01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.195-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f79a545af5d939d81575de7292add3ca85754279d31e7435ce984a95822c6084
MD5 92ac2a171143e6fb54cfa2e1b0dd700e
BLAKE2b-256 89fc6deae6d285ebbfec73363b6bc49ed7bf7603ce39b50bcc7b85fbad115e78

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