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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.214-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.214-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.214-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.214-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3c0097fa9bf34f093549c9f76d2ffd7e15b5b07ecb7d8dc474db504bc759d636
MD5 12e09cfed82e2cbafa14af47ad2626e6
BLAKE2b-256 23950323f5605df49a912ae0f06d636b8fcfd304b084b0cfa4a058695523b235

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.214-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.214-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0501f14afbab1a9fe41138d5102f741e793d13ca110ee3e6a0dfd2c047f39635
MD5 a3f4a6f5ae20a5ae0f6cc408cd3ac95d
BLAKE2b-256 0066961bbc2416947bd09263af2fe57e5fbf77c1df65d53efef06327cf97a059

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.214-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.214-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 23564730bf1c974c99a3fdf3cf858e4cc22340fa8e76221432373413cd3ef790
MD5 11076cf78a8332d0a89518352851f363
BLAKE2b-256 085790bd7ec511cf6300aef25742e076b7604af85058bfa9a2ddecb0ab3d169f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.214-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ebe762f6b0df93dc999dc603e86902535dd5ede0e79aeb8d572c32a382433d4
MD5 740aa3411c1e35660d2a35ce41b7e632
BLAKE2b-256 ff6b96ae1d7c891d98f45acc76947c161ce57c762c8ed033cf6911f584f0127e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.214-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1f2e18408014df1cdcde39a84d24c34ab8ac0d97fa2e2a623860529a205067f2
MD5 89c3bd9d3ecf88bc013bed595913d6de
BLAKE2b-256 d7f8b88b23327fdf2b811a59a148755fdbe090d8aed9bccdd32d0a3310626213

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.214-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.214-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 eb07dbd96f09b68c956bd2af75f7a3568cca9777712d479774927feaadab41c3
MD5 6575f265c8581cafbbe45d9026167d77
BLAKE2b-256 a5a4cc4240f367656cdc11a7272b800985f8a31330f7b6fbd8c66bdf0a206810

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.214-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.214-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a88f134acbe400f4b084f9b11c3efefdc14312ac99612ef3d0637dff60bd848c
MD5 475bcf068089e5a17d955508731b2fbe
BLAKE2b-256 d6e4dde2a30c7fdfcc1681dc719ed503d0b0fc56d493aee9f076c4e425b811cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.214-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19c5401d18c6aca51119ae2a9fefd9e048a10bbd74664518c1dac47bedaa10e1
MD5 e2eef9e4dcd12b1650a869bcd9439e1d
BLAKE2b-256 0b2f1e28bee01ce8691b6df4a623502a1d681d6b98a8f4983e92d310c41e8a5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.214-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e5c69b01d91a738cbb9359eed6c0a11ab5782edcdd1b7a4fd087e5ff42264f55
MD5 779e90e36c0db4f7792acced91274ee5
BLAKE2b-256 1aa44b9062c2e8694c5c91fcea5d620ec5c26ed33795c5ee505d2c099861a5f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.214-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.214-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f87ec96848c741c854acf4a86fab889e7beb629fa59c8b24302a7deb5285857c
MD5 a20d14bcc16122762f85ff7eead8b16d
BLAKE2b-256 883116b79139b02d20fa156d49d6dbf7252809e61fd7b6a4d8bc341124292819

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.214-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.214-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a9d6e177f1c660c886bc3eff328630bbd5c241a658008a846e28686815b2da0f
MD5 4f7bf4bb4fdd63fea5875b8255b3e592
BLAKE2b-256 e2d16d082b0f19f44347d38944b784b942048b078819407b867075a6f1aefd31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.214-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8316445f4391f88b2f9bac56cd5bb26062df8b8baa0e58d37eb5d09ba86ba75
MD5 7c3c6b10e796cf10a8a605c2349a808b
BLAKE2b-256 eab3f85d9ea12a06ca3e5c13808bda610a5ed3bc1a5e57dea6779caa38529924

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.214-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.214-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 859822ae207859d09e77182d8d955d6e755a354c7c2b8bbe07218fd69c0b18e9
MD5 cada57a898ab3adf4a489bfaf4a7c238
BLAKE2b-256 856480c553e3aeef2c7a9bca0260d587f275e314ab75863c1f08171fcf5b0ad0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.214-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.214-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2d0abebff3d19a09a883a1a65bfe4141aa3cdd5e0496bd79f0b9fb839ee60b92
MD5 542d4991a934a02e9be8da196b5c76d9
BLAKE2b-256 3aa1be0bf7c4f12be7fe6b5798610e21513c5e8cbeeb64284778d3783c12c40a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.214-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.214-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6996e16b5eb62480adb33680bbd2bfb25492ced7ab1cbd5afc76c555c8611d4b
MD5 76f1d2cf10dd60ca56259b8c57abeba0
BLAKE2b-256 2defca4ee6abc4928b08eb3e487e6a5170cc602391cc3ba645e711ff5c070505

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.214-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6a60dff5dbde7c992d6095d53122965b2d6615f31a96a6169777c75ac4cf07c
MD5 edd56f8716991a947637e5d1af5ec457
BLAKE2b-256 aa4a4f8f645a57c50d0f4709354d6a0e8e30f0d61d8183fc4b4b9a50bdd54671

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.214-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.214-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ea7ebb7887f04935b807835d43f6e65221e3da55cead6ce0005c773ee5930ffd
MD5 2a037e67a9ba91970678d8dba3a2e111
BLAKE2b-256 c13b7d215d4fa42f9625471f27f72f3d6946b6601ec2660d342cf9eaed306c00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.214-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.214-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 71d54e9cb1b238f3522c6efdc9949d840a499b266516a3cc32fd03e366b1c00e
MD5 90824acfabe7fff12df7711c0efc6ae3
BLAKE2b-256 8a705a06a936246f9b9e22104ee92f7dc88f0905b3a9b043952c866f68b264b9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.214-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.214-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88926c1ae6698943a3debf504456b50d79b43fc446375499ba5971b6bc6aca89
MD5 c5d389c763801939946e6f171c8cd204
BLAKE2b-256 d93074f840bfc8faf516ad16f4cb6e45efcdcaa64c2ea0c144b492a5bd9d3cf0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.214-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f30e03a78f9796f938e11304ebe6ec10ce13e0da59dd6f1d973a3b76d6d538e0
MD5 8f634906833f1667c2a2570564392c1a
BLAKE2b-256 9beb32d9680edf9ca0d32caae812f7d90ff56e59f19c036c70771484e75fbc83

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