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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.864-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.864-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.864-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.864-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 92c57beefed2b014ad8231ebfc90ced6aaca676fa731bb910ee1d40768c6912e
MD5 1101a16da5181df748a73ceda828e57e
BLAKE2b-256 b7ce89634bc524ebe6f10f966692f3ea142fb0efb375819665c0c550e4063dab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.864-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.864-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d6aa0ef3bc205d59171240f1b06e364e944bcc1fb2a2525d2676aecc1600fe61
MD5 1e370a08bafd3d24054a59ca122ced69
BLAKE2b-256 ffe75aa916e30aeacb8f7a514f6dfae8a9561d4fc9694f1b2ec58b884a02dfaa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.864-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.864-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3c82aceceaba43fca861e2aa6b6f66b026f59443cf32770db61639b35aef5883
MD5 f30e91a602c8185e81c901d1c644cc1d
BLAKE2b-256 dd8d668b024873a6beffd3fb0e9c007062e40785a65750875362170b204815ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.864-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49adfbb54eb5ce5af4fe87fd606c83c0ec4090c309282f5c149ebc82d917082f
MD5 72c947b4c6cb3d3435be554643fb1d0b
BLAKE2b-256 4ed5a0644d09081482b8661bbcc50b815685b77bc9adfcdcf6e0252febfdb6c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.864-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 34f881f91afb9ec3f4e8edf5eb5c794f01919160739dd07b5b7c09c93210df46
MD5 bf0073fd15b66bce816a510ddd086887
BLAKE2b-256 db6632e6e7bc92010576c53acb526eb3e62777a2a7a5cb1a17e38d1e359f036b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.864-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.864-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 365067d34aba4848b275359f160716af9298077b07b40e22ff799a1eb8984128
MD5 3459c958fabb220a9e2caae477460cf6
BLAKE2b-256 fea82618b5aec9de3204993b219c2633f7843f6b698402ae65c003baf0c3f7e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.864-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.864-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1178615d99f64ec99db928dae15308ac9a3a43b3a5698d1a687d6e54db3dd48c
MD5 d22418bf6d3ea1c069042626a02eb486
BLAKE2b-256 5e7e6aecf47ef2b571194ecff1a92b57ce576d0a52c872b152ad64d3c1fd75d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.864-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6361b924d8326b832e998b012571867d8bff611fad8752ded674c6ed6d8b81e6
MD5 ab09e629b464f44ee840c8e05d277c33
BLAKE2b-256 68b79d24886f2e9ac0b45a6c6ff2d9e2ca4454fd0ecbff2091083a24499a7bda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.864-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ea4228051e937dd20c003b1be6fea930699bd958fa0f48f87eb28b7c6e5e2f2d
MD5 397c3c5423893e78a60a2de2311c9032
BLAKE2b-256 12f5114fba5485cb9243bbea00d20a79518fd69bc78211e1f60c167785ea57a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.864-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.864-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7d1eaf6d4d1d43c9770ddb4fa193b550a732a43c1625e28879f8df249e8f55da
MD5 7fa6a81f23206fa1eec03906b3ae4c14
BLAKE2b-256 52696fde0fb58f7bb5fb16a2a89e871d43c7e0a129a658911306bb879d6a8b44

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.864-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.864-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cf8dc2691d3a53fe715849f1d9bc646a84ea0ebee585e8a962ca35bfc6e8d05d
MD5 e0d314c94c66942af32c2aac15f32a27
BLAKE2b-256 52654d302b8180a88de6fa74300f1a9b57dc783e86d56ce30efef562e3e74e77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.864-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7567f81103a0b055372bee65cae42ffc4ff8d2e0f4de426af5725b4d4feefc2d
MD5 435d3f7e0c1a97c8cb35866ae1ab5b25
BLAKE2b-256 5e6906f0e7f454a1755eb04e76288b02f0e0f6118be673fc27a1ce19ed51b4c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.864-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.864-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f92406a3555f7a79e21bf6d6677cb974fdf8f0c38c2aeb4306d5512996f1a369
MD5 0919efed3041d9558f18e546c46af8f3
BLAKE2b-256 140918e232713a33547c686b9f75f0f9df849d9359798b3fba992c3b38b6fb7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.864-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.864-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7d4f26d5b48f188c664e2d59da84973b3f5066d1f5a3f524393e8002af96814c
MD5 c9502a9ea794b5163f09c921d04dd09b
BLAKE2b-256 e77c6e1dcb7f0c77285aab7edf366f5e24ced3b4f9e9cb2b7cad26c7815f5f48

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.864-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.864-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5a970e9f15b002ef8d0fdb899a610e07649b39c8ad5979457f4ea30188458473
MD5 740f9067fb9e95df8c06322873eafc5c
BLAKE2b-256 d231dbec9d80c90cf10dbce6974a035cceaa5adc5b206145c3e7964cd5120763

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.864-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a81e48e2b34643fbb412d6ede449daade0d679f932fbdf247c5058296a48a2d
MD5 9e36d873893156df582d610bb256053a
BLAKE2b-256 3a183b9e49a8c9d710a529a9bf7bc61daff69118ffa45743ced0f87b0673abb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.864-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.864-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b37a99ab26d3b190b537a1624beacc7d05bd1bdbe8dbd28d51c77fb7b1c3624c
MD5 205d6c9220520a4d0869a0ce9bfd0b0d
BLAKE2b-256 415bd94534791c25126a0dd680a397622750c2a20471d15e250863d1aa8018f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.864-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.864-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c141b22c0a648ba83d7bed74dd4bf3bfb58d36c51386900212cad1c1a34b4c3c
MD5 c7e79116acef4ede1316b4bd10a02227
BLAKE2b-256 d5e51ea9a24ada9312ec31f0f580bce0c070df7013f97c2ea6d09bf8870478c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.864-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.864-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c686cf4640fc52924821599869e081320e3d40a910ead57e8a4098cb4c71b6c
MD5 666bd890f8f734a0dc98f397d6f6bb46
BLAKE2b-256 8649b84d368917092a3b710049f88b5a93e3f81a475a14c099f39aa422bdf2fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.864-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cd8bc60665eb697d7cee33a5e6144565fac3ec91aa310ad2cadb702f05f0d5c7
MD5 679c0eda47bfb18f063e03bb9072a67c
BLAKE2b-256 4c83d7d4a3adf5bc65424680c0be13736fe8f2026800d8c7b5cf40726d590e10

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