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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.297-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.297-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.297-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.297-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 31d857341f55aa0a0412a4ba2742a3852c3a3f77cea72172ee2d2197c5d76861
MD5 b90a136f4603618310181f7207018724
BLAKE2b-256 fd7b1f65700414773c5fb79d072b874444deb4c7cbcc00f84aba762cc2a3fc50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.297-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.297-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e3de35005759aa399800b6a46727f6946fa95921bfdc4a7c57dd08631e3f85c3
MD5 9717677f060a920c7fcf9b9f548d88bf
BLAKE2b-256 2ee79f8386664e480ffa72243f36f5662ac028d119238b9b288df885dbb8af7d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.297-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.297-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 85ba7397da4da769ff9a2ae27bba5d4039b5e54ecdea7089be0082e5f6c8ab34
MD5 13eb6c7b1263c05afa6a245e817e3181
BLAKE2b-256 5a35fe053e6a3cb56fcad4f250a03b249f14073c51c4c507bca8cd1c756187ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.297-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac0b1500e1bd8e48db449e478811599d95f9384351cd9afec0f3fdd78169a7e9
MD5 07ee89a43744db99357f069f456b0dfa
BLAKE2b-256 560f8c0019675d9bb79723680ffa3dd45e5875ca41cb7f94b8befa8faf0e6937

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.297-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e8564326a32a4fd6b3500678505886f3e45d40727ee41fa22231880af1d57bbc
MD5 afef61d9461ffc19fb57ead13aa708f9
BLAKE2b-256 0d5db8374153751b292d8787d09afc50ed5e0c211c312601d9191896b7d37426

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.297-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.297-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9d73480387abfd6ce76851cc020b129dd71a6f0854c42436e2a143790f720b8a
MD5 bf0ca07fced0cc455abff5c4b1def559
BLAKE2b-256 15e7fce51be99638ce4a6f49eb60e09a8a741ffd1fb218b854e839c4cbfce586

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.297-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.297-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af0b1975338c2af206a2ac26bd528374b053c10a6d37cf5e63758136096b3e50
MD5 76005305b1d543e54e1e2624231b9ce1
BLAKE2b-256 a28ce5c2165efa303531dd5d87f55e8404f9298252d8e9a4d625b0f0ea68bd64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.297-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c778446d42155e3e4489a99e3163795633954ebedc69454ca526cff7c10fee07
MD5 ce4d5a9d664d8bd61e73731a82b3435e
BLAKE2b-256 decb8e051f92f2a587aabcc2961e6eb84ffa3114d7f302b9634f5cfbc98546e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.297-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d83b271ce32c8ae5ac722d7770789c9805e36b93fdee6aeab1678d2a970ed577
MD5 91331f7d6163560c32f8f05098e34488
BLAKE2b-256 f5a5a4fd2362b4da0d2f0d029e9264c5f1c6ed75f1e3fa900d160e80379d33a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.297-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.297-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2610750cb9fd4b07bac07abb799c4eff0fde499fffc9610c0d96e93c4797fc6b
MD5 d64adaf6459275b1c03305039f39dbfb
BLAKE2b-256 06c306f33be6d6559fc79de01b6882837f1adc3ec73faa3f9903a76c8ff01e30

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.297-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.297-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73e649b9f4fa465df59d5313334bd57825861081b1f22f08768fafa963ae8eb3
MD5 ed038b1786685b74b6cc6266e1509f7d
BLAKE2b-256 1ba9591dd2dca5287d18088aa512850fd1c4965a65e4a56537fa6cb919a38d42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.297-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8e8774ed889e1edf0792f1d73f5c3ade05393ca26dfd74ecdd4d3282eba5d6e
MD5 a18bb5571f52698e4c06278b8359b247
BLAKE2b-256 c4e46b46a1d87ca7b2bfdd120303e601098078df36450512edf03325f93bd2af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.297-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.297-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 db34dbeb5b0f18b5b1826a43ce9c595ec7865896f3f7c0ba773de45d630e605a
MD5 38442a69863f7103abc34f41692ef2ce
BLAKE2b-256 011ae98f4b5e128046fa501dc5cc1d0e365bd37c54ad8286a844feca6b8023ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.297-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.297-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3982cd0fe6750d5be50d4f0e644c955f8647e73e8e1dab4f4177acf1b2cdba27
MD5 59221624329a74f6c24de380c92f51d4
BLAKE2b-256 b80cf14ea6090708df1da5a2c443535123fc00f3c4a7f8914d6f8ca131c3067c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.297-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.297-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c3476f2ce59ce6cb44c3fbfe986847b8fb57e25b1f7da18055decca32d2e61f9
MD5 8485cb2d1518ebcbdda2e6d510440215
BLAKE2b-256 be90ed5a5aca1eeb45dbea5e2514fa5253c277b1fd117b63825c74a064cb1dbd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.297-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d4f2a4142b00382c5a9f2ce5fe1cc9f394c7f09c96ca0281c50fe08b0f40e8a
MD5 6044c89daf3418ee6ccb88312a550e88
BLAKE2b-256 18bafb534e30a0f4db0e072bddac1c19eb1dc5e0046391e2af2ff8d86fc0dc98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.297-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.297-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 24eaa51b60886fe92ad2ab7204665f37b369cef37127cd36b99589e62e6b7823
MD5 d6150ab45c39244dd71004bf3416ae51
BLAKE2b-256 2f6986224dd63ea9c5a206e52ce60b410d385756c0add255b8a6bcbfa8f2644e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.297-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.297-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c4fc0a4bd14779e28ce188dea0b7a4b92b44b0d36526be14e4716435cf19893b
MD5 ee458d9c480f2bffe26c1017e66a6966
BLAKE2b-256 706a0ef1e8c8d4053ac2a2b82e42f3be56e5c736baf04613d6af29e7e6ae285a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.297-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.297-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 efe7ec3652fb0cec5913e630d54e7169d4674b6e0c4b5f11fedb4f44c8cc5c69
MD5 000c5024e2abe7fdb572286590408728
BLAKE2b-256 5abe410f1de2f7c5e0d449cbf7f409c3e6cd243368c9ab869d0f9d528621e67b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.297-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 176ddbb4be2818bb2365f9f0f69c7ff3c45b4804f5d975d6d32d8015fad818bb
MD5 eaba55812d5e47199eb9599ff2fee254
BLAKE2b-256 dc3836891e1d01cef890108cb6b62e494996715ebc1d823fc41b2e2756ce682b

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