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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.100-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.100-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.100-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.100-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 134ff95ad989c07bd017ecb9088dde2b39cafd892369c3968e62b9ab10f43dd8
MD5 25abe50320bca1afe8c2fb5863f3712e
BLAKE2b-256 43b23feeaace6f7938debcd34fc9fbbc065684b088e6b1ba58d86e4df623a3c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.100-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.100-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4b0de3d0ff75496b4171b6281fd71ac977141b8b500f0862cdbc61526b1bf325
MD5 97088a18542fdb69863c9b87d87f650f
BLAKE2b-256 f118d44f7d5ae532111f204faab2d261f63617c21f3b979fe075c9c089f6a964

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.100-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.100-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ada53b2f880c0f446ee7aae5bd56c907c6e1766ff5872cad3d195160882e88d9
MD5 e9e598b70d4c46a4b5794b864b7cae0d
BLAKE2b-256 b57046a6c96febd9e5129254f4c9523684504962585cc07454561a4b56739c6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.100-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3fc7c4f711b9aae6555d45a1ae03dec9b364243a326ee540a5c4264cc5acd917
MD5 a94300573e249a72d2a5e65f64f23fcd
BLAKE2b-256 a9ac6d79769c6f4973458b08fd14fc1a548500418ce9c863a5455aa1cbeda294

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.100-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d60e28793f6b1531561dc136293c40c3ab4974fd45895bfe8f30cc99385bd6b2
MD5 95d6b20733a67cff4cdc6e4d875c5f0b
BLAKE2b-256 aa2d8358097e11a57566f84ec516b4d63e5a30e2767c33d44f2e77a92319c735

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.100-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.100-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 54efb9d8823731955b0c8af92c74b797ab51f266ec07de05f1ce5f96a2a26435
MD5 62df81abad82039168e489eb247a960d
BLAKE2b-256 16384fa5a03a2bc4085c5b19d32e17fe5f4082450b7626a2c604223d281efe6d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.100-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.100-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9aa5d3771c30c975291412e7ac341267c1e67948d0935137972ae4d7aa7e052d
MD5 741810fa5e8c1a51af2a5aad23aaeab8
BLAKE2b-256 708a2cc0e28ac591831ae0143fbec5904506efe7542bb3048b83b4fb1390569f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.100-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6306397942172e25162fcc74910de92ad7bb2c3bc1bc043ba4171ccfb64f6b65
MD5 dd86ca23abf598f5ceb3a78b481df732
BLAKE2b-256 dc550357c9cb7225329576ecca02fe1922eeea8c3f9e3f8ba3eb78c85ce92402

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.100-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8a285b547db5f18fbb5e29d8b1c39d254e46e4231e7c60962bd3e3bcdcb7025d
MD5 645a73df7bf8e737f82fee583fd8f9bc
BLAKE2b-256 e5cb4e2f0728a0fdab0b5ce8cc94cd66304125948e46fd69c1b7b5cfe68ad89d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.100-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.100-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 431196a3b5e452f6f02b7f253ed113ae8b10ca6a40c6bfb82ff928ba4d169201
MD5 144c96d30c7eaa1ab9018090e5f18ee5
BLAKE2b-256 3909a20d8469b69d547b1c484e0e5da4f5269cd63803de2a81ea5a6e2dcfc605

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.100-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.100-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d4c28574641f5a9c42ef754ccfc290cb6c0a08f1abf7fb49f5e3adc392867b72
MD5 40c9bf3ce6d2b28a1271caf5828e5b34
BLAKE2b-256 7a127ee00a328ecd3d848ba9c20aecb7975794507f0e03bdd6236f93f84940ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.100-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f82ab8fb8274839966e8011a7e7cb87b4ad149111ce6485535583cbacfeb6808
MD5 20b109296e3d68bb63c270eb404bf37e
BLAKE2b-256 d9c773490544065b60754407b8f7286f4ab54991293a81c4b100c4febad907aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.100-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.100-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3895de53c9f2837c6a7c2c97f9a07231e1f0671b415361a850eb085d69c6b07d
MD5 9af7b471849336c3e5327e9313180eff
BLAKE2b-256 91351a726dd7308892eb262167693ee41c4805e2c75705b834f23ec1d5078245

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.100-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.100-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ea85f41d1c0adcb644084411de200885cc74c874d093e4ea9f6c330408633e16
MD5 3ec9ee7f5cc89628f4d6640e984bd6e9
BLAKE2b-256 fee67f1b92638d4ade07e155d61ecc5f8f33bd57519806792876fdba2c4b74c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.100-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.100-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 02fd18789de45a7cee80ebdb926d1c1e20814bb679294adc52d782c07ee5f216
MD5 93c18c9e5e4c180fc4618a1494d4ca98
BLAKE2b-256 dee77af64daf92d69a6665ff83ee278cdb5d25fad0a032a733b0593f89bd0daf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.100-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a8aeb7e964af62ead8a6571dfcbf8786f908bb2c645d5f3adcbbef3291be7fe
MD5 05e7b6a49ad6a7375460d72b17e554f7
BLAKE2b-256 f966efc4f0eb0a20970edba110fc528a7b05ee472de6b5d5c78d2d1a2557b834

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.100-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.100-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 62d03f7c8a0fe1d00cada553f5c4641ab10739ea8711eabcb44ee188ae3159e3
MD5 80d06663906d9329bb52862810ade9d8
BLAKE2b-256 90cf27e1360f64ec97becdba7501fe8b462e3a0a2de696c9ef1cdfa6f9398d2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.100-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.100-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1ed24691a5bbb618f942297589247c83e1489e9da9655291beacd81bb5343f11
MD5 e46f3469765a5c6964816b80441c789a
BLAKE2b-256 f21491fb074d470890616b677b78e42f08eedf3c7d079248b9978b741d37d1db

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.100-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.100-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3229c77becf4bb9cd4f72e55aa2802b3d9765eee051df8a048f22af3851a7613
MD5 afa4e9351e326c3e7f56b04c792adb3a
BLAKE2b-256 595477f7dcae9077ad4319801cc5eeff001eceb9daa58379de360edda279f16b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.100-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d1c6afc0c6296fdd97f92bb1b8c2933e1e47398e3a4cfbec017b338554efda92
MD5 5c2225d076b330c983485e4e1384d1e1
BLAKE2b-256 092b9cfd278009f5c1b0077221464ba08b39ceef4b7eb1b2867ee2256bf543d2

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