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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.868-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.868-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.868-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.868-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 931677cebcd268701b68210dc721add1a964cfad4c1b754e5bb12f37385cf7ee
MD5 2892231921cb819e7558b9a2706b81ce
BLAKE2b-256 f50c8c9006c5edb6114d004f39f43debf4b35fbecdfa7309a4d405b55cce8929

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.868-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.868-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ddc7484e96add3eca086294494d0e13254b18c42673118d152acd7c74832369b
MD5 96677c2d5c331b4a2f097c81e21d329c
BLAKE2b-256 af760a4a39cc2b93646e65416dd9b573e3f860e5c8fa52777e37e5201795d336

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.868-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.868-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f94caac41d9911df8cabc22b09700d6a496035703827542efb8fc88f89185b4
MD5 d963d025c5ca55eedff1420c450311b1
BLAKE2b-256 e7031ce63f0a1fd4df0a7f9dd9581328f97bf8c67cadf94b2568d95afab7b743

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.868-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc399830c641ec8e7135ee8e860b47c81e1fc82e0341f2a4117bec37e37e2bcd
MD5 0b900b9ca7ff913e407b4e4ce6c5f704
BLAKE2b-256 988a420a6b470f0d7d4c305f548c6df061139b38ff72b2814b006761294da57c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.868-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 694e4f5d994e4d3ee8d8f465482f5a98f2d8d2b5c8e658a9a8afc43dd282cadb
MD5 22d84173406d744924367f856f0eaad7
BLAKE2b-256 da91bb9b6e5ada605e2af08050f615d201b9d54e209fc60f0a9a662397ec4916

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.868-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.868-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8fb821cef2c980f71975db13693ff97a02c1018f70824d8076425cb5a78995a3
MD5 bd8018847e8e83937405a3287f9b8f20
BLAKE2b-256 1dda8ad5b7ceb1fc5caeeeb4fb08dedf632b2aff1fba19d7944614e5e3005076

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.868-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.868-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 24b5b98ad49dd90131742e211829a2200618a0ef6550f14c6e83637fea95be3e
MD5 f41d569910219cc57047539237860780
BLAKE2b-256 c6c1217403fb0f55ef21dad06a24ce358cc680280e993cbed1f564c84a49d4e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.868-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ddcd8869af7d8618fc48a092b580015fb083ed325487b6b984d89dc1e81f4899
MD5 d0727929ff57ff016b94beeb657fb72a
BLAKE2b-256 47d94863a86853cd75dbfef592963a6a7d2d637cf2547712380505cdeb59b73f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.868-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 891e6aed303c94bccfdabc3ae7ae74f1dbaf808c4a19f23862295e17fa5b7130
MD5 9a35d40f5c1d98bdfb8d33fda89b3494
BLAKE2b-256 5cbf33764b69fcbc0249d285fe0ee005e934cdaab94818ede915530dd663a448

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.868-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.868-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ba59a11a0e7eb99d570e2d392b09721a54f7b9a6ae4ac75fd874ed5559253c27
MD5 c66083dfb04998a9fa21c0ca7a608090
BLAKE2b-256 247a45d636201b6cd82be2cbbb8763a3c268fed9b015082e8ea8afc5ebde5fae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.868-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.868-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6f308572d40991a8f2bcd0f2c1f3c44d48fcfda319a64d00e0b44b47fb8af7a5
MD5 fd2609f2421dadcee5e0c57836ef619a
BLAKE2b-256 6567480b262c6a2435ca03a8b78b8c56c97290f9968f328463af0d17c2559d6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.868-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc51518495947a33d61e0185f6da2ebde889eddf356bdec0432af04fc088a993
MD5 44e0b787480f6790846927ec7958c53b
BLAKE2b-256 bce363e713e139170b213304bb71daab6f94ceb13f917f2e9496908d8f084382

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.868-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.868-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c24240ed8fd151ab80a4fa32851af9551aa6264474ba326ee80cee440489ca99
MD5 1b420fa12f3577752390b9d1ff1efbfd
BLAKE2b-256 2052c06b488b4e089f578bcf1ffc7f2833aa529c03d13373ce324e29292b8d01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.868-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.868-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2bb5e2199ff7e9a6a31bf4a7ab62e9c7f2cbadad6cfc5b83f06cc0aa21900cc5
MD5 adf43dc0cd55e6bb1c629702f9bf0173
BLAKE2b-256 a8cd59735e90b2cafcb5093f749c29de39db069abdd34f229fd66dac5f80093a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.868-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.868-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 66bd65be59e11c144a3c83c99f2dce49312781bdb5e8c18fe7de9e3c67f33eaa
MD5 81d94b63d58de3eeb928131c09af9d25
BLAKE2b-256 4b841f083b888efb415e3b8e58725c9256b2879ea44a4a2c057001815dd7aafc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.868-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84b11561360746d85d77e5333235d2ee72b46aa01a171c347db936e5be817ca6
MD5 1131cfdeedda51078e0221ee5f7dd19a
BLAKE2b-256 9cbc59cbb4883d1a54d1c2dfae02673c128cc279166e42766a8387c6f89b4b39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.868-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.868-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5403a197e34de4c57797411e6c2c64745551a9137f852000e6d62f7ccc24ac69
MD5 c6398fe53b006e72b01e4d9bd1b91788
BLAKE2b-256 020d98a57744e16330452533450e2e21fd52895bca2af293be11d1a4902aa422

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.868-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.868-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 69ea2dd0bbb75a947def6f9a39b87e681c2b7d44f62d930cca4213bb3afd0bd6
MD5 746107eafb9c1cb2c2cfc02b58ae7339
BLAKE2b-256 88343cdf830770824e831c18fb072f49860f61c004dfc6312f26ebb58a319097

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.868-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.868-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1cad62d73a238a7fd64079aef259c971074378896ca91ccbf3a143edd1047a22
MD5 4672ad0bedbf6e1563ced624e48f6839
BLAKE2b-256 86e42b5016a055ec810056c9a58cd5d3fca3e6ec4e80d4bf185789bd376e279e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.868-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c22a5076d08adeb1f0806ccf76a5895e6202635457adaa37d1549aca12d5331b
MD5 2227805641b66b7bf6117c35214825e1
BLAKE2b-256 12f337e4855752a13d8701e4c1c614cac7fe1f5572cbcbceab9b15486d8246f5

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