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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.280-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.280-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.280-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.280-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bfa80001098fc50538395a29ec9e2d5c4da27d7c6bf74f48949196f2c7ca1adb
MD5 a5acf1a7a189674c91da6be32e0eb285
BLAKE2b-256 a4b239cccd05751d9ae68f7b3032c955c4347ceee24b50de487f6e4cef096dd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.280-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.280-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c029919e80b403f0c5a9f70f7e7a13d9fbcfedfc76d86c30e6a06681d5d2ab86
MD5 68d6b4559db20e76a9570a9fba398ec0
BLAKE2b-256 dad43acef07ef624f4d82974719af9244375a72be450aa31d059c50f0e5e1ec6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.280-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.280-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 02b09449308f7d1900af312cc5ca979d78194beb37378b764310159bb791a04a
MD5 85f8e56dfd24d200c7d9ae17989e93bb
BLAKE2b-256 070d41580233c1b8e88082510c1c672809a0dc3ec2d26646646708e58a625eaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.280-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 770677acd57e5093f85bbd518ad3daa9cfb738c2f4d29065975cbaee10f7ca60
MD5 d5881d97cf95f731b84434abb6600d49
BLAKE2b-256 89981194d55222fe4de3eff95540201f0307c9de67f6b172ce5f368eb794a03f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.280-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5ef6f23c56d3e8dc59ee9ffb10697459d9fe16565c62419a462baee59acbb920
MD5 2c514cd21141887f726cf6a5c1f953f7
BLAKE2b-256 eea06103f4d3ab13f15403651481309976eda9c8428d7672e55f1e5d03609b08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.280-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.280-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2c0f2e88332c52a2e4ad656f9c06a79fbbc52de88b841bce3be1547f6ab9fd91
MD5 ffbf7871c0b97dffeb630f566919e8d3
BLAKE2b-256 76d2ae61140d63bb2989db923c0f2cc5fe530fabe5cfa340d56ae5be5a60f266

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.280-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.280-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 766db94e7e98b3cb56391cf9ef150af271c352a1723182d76851dc7024567c65
MD5 db8f136ed51903fb082d3f5285f2661d
BLAKE2b-256 f0b1be1c3a8beaffc2ea3631dc46002fef087622c7ff751dea710045c0f926ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.280-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ccdcc31531a122343a2493b0d2a21bafeba073599d7afd045406b6b4544da36
MD5 c6191e2c12181064ca99e5c7f0c291ca
BLAKE2b-256 2349724a9e1934e27292f40b680e4cb74b71355d92d903067b77c2e338ef505e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.280-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a04163cda7925564df257abb93373af87d99821f20b92ef45a60627f6392670c
MD5 656b8eb70034883bc5fdd15f53525c97
BLAKE2b-256 4e5d6551c4c636b5e60e2ee540522a7d251a1ac93ab302702f504de1fe9bffbf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.280-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.280-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 85401c5110d9d71cd703b8a93de7bd6bd6dcfa355a6cc708ae506354cb39adee
MD5 fc5dd8bea8946cbd015c75d1fc44638f
BLAKE2b-256 b2d89ec72cd0a6d9919e7c528875fd8a833b50f8e70973eda21bea53ed00db55

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.280-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.280-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6938c351a6cfc937e683ed37ae1b5ecd9cc440ce65e2db518c8afa012a98c6e6
MD5 d3949fd23bc2abb247d28253f8ce6adf
BLAKE2b-256 49c50458abec2eb72aff673cf700c62d2b591c247b914fc4e7c3e761a6e51fe1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.280-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e829d1c14110e35953fccea0d83703383fe8428fcc49c5c28bf572ea2833168c
MD5 db51acb022bb91e34af046928bed3320
BLAKE2b-256 1727950ef6da88a436cf16b0a0365ddcc50372ed629d999cf9be4f5fb3425129

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.280-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.280-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6b993189474f103f14ebf67ac864f6d9870675ecb92534aeb1b9bad2c34507a5
MD5 b042c8f720cd8e289542c6c6910f303f
BLAKE2b-256 03f36f131a66001ef667e6f314a40720881aa135e721e9d47f6aafb8614104a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.280-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.280-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 21228a33f045266f6b04a2f5e1c138220d5432d8ddec0c5c047a20f99c789736
MD5 c47a9f59344955d99cd0c5fc4d6ec6e2
BLAKE2b-256 b14f2b6cda31ce196e4818e187c30fdacb905255925ff5e14681e9b7ac92fd54

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.280-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.280-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 39f8479027e0fe6319f6ca0fe8850ddc343b11a4e6650c7ac7d15a437a2b73d2
MD5 aaf0945388539a91105b62906186002c
BLAKE2b-256 31494020d78cc766fd3fb921fc8a44912c011cd76738ff93d6b08af04a5a85f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.280-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 58c3c889bb24a3786303e5fa76fde26b03447e767e1be89d5588b6fbe590d4e1
MD5 3b3eefe5d2fee6d6bcf4279b54f7753c
BLAKE2b-256 f67efa4b11abaaae5e9f7e40049da44dd63efc1875a78613b16331928bebf1c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.280-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.280-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1a78bb41f7dde8b2fcf445bb9a52cd0383cdf3f7697c9d1b73271d3f52bec7fe
MD5 59abacb1b1f738670a5d952276e242d0
BLAKE2b-256 2ed5d140f589e0205c2a2601e853c7c0f26ffe59f42fc64df4a60ee53be43597

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.280-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.280-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3f921e5ce3efd19d64a2d8a682cb312ce75fb32860d8d02764f3652b059a00ff
MD5 78937de57337f019ec4943006f0f8818
BLAKE2b-256 54c7f3c4bda1954e98301d686c88a3852e279a5a7e2617d0b4cda07c14f1ea81

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.280-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.280-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 21803bcd6b260278a31946d1c774a292feee340d0ff392cc4b30ff881d2285cb
MD5 a626a23969ed0e1a2fcb89f083ae511d
BLAKE2b-256 45528042f5cd60929a9c4d6a69ac8b3ace7c7ed5348fd450b0415e22300705ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.280-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e805f62ee22377c8ff802660729b4879ee165aa84132ccd9e7d45263bf78b5ab
MD5 0801087d65f5848d4dedba934dd2ecc1
BLAKE2b-256 494a2ede12160f2abbb447fada6571aaad384367aaf36fa75ef00ea6482e52ba

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