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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.369-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.369-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.369-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.369-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 74389d346adb843251b729e1613ea93cac864c91c2b207f1a9167bce1bd75c41
MD5 beb0e34ca47dec1bc1218c500128e0c0
BLAKE2b-256 cdd711df29034b5927d3f582d4c8c5b5d89ca9e473ac56f2ab1bcea1ecf36b96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.369-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.369-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f07580c36db99b6c557dc81df73cb3313a1ece90452ac0cf0af43f11b5994604
MD5 62681d352b6d5aa8b951104b4dc3048f
BLAKE2b-256 71469c85bd05d20189c3547e8173047087689a54b8255279ce46e22a929b09d4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.369-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.369-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 24fc31248639d64b6a3ac94b9b82ff552bec7101124c30623fcd21b1685f5443
MD5 043df91c1d8f35d38736a16d162d3379
BLAKE2b-256 1689077fa1ad92ee2f4558554e7541dfb2214bf5db412871115791b68554c53d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.369-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61542b041fb6c882ca73e52144c49b6adce5f8e69bdf1d9d3fcdaa366afc5926
MD5 31d177a6d65a42b0c35657fd0108e6a5
BLAKE2b-256 f6f65fda2e4195f8a10e6cc1127b77aec45e6907d1690763681519e4fc55dd67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.369-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9c27e96ab734636b7c985006bd4bc5de8a8c77f36bdf127009aa4d24ac027924
MD5 c3660cb24d24af416ec390fa57d8f0df
BLAKE2b-256 391b4efbb5e3f56d73ecede97549d727ff831141280c0f6018c461755f8be555

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.369-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.369-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 adced3d48d67e5e458f3e55b2427d91cde39560984e50ac681f644c88426c62f
MD5 a84db640ae462b55b5db04a6433839cd
BLAKE2b-256 37183c3dc9d86f0489492a8811a329350dc088ab9d71b6fb0c5b76151f1bd051

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.369-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.369-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 09d093d749cdfba241372215f25a8b283b5fbdb5fa95649ad9a77328b2959da3
MD5 3ed7485759d6f741657f44fa3101a246
BLAKE2b-256 4042e02480b82b1d17bc4ce46c9e1060efb04a5b10d9825c30ab015d698f4bda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.369-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80af6aa075d8cd2853e43c6dae61dc03525b78508507d9fc2ee41fc6d77f6039
MD5 e5a4a6669e72d81744c7aba21eb6c4fb
BLAKE2b-256 af6a7f189a884b4fb97ba7afa561ed4af1b386a4624b1be385c0389afd40d9af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.369-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d9b1a89a7932a4dd5045393b5bdd90d3e3ab1dac5df2ba8a623388d3cf1dba1a
MD5 d52d8128600d238eefc07ef2fbf47291
BLAKE2b-256 1b7e77a0cb826f896d8079a71d0e95df26548c8941b7ef1308cca7d283eac160

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.369-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.369-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ec887b5833be3b657f27265e3a0a0e880f6dc08f44c501bd1f88a62c7a037258
MD5 9aae3318fe8d1d9b0f2eb115d4c22d07
BLAKE2b-256 2192d334da482dc80f41cf35491ddd4df2d775718faacbe49c59c7e4c3516db3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.369-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.369-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d418d8d468e0e6dbc5cad65ca5e54f05ba7479ed9cdb839942803cdc1ce6b10
MD5 606ce534da6040b69760c3d3dedf6361
BLAKE2b-256 7454916bf7d080252f2def999c24130b6bb72718cafb4344be1600741667ca4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.369-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c854ec9f55f841abd25db87cb2d68d970d40e45e8a86907e7ce9e15615893da
MD5 31a0917da19a6bb44bf36e332a0bcf21
BLAKE2b-256 4a67dc7b0e3a8976fde224609d74d7739f6f55227ae320c00fb125c73060669e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.369-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.369-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 39c4546ecef85ede7558b90b9afc38d23844cc441fd09980fa0a09ad3f2a631a
MD5 18a7c417dc4fc0a409a8c224423f29c4
BLAKE2b-256 9e4b27b24473f284aabde2f6214b72ad5a1974a926e9876b3af2c7122047f915

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.369-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.369-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 48f4d249c4ea33bb73d73980fb43986a87fab506b1e28942e24b708ce3d5d1c7
MD5 b1547056875c07c6d90661eb56a9793b
BLAKE2b-256 f88bcc371dc4b0234445ac3c0da429042b14d966ce6863b21aec9a02f9f208e8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.369-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.369-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 871515a50b318672b4bc314bb1ae52380bedc50bc7a262b8ea555a3e9c3e20ee
MD5 c8fc159cafe0707a54fa7291d621581d
BLAKE2b-256 ba4645fe53c9935db2c9d92e3499046890d684bc96279a929e9b87226455ada1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.369-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c6ec8bc93983801e324864884927dbee4a9161f69574214e465c142ca583d2a3
MD5 48c5bae7543d8c04b9899ed4e6daccfb
BLAKE2b-256 e52fcca0eb4b4be90ab3720d0539a52d15bce1505807650f4878951717d9187f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.369-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.369-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 40eba93a37ab2a85485b348164eddc660fb07667b076b0866ede3c55d81fc0d9
MD5 23dd831fa0bbe5f362140d26d8bf0426
BLAKE2b-256 b3d89106332f6606c438fb4eaab73ed71f5389b26d36f6a89e99710347949f70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.369-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.369-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ae543b27c25bf400e9207aab495564fbd4c2c6c7a0e7d74624d575e567eb07b3
MD5 bd1d74c83bcafb1613acac9ca7508eef
BLAKE2b-256 014c99672e4a9325d197f660b4e2fb94a969d14471130fbe9a1b503f57b2783c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.369-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.369-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b37d9a233418693f5b32777ad979c52c7f89e2268e1bca55947708342e877f82
MD5 277a5b455575dd8abc28a748252612a2
BLAKE2b-256 bc0ed54d3e37f7140356b86db693f5b9c1a8708df919942c51201301b9bbfb20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.369-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c0f1c92ec5322e7df62dc0c07fd851874c04ae7699beaa6be1494601edd07014
MD5 71d833dff1c4f652356d345600d84579
BLAKE2b-256 e21e963b4509ff64fe63e86b3a507621e991f67384540917d9a40dd724322635

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