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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.353-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.353-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.353-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.353-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ec751f0964797a4a761fc74728fdec65b2e978a1cb520efef1e196c2de82ecc1
MD5 e764b8537964322691422065c77574b2
BLAKE2b-256 d70371849e58ef444c1a5d99fd95b7c92ae9bc4efeadf9fe9f8c6828db77a66b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.353-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.353-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0817b43cdc515e2553edc62629a4b077c25780cc61d1034207d50a4dbb9858a6
MD5 c9435b2b4d21891f99dcc6fbcef65461
BLAKE2b-256 5b83697bf50268f724b29fc3b89484e74d017c64d4f0e3b0fd476ef14d0ee41f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.353-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.353-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 12b7f1f2f959a3770bcc9fcee5aa32388d88f4d4a1b2541b27641d27f2fad464
MD5 ba30471c83b8b2bb2b9050728bbc3450
BLAKE2b-256 a39b0a014311bd90ee945cb6b580c62be687ae0ed46877b1b7d4a6bb6b61f27a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.353-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0055902469e0cfeddf79b8a88e451dd7b7272178f165268dad2f61cfa29adb0
MD5 082247584ee02785009734a036cee1be
BLAKE2b-256 d7e1c1cb8e4cc7810a8c80462bad6aab7b29689671a8b770df462245fa7f9e89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.353-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b7b017a4edcddfacf651c95f438ecb23b8fed15236d9a71192966037737d28ca
MD5 1e904cf275c802dd7a8b3c2d9b5c69eb
BLAKE2b-256 b179fe56bf65519de1f1a3c05ac8bb309ce10c86796dbed77cc74952deb3c439

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.353-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.353-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6907fa970227c43416717ec44d1b75629e469c861c13c3eb625129d9c64f0fbe
MD5 a2061555240c12e8afca09a1da678570
BLAKE2b-256 5a9ca87b9b8799d450f2cc38352080aad75514656e2f7f5aecfb4dda20af593b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.353-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.353-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ecee922b15214d11a25dff0b71b167c6f991b5e001f9b5c5f44d760cb2759f20
MD5 cc8ed4531d8dc0c18d5bf00136bf9f0e
BLAKE2b-256 a40e6e73fc36d8d3059d9ef150456493bb17d6c9b1ea232164b728020c2a495b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.353-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 94c9544e9163eba685e1598d2e2c6cf63531a296ec83754bea21e94ce052f839
MD5 09a9994b32ebd019f2c004ac6b08888a
BLAKE2b-256 6992b480fbe01ed7d2658445219447b5238933584c80e5a9e1226bc85e99b037

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.353-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1a27d6c6878de09de6b95b5ecbca55fb81a12faf4ff501a29cf7be5776790ccb
MD5 28122aae14f1c10b10a95bc391dde93f
BLAKE2b-256 ff12651e6d3010ad9442a0e7161fb7167178a63210eeb13951057c45bb70ebe7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.353-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.353-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3988e32a42a96b856274bee448a207d4e3936e29365ad809025d8b74dc6e2328
MD5 e72d67a0c4e600073c5c761501a2475f
BLAKE2b-256 33f96a47425250bd536ed7f72827e5f85e8486f2a90e3f2cdfdf88705c9c8579

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.353-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.353-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c816df04476d348648885b41099df9d9e546357127c2864fb2d33cdb6ad4e1b1
MD5 6f600f15f0b3fe7a4b00a95c5d39a24a
BLAKE2b-256 ff8d14dd91db542a9487b084fb7c2530a9ce11f5951aa5e85f1fcb0b4c8a5c49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.353-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6635b7e618dbbf3ebd03ec9a72c457655c9dabd3e97e44deb4dc8fe982471a90
MD5 adbd481e24b23c592b787aeaa3043247
BLAKE2b-256 d948cb64c3c32a7e771b07425816a4e6986bb307a16a8053255e367d992b979c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.353-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.353-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f1960bc67c08ac6975f2c39de659e602e8a3b5240665d1f4f6d765ef0b3cba06
MD5 3da41f3b8b13200a0cd9ebc442d2ab0c
BLAKE2b-256 49e834ed45c7e05b0bc817c482de4f4e87a86c1be0b8187d874126be5057a757

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.353-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.353-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3f7a38d5985b62be79df795841f66afe004c9b55849f978a815b5fcf86c8ebd1
MD5 85cdeb8739c80ff7693eb66b9c599620
BLAKE2b-256 50cc3607c4d56ec8ce7717e0f4822ba08ab88483f9d50cefa81d430ce6a7e55b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.353-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.353-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4e8758b3328c70e90e735ca1c59e81ad36dad0e8efb62acc8d6dfa4fb7cca838
MD5 2bf56b05a85ed19c910b739730884c4b
BLAKE2b-256 8d0c2e743643b562e19fd2db1ca6e61efbb22f80cff20f78b3cd710ea5717b47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.353-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 efe7bb3aa1baddf37f4a21a4735b0699d16dd5e78779ccc175b83ed0eb4615f0
MD5 ebbf212ec806ac1e1e9a3e5e200db43a
BLAKE2b-256 e1576b96b9d9eefc3cc2660ebc4e6a776f24322884ee03504278815843df7d7f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.353-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.353-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e34fccba7ea95803705f1773f098d5cf5e15df79ebea75449be6ba43d87aba2c
MD5 43a9a53804005fc9b1a72dbe40a8b01d
BLAKE2b-256 bb0ed12691d1f8e6dc9db45b88dde3c0fb832b0a146a7331d409611e37127371

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.353-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.353-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5878757d1d0e09372c45a50f3fefe9b6db41db2f87fec822dd5b5c32db76d52d
MD5 6dda54f76a8ddd741bebca64db621689
BLAKE2b-256 6f1098bfc0479a1729028ae05bbe8564ed80408ceb77ff53d9a36c8e5b0be03c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.353-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.353-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0b9ab1534cf91cd8b36800ce14dab4d3853624a925e9f504d434f66440efbfa3
MD5 cf1eda77828536f0dfe83df88ecb4ead
BLAKE2b-256 5a7bf77897431974ae42871be671431f50b30dde23393552807606a2f4b7d351

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.353-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19cc0ee7138d4abe9c6f78410a03e5db0b3c10e885c290c4b3df328e8068e5d0
MD5 38219daca7671829c17f04af5f7dd33f
BLAKE2b-256 4c4b598cf0c4ba49c593d71a56af7f67cda30302d3ed4c5838f2344202e4f5f0

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