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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.236-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.236-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.236-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.236-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7daf0f7278f04266ac9c1e06dc339907758cc99ab3362e4c04dae637b6914c33
MD5 d37b02e4272822d95be28ce05696e52e
BLAKE2b-256 1fd94e17fe5b32552b86ae8fdc271c2e07e3b2c08bf921ce9f6d9e9ea33b5c0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.236-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.236-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1babeaf5e0456a67886446ecd7037b2552ef5a8426c3b8472464d60adccac3c8
MD5 5adc09598307f56d56d1d7e8a4ad4c6b
BLAKE2b-256 74331a88da6c4e0bd3448d41316f033024778937e3ece25404793400d0772d54

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.236-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.236-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f0d2fe8703166a9f455d7127165d110c065d459116eb7fbac0f1e94fa2fce5d2
MD5 b20b37380a1a5edbce154da1d7dd3e45
BLAKE2b-256 c5997f056e4611867b5c102d05ecae32617137cb09fe5edf6e56892c34fec7bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.236-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 62ced5f078227f77361d15039ead1c8b8ac414b908b5f2747504f3c3d6e76495
MD5 e7344650670608aa3eca6341f2cf7748
BLAKE2b-256 df8e3da1460aef7f5984c2ce1c1eef622641f140d4f4fc87623a8c11581e0eda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.236-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3f689bb62e362f7775f67983e5720f53d75feb3e31232a56aa79fbd80aec8bcc
MD5 c9270f6b6b5d0c9932d008f317ab1ed8
BLAKE2b-256 a0bb944a5b84c720da746fe4b46008dc31ec74a7cd8bd672dff6f179f530ec42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.236-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.236-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4dfa41332870e4b001919659659211e57dfb59f99bd9a77b38399964b6ace35d
MD5 be4b2a480d0ab4d78f65429c7f91f124
BLAKE2b-256 89a805d08fd3c894e21de54c97c6275885ccccdc8915ec41a60e18422f28e6ab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.236-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.236-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 45d7e715a1faab98f213709b24e0b1a180b8dbfd1b676f72f6f04a02fc891847
MD5 3e22ed76eec12f7ba0df2e5a2fb9663f
BLAKE2b-256 a39cc7edf272ce629a2dd5100c8a3660d67e7cfaca17cf2fd1001cb4f164cd96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.236-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c4f26bd7d5da8d33e10f624c3985d9e6cb7f4e461a77343b4539f55dfdcb3c8
MD5 4325fe721512e09253ba24d67b1f0546
BLAKE2b-256 6a76bb1bfbb05cee95e0c0cf6e09c8251658542ebe9838b0416c19901ca4fb28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.236-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 959ab84f4a88b669c2fd2849e4cde6a167c81cdc036a4fb5a543e4494a17ba5b
MD5 5ea15987464c79252fd7c5e4651e37f5
BLAKE2b-256 b05cf49856d22d0b7919adbafbb68ebd35ab999e9d976d92070ab21d08bf9c78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.236-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.236-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b2f3775e37366b385e7a66f26a891555f79838c41d864beccd4df0a414137d04
MD5 002f99d8a28f63232e32ae19a6f54e29
BLAKE2b-256 27dade51f76e8ac69dddf5aff31fd59831a58dcb035e013e066fefc26760fae0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.236-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.236-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 52cfa089fd3739c5e5fd7927572bbe0102ec7eca69970b60dfbea964cb9022e7
MD5 8f01360b19d620f40c838a61235631e9
BLAKE2b-256 32fb6beb33e901a6e58913a0bc7e3db6f7e2e7721700aea4d34f9896587fee91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.236-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51297b0bdf5697bb04ac5fddb12c3cbe4fc3673217a5b7e0180d4fde12764e90
MD5 9b651e3369973e815b0898bda37749b8
BLAKE2b-256 2ffd18e6a52baa3e384bfc638ff0fe04591bb8973e19deea30ac3d6a349e8716

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.236-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.236-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b3fcbab06741ba446847175d0a56c4cd0677f7a98774dd8b4434413a406e6603
MD5 f7cbd5d15255e92c27f44dc0fc714dff
BLAKE2b-256 54205895430063724284d01145e08b4a5ce032ea273e998330a38ebc271eaf54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.236-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.236-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 86a2dfbaa162ecebbef0740a16fa9ac28283f79e9b1de403d2892e37d80e6628
MD5 02a94ca8314ece18a14034842967bacf
BLAKE2b-256 8da476b71d4d19b57c58fb9b84147a7211963df899020a7a54ceb24240f992d0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.236-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.236-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0bc3e2f6c734dd0561e3011bc7fa42bb0518a0a0fb8131823d38939e81efa7f5
MD5 d2a490c83dce13415eecd4e9a8e04a05
BLAKE2b-256 c79aa8e570bb05040314536e35ffc3af4d346371fefebda9051955bfdd8fc2d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.236-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e20c441d62b4841aba244183357dd4c16d12ec2f28d929e0a1c7d9c6e758a494
MD5 563221b181fb2b947b874b4f11c3cde3
BLAKE2b-256 de26cec332e804f00150560c52e2dbf37a64ae7464041e8aadf535202bc937cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.236-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.236-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d8982e6a35f74fc82bfeb8ca66faa2f0ef317f708e163069572be3e43ccd29ee
MD5 f07b2bf4a1ae71f2326fd4762b1713fd
BLAKE2b-256 9aebe618e515cee5b326f3b7892b2435dc49cc99294d70ac3115e2a72d7489f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.236-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.236-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0d97b0729a9d0e62a7a69eaf3d1239229e77963cef325f86ebc32cd66fe1e315
MD5 8e172f280aca6bfaa31ca61d58aaa47e
BLAKE2b-256 f1cec3730c35cc9ee54d1e59e7c61cad490faf17068dd142994d4826b82c2743

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.236-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.236-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ffc40137b4234c560cc88c490c859998b174bfaf6757f76c3764f1e55793404b
MD5 76648c281b42d92b05e32f320c00de08
BLAKE2b-256 4c26c85e848b9d08155f4da0a1c7fefe82015e7096a2dad761130a4c0698fce0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.236-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a8cb61ba0eb0628e89805744a76c562c6f0c38f5c477698cbe3e29bae4d13339
MD5 131707129a78c099d40ea8bb988afbed
BLAKE2b-256 e7487ab20c5f0068af07d21bd1af79c1c190524c94f1597d5801070599951692

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