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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.452-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.452-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.452-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.452-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 946b6dabf3d6056763b7ba2c4235ddfe496271da01348014ec55d6ef1eba293f
MD5 0a49fd87b4db8a2ac9bb810d884def05
BLAKE2b-256 89ba753a2ef4976bf70a6e1a8904211847ee31b75620d26186823c6bd3850f6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.452-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.452-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 64b00bbcc23e6288ecd2f4b12577a05cb3d6c891ca0f6ab541c1587185b8cb97
MD5 cb852539ab840c627448fcacd1b4508c
BLAKE2b-256 47f0e40f8a6693e3e05ad0061b39f2ccf344af50e245c846d2b0854ef874cae4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.452-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.452-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8b5c3c3c220704a05992172a1ac5c7a71c7ad85c037a1751ce2be6a3d38ef8d5
MD5 109de3078cc6b2cb1ed46c85fda1f82b
BLAKE2b-256 c37133ed728c88a45ecddab15c85bca83b577d59b40ad74a47743f1d5eb40fce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.452-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6abe4f476fec7648e6a9368f535a3b3912391a306fe5c82d6242b9cda5848e4a
MD5 dec85745cb7e2a7c606a6e3ba991e232
BLAKE2b-256 7e870305f8ce2f37ce07ec947145571887ddfe482050e18b894432fe24cf5870

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.452-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cc17ab596afddbde869d61557cfa2e8549fac1248fcf2c4e17066365dcbf8ae5
MD5 ed08d9a2297bd41b2e9b156776fbc829
BLAKE2b-256 c994773d1ec1156fb18459f7aa57ed2c146ce9b150604f1a175457983068ffa0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.452-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.452-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 861113f11e15884e16346b4d07816dce13fda1176274781fac6cf133daa46f0d
MD5 d7363a0cd6050b37b3757d0b7bc86547
BLAKE2b-256 77a896a7c48caa168aa8c6ef1823270fa6fbc54d328a5e9558546e75679abf0c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.452-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.452-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0a21160e2c715aa98b4430792b8eba2ea3117d1694b77d566c65c325765c4c64
MD5 212f53e80ce2fcf275454fe9613599c3
BLAKE2b-256 97bdcfdde78fb8751493b8606fffe1a3b2e38ca40cba3e72772163d0e4bba088

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.452-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0557299a7c766d6c38db59f2af3787fd8abe11bed41336eb02ae8f6a4e36031b
MD5 abffdf764986f8fe8435b22e135b42ee
BLAKE2b-256 d9c5262476e620e2396cc4a616dc9dc5a4084f09514a191b1702f6e573793f2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.452-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 585e94036d4225ca7607384bd7bea8cca7df6f5969b3ed154cfeb64569ef916d
MD5 4b0780bb10f7099cf117c79e5a1c5972
BLAKE2b-256 66bfb164e9b2c2a132c8d0ab27eaab1da7c1d5c936e07f9dd1ce2f00727a8a31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.452-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.452-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f0bfdef510cf10234de4ca354df8ea6d905bde2d04edf16590915f30978e0cc3
MD5 874043583bb6fb4315f35ee47b0ea56d
BLAKE2b-256 8c3218fcd745f0dd24620f607abc068ab8904513d5185d2d5882c8e2d0fb545b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.452-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.452-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 897ebf9d91afb3989e7ed538a754f19206434a65b46ad70d9922962d185a88d1
MD5 030bddffe05dc841e0cdb398a8758e36
BLAKE2b-256 e66086ef94b883c9870031de7d379b751e803075b604c5ea1ff5f3e29dc306d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.452-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3b222a476b1d6bf56df839bed77956607443e1a4f0b72ea0ee668790d952eba1
MD5 3475de8610248ca0f0367c39c4d63c2f
BLAKE2b-256 01f9fccf02cc68801c122c0feae07b988ad80f0a6e7fd2af097a2690560526cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.452-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.452-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e964927307187335b5262e9555310dbdf667603b990b7bb09a0808a576f157e6
MD5 79ff6cf894a95910038da3ce0668f987
BLAKE2b-256 25585b51d8428077f0eec38f9a71422224648f25f5cb16a71bd8a60db5fa7227

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.452-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.452-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5151412fcbbc691dbcb108b132f8abc0ac089d0c816d8e312a8fb55482cfb460
MD5 081ef29fb993fc00cc02a3a8e4e2c772
BLAKE2b-256 095e35e217eaab3eec81121381f9dcaf9603628c2a3bd9d074bd4b67c3e64dfa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.452-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.452-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2c65987d9d8c9f6dbf91a4fa1855998a6173f1567decd84a6f110c7d19151fb4
MD5 d3b54382c4a8639c10c535f30a535865
BLAKE2b-256 0279c52245ad5171bb629d5b98891285708b474adc7cd23f6a4171fc1aa51d0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.452-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ffa81b8fa04692938bce75a09ff884e9586074aa8a622c69170b69acac54b393
MD5 0b0155b64ec100af7c0bdfd54e22def5
BLAKE2b-256 299eb42b5bda7258efe85ac3f816daac4d8c7a60d8b633bafc56e90c49e9fc5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.452-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.452-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 86a6a865d494af8bb461dadebf83671d62bc75bf3a7a69d1f21c34d90c63918e
MD5 7d8ad4c8d7814c64d6ac7108a7bf3bce
BLAKE2b-256 758e9e5ffb1fb189ec34c0b1530f1eda8f04bce71db2caca5d93768598d12bbd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.452-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.452-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 735c2a906b4b482de5e348ed2808a832fd15865805a0bbb6e59c5ddda1b7c553
MD5 f5408627ab69e3c6bd9d4384eb2a4ba7
BLAKE2b-256 387d6b36386bf1bc9fd027c7601b6ba0478576e41ca902cfb64494dd6bd13caf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.452-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.452-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 64a113ab52ae3f98a10f2ad0c9b9cd10e3622b1c61cbf6add2e46a9f75fff826
MD5 a547b26e5c5a0eaba49acde99262113b
BLAKE2b-256 c5aa2f1379ba8e0fd07913d9392aa76e2201017677a7bc6996d68afe16a9a4a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.452-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1ed37f74f9d9a416f50f18e777b9d5a0099ef5411ad86ceac8224d8e11ed54e
MD5 7d0a4dbb6042aa4e42db243ca2e2f044
BLAKE2b-256 171a0c8da86d8b6157d0173d5a4606140e706de6f7f8ce3340e1b3caa0932f33

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