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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.611-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.611-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.611-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.611-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.611-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 813b69a209ad4c2e634f5100fd0d8b8e64a120ff17cb92e59415320c8b58b8ba
MD5 2be01ce9f10baf5fcc398cc5015e6a29
BLAKE2b-256 cad9c988be83211e3ecce60eefa643104c8cb3d168a00c6bb67b458c9689892d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.611-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.611-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f27797786ca948ff1c389a33e6815bb8a94fd121e4ecd4298327f278623a0169
MD5 e93a75bb0d7a6bf61fbbea8a1e94710f
BLAKE2b-256 cd7f9759742848ed3b71df8bec3a003b40d99f6b444877807904c19f0fc1c51b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.611-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.611-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f58f4dc1cce7ceadaed12a178c280edf4aff468a0b0297af098c71e100d1b31
MD5 429e9f9b4a6fd1af73d24e749422d713
BLAKE2b-256 9d515554f9eafab5dbc00eecbfea31ed954710a50e475f7444bc985e6f874ccd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.611-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71305496d32e8b79a7184745a2aa9f2a6f0dcd6224f67edae422b91ecb4c2312
MD5 2fc3bebf0820e14c3bff88d5a625d217
BLAKE2b-256 9f22b0f162a9811003f82ae8a99fcc6adc95af5920e7f63e634c369d4bde2271

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.611-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4ad158cba14952f053439eb8b711a950e89182144eaef485b6cf8f4d31a55aeb
MD5 a36daaa34571785783f18d328e2ba668
BLAKE2b-256 d7803b5fc75770e221ea1b0a9d7885fe71d92cc8756b6cb91a1197c918cb16fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.611-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.611-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 821b930fd7a94db91115d043fd1b8d81d422cdfcaf48f9837e529c68bfeb6b48
MD5 34a408f6dcb30a2be5bd63a439825399
BLAKE2b-256 d8f8eaf15ea4a461a326175e8ec67483d5e44ff85252d7bcee7d42f805d8710f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.611-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.611-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1781e025baf3c2eeb912628c8fb5dc3477e4df3299c1bc5736b8d0162a5c637a
MD5 dd0be7c9a46ede4f274aed6602521021
BLAKE2b-256 3ab1939edaddc7e315cf826f3d6efab1c5c49c27fb079561d9eea690105a4500

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.611-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0a599164492cafc14f77fa222dea7f40ab6cf5b8260e6f31328dea0a9353e57
MD5 9d881b3a9a81104e3efc68d4465daf8d
BLAKE2b-256 2507dabb1c6ae04d5b99164ea7b554b1778a81a2c0aaa3f9927899adf913ded5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.611-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1ebffa73a930499bf3fe33250fa7d78117a145ac35dceca06d97a77d39df7a60
MD5 8d73da86e481a9e16909359660c65c1b
BLAKE2b-256 b26a5fb7bcd89c63d56b2b0b57d9d6e355324ce12333ab55f21f2481aedf67e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.611-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.611-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 07a9b13517e549166261cb840e3153a8bd22f512870b1a1b9fd37eff29542b99
MD5 0743eef2641e7e76e8bd1f92b7a3864a
BLAKE2b-256 9c08ae0f8dac1d1aaf38951a9cd5dd52c8d52819de56a351fa817de916df01f2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.611-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.611-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f3a00af52011071e16e5c71f17c468b2106da58e06c9b34bdbf474dbbb603781
MD5 045d8c7b5470b2a5980a2e9d5c41de90
BLAKE2b-256 f65f5e3e1827b0ce6450bb1df14bbf2dc68b85a1da218a95ac35b87e5abb7a81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.611-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d1ffe75f7c89898e7015508bfd2bb5a86638a76918534914b05d1606a7efe9e
MD5 8f4dee85548444a672911b49310d6585
BLAKE2b-256 2bd1310d401eb724714dc78c9b0db7b10ec5a531a2c31d81529e1d9156f16220

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.611-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.611-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 45128e41192a94139ab9bbf1a2631a3a482146ef2f2c2fdda6117963246540cd
MD5 9745ff0aa53c6c2ebdbdab2d589f8078
BLAKE2b-256 7be0e8212c4078ec4992e68b4e8664bf46f1531959b78f7d06d19dc009aeae1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.611-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.611-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d2c6ec11765ef4960700a6dc8ce35f326466c2f2566de83658096de50116bdaf
MD5 dd3136334f5839dbad4a4c81e26b55c7
BLAKE2b-256 b1ed1bb127f3882f76ba60a700bfcbc205148b7e8581ef7ca0d3058f094acf3a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.611-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.611-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b7f3b4ebdc84af7b26cb7c9399bfc0ba72f235da514d787f352daa4c5096309a
MD5 fff205e0b6d3a60dc1891972c27d3590
BLAKE2b-256 55fba701168fd24966f7f4b3f9877e9092feb4da388d5873f125f506ed7fe70e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.611-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2464e6ee340915f472e77a6bf8acb4a520f2f3a57f6ab299e0cc94c1a09b6c0e
MD5 a842bc0db64436bb3b21f6d4adc52c69
BLAKE2b-256 c5e08678fc326d2b84b16940e58a97955694cadc13288715df37389c6e100975

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.611-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.611-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 83fce4a31a30f2699c4aad7621ea2bcba9c595cb406f3864638d2d50cc5320e4
MD5 a832101dc2e97a99fc36c86ddd682e23
BLAKE2b-256 9e0fdf906eb698161914aae88ce5658a8beb90920ad9e01f17cc07573366ac8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.611-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.611-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2b3a9c555d2470b7a278005d0a7a1c9f3adfe0c3d806bba1618a41fe88575edb
MD5 636876f7b02d291352edd81bca03aa4e
BLAKE2b-256 0fcac2107c3d8b0db0651b08c97a25bb9254df54cc736e2aa2e83794e9d14370

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.611-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.611-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 efe38910ef97fc02efa10cfe19953220a8c537faf3116c7217817eca60c28acb
MD5 7c63280dd7fb869bd80369dd5b883d11
BLAKE2b-256 84d89dc670dec2d3b2f5d40fb2376deee323c2f7e66a8ddc7b3813321a3c82d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.611-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb091602d0ba2a36ceb594b517eeb82e8f0692a7f3e13ce3819fbfc0bc0c6f6d
MD5 e3c2fe7241705883a2512ed5d976823c
BLAKE2b-256 80643efcb75652f4090e9311191bf97038845d05511df90a107e1f9e9550530b

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