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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.914-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.914-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.914-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.914-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bfb91bf0904f9a637f719de91af575e6ff50d6bc5cf40291cc0d3c57af22b926
MD5 35a7ef95047f1faa4f987eea43412b83
BLAKE2b-256 c42514ed5fc8a3547982def86315a2f9d177f436af6b63c8f874b429d80e2440

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.914-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.914-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 87952d24acf31b7ccb0e9536703b6b2428beba2d64c33ce619713b095773a3a6
MD5 8d96471670575fdd0518056ace8fd2a8
BLAKE2b-256 0e53f8f7b6bfece75b6cde61c9683ad6d3e5af2978158921a341e4a579db9ce3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.914-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.914-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 53766d6715c922048acbf07d6d0ebe5307433633b3ba54bd99c868e5e9a696b3
MD5 5b96459d97c83722dc821cad3a156f72
BLAKE2b-256 cb309c319392fc73ccf1876de2fb2f067f961fb54dc5e7be2654b940b8b6afa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.914-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f0481b02db43c95385cc7a6703a834d1364b28b339f3c24fd25d33a73edd03c3
MD5 8149e5d3df9dbc55f8073787f761ebbd
BLAKE2b-256 74d2ec0c77d3a53079f69d13c0b617fd3bdf0713896f092713fd0b7ed30c3ed8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.914-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 372a36e2e3c798c8a1e86e04a79642438489cf9188726ee20f1039a5703e9036
MD5 928ae2ee432a7d384153e05ade01fa19
BLAKE2b-256 dd7289ce5db0e53676b9e0a330d1cc2cb1568aaa618d6fb48f503593ac5e0aea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.914-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.914-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 064b81ab40a983774487bd762d4953018fe294b9b1607bfb7db01e2e842c0717
MD5 87e534869b6cf23fe26e1d255d61819d
BLAKE2b-256 a4e3d7384e20affa4a3ac51bc4a097f3c193c0e90878d42843b809923d1ca31c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.914-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.914-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 601a43690db1ac971a08c312f5f04f3b2c1eaf196d7ce0b01048c470ebfed8e7
MD5 91ff088eebbd9b4093e0ab6d132bb1d3
BLAKE2b-256 0c5a7fbf8ef7d66d9c4fa202f22d5a9923cb17b4b6081d0a0e931c10e582d696

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.914-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e980001edb8ce2933b93e42a159b35f238c82663444c7dd37e1efedb5283a86c
MD5 b9736b9d5f187a3c8653507289ff992b
BLAKE2b-256 863a3b9e3d46801b6c67b8cb7cb2761033a1351ac348720793e48aea0be2437c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.914-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7ba43b5e9190fc1a9df8a8018b117b26fe8eb0cc20bcfaaac80238684addd792
MD5 4af1f30dae0ab4209dcbcd8acb97945d
BLAKE2b-256 2458e1216108a20441ff2040ec12652ccbbb61f6d5d51af44c0ac0f17106be27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.914-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.914-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 226a760f5a696173a32b703e30525941eec18bc15ceca6318011e03d55f291a6
MD5 c59ef618392449ed577e8ab848a08d09
BLAKE2b-256 faf751c82be2bcc982a291b2946aa672bb768b0c63fd8f568c69b10cfc366beb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.914-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.914-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d965b73720c71cd32c2819439871d45802e0f945a708d1a0f7c5678c5f24cb24
MD5 a4c4235cdf85c560eb93351abb8d634a
BLAKE2b-256 778dcb3c721005f08d30063eabdf9aba8ccf5d667983f3fc0b70f68393b0892a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.914-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15235b56be38392e954067bfbc95589947d7b1d395c75e57f657b1b9dd943b54
MD5 f8f82cce030a17f80151717e93628664
BLAKE2b-256 b1be7d5f38b02f50e7697ff83b0743b2a4124f618096287d99d4389636670971

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.914-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.914-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2279d2217e50eb98150e84696e643ad138b631861cfcefe29da1ac6b0683a032
MD5 61a2230ceccb1bcec7e00156cec4da9f
BLAKE2b-256 174b2264ff8917a7da665a57f28530c432a168f2f2776b6d78e4fb6fd62e533a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.914-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.914-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b6aff74fd89be17b893e0c4e3f884c1bb6c4a8216ce5829cf85399da7c51e3ab
MD5 7b5ab561b322af329b48334a80440581
BLAKE2b-256 d557eb6246ca903089cf7b623dbdb80d10e806045079cee641badcbb75bd17f0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.914-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.914-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3cdb49c8dfd4fc7c86f093a4158dc895f78aa965d85e7b0cdc1dcd4a230eae5b
MD5 b443c681c9d923cc0bb6c058bcc2764f
BLAKE2b-256 cc4b9499f55dd96ab1c84e7b61c73e9b551cf530a50bc2d92ab9782700bc0cd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.914-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ba7b93619a12b92c7906f350435cf19c4e554d87dd42486b53adc286b884c81
MD5 976adbe65b3597f3bb98e0eb60ee2037
BLAKE2b-256 3bcfd0e516e6b2c035e81a829aab72f3e130f32981c8b6dfb9ff92d80410ecc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.914-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.914-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b4c69d1aba773acf61e9f39806e87ab428428e4da6779410bfbba1ea79919a31
MD5 b330f8c240b44ef56cd5d1aabe1ff2c8
BLAKE2b-256 068638e26f69420bd90a3a8827c6127b3af3c54168ebc7c3ad38968842c0187c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.914-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.914-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e8facf215a355bb7cd4c35d4d6d15c198b05ba0e1242ce1bdb7c0a9038ec40af
MD5 2d79e7866359625edf97b2c849093cdf
BLAKE2b-256 285b681fe34c1ec9c18950bd7de704b23781a64c6467072c9c01a9859d261bb0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.914-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.914-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4df6c6c177aacdd1796000da7e67a8989ffd34e2f43ca030e270ec45e6d645a4
MD5 17b23fe49d527ca583a181c8e0d77901
BLAKE2b-256 88f9eeb37c19723994bc90284793cfcfe3d9b37eeee2bcd096b5e5b01b08b9e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.914-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 04a205792cea974cb01439b0c30a7d9d018c96b658c97f5150c6ed39a826bb1e
MD5 e947ebd5a62d709d88cb8e550143e09f
BLAKE2b-256 e3cbc5a1eb13762d82cfde25e13556c4cf38418d9f2d14b19046605f8ac53e6d

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