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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.303-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.303-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.303-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.303-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a05c89d7df9cc58cd1e9c5696bad85919bed4bde974f0eb0b1fcb268b326adbd
MD5 a3d7c8cf4c98ab75b7f3dedb95994d23
BLAKE2b-256 cabe7191e199a29c50e90c12b758f3d1ba91e5ceefb1ec8f3c48174419e588c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.303-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.303-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e1dfc1e801793fa2849780c74b3ccb29147e02f5100afbbea3a83bd69130e0de
MD5 8a5330726e7e1051e6d2bf349959f7ba
BLAKE2b-256 2e7cf3d7e6be01ffdb88aa4d67e003b3fd2807b489b32704e01b1e7864c4d601

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.303-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.303-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a4cebc7db5e2b37759505ff27d8d09d911830a0faa911f639029ea385a3f034d
MD5 1c149d8b885bdfecbc620c7564393fc2
BLAKE2b-256 cbaace6e2a5c169a880c779673a29183d074ea499af94de42c18c30800eaa9df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.303-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 996f0984cca942fffd101b09b4262405328a5801490c6dfe0a672822538bdbe3
MD5 b8d61435e32e1ef548f87488fe11550e
BLAKE2b-256 88e8b033f4740ea20249acd5ade74e7dc244522ae5c0fd1c0bc1af5a97b1bb44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.303-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cefdab78f09e989ec7fa8c622e35302e4b5072807f8ebdbb5b80cb7dae23d54e
MD5 d20d4b2655197a02d1681b36c83e9971
BLAKE2b-256 9bee9cf01e4186cc17ab14248e4156ae6db3d22c9b89579eca4289582f05483c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.303-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.303-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b5979fe2b79eda10e8944ac78f2f89dd4141ff32f24ee59567000ce6be5e983c
MD5 fa75bd4b471e8941176f4c40dd7880a8
BLAKE2b-256 9d678783098421a8006047f78dd88ed1326dd7d09195520295d25da68effff47

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.303-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.303-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 40fab239719e035fc6b4288c16cb90e79fc903b25b35fc71b88bbcc48cf29d8e
MD5 1585a589e8311ef5812814ac26fcaf80
BLAKE2b-256 4b564fb99520ce10900a6f966a9fc1404f0905149a8fb19cc97371f36df0a7f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.303-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c421c05a6aa7c32ea1276880443ee0147a7058a2c19adc08fb10a98e21ec658
MD5 67df0f1647dee9e8a462f3966bc23c9a
BLAKE2b-256 c6855da11c8ad83d575b514d0a4eb9e9bec3777ed0bb166da98637c88414c8b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.303-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 286abdaca8a15e46860715183b2b8765fa0af823e1f320920da3fe0893127eb4
MD5 aa6217580c3aa33d36d05e221d4afd54
BLAKE2b-256 c6ce6087005d3b2f97582905c8eb13e2af56ba2775abc72a1391b8b15cd2cbb0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.303-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.303-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4bff95a94e33863807b48a07cda20f16c4c4ebffd17450933a80e47acc94f9e1
MD5 7123ff4be482b9d91c0fb3c6efe80df7
BLAKE2b-256 f11984e815f38d5928e306f48f58634faa81be9faef11664df7b514ff997dbf8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.303-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.303-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 955b5c279de9c7b55ee68b180aca91ebe91670f2c2d07819d019a60b933989ab
MD5 b4b36b32c61a09e82a6387aaf0ea7133
BLAKE2b-256 154c83008a41aab692471c6d9adf93590592ef0f7f8ad77c75a0b0f4ee956ae9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.303-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9f692aca7ba892ceb14c00f63608c9c3938f41d55151e73799da9ede8c5291a3
MD5 c11a0a542ebbe775a0cffc9c0f870489
BLAKE2b-256 a3ba14279e5cad4e8eabf6c7ff568d225f8eb208b26a02f04f9eb44fb6da458a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.303-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.303-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 15642441d72d3605b350bf30fddf8c9f705e39caaeee3cd5144e11be5cadb53f
MD5 d53edec55c455b07fe471493280ee5b7
BLAKE2b-256 c56653191407f06c2320e7fceff9fcf230d6b4e6979c3f35b1317ecaae42894c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.303-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.303-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c7ca88a50fea9717a6cd1fbb00f015d581fb362d9c516491d52cf42107d0fdaf
MD5 cfe6b4773c9867412ca107726c068f60
BLAKE2b-256 6d14c55260f3e3aff82790acc6bf489d60b5534c52a74ab2cf2311163c90c897

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.303-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.303-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef4c360622582e4b300ecd9f6a444ebeb6d1b7cf96d7eeb605ffb66710a4d7b0
MD5 ba8f69c56c0c6ed848b6990d8793d519
BLAKE2b-256 cab083b1aa302c630042a5a1534ff8409f07bfebee8a0efd416ba80f1ea94576

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.303-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23de1c2b9e08c640f39fc409b64786dc5380dfec2d57e0132aa4b268bfc2af43
MD5 486b1d16d67779180cc4dace4a8a4095
BLAKE2b-256 a7fb10994900566e90ed87aa50411ed2f7b659207e0b1a4d19121728d1dc3df6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.303-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.303-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cee6707d8262a105f33c9125376615580945b9e0c31d4d71c6a378dcf431e1a0
MD5 3c6cdb53600dd3ac9016356ea878977b
BLAKE2b-256 6f24c56a5dc905c3deb88cc1c8df5e0310ef963cb463fda2ae6cfe28a907b942

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.303-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.303-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9cfc4964f01a53331c23965736049ad0a960d7284c9244c649464005c9f18667
MD5 6427d37480bd4e885b8cb700e4f363e8
BLAKE2b-256 61a89e739e1e743126b4694a704860930089ae0c911d795da13bc5de63b63589

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.303-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.303-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ac672d46735b43b4e8b0e4cb01a7143293ed560a166eab0d754e453439518b67
MD5 3d8702025f9f801e12943d0fffb423d1
BLAKE2b-256 896ef611f35abf3bdcaba0f97b48baa65103d6b1c99eaf18af99e7b57b1917fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.303-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30335ed37766867ea26d9165510d0a203cfbabd11eaf60befc12772323734336
MD5 676d8c3e415849d1f611ed774f49f8e4
BLAKE2b-256 6a934441e4ff022650028e9de5cea85629bd02d1e8b84dd8edb744d4091a2031

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