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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.103-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.103-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.103-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.103-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 50ae5a1992d304e8bc5be28388ddcb355c400e372e457dd072ad9b904ab88c0f
MD5 600c0d6cfc02d94267d5db3ad0055dac
BLAKE2b-256 3f5cff1b0c8de4a3782b50fa383e4b03a256b7b65e59c7824d76d4957646173a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.103-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.103-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6608c223e78f49adf975b3499e503b79cefff74fcc16595346513aaff873b18c
MD5 11b517eb34c369fad099d1a47e5528bb
BLAKE2b-256 ba0a2e8897f82d6dfd0c05eb4e3b0f523e2789b40e890419e94ef5e1a8b5e4a8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.103-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.103-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1c1fb3d52daea1de248adb5722f28ad439bea58ff46f6890af670db9f8ead363
MD5 b6387fc0e0ec8d9203f757feee269ada
BLAKE2b-256 e8a5360db67434fb439b4ebff1bfd1277b1eefd2dbbdd5e75474c0048ded329d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.103-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fe14cb7a8422f8208e200b58011a6c4a0e588495fba5c3d74e8984f7b809f9e3
MD5 ec4542e3148435edd95b2c005035ab4e
BLAKE2b-256 5037d23967bc8f26e69d95fd8494fcdba8201efa15df92468aea2a6cea67770c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.103-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 17c0fadcd40cddaaf6eaaa30313a0bbca86eb29f8b479e2588463e8d0444e6d8
MD5 7b7dc9966ff13815554643e7144df85f
BLAKE2b-256 0d89c5a8ebd210c4c60e82a5673e0623556baf32973ea89f8d373d4394e5efdf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.103-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.103-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3fb04915c99a37a2af4c427b7a1928bd07e444cdbc214a06321831d62f7ea673
MD5 a85c9b16e115d5c3f35ac80060e37c30
BLAKE2b-256 691d0675a53cdad05071b3d6d8cc2ee986fda43ef8e776718e08065f3bbaf279

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.103-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.103-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9758919e73903bf7df063b33ad046700592f8d0939c41704a6d8a0d815b9e3a5
MD5 1f89c08ecea39bba03bf182479de1ffd
BLAKE2b-256 76d7debad35cda430bcbf893669e98abb6494d3f6fa65cdd602314ed9025e828

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.103-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e43d51e7c466a958aacf8a45153048890daa7fabeb50e8ca8bace778a7e28dd3
MD5 714858e1831a8550bae42d18cebc92ee
BLAKE2b-256 1fd1a77ec21c020a7e8c444023a8e984b4a6149eb5b8cf9a01129eef61022e80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.103-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aad639dae1e5788b26e7c1ab8fbae5e6193762d6dcb91eb1f7917d49553db1c8
MD5 4e227c85903d67fde3d51a0a30cd18b4
BLAKE2b-256 2787827d988db25dd4b04d6dbc4120a42dedda615b85e4e0d5b37c9e60b6cbf1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.103-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.103-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1e05f956835955d49323a0b51d060e6fdf618cf96e783a1186d0cde9efc6139b
MD5 ed567e0655b0a890b0cfe877b45f2e64
BLAKE2b-256 a7d44d5eedddfed23e15e562f2043e0c51b63b7c1d049088b1ae5610d593365d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.103-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.103-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 96c57847c9c7684993076ebd2ee887240b5f520663c446852282048b566e3d88
MD5 66dcae60a56197fba07e9f2824230b9c
BLAKE2b-256 78c90b6774a201f96aba87a0ef936cd1185748639ab6fb7d154ddf4531c98103

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.103-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8af26832b90f553ed6786d6f9776fbb8fd5b9ce186f90311d5c883ea8648a6ab
MD5 2da1f1d0e87e845dde57a656ea695dc8
BLAKE2b-256 7884a14f7a12ba073fb3b663169ee2ca0bc6e5718a872074f8362c117b0fc62b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.103-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.103-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 85b70a60448d9fe155a45c44297d17a47e8213297e61711719939e929aeab50c
MD5 970df02b8ecc4bb9d782c5153bad7dcf
BLAKE2b-256 ee61c6bac646fd51f20bf863f61046e76e5b3ae08d0a7caf8c2cfda68149cf5c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.103-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.103-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b7822ce638a382a038c42849a589006ac3ac66ec2696db3055adafca31ae4216
MD5 36d02d16b792b51e563446336f267a18
BLAKE2b-256 c2ff12d50261b991730db86fd5858c24a06606a885d13098bc9be1073d3ddc1d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.103-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.103-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fabceaa7d2824462d134405033b03d4240529b22a88ce1512b4d571e41836bff
MD5 0f56b0e572872440ac960ce98f297fd3
BLAKE2b-256 f241dc14feac4d57c0ee8047b89f25fe486e2d8d8ff62c0e1e18ea56bc095f85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.103-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 26ca83e0fb524dd0773b734a678d059cba2af38fb8a61afe837e9cec0857b957
MD5 4d3bb2d93b0aad3fb1341be75420144b
BLAKE2b-256 db7c9a79a2f0e0af93c068d8c181c941953a54566d5c4fb1fbcd7e8b0f2212ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.103-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.103-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 906ad0ffe98510ba5889d611691832e68267d557376bf9eeecde553adf302d3d
MD5 fb3f829ea38db4aac1c13e479663c327
BLAKE2b-256 22d496aca36c1dca8da057a59cb588e3264aa639126599e35b8ef31dba114c16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.103-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.103-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4a5a181230d9ea13cb39ddfaf71e72fc9bff3ac163acee48e36a65cba6920770
MD5 29ed77a0c8e123b2bb1fbbb752b12d34
BLAKE2b-256 13d751f9bb87521b7708baa6c326c865cdeab0dc0206d4d83666b1061df32b2c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.103-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.103-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f430e3611fffa0f273568394d9f11f558a5e11c06361f44c5f9c2a0d68268924
MD5 5a74338778768118ec3ede62c95d4230
BLAKE2b-256 f723a0a898c6db3f59c754d0125e6e8a695afbd760093046da267757f17ffb59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.103-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ac6ee4d13aae2614eb15101d1f5a44d0ed9e54c4c32fd36ac67d9526912d6cf
MD5 8ebbfe46a6cb123351059bfb4620dc3c
BLAKE2b-256 e6c16e8a3bd3b87dc6abb51ac08a16a73215602a26de64ab6cf77e2f42fb8f05

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