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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.112-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.112-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.112-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.112-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 51303dccb6ee09502e01e9bb50714dc030a273daffa4448f2f5f6efae6c997cf
MD5 c301777612df395c0f93fac9dc42b9af
BLAKE2b-256 e8f0807b72a3b126166250ce3a27be33d49e36e7798e333d87c7e6a67ea30a77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.112-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.112-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 68eff0cfc5c93a3e15996a87da6b4ccfb4720502a735f8c79f0c96ac3568aadc
MD5 1ac8b94abdea5c67a65b025ab3722677
BLAKE2b-256 1900f4996477f27f9a6479359c0f646ba66843b26e89f582c22e964a50ffd470

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.112-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.112-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d9ae94a7e500bb6fea476635d33657b7e25fe3e773ce33d61b35b663683ccbd8
MD5 46789cff797ba3c10068f3e567c2a99d
BLAKE2b-256 f89aab2f0619c64476fd648b23660df60554a4e04d362b52af5e1ae9b63a9797

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.112-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba50269fcd71f3c3b5565a83cbd8f489d0408885686b1d08daf7f8f6a0d6f80e
MD5 f5ab5393be0a3938b74fb93869e31cb3
BLAKE2b-256 4adeca6b64e89b7e1c2f88faeb121aeb641f4b32bdb88d7c8a2325b359019515

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.112-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8bda02e8ec28aec3b72603d9f7a02e3c2010b3062da15ce76648b06c60061f94
MD5 9bbeafc1da5ebcedd064d57cce25b338
BLAKE2b-256 f8c7471eb1a728a035dcc301376773a3839d279695c79a2d67fc9c3da92122c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.112-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.112-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2bcdae89589e0876b9082ac2462843061048571bd63480dd44007daf1ac1b992
MD5 543be28cc0e63a25c9d8bbfc742fbf6c
BLAKE2b-256 b8a93add75d1bad515f06876a92c6f7a970ae11aa33e2e66ebf5524d6a4c3b67

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.112-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.112-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 639635ae1e8e963751cae46e995bcdc15ee9290c058c86591b0ca91c66edc192
MD5 95fc813c279aad141bcaab8bcce4dddc
BLAKE2b-256 4b374d21bbc5ccd81dbc52ca032b31596a14dd6feaf42881fc817f98b1124e5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.112-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9d2edfb093f1eeae93d076fdc6102e471cad20648133dbe94fbb26a2cdf1385
MD5 016e9003113d0d5f9f13385341928759
BLAKE2b-256 d2b28d5dd651c037d3ac7fd41eb07ec8034b1b5897f7ef2813bdc5a95b632192

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.112-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 18ed8d53577c1bc1c0c11f79a1601b380c6ccd17c8bbc82b0de70c842eb0b430
MD5 13eee108103452827d078b4adf93c706
BLAKE2b-256 f8de81f4933a0c1ab13f16690f9c9454ea7e94d0f518b059ea1791ab32202444

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.112-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.112-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a49d2f8a2cd2f45a6a045bfe8fd6d6181bc7b1c856633b6062e7e64323645acc
MD5 375fdb71b3c9b86815ce63a964b28ac4
BLAKE2b-256 46d1b269196aae493bd581e3da8ff5d3d9188e124434cd406ecdbf5e89cf38e6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.112-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.112-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 29da36b1d52d197098850ac096c2838acb4db1b94c83d7de5c2743a68b61ca7d
MD5 4ef6774abdc164a52d045a0021903392
BLAKE2b-256 0787226d31d175516e2e8876e931b54fa462a55798acb27957a7f6271997729c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.112-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4250f29c493dc4d24625928ec75853fd60c2603c51969a8e724d6726ff0bed96
MD5 0be4e837e6f9246b7f34bb75e9a0ff71
BLAKE2b-256 3ed05c79550c938a4c6124185425a269ec38b1df88d0e353efe8074eec96f926

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.112-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.112-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 20eaa21c3c1b8c5651ccfec5e493ad2d6f8ace2a3f932bb32fdff1ee12a89f6e
MD5 6b4329763cefe46a5317a0e7d23f9391
BLAKE2b-256 8c8079958b6a1d774cf810f5097e35a04d4478451574895f72755ee56f8ffb05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.112-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.112-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c7e4c21ab9d140fa2048ec5c6e18a09b43ecf8b1326306a7c97745c49b7564fb
MD5 a2c245e654338a2d7c6b8776a2fcc99c
BLAKE2b-256 921f7db051b1e41d671cbf602b0d9713aa8c1b17c1d074e15ba7423985703def

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.112-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.112-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 06fa3a6a98c12f748c0918bcc219f1515e4ee41532f51b9a182590b698103b53
MD5 07ea69ffee387f180898349fc2cdb579
BLAKE2b-256 2cf022b8ba63ba88b0734c76f3ee5eff6a17405e0640b64bb5575a197f379b5c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.112-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cbfb631722f11ba573526d54031db505e1d2517319c6deb187ee9211e3c964fa
MD5 2ccc01100956791ac57bf2d1d05f9da7
BLAKE2b-256 54b12dc02d9bc9c449dd3aa04cc529ba4bf4b6a0864c5305f97905aa970bb1f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.112-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.112-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8f8c42db75118300974e4cd9e892ac5d683ed0c6a84104ea1f3aa9aa60c073dd
MD5 46e626688d9683a9d5f9598927adb48e
BLAKE2b-256 2dc7d950fcb923f1e7fad027e42c4f05104b304d0cca8d0e343abcbc64a489b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.112-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.112-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 93b014a29654b8830aa08bd7e7190cc9cae6ffdeb3f2a8496b543b46d8100eee
MD5 01b829159e1a5b40c68784d4f794bd63
BLAKE2b-256 a004e4ca60a1038c9dfa941a5676eb8cb8e09063ee7e322ba332c6692cdc917f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.112-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.112-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4e69f3a7f3e1d17cb8b2309e48ed52920f3d24e0d8fd5c4d29198c9c2a890a5d
MD5 9b22c58138c4ad6bee28096e27c77a44
BLAKE2b-256 dc4c880751526b4a4db4be7f686f2db57c02391bb8d9977d3746bbad5b6c940c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.112-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fdf63e51ba7bd1c7e2c2c8712c0fdcad609d8889bba199cd8eb2ebaa4cd62a02
MD5 e419670fa172f1a62e64888b8d15c0b5
BLAKE2b-256 9839d12622b3fb95322c12c35ee84806428b921307f43dbea6b12b8ba48bca4b

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