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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.618-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.618-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.618-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.618-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 62bae456db8684b9bcfdc55ae4517583a005e51fda4d9d0fb402054eeef7741d
MD5 166754517b6441f6989678758afb12e1
BLAKE2b-256 01e54d3d292f5b09d4db8e288438c3ca539d6055803ee93faa7eda6b29e98cbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.618-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.618-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8226976333cc6f0aca74f11f85aa4d66877d1feb97407f2cab01bd53bbd2dc3b
MD5 56e371783970a0eee525f13a398faca8
BLAKE2b-256 aaba7a664e377f93ee91d8e3a9199742e5d6b286fc03bee4169cdc34938a7c2e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.618-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.618-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5517fd91535029ad5da287bfba0d6d32cf7ab2abdf77a1c1dd34829993d33a58
MD5 b7d50ec760c3acdfd29eb1253581f3e1
BLAKE2b-256 613900d04b983dd4d65e2e76810546b7bc8e49a49809b94318e6b7cf067d17a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.618-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df7fa67d8e7501cabb5ee0b088b9a346be797dafe7b5b7c69548990dd9c1351c
MD5 0a14e882549c4df72781cda462e130a0
BLAKE2b-256 5b5eae23afd2c3a0dce0bc2debf9dc3f19ab66dfd8d287e99462e55cfbcc06ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.618-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 94ca375f123392e23bbfecdb01d790cfe431369644706c4f40715f21826c326d
MD5 fd414bdb2f6f2da91b529d30440e75f8
BLAKE2b-256 8af62938fad68ce350f7d01090186fa502755c3f248c15ea30a80b226084a1e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.618-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.618-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 38b4f714658fd5761cae0262857aef1454cca5c0d4e3dbc1f581ece69d901812
MD5 091e0e981875f01c1fce0088c7f706d1
BLAKE2b-256 502b60e58f0319519aa73b390ceb1a9614d04b55a695dd99c934783ecc6e05fd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.618-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.618-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d5bf2e37dc5c716e03313d2295798c8c27e8cfa704b8d3e9538b44d75184606
MD5 152eb9e8c35d1e49ab1f63ee2506802a
BLAKE2b-256 d872d7f0c6ca2454b7ac5f59aee0e9057599f1e74c630b2f9e68dc9f55495cde

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.618-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e2de5ac449129a2c7e62e4097d70d6d5cac9bd5f439abe375e7dfed2255ab37
MD5 579392e992dc0290fd866504e819f69f
BLAKE2b-256 9050b958bd4f0a879734fd1c9ca259b6e4cdff5fed3091d640a4f50efbac7531

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.618-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f2c301dc98b9f5a48bf56af33083c653e6b0cbe006b4b2507cc889d27125183c
MD5 d6b75b92e328cb01226e47ae66f420e0
BLAKE2b-256 fcf32c5345039dc8e2542e733f41a71bd486cbb203878850ad296c2cc5d342f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.618-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.618-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d3a846c6d2254f66b2f52faf9c27e214da1ab923e73d177187ac1d3538c270a2
MD5 7508fb44b5d8596b25b307bc7ef23508
BLAKE2b-256 5be41e966edf53f7aa3ba413a4ea6fedfd1e9f458ce39479d32520cf7b86897f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.618-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.618-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2d38290556a12004bffd23770f4116fd2c9da4bfc493454ec4d0138e1030de2a
MD5 ce4cc92d8d4121591a2569c20093f981
BLAKE2b-256 65af04761648ca230e2f1ab8b345b04fa58e638ad1b74827eb358754e9092437

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.618-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff93d6c88bec7f9b412f29003b709ba57e49766e94f3535b60cb7388db4a3a9c
MD5 25465746256a2f2bda5beaa6c34c3ef6
BLAKE2b-256 65856b50787bfe89d099418d91b085ea05366f1132d2240635a8fb1f8151ad2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.618-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.618-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ffa11f1515e5bb170487d10c32c867a1520eae2ea7921b4e3ca571d188243a3d
MD5 03f268139f54fd702441e591703951b7
BLAKE2b-256 575cc8a4a70c9a943e7667d533466330f6c8899d8caf88d974974939a55c01d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.618-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.618-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 41ed920a7f63ce83ccc7bbe1a193be14d9c53781e506ce22969fb7b218e4c0ed
MD5 b530dfef0a014716ef07f452956061d5
BLAKE2b-256 f5c661b679db6c2d3cd9026741bdf2f18c8d808670beddef7b9e5723a3aaa18b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.618-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.618-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 51e881027f19fe3bb6f510a32b6ada9f33f05517151ce755d6ca45425d5cc2ec
MD5 ed6c9fdc5adb6b08f91b086ce0821b5c
BLAKE2b-256 7514580044fc81f692ccf36c8d2c80c7601085e63501e248ce70db33ebc105de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.618-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 791821cc2128b8e1ddbec4b3ba387a257f38bb2843ef4b5eb2323ff1f1a4ade3
MD5 27b2a67cd26d99fcae2b60ce85f6b4b7
BLAKE2b-256 3a38c20bfa9c74acfd215083cee80b690d7f2a1c2cda340a534343c58253f6b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.618-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.618-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a17a1b1f28e213247ac6b12cb945e303e40ec5c1292431173874c3bd9b2c0542
MD5 b84016b50f1ef78c2b1f0d6c18bf2db9
BLAKE2b-256 5c505f20f766abf9a2b5c4454a368cb40d637e0d0659360f4e5097c470d20a33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.618-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.618-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 87cd94935d796f06416d6e0862fbb1878905535b2ab93f726d2ecaab4f73eb4c
MD5 a06447558804dabfc6ebf0927404b8e1
BLAKE2b-256 3aae533a43fbcbddcdb6f798e6e37fe2d2c1724149809d4ed7fc6538cc09ca7b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.618-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.618-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a78c2605e3c51d4872ce64b748ac85d70ffcb3c23a320d12089717937801f7b5
MD5 bc4d9a0978853aa19ac927c1bc17de67
BLAKE2b-256 2ded63c48147da42a41c5a233cb8688a87be0b05f4228440ac3f83c3a32675f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.618-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc4e353835aa00c9ca8268feb5c4df5a8340d93bde3cf147462281e51c544506
MD5 ad1d70178fb4dbceba1181eadf284f64
BLAKE2b-256 b74dbd40b7fd3004ce1ea8c4d712310128a3f5f2a34fb3a786d9c07d28b39a43

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