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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.258-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.258-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.258-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.258-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5c2d53a081a60b72e63471c5e531272d409580ddca33e471206a690ab73489af
MD5 04b7a34992da7b72654a44f396fd0dc8
BLAKE2b-256 8e44478f2b8aa92cdc52162f6fcc40a7bfa8e1fe0299c04ab080d7644dce3242

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.258-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.258-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 513cf3df523eca56e777ce7296b83309f9862289254f7f12e5642dddb9243ea1
MD5 048ee572551071ff4da214011a7a99b9
BLAKE2b-256 6085a1d805cb256ca27ef8aa11c7a016ef17d7e551dbd93365a44f6b8f8f9efa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.258-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.258-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cae10cdb6cd0149158804fe81702465bc4b66a63d599a334bdcea96b93b7ab76
MD5 c1f52bc3c1d677e12a830ba5daa2a8b5
BLAKE2b-256 36451626e1951c97d8144e025082b10627071da363b447685d2c5158f8fde6f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.258-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1649455f9c5f77e03eae2371dd0769b55212d969ba12a26e00f1b42b8cd441b5
MD5 ea7af95d99a8efb69eae58543834c04c
BLAKE2b-256 68146d38aaf8bc433b3d22d1174ceba5a53bd1cce029b83008b9daa34885b788

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.258-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1f81b83276fdd575e9fd3654128409b62a6740e653152b8b1ebb6c974d211298
MD5 9e4838663c4479714554b3c8addca7a5
BLAKE2b-256 ea01927a9a0bef2b829d9da25602e59b6275292b2387bc97df72ccb2e965a3f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.258-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.258-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f5a6b1c0037263085d91b3ff0e0d5deafd15a97f4613451aa347788c28274708
MD5 0ddc8507aad2003f73dae9a29ba6b5a2
BLAKE2b-256 0bc2dfd38b2ece0e670c99323286847ae6e3c19d95bbed76eea2f93f0553ab11

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.258-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.258-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0aa348f00697d4496db74521521f40e99965003ae45f8ffa0de471caf8c90483
MD5 ab825033a51391ebfb39d49169ff13f7
BLAKE2b-256 44b3ff4ff888a9212c0fbae06658c1a90e057154090bb51021c71237611dfa6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.258-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb8582d4ae368a8d97a73bb3e5cc948a5e8ef5632be6b4be1f4d5bb8c9b7cab0
MD5 69c7e25b92f600d0e50d685f136aed68
BLAKE2b-256 b48b6858f74fbe077532a896d0a05528c38844e3c8481a97b69aead926c49306

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.258-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 53054809343cf48fedf95c31edcc90e023fe0034f619457f6cbefb831f2a24a3
MD5 d92fca020483fc5d1044f5de46178c84
BLAKE2b-256 4e77ddcec39eb543d3e9c0b2e56da04b15a7bda96f8fbef68bb467a8abd7bc6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.258-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.258-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0d38c44dd2d269c9feac90b7e1812280ab99b87e85dbce7776066e5db960b8e7
MD5 9af81004ebd96d65438385fc54df074f
BLAKE2b-256 1157461462bf7b6cbac6a4e5daee7bc884877f3a83c517404ab4231e9cdcdfc9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.258-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.258-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8e722ffa37a665354ee2f34caad670dedb46abd0464c87eb641566d6cd07beee
MD5 6d9bc1d1b004617638ad03980c03cd10
BLAKE2b-256 e7b865dcaa62e3e627c4f7a25d80cb1efb6cf912f9b826ce0c3b7f2e4e8fc45a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.258-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a2ab7c0fe91f00995532aeeed8195765fc3dc1787baf2f628489863cdb6faa0
MD5 ccc6d9278f362adaf3703851a6881c2f
BLAKE2b-256 d6a11a20ca3d5127912e774692bb2c07164008c1fd4d0bf79056a8dbccf5a5be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.258-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.258-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8ff90bae89aa0f5ed36824cf398f094c44851824f552b994d1c44c754ccd96bd
MD5 cb726bb1fde95b3d99ee8fbef97293db
BLAKE2b-256 2a870df3b10c9d44dc68d617c7958af2562afcac5e63793da6607695c9b5e2a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.258-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.258-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a9cb01ef4db91cae5af5a87f0d9ef816c8b060bc6482f5d442ac0d86384b2ed5
MD5 4b7873a3e3ca51029ea20cab2cf77184
BLAKE2b-256 bb990e3f59447debf8b7a07937a28b0b32da750021cf2dc6be09f92249b4c00a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.258-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.258-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9311e8315e54a93bb48c0a753c6267a5084f4feb7b9f8201445e0998d4f02232
MD5 248e2fa33543c8b162c6732aa4d8b0ab
BLAKE2b-256 4615614bdfaf554dab90ab4b94aa25640c7f717a26bd46a8a0a2d2aace1c5684

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.258-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5572ade93e9589da91af68854bc9ae6409c7a313eeadb706581a45f824464400
MD5 6660ca6d5ec24ad2a631e2a747120e80
BLAKE2b-256 7276e30c657cd5a22b4388394eeeaaa046f1f9940b37611d616cef9c2e99ec84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.258-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.258-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 98c76e122242e6fbcbbb41db6c8da14a46cf25296cae8afaa3548b6e6f56d857
MD5 b538f4fbd1b4eb2929819ba106f85058
BLAKE2b-256 83aa3929e3377930f74bae216c96a830a696f7904d76cbac713b95460eeaa184

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.258-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.258-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9c806604fa7e10c2ee626591d65b6cf91e0b3e5c263abeba211d958f70064ee3
MD5 694cd50ab58edf1d0bdea1cb1fd18823
BLAKE2b-256 d09b46c072198ca7cf25ba543f38dedad3949452db7d2d5f309bb12abb787886

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.258-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.258-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b2881d87d2b64d57489f874bedcd35ac4b28a3d633408f4610205dd888ac33f9
MD5 602180872977d92359fd773245d6404f
BLAKE2b-256 e943552cfac04e349ae5df9f67a49764c9faf4bf15cfa9454622950c0c767821

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.258-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4b2847b5f511d8208601525dc054ad824ccda722cc6dc0fab4cfa91a92938b0
MD5 27b9cde28be503550b55f1b719d9b093
BLAKE2b-256 82ae48352b3a1580ffea0614ab09d50497c6a54be30144d3abb84d76ce7bb567

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