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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.900-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.900-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.900-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.900-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 470588e610f69c1f68b63ee8f25e741b161b5cebc57307aa09cc227e1b2bace6
MD5 8987ea07b256c40da60aba65f9c44903
BLAKE2b-256 4af38157742d27765f88984c1983222ae11c7ed746e5fd7f180a894566f3bf14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.900-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.900-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 59f6674827fa19340656784db72a307f30e3a29672d7600b83b8d24b9ce3b42a
MD5 a572421b64dada462798296a568986ce
BLAKE2b-256 76a936b9c58823a51ba65da8831a121ba5f84cb328d7e7b7559385472076f608

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.900-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.900-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dfd8f07e485fd323e7828cff5c19e8614c600358943f8343be6c4e2f7996ad03
MD5 bd6aef70e7dddb3a73a41da64a5e2595
BLAKE2b-256 00c436ee2309e7c452b37de1cdcb1922d0a42b825d7b5a1786672bea78217096

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.900-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd47458a4e92eea656d4873c1801636292de91bc847e5d08990efb3ffc469ea5
MD5 c565207a100cf75cd49d41325108c0c8
BLAKE2b-256 ed91e4c9dcd0b3eedc624e4bdb00da9b0aa0bd00a227c86b994c6ac71de8dd62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.900-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ab9aa5c0d4d869737b3a6763025f868a941c1cfccf047a2d58d5ba0620f72e59
MD5 81b1ff32fc94809e451ceb1a7ab8be54
BLAKE2b-256 df46ddc5a61b381a6c808079da8f0a67dc1a8dcb1b7b24a2db3c8f5d61f0fdb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.900-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.900-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0caa367c033622101e788a6f45e9cc170f79c7a0b4f0e7e633f3f6565a13a22c
MD5 c159cf73fd1869a5955b76232b0074d8
BLAKE2b-256 cc3bfe0cba83b76a73a30ff507d9a435c441adcfdbcc3de703803e02d7045182

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.900-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.900-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 116bfd57e31623b0e922fb8ff95e43427c6a15f317da92dcaf39c1f48a6230c0
MD5 5e7f302194d3e183d98e683a9942027d
BLAKE2b-256 d396b6b6937582d4ac389400ac7dee4a2f2cb8c424180cd1e3287431a98abb27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.900-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 26e01c8bbbea228067bc0595f899e26c4683fcc83543f3e0c44179e941d0738b
MD5 097be79a8d0d0005f40befacc1fc207a
BLAKE2b-256 e9e81818d8a9e4c9b51caa14ec9ef7268e9c6a2ad2973940f789d297530853c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.900-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4a4f89268db75caeed47f44d3d426fe63b1dff1de232c0375af89bd54cc5dc3c
MD5 21d4e3808e80af4feb52f1565eac5c84
BLAKE2b-256 70ee7320e17060e6f4a95594967472cda5a4af7930e15e9d06a8d115610de003

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.900-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.900-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e81905648662d7a0b62e2ad7b0b19cc5cddf0ca1341fd6b4ae59b71cfd5323a5
MD5 3172ab1bec0133c1b0da32ff4fad2ec7
BLAKE2b-256 ee3ed09c2b69aa1b203a55905f50e92f78f260e2440b8d7333ab28aac64a1591

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.900-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.900-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 df6da3156cddba8199f7a96bcaf473b7db8e56a08991932df4d1087fb76d9d85
MD5 c4e973dff4f7616eac0c808944e63659
BLAKE2b-256 f13a8b212d7d4a8c0a7cafd3e6b996bf07b4fba161bd96c95debeef44f1a8c7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.900-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 457110d19e587cd3fbf7fa1b9de542879c9725a68b0a5fa407cb7e208b5fcd82
MD5 d317cb24de4a88b43b802bc2ec9d047c
BLAKE2b-256 792f52ce7bc790c17da5d2b315b918ab59ba80923699ebaf0825064d1f82d023

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.900-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.900-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 86ea7188d968b2e1a4c968cd870d66977b72e9dccbd0d27f6bc9fcd9919530e9
MD5 752138b1540a5bcea98d1af918518dbf
BLAKE2b-256 53d2f4afbe7d9ce8d2b06a5fe68bdc241be4c1fe46239ce3c9d53cb5deea6a16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.900-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.900-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b505d1d3457df9e3b88fcadedb6bac662f5fef14af448f27fd806938c7ae371e
MD5 0caa70baf5dcd1360bc8ed5cc7bccd62
BLAKE2b-256 8aa49fd170a681d41edba291bce9e5a425e47aacb9818af580d021ab3ee0e9c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.900-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.900-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e9aa4135e8389bb93fbf10d7e339d3f142ea11b19b3981d7b3ac71a0f2cb6a18
MD5 4cf0b473ad2e9b515cd90b717586fd9e
BLAKE2b-256 96b93774aa651c76262993099e42b92278c642f3e545695f81edaca84b32e653

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.900-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 891d490497bb2720b331d8bb0cff432746cc85dd2a62792d3491864508ccec5b
MD5 c18a536c1f358960c87f82a4da6514b5
BLAKE2b-256 96cb2345f38b041e4851a9ec63cb0f9a6a8a5d4da46d327ce0d8ee4f7b2c846c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.900-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.900-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e0231e2c9cb81bd9266aaef2c330d12ebb32e9dc6901aa5c8040e2a549d2607e
MD5 860068170cf0e43c5148111c29666a22
BLAKE2b-256 792f6539417796c0125074e9248416432c8ba48813f116e91c2ea248dab8c6be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.900-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.900-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8d91163c197d4e4a2314be8a4b56931212f33196ae40c9e79d8225dba1d56f67
MD5 b37a0cbc3816933bd2a086763dce9f62
BLAKE2b-256 68603dd9146535908512aabfb65dfe68e3cc18281f902e85cdb332575c394cb0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.900-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.900-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b4a807c389d401c27287b85ab9638fb6b6be420e4ebb49774845209165e2caff
MD5 dc488bff950f362ce68e46ab0c7a5943
BLAKE2b-256 cacd3b0a79ebcd5b277387665aaa1cdf2923dc3bd43a88833a3bf1c32c9f3887

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.900-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 735b290f99dc3e072c72a4bf83c414a9f96ef2df80cf19c087d34293a96e07a1
MD5 853b1a264c224fc7e7d3c122a949c0c1
BLAKE2b-256 c4916e4db864ed54ed214bdd0a5e55f9235bc8586a7676ebf38b8c7a14be15fa

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