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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.179-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.179-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.179-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.179-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9780c0cfca61860af4e38464823dd6cebf8c078fa84c8ae911757f1277a42a3c
MD5 69d0aaddab3f19ecbb6bea3d1b67f68d
BLAKE2b-256 a1120d5e1640cea6535b87efbf0999200457f0d7c1af005bdc3a4c696b2e98c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.179-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.179-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1c2c98e910736f0451894c9ad24f7462f293358c48f4849d417cafcc45bfba63
MD5 e9f95beb9bc5aa01df2bba5121f63ffe
BLAKE2b-256 47a8d8e9f46cd07d0aab71ea6299b8a8b8ccab31448ff882c31a76bef54c9b06

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.179-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.179-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b8223b5cbb4509457a45c9269ccab90f18aa3dbf64bf2ae0c94f499c5793d924
MD5 5b0f1a5368db5d7e4936bf66f57dea05
BLAKE2b-256 26d555c49fbdba1d50909e2b447faf73f7832846bb602847fcf81cccc997b9cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.179-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa1b82b19b64f1d08959fdc959b5c78c6ab87f1b464276c5061772729c3697f3
MD5 6b6647a655f6e7067dfbcb4d26815417
BLAKE2b-256 54ef9a40c837b786da2238426adba312497a01b145dd64f11a550d617af28f8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.179-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1c6548162a682cfd32578a1776ec48b2d2d3ce4780e78e188b9d403e7bd6e027
MD5 685d2b7d68b4757f08513a2e7cbad01a
BLAKE2b-256 446a67237cd3d2af5dfa39216503f58ab1fc57476b3c979b045b5d8c7b749d65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.179-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.179-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c70ddcadb03dec32c078a3b0ffee50e3ec50e682658bb01d5b4f2288c5256709
MD5 7fb8dfb28b3ef262ad965a29ce2662f8
BLAKE2b-256 8a1bbe4d70856daeb9e255d56a622568ad237827ea556ad35da056272bbad3e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.179-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.179-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 572a13b77303ee6e81cb9bafccfc26f75207d4599ccbfe2b1c4a664ca2ad2135
MD5 0e6fd345beb5a5d28d72134be80d6913
BLAKE2b-256 548a317fc355027fc4ad14b3c87b9803aecfc8da3420663d232121df17822279

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.179-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e138adb2527bad46b6d6a65d2b46add042f87a7f29671682c2a8a5fdbdced62a
MD5 f62858081cbc3528a10ff069b3a83902
BLAKE2b-256 eb04243d2269533f6b791d4e798aff3694fc8d3c76c29db25c7c1bff60a4c319

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.179-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 76fb80fdc5dd4e4a80a1bff76d438065d0e7f9a93fd67b5375ac79f9a5c6b883
MD5 3b6d3b057aed37ba93ec0822e6ad24ff
BLAKE2b-256 5c0d1e744b42a268144fde25989f42c219dfcf7909959dbff23c370343ca9fd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.179-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.179-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d31752e63402bad0f3c4857cc24cbaf501205cd9489f02ae242e19ea47e240b7
MD5 a21879bc902dc16b3a7d713b5249e1ab
BLAKE2b-256 f8ddfac00fc38454542ddfec46feceec4232bcd61fafa51fed567e058a7621b7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.179-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.179-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3982d67b6de576ab2e1178bb131f48f11625eeeb048140989a171add79d50f9e
MD5 15f7cd34c3378f2bb9bcf96c6e354846
BLAKE2b-256 c446b2d52f42cf23ed7fa34bfb20e6c0c69baab5c695d013f61695830db2215a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.179-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4890ac84435528faae73a88f1bcfeaa5f7f68c6498a8188999cdcd080b38ae59
MD5 4ddf93dad6187a47e62dc2b0cbb79a9c
BLAKE2b-256 470c0959dff3b95a5a812547cd1c575c11c1fc91bdb4aff9895e1a8f6b1e1a7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.179-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.179-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 aea2853165d2787f80a6b47410c64171e63aa933eb89024cc24acc65f1068852
MD5 dc362f896e9de62b95b652d3e57fdc62
BLAKE2b-256 089655def2841b2bdf1f41d292be92e63e9ea3cbea0d4fcfef9ae19e4b4f5e48

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.179-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.179-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 066e8bf41e4f558948f10c4de245b76cb99bb837014d0f8114f4df8cd438be9f
MD5 2cba1b7ead4102fa844477e860f559c4
BLAKE2b-256 bc03be832ca37e6cb30e2e2ecb6c5753e1a3f8ac475df9b235f22d3961353002

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.179-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.179-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9726d69b13f4024b2edd3680969346eb5e7022616d6337c1c08989569498dbd3
MD5 a32179013f9ed7e50cf4062c991dd8ac
BLAKE2b-256 f3a4909a4125497e8561971d0454783b629bcb69dfd9239a6a632cd3245ebc14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.179-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 69c8f1e47c9bb0f2e4be4a7bdbaeeb0600cab28ed80b88e55e5f2452aeb7bc79
MD5 f47f0864134e8cbd6de7ecaa2d44bf3b
BLAKE2b-256 df83f698afd8c45156a03ca8bfed44e5028ad5568358fda683f823f80c8882d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.179-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.179-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4527878fc82a846ea0b65773f36ca03daaae7368ea25e840a6f94bff0140f7fe
MD5 8e7905edfd741bd3d2d05642201f6698
BLAKE2b-256 0837e929ca4847c17d76d43720ce4ab05ec0c8d3b3fa83f782fb4ab9ee0af84f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.179-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.179-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8f60426ad9e53a867a9bc002a252ff2f98c40b37072789960dde4934937f9723
MD5 59869c2053c4f666f86c8a88884fde99
BLAKE2b-256 6e4d11a1f04d1316ab1e771af4285ba125e5771c39130313ba9132b176d54b35

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.179-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.179-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fcd6a2ac57d4411bead96c0b06970f07964a72fce9f2f77f639e94ff8c5bb68d
MD5 d3ef5d6e116e006f7e6506fb5dbd1828
BLAKE2b-256 946bdd9ecb8b9b71a9de13650fc20e2b2640e15cafe94a3966b35c83aa794faa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.179-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0344d19fb8bb1cf0b31a0200de5b9d0432de7ab12d84b7a9677e46c837c41ea
MD5 1b5f1f9823496b4a088dc174fcb7b4d3
BLAKE2b-256 fb3903b2a598d9d1724dd1da8b56f78b219f63dc76de075dbfdb29c4b36ab2ca

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