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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.133-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.133-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.133-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.133-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 36bb30ef234a4f2c8748e67ea3cd0b66ef3125f4f58e014e5d18d42407aa2167
MD5 fef81c4ab7efaecb97c8a38a6fc630ee
BLAKE2b-256 79b784bb3d9feeca8293655717279c63e2a26c94b179c42359a6303880e3c456

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.133-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.133-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 290a15d8f5f25c4e50480ed54247c7a697d4828f89a1c83b96266afe09e548ae
MD5 ccc834a8382584b304f48ed8dfe9561a
BLAKE2b-256 4d9d86716961fc5eb6e7da4e2eb73326c45fc063cd6db744a94aaadc3f2107cd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.133-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.133-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e1c13fd127ceaf8acd01fe08859e899ea2a303153c5d032c37219ad9c7f75018
MD5 bfb3d65edab82cb1cb5c96e50ed2abe3
BLAKE2b-256 25031912090314c69f93dc8ba239f0bf75b107a045df8f3b2efe44eb056d4d0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.133-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 881ecf76f3c015453cf7864f5f1a02da05983f722e3b1b2363908c1eb3c8a42a
MD5 3306e323427be17e347140ad7d59fbb1
BLAKE2b-256 17bd39de68f517701fa7b4909677b4c3384e365b631ec38d0fbc0eeab10f6a6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.133-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dfb4b3bde25a6129979449beb8d8fc6c0d276d1b5c9df68bd426cda4f342f25a
MD5 fe245017a70a458c0dc52376fcbc38aa
BLAKE2b-256 fcc54d3dbd873cb8324e2e706655892e343f87458931487ef1aa69f5a8e69143

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.133-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.133-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 64dd4de6af7263879f1a7ada72356797ac2b51a85f8e23a16a8a02438f69662f
MD5 ccf8c07d9f060e596536c4b4d56d4e8f
BLAKE2b-256 e62b49d361e0e2cf122ebb07eaeea2c95b5972e0ef5d3b59a553105ba994d13e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.133-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.133-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a943297471611dddf713312a5660275e4296fad2c7460a1544ad2cb262fb3d58
MD5 c683e4b3afab19b2062f77a663f441dc
BLAKE2b-256 955ab44a74c4fdb3cea5fe781c57f4cd3a3a5344942cd4878b4239bd58f3a3d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.133-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34cf9095287b78014d40cd4d4f54d24c989e7c9a84c908ab51e802ba1cfcdeb7
MD5 45620e3529400bb6c23afbbddde08451
BLAKE2b-256 55b5c1fce4045d63781d211a5a8752e7e6740011b639cd71b252e48d00d428f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.133-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 527b34fd4a117d0a4e700802c8d478194b54d67be24cc41f902ea37d627eb0f5
MD5 2b6a88f617eaf32d5c596efcb16b184a
BLAKE2b-256 5a80e70c61429e47b64fea4cb1b0b8e310f152306d7f5f310bd2e2beae132450

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.133-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.133-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 83ab770e511ea5d35926a8a490a1a8d12391631f39f074fbfcd971dec9d1130e
MD5 3e894e211180015c7ef5bc8021b90827
BLAKE2b-256 f609082705da89ed8861a26ef14d581065b6f699da35d4c532aa30e8dc69f1a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.133-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.133-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 267ac2599a6a27fc203c01fc12b17338da88cf24aa2da681f0dd45da0d974ec2
MD5 88aae4f5be19ed54b806b888c3b27523
BLAKE2b-256 9f2580ad1e29023e98241e2845cc96617fc4e45ba3774ca0cf67ddd4ca25eb08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.133-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 429c5c27aea7c2090ea81ebe3f171a15b45ca47ee90ea46bb9afda85508c7fe8
MD5 a7a0d193a5663d130d7ce2a550cf068a
BLAKE2b-256 faf33ee3e1b552c729ba2cc985a58adef860e3b7e71f73350c50f60bf69565a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.133-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.133-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1ae5f38cd210e68d29d26f56725595aed498406c8f5eff388f58eed81621e4cf
MD5 ef918362308b38156fba2efac0b4d5c9
BLAKE2b-256 75e4b1535e131fb78a5ed7462d17f29db9e1321e70234a6066eef1c96db48e36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.133-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.133-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e78ccdf5f8bf40133cb94302c957dd3c6231a53a0858362d113676c853d06140
MD5 34b02b052124a2051fea118b0a31c30d
BLAKE2b-256 be241bb06d4a85df21aa7951a2d5b604749f0cffd9711b9710d6487c1eea7300

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.133-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.133-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76da8842b152f3f481471e342b0255cf28af907de2d5ef50db8b77c709bf98aa
MD5 0ca2e79c51bd2e801f64404754bf3db6
BLAKE2b-256 58d5d9d7249ec24bd2db2606fdccc455cf6b06f0b187c427080908fab2b02255

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.133-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e42f69827d8cbd6055e0056b9651d14e136e4dec7a256836d1c8915a81f2c865
MD5 e23ddfdf4a0751cd52125adf2a864b17
BLAKE2b-256 15d7e29bc379595e42fea3ca1584150fec7798a3ccf4bc915250f9d3d9b2e363

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.133-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.133-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 628d0157a99419a700c4a06e76aba91beeb53e1d867ebc07ec2ec5abaf255ce8
MD5 9c59115d17d03290d8339ea38e105044
BLAKE2b-256 ac82e0de2b408c0a1f157892378bcd7c4db6c996b23bfea33237bbea90def58f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.133-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.133-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b74179a32eeb637266b5a5738e4252f9f8b5224c81265f1f9e610f46afcdf043
MD5 eda88255541d1fa47e339c1dfc78153d
BLAKE2b-256 e9e442247d3c23a8e0d02620d769aa9fd60a9c249f630beb63f131c6b406ba1b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.133-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.133-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb3ca7e9ad22075652cfc674f0f9c14ecdbed40b40c1c663f49cb568e42251cd
MD5 d84c01ff318acf7112f973bcd0b2c1f3
BLAKE2b-256 21b0ce52db0df743f24833f9599aaefdc43ae8556b6be16f230da61daa10503c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.133-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab0fc52f9ce08f2d2d254556c97c85343698c8cd20c07a300d491c707a0bec6a
MD5 160926fc9b2e943b09971620a86880a9
BLAKE2b-256 c4a748d953f1db453644df4ab0e8c725f81f5afd6f1741a0befc74bc517d0afc

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