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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.201-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.201-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.201-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.201-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7468fe214a6bf46d9d6a5e7226145c91cf18b8319cd82e2c8a1508fb2ba5c0f1
MD5 f32a0cae8a578a1f26305f8fa3ea5e9e
BLAKE2b-256 74da70d40c1f438e28088f8bfc03ad95f0b44ff9b2fe08bb4031129d0b1974b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.201-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.201-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d60c0ad9876bdd4f2379baf6ac5a9ece57a5b75b135c41eb840608709c7c9376
MD5 109989e69653e211e3baf8dc71e7c502
BLAKE2b-256 48ccbe320666ab32eb04b4837a44408cabc072b3211dfd51e1431125827da409

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.201-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.201-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 043fbe694952ced574d44b9693e47f8510f4dbe19be7fd2deeb6b45bcec36f74
MD5 32f7f1a18f260eec39fca649c46cd18e
BLAKE2b-256 2b8c274f4986c4081ce959d904350c0578caf373db31e567acc38245d6b8958f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.201-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d53f8422a2c8138fc569346d817062be2492172ccf4f1b5317facef2b63417f7
MD5 e6568c2adb88a766e2bca898077aa95b
BLAKE2b-256 4ded56e5d2869a32e5568f479be63b2099cdc65bb83fe5aca089e79e7678f410

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.201-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 57eede35133b57e28bb1b83e4f3248f59d473f81545e4cafea18fc35100ee115
MD5 27a585aef8d542078e75f81bd7c0f5a6
BLAKE2b-256 a8df7aa11c80a42505ed59e07f4fd7d156d18d42a52db4d8230ef9ee92c1f9c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.201-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.201-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 adb531cfd90cd1ab796f04ab2edc05f52616c175b780e7ecdb37da7615820af7
MD5 2fc862e83d2608e735c168a50bee1bb0
BLAKE2b-256 3302243b61fa9bc701b475dc899d694e0ec8ba35e4a82f914577cf595a32f7c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.201-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.201-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4e7766fe10ec3c02b7197d1c9a58c02de76511aea0b85cebaf3d048d7136f534
MD5 384924378d60ad48522c0eb659d7b179
BLAKE2b-256 8943ea8f382c045fd145142fdb7be96351fe77423eb75e89a3b465c89549b2a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.201-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba43517f0124ec1de8137745fe090692c774271242f8dbfcf4cbee7232e2a0d4
MD5 d4a1d73ba85e44a3546b48a187e9a936
BLAKE2b-256 f66705ee2584164a1ab174e9e1eec92dcc0f7f2267c6b9a4298be9603b77a181

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.201-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7b5706bf31902cd8d701affe3f5c3ce448773cd169218c149cd51f548cbe5540
MD5 53eeec9aaf1264cfdde30d9e9e2944e1
BLAKE2b-256 83e6217920b1baabec69c5927d2e1c731eb4425bd9795de2e9bbc71d0880cbc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.201-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.201-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 05f816211e00bb064bed1ca85b31b2b0bbebf2df9daf702454efb8425f301683
MD5 d2686aba12d19bdcf7772794b271edc2
BLAKE2b-256 6da0fba5b8977f79057f10d14bff66d52e96c7cf7692d163cd763c9b713634e1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.201-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.201-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d197abf4819e0ca87c9f4085587c9af6eca491271a21b86da1cb47fb545a17ec
MD5 af1ca02969d8e51d9ff519f71d7a149c
BLAKE2b-256 4a2830a70f01715b24ba1eef8299461e9b613a22419c8a76f4b5f158353c1efc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.201-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3311a1224840e3737b90821a97d570ea5c18a8dcdc42848d91ac7ef3a2d499c1
MD5 1566862d33f7f845935ed730951cbae0
BLAKE2b-256 7688735a474c71be8b004654fd92842ffec7c7e084d19c3483539d57ee88cd4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.201-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.201-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f684470592e6b984163da73c68403b14ab804e56ec33ce68674b4a9e555ad0d2
MD5 a301974a997732a86afaff514a7ee14f
BLAKE2b-256 5976390ae293d5393fb88b4d213b1c127c15ab9fdd145806868dc3873339277e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.201-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.201-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 aacb40ac23c6256fd429d5a15c739e5da13283fef235b0dbf68e30e51ed6fdd3
MD5 1613423e4eaf2a81eb984bcc91735426
BLAKE2b-256 d037626ad64ef564f06890c9fb4618c0f43764744c0b497039648cc1a48a15cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.201-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.201-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20ac9df0cb92eead35b6f6a0a280e1b791ca7fd9c534ae21048f7238a89de2ec
MD5 94e05fc6fd945fe79968c0027cb3db9f
BLAKE2b-256 a2a078c0c090f2b0d94fd4a796161c96cb9e1fecff47012a656d83a94def34b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.201-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c75720b61b66e19ec8e744ae0cd26aee7f905237b6bc01b59e83ec535b30091
MD5 4ec13dadfc577dcb8f7930c281c5b773
BLAKE2b-256 4f243128c93c98032139dfc89ad4f31c9cf207061d6a8e7d033dd383408f2d93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.201-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.201-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 459f256ec936856f7b83c8f9c3d052c555c98e9a8746fb63896aca0c0f2112d8
MD5 e7146dc35242b6fa828534c4fd37ded6
BLAKE2b-256 41593dcfa98a89ad08a175b645fb6ec42e699749c889b8ad3b1e8e3f07a60b92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.201-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.201-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4c1cc7dfe6bd1f2094e08bdae84a11f12cdd0ecdc3d5281ceed1e119fcee5d76
MD5 d49763682ac89a89a467c733bc362dc8
BLAKE2b-256 a44bd86c6ab651a26e7cd5ca14330c597ab44e6be62ecfc68160f34543da7fe0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.201-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.201-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 063bfcb4e5bd28225e506eee053925ba4f54df0b2cefa2cf14e7a60ad36f3403
MD5 c749cab095c024a621422ce69041445c
BLAKE2b-256 324fdff798ee5e548f669e785311339db942ad71bb6071f22b0e8b95adc22b93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.201-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4001db93d27a76b47af05667b4eb04279d2f2d73ba15ecb626d61032ddd8b2bb
MD5 595f0be3bf6d9ce98b31abc948ba2837
BLAKE2b-256 b65dbc1ae09fbcab207db3e6da48a0eb84f65b5004aca52ef4703a377ab7bb22

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