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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.501-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.501-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.501-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.501-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 27459528172f26a93d93aad42e13bb57f9aa11342fbff6b25dccfe9bcce8b221
MD5 764972612c33c47442d36e95c492d971
BLAKE2b-256 e892b6d30175472a4f1d0d90cfae1f0bc45c710fa26a8462bc1feff44b0f496a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.501-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.501-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8541bcae65f72e0c9fa5ab2a9aa0de955158a9573747a06da51c85c6a8aead3b
MD5 82456e7285af3d066fd78b1b8cba55a7
BLAKE2b-256 9d62c3cbe8f5493ffa25d4ba64be62559954dc4731e11a1b619a1e3bb20cbd06

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.501-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.501-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b4b699a881a93924e37baf3918d6d07ad36c54080bc8dc4be0ba6dbe469dd485
MD5 39ae39f0214b124ed221a1d9f4d88af4
BLAKE2b-256 efbb6244819457c2dd166a8296225683131f92b532654b757a10eefc8b6d6b69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.501-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6807b9177d1041911ae257a1a95a5f66429b3c0e0214de72dc14e64776359583
MD5 4ee027b31b740ef3f7db8a40fd5daef5
BLAKE2b-256 d7265d08a5458fa3359d50a573d7f3513c03462b6eff7a1cebd69780e648b370

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.501-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 93e404714c900ab040655ab47ffe2544a068dd4581b1217ec1f727abefce8467
MD5 16dd4d5eea567a1f6617af546dd90d45
BLAKE2b-256 6378d59a13367834bd745eb2f2e4271501f97661d4dfd2f5fdbc8c601b4126a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.501-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.501-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8c2110602af5baa37458a3345ebdf78daea2d607426372de6e46b3eb1fd6f8da
MD5 90347debba1f772c0f109a182953df66
BLAKE2b-256 cf82fbee773f7ecd197b1f13491b0d8e7e12a57eed44135dadef6ec49e9befc6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.501-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.501-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1d5e5ea646cc4f3e79308b960f1cde9f792e7b06faef03e6824207f7d89357c8
MD5 488fbdadd089b85c39d9301a51785098
BLAKE2b-256 d7a5c75272af19b82d6f3c3a6b96e49be4320582d7b10d00b86a3af17ad0f0d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.501-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4888099fc2f55e9b5206d9accd94095af8c17891e455b10f6535d0afcf435a58
MD5 2bc2c9df0e7c19c9988658acd3e1373b
BLAKE2b-256 6b1d1a01bb310ed4d2f4aadb6297d73d2c7ddb517296fa20f0d435bc6e91c470

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.501-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5502733c1f737cbd4fcface26e74e14b40a421e593799c3dba99cf43bed43da7
MD5 e7d2c8d9b9da2522091ed7e55ce88175
BLAKE2b-256 53acee4e52913cf568c57c7533c6e183ab175d3ea8acb16a5ce68d52482c3b79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.501-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.501-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b0c67c2622807d071f33d7deec20f78b8a318668cbf7dc4d392c822c2bfa370f
MD5 b0b2b0e6b4bc2cc1b527e07b520cf530
BLAKE2b-256 11298c9400c314a855994295a720e19a57c60c9f141bd3e35737eeaec46e2e93

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.501-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.501-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20279f3ad89b841ee00bfc3de7cca8eef6a227f02571e992aaf63b0878877a6f
MD5 5b0092c237a1b3594c901d4d85094a7b
BLAKE2b-256 193c736d4336b4cb01d239f7df7f3942c8b1e7cbbd4936fe2e7ae50f8bc15081

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.501-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 389446a5c934fb700d2f384795b133f5644d9d2addb66f7b2b2ae0c9e5c98a61
MD5 5e3009dd27d73b422fee5019ce40116d
BLAKE2b-256 29eca4fe188314cc1a39584ab582aee91e61b426348920305baefea48471d252

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.501-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.501-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 328286d2e6a4394938053ee4d9dd2346d1d1edbf6c28548088a05c2af2901fb0
MD5 0606ca7665a4beb2c561e7471e0ecaf5
BLAKE2b-256 b082cca8ed288b7f23f0d98d382ac8aa6f85fc0d6a28a3774f372da50fd5f91f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.501-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.501-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bc8c94701fb53e036b9640dc65e37d3b92ddecb85d91ea38810d9769399345d9
MD5 7257371f1650b7d16fc7270d988bbfc3
BLAKE2b-256 abb57480815628f12cd5c209715d954b52ca724e116c634cb76f50a42ee26981

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.501-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.501-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d818647c255d8c88f3a08555d60acba3c7fa848ff50a0b05ad6376a629118a8b
MD5 2b41c4c998bf3e80536c6441af11f039
BLAKE2b-256 6abbbaa6654ea02f9ca9eabee8587baf2fa20a8c5819f34e037f34cab529b6da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.501-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e008009b7352f53aa793e8a37979ed7f6cee2b69de266c6875c54739734bc31a
MD5 0f761804ae053efef065d16a718819db
BLAKE2b-256 5337a85eec5b5e6a71b1805e1b3286ba514de3d060f30186bfef92d684431b57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.501-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.501-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 df89ddfa181595939e689591c1a68ed2670c29c27089817571dfbb7a6ca8e26e
MD5 c7ce94fc764951f2de3eff1ac7358c41
BLAKE2b-256 df586f0cc9fe029d8b350e6208d90a842ac045e065e9ead2c33505e39e1138ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.501-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.501-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 81b31f6fb6b7fbded14a7874146ed9e24dc59f71c084e698fa715f6c42392401
MD5 bf5c478955dcd4735711e9f75641554a
BLAKE2b-256 980a43ffd292a28f7106a01aeb49ff07b3273b58bb13e59c7344e80ff2f19f4c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.501-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.501-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d41a82ba51bd5aae20da9564b5399b81d79f101940f84162f8fff4bf8643f6e7
MD5 8f40516ff88aeb20af6f42f431c371ed
BLAKE2b-256 ac5a16bdcf29ce545824c361ee260ac86e2195d88a50e57310614080f2cca08b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.501-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b83bc0735f4e71d462c328c44280377ca850d3864eb1f21155ad17408efb15b
MD5 485af1d3623f44dd6856a6995f73fba1
BLAKE2b-256 6d21d0b0e5e91a7c8fe9d99eb119a65c6f1e765391b73d4a4540c0b05f38019a

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