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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.652-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.652-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.652-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.652-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f7d9405cdd4dc49b750663374b63b3e5920102a1bd5be83c06cc11f8026b417e
MD5 a3350adeb17dff08f31b69f3d8b001aa
BLAKE2b-256 a5696cdcaae31eb068ba484c8f722734516fa959ad039677968afb348c3060bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.652-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.652-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4b45239ce535623ac0f4ca2ff4044b9e17b15dc4f9ada358a86643a7e88a171b
MD5 25b208a8ef920b281cad3cf762636781
BLAKE2b-256 52160c5b2ef73839f367efa9296d7caa9311eaf3f3d4c59d422035ffd9c19861

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.652-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.652-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 778e59687024eac1029b24f6bfbc910dd2f9ea7178bfd718374432883d885f2b
MD5 3c078b1d9768b0e38d73b30b48975929
BLAKE2b-256 cf8ba501f6c06d4286840e944927b9af8b504f65c7838a8ceaf3bc7ce969234e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.652-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1abeda5e2cf823432894b6ae5581c20d1103e8bccfeb483115b6ae96f8e365ed
MD5 ed7c47316f8eed745dd8dddac1ecaa9c
BLAKE2b-256 70ec3e2422a326cd338b19b842cd0b3aa35752b1035b2f309d8ddb38596aab7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.652-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 31cc30d14f6743d5c2a57fa4b8824df0c87500873d15f47aee8ba482717a3eab
MD5 31eb330655a460feeffb0dddd57e5fd4
BLAKE2b-256 2dc7c8f7ed8c81bd5d2eee22d5d3b0fc61a6fdb0a6d2049538ccf788078a2636

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.652-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.652-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4f24d4c1af3512ed4db081dad42c14d2d137caba2e3340fbae0246d9559065fc
MD5 cae5f8b1f996529cf88b801c7807ed50
BLAKE2b-256 3882a1c3037696e170b0cdbbb799ac5df4571d96ddc580b0a096e307570a143b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.652-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.652-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aee4de43992d56c98f72bcd185f81236a51504dd0eb6239c1f7b7c59be874411
MD5 2ec9b7722a436ad1009e04beb8a34bc0
BLAKE2b-256 e14e58bff6fe8a57872fa02d3d80bb99002d2be87e7df2e9d0fe9d617dda1c90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.652-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51f85537898dd1094bbe5d962cc8aa98a9a4e2879d3fe8146396b78353c9d368
MD5 6b72964f4fc579f81df75169855cf55d
BLAKE2b-256 9d3be8727520bc3291a879508558f4a766409a3e14c29fa26d5c3e64ad7393e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.652-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 251b49bb25477e27954f70fa12e6287002df345d960c16c576e8ab7507b60b5e
MD5 b1b3bdfe1e514b0e1d4aa9e7a002c6ad
BLAKE2b-256 e8a02bc74dcce58fe4e1d4d21af0c254c78fe27b97b81aefee1faf0fd468bb9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.652-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.652-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4f40acd878d52b5a7362692cd3a67e22534b0f0e4a9ada7996ef5ec7e3fd8f44
MD5 de91800923139167dd5c738bc9cd842e
BLAKE2b-256 1f7355b90b0457d7902bf2f8da5cf48de62d3e8c622e8f18e5af3ec31d57e144

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.652-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.652-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 28416f09df81a32a64a1c949059ce99d59892193049a4b7d476c13608b9c1f33
MD5 5eb4c18c014ea30c0054b95a3449f54e
BLAKE2b-256 7d36791b6d9cc1314edead2c33e98827afe3a2f3e6aecaf8d771d2886ab58f70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.652-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0710197799bdc12014809ce3f46a7ac39051dd03d97b278f2045982ee7c0c1b2
MD5 a1331b2f1d08ab88177951886c6275db
BLAKE2b-256 f2e3e3c871e75a778f3370d3ec093a62e8a4fe27c6a243e61887ced24e9f5be6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.652-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.652-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 026052f08fbf3b4ad62ba2cbfa78ba063e95cde8de30105904e2d0b79966c0f2
MD5 8b61fd32f57af967d85514e7c704754c
BLAKE2b-256 55ada9eadaa1a75dcf6cdb32ff4824ee95b0f3824b75e7095901d8efae1ed8b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.652-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.652-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 385352e121629687b95f35ba8f36c4729ffcc3bd1b12500c17d66e5bd1e8e926
MD5 f24a930a94c398fbbc5034b966cd334f
BLAKE2b-256 4cd3cc22f91a8d91c51a80e7e3f0dfe14deef8e33249044e4074b8d1b26d9a69

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.652-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.652-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fdb08a4cc4a586859388fde70619de7bf52a5bca7dedb5d6d1491c2e7589858c
MD5 3795322662ee8825699c6f4e9458e89b
BLAKE2b-256 df0bb3bb696b8274e034b07b630f857b57b8588c8b9474849a95e5d8f2d8e027

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.652-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d4070315f78b781b25e1b8a3f27dccc0022d708678321e0ec1bbb219b821810
MD5 c529ef62b69f338c40ee87085a65f7d3
BLAKE2b-256 c4265250e43b1af95c2ac75bdc924d0d119d07b33652d58b709a3f3ae1081ae0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.652-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.652-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 920bb8a0c0b6045d7a55b43edd147e4f3e6e080a792beea2cddf2549c06d151b
MD5 d80e5c3921207cd95ebbf381c363ae61
BLAKE2b-256 293e8cd9b9cfef87212abee8024f18ef746073692512ee51eaa12a10d4129eb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.652-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.652-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 32eae8267a5418d02fbb058a939215e05b1bcc7f3f682454fef604ba8be55b1b
MD5 d688cefed9ada210c5e7d8acfe08c5e7
BLAKE2b-256 974ffc7acef5e46b586de8659c8fe8386782237e3924fdfcea84959aba58de1d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.652-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.652-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9ec25b6c4006f2385054e0b9ea84cc79cf9eb879b3af53c31073c11e590eddeb
MD5 57a63824f7bf4dc3685236a4dfa0757d
BLAKE2b-256 f04e6bce56069d800e99965f111f81c61cd137580952a68967682f9b071e07d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.652-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d712b84a1417fe61c9602e59ac281b30ffb8a394d7cddcd8eddfb6c707ab0e3e
MD5 0c1aa26953d2c8d7675b9db230a8160e
BLAKE2b-256 8fda953402037bd4a34bbab2a2b10d218e5938aee6c31fb99f5421caf1204e1e

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