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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.847-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.847-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.847-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.847-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b64b01035730cd253a6036bbc3261e3d4ffbe474d0a8733e45c7eca8b8cf8142
MD5 3e2951fdcc1a2805a3f2e454dd133559
BLAKE2b-256 a5762d1a3cfcdaca8d6b2a08cd6c9b6bc9d292ca6b7d84e96ea1637c081952aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.847-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.847-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 611b5e6db7998f160c69136cc8ecdccbb4da9b40c5ce8e3e15522f8fccc81421
MD5 f559720070b77831ecda059acff24324
BLAKE2b-256 5ca20edf043cdd54e66d1c9fec603cf585cbc9adbd5010227e151d96ba171776

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.847-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.847-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 364eab1035434b1459510d26f7d5dcd4368f51d457d0829f3933954b474e36fa
MD5 f193f94e25f249a8efda87c5a0ebec7d
BLAKE2b-256 73ed84f916ec8aa8b88019822917389d0945a56c8afa93b48bd162c6902de204

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.847-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48b77ac13a020d97baf49551a09e41493eb82405c3de73e88f67404aecfa49f4
MD5 dad676ac1653a46e8d52bdd425d62758
BLAKE2b-256 dcdb7d5e0a06352f1356e67156151570d25caedb7efb5cba28e2feec2bd265bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.847-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 74493c7abfd9a9d36cf5537f343e3997bebe7e4561edf7148b2b77e437d20e87
MD5 10c4ca32079628d9e0dbea8ce45f4257
BLAKE2b-256 93c34904c984b8e67f2aaa5d5080baa0905640aec2faa8e2b6c05891cac83a77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.847-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.847-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 95b01c89f6e807c332cc1911d790b58413797bcccfc02cfb47b851de9e92625f
MD5 1de82da18fd602b0b392c0a582f1ce8b
BLAKE2b-256 5d26801b3ed57ef293eb00271f78b1d8678ab81b0ccd044fa9e2afce591264a1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.847-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.847-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b9b23fb2d8c7aedea37be9bb8134b9181a6565927e3f19d9ee5e958cc137f822
MD5 77c86bceb7e9b534366951085d42a98b
BLAKE2b-256 c71d86ce4b892c661e25c8df8430b774769d7ac645a1742b169836882056fc0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.847-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e14c8cd1e7d5a9deb93c89ea2658bc0d3172dcbebd52bc7dc98bcd17142befcf
MD5 a540283090c9c5815391dd94f3772ab9
BLAKE2b-256 12c4255d2cdcada62145b1d8fb8ef143a187fba19096e434b19f361380fe1a57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.847-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0eb4b4e140565a0ef61908a80ca4ef1be959f49cd5c918c726ee6f2960a98b45
MD5 ba641cc0696294738cdf42d53f4d7ee9
BLAKE2b-256 6293c65bee2bad56a7b7486ddbaf840cd5e55bc0985cbf01fee2ad2ed9c278a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.847-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.847-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4674fcd257d76aa444f0a6d382e7dec36586cbc78d9d5040fc0908c4520ee247
MD5 e8947a69dea628e62ac8dd931aba2b90
BLAKE2b-256 818fef67da527269a162697575a83adb60036924b02af408ae27c2df55b85578

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.847-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.847-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 def68c84a55074e34e14fe95574906d6bde0e0c34ca7f777dd1a81803c0143e6
MD5 651cd778612a9c98762f2915b9767e8e
BLAKE2b-256 1054fd779c922520478f85a1d675f34898645305f9c8073651d1744297443bb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.847-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 250ea970f6429c45dcda2f6404fda88f1ed296a31def5f55328e681307f5e74f
MD5 11cd43fb836cee95123d1116e2a5933f
BLAKE2b-256 39bd4644c89313636a69c60f202d6c243730b1f65d67305f23d72058c41cccc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.847-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.847-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3520966b1e7588db01ad621d60db41bca97a0c3f01531fd0947fa173fb9b9da8
MD5 7a1ef3c0dbc59b74c302dfab5d963cd7
BLAKE2b-256 d0aad9892ff1b9e3abaa4c2ebacdcb63439fbc59a75a1fb56ef7e4d26c557eda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.847-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.847-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 779ce7c8c159206aaded0ff5965c2191e1507d53543838ce81798920f2d31950
MD5 f440b178e1ce7faa4284c6bcfe1e1582
BLAKE2b-256 986e0b9b5a006f4dd3ee4d6bcff1f4dc7e18e06544177fa9ea3361da6cef7148

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.847-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.847-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e5a081a22aae2b53f8417f1938014fee14258c34ff86f093fb2709db749a2e7b
MD5 d4a6e4d428152e610d89b04ba7dc7970
BLAKE2b-256 a751b12f3665d71e32d85b54276205f322d964549bc64739c701b06774625c68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.847-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5d0b181a1f406c53b83060aafd102f2b8db04d78c9a22ef5b23fb54ed922a4a5
MD5 b96b90a061fc6f8269dfbb0159b58f7f
BLAKE2b-256 138cddf048c81858a4f0af6d74515001e96254a8596889803e514e4eab9268b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.847-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.847-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c3d5a7d62328d27940c6d2456412fb4e64f09298a41311e68aaccf392b4a88d7
MD5 9607ee86ed4ed413d554d1eebd1ab739
BLAKE2b-256 50399d5f0eefe7b2a15dd6e680dc9f3b0cbb4df8e690a614d0180c745fe7a549

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.847-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.847-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c3984d65e9cb7a16f29ede4d9503e08a31543e7e28047495fb99314c19c481fa
MD5 fa9cf5c267a60f188b164867d4e2cd67
BLAKE2b-256 3a796eab605f01e38b1b01d259063bcc0dc88b7d2fc1e0e4e6341fae99431a52

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.847-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.847-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c5cb0273892af14466199b1128abaaef483e213552ca57357ecc857381085e50
MD5 c51b4d81c47b7f610ed7f20f3902ec01
BLAKE2b-256 4dfe26fc9fa7e9a73ef5d785276da18b15ebdf2838001ada964003548b7898fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.847-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15925351fe85b32c9851b2bf3225e0d3e324eabb35026a437eee874507112b64
MD5 ae743894305d72165bba6309e33acfeb
BLAKE2b-256 0d2cf126373aca6fa68c5ec635ffb303d36b372964cef37b736fa5a48df23dc3

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