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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.608-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.608-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.608-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.608-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f6d9a59eef9c859747348f447b0e7c6b3674df87d2dd71be07c32e141d864a0a
MD5 98c85bdd388056f3c11c568f0a4165df
BLAKE2b-256 31cd58776e43f33f9cb404d9ceeae68b915b4da0a5e5d6eba0b8c9d9fa34c7ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.608-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.608-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ec323fee1db95993834f2a0bfa6659c0b5d223acde6141ed9267811d761a0af4
MD5 33504e4466e50b91e2fd8d746c805b89
BLAKE2b-256 626902615d610958bf8035edff51a8911d9c0985080bf7ce199294bd3cddc78a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.608-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.608-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eedfc28b82ec7b8b739b0beee2ac2bb14eadb1591a73d9f1a70f5f42d36d5fb9
MD5 b4a9500f7c259c4a2de850e93f4ecd2c
BLAKE2b-256 eb5f981574a2e3ab8cbb08db9ebb9cf84bbc7927d532aacf66a495b6791346e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.608-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23af49cc5fb3cf87474b70e0d0ff9edb4fec1738b9b61c60de7309b4f23842e6
MD5 4d04aba68801ddf62c625160ddcbf81f
BLAKE2b-256 86ac99be0c4500141d8c752ba765e8bb321920ce62de2b18bdb568bbb111bfc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.608-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4d92df3a6874182ac7b7144980d73ff9df98c0a1750655a54b0f220dd21866a3
MD5 3bea68389067334a75d00cae031c869b
BLAKE2b-256 d5d0588c24f102300dd56942b0c0dc52c46d86cedc4f9f82759b8a95b1b2848f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.608-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.608-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 126b161bc3c99a6eaa5466cce9b7ae3824262b73b2502af2756e37c4f4d6725f
MD5 bb2b78beba8eb90a450b8cbc51890c6e
BLAKE2b-256 2d0ed8c9be3ea88e301ee80c11b4ae5c09a0d679ab514462f1a9160bf0ba93bc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.608-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.608-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4457145eb373fc5c64b25064eaedc7826cce742b4fc138a49398528b28a21ff9
MD5 6715c3259e616ccd05247515bd89f591
BLAKE2b-256 1205ed0b4236f13fa9c684ae4802f257aae2c12fc0fefc06e414a4e9509a6474

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.608-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ed49bcd2f236e1c5c0265eca6af2cd6a8e5daf618b5c894600b55233a191120
MD5 db25df401de40ffdde1d1ec091a237ed
BLAKE2b-256 fbc5a5d915720b5aa6565b85243d2c6581c54c5283bbab8d118cfa55d5d1dbd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.608-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0b85f5c5a0a3e66eb79396de5fad57af536a93fa831debf9771c0a59dbfd5d1a
MD5 9fc4ce8db91016ba1bcf4bcc8800cae9
BLAKE2b-256 386aa9f0ffa80eaae2a31f11719cd8c4f8c05a26e7d244943340771f63874a6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.608-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.608-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8564b3a006f8dbd0c9c7091ef96de1c9ccc3df218fc3a8fcaef96099c4904ad6
MD5 2568de0ab8b48732758c6aa72e49caf3
BLAKE2b-256 a70bbb6aeb10766eb2aa85d4a625a3873eedd8f06e4b1423de29e1de95a2e315

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.608-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.608-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fae3578474c91ffbdaf6b1aa02bca152baf7370f930a89f8d8ec9f8802c269b9
MD5 31867e156c63b56c3953ab811e1eb30d
BLAKE2b-256 0ae371dd59557ed2afcebb2cc19c9be15c49b92c438bfce65e92cf0a4ef97ab1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.608-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23af340552868112cd4dab8dfab2a9df8913df451383d7ae0cf8a576fb952cf3
MD5 b77640d4486af202513c3bd13c086d2e
BLAKE2b-256 0bbba62ae214c40f0055501c37452f001d677e1a531f05bb1213f49b86f84a39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.608-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.608-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b9401d46840a1ea508169485a584ee218c3f2da3961019b58e3a2b921e191531
MD5 b758d6a55585f04a5dd798d674303e8d
BLAKE2b-256 aaf8e8cf9a5462a0d7be3b2499b43e2403b4d83cb3bd0624aebfdf876e63b684

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.608-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.608-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6e8f87b6d4bd523694d2feaefbeb579c15378d03eeef96ff95c632b295e678d0
MD5 90f7b29f283976d4c84e21c89dc09af0
BLAKE2b-256 85cd2949e0e918d1228a01b122cc81cc51622c95f8d476c5315fd1d1ef7b486c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.608-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.608-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7631ca04c0fd4f4c7dd23fc6bdc24fb63302acb0ffb69960cf156641fca2350d
MD5 dd11e3acf1852d94c0d0edf5ec53486f
BLAKE2b-256 ffb3f256fe720108ec772ad106ffa2c95a40619ca85dfe6710a27daa47380f65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.608-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8eaab2bc76d70b70027b4cd77b12ccb41023e0cd8ef90047557f76910945c15d
MD5 499335817a6fb0faacdd17768742387c
BLAKE2b-256 c2bfef897e463e1ced2840e9328efbca25154fdb280633377645b0fa9522ef04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.608-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.608-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3b51cab955bfa726e1b55cd894073bd581a54e1c084ff7a0b1a2fc60f1a6b4e1
MD5 5eb4bccced05bab22701e750fd33c043
BLAKE2b-256 fec13eeddb03cf01469cf525a4c9aaf6868f9e5e143026b5ce03d137bbf6feaf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.608-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.608-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d851ed803a73a7e31c32b365fecc9c7fabc24a752e59d1be4abddd9120f6422d
MD5 26d450f09b340d2f8a00c9746e458f80
BLAKE2b-256 7210e1802b2158d653dc2f6520144142e9f593f77682fc05faa405855602aad8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.608-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.608-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 589b91cae630f66cf2eb91b12e863c2d042f31e4e33d7d2b823d500dfcfc908c
MD5 9f78fc44a34276d88d29ce8345b00ee2
BLAKE2b-256 245aff5900a2d9f30671306a2e89f0e7132ccb5ba1bd9b2a425acdc71253f4e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.608-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 325887f98fdb699476ab1f49ed8ea9403abb046e0b25619295981aa9b9ae52cd
MD5 6871e50f4700e04e2b717e836f4e6b2a
BLAKE2b-256 d8405aafaa3f2fa5be56d7fe2e87ea110c0fc4b0aea7198a78e02e0de42a0afe

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