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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.390-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.390-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.390-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.390-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 40c2050a5baf1e1e648bcf4cf5bfb37bea4325a16833a53909ec281d732b8149
MD5 1af5b8c831f339ac0cb3e6b6f203078e
BLAKE2b-256 f7a1cfb655b546a4b8baa92bcaa0ba2844c9002a430f0736866a07ba93979765

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.390-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.390-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 79255279d9bd4bfbd5a3a34c6562617767ca734c925a3797b3884d58dded35b1
MD5 9e73adb9891cbbb01207a846dcc577b4
BLAKE2b-256 a4b2167cd3df6dbc293267f65cdc150f1690782d5da9019225f43d988e4a3ad5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.390-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.390-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7bbfa6e92bd6a845448515f92dba70642bb2c382fe54ece117a3103e35094aa0
MD5 40d0b3eac8a158308005f17e15be2b43
BLAKE2b-256 05f343aca7a072b1773042c094bba23ac8d097b5cbcccdd360c712ebf798efea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.390-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6766cb9c94bdc4342f2eeb113286db76db2cfd5367d7df587ece258c34bf39a3
MD5 79403130789f203521cfabbbb87eb702
BLAKE2b-256 e6067f01e90a5dd56bc023c35aa1d3e082d07f848617d463c17a89ccb51c3f84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.390-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 60ec84cf43405318f7c22a396a388a687c8ae6dfb1bba05c8acfec9b3befe7ae
MD5 1aaac1318485c1b7bbc1ccc78c882e04
BLAKE2b-256 1c90afc6afdea6f1233eca25e575a4b121c6f4f424ea2ccec011333776f4f354

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.390-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.390-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 89a16c6fcda814186a7eff20da9e20c6bfa7fc381cb8f5401cbb92796f6ab545
MD5 313083672d01965e39e29678cff40a16
BLAKE2b-256 8cd33b0e9bfac5737da4a0f543c592cb87272dcdeb47ec2097033e4d244c1285

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.390-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.390-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4130f0b1a86a68744b414d81b5b547ab5c9d5aa352fe7b4cbff1b2b8f24042b2
MD5 7681dabf279fca41dd3571464a29aa97
BLAKE2b-256 cc55a0ee57d314c132b96762a1988f9fbfb1f05abf9efd954f0065457b7eb043

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.390-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9a3a7b56b8c081eecb3330a972ec5fdef6531f5d419a1752f8acd5690b39938
MD5 493c493e09ae2e4f2641c05569862cbb
BLAKE2b-256 29e1d13d472435379f9f0398bcbb17eb8cea30d9b0224619eb4079bc4bdaa70b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.390-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0abe599c4bb0849582dc4e5a8686a001e0466ff7f7abba47f187b649cdb7d3b3
MD5 1af1fa37cfe395fd45e7ebfd23bc7c61
BLAKE2b-256 91c06e275f8c48734e131c66d6875e28c9b204d8b223b73e6353e57d9db85ce8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.390-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.390-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 863a884febb3e416b33e11f5caa33b7a40ad6d4bd0a9bfa46ab40aba6f97fa6e
MD5 1df29d25dbc9fdde890d1a50e34112c5
BLAKE2b-256 c590909e79dd911476c36025d8a441662796e3f305bcc4ef76ef04af65716476

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.390-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.390-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3db990539b6ab19ba47ea81fb7137bc08094b64cb3948fd2e73f4f9d2157f9f9
MD5 3fad9c111cb83aaf5061dd0fe1950243
BLAKE2b-256 2502d06287d53f5534fd33e6bff93edf6105f2f32db9cea08138a70bd3aaee1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.390-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 84d097a0e364b1364dc6fb088fa14596d70966aba33e76f561a33da7f33ee58f
MD5 9fcecef8f94aaecb6b7e44196ba83842
BLAKE2b-256 4bea92f3d7aec93ebfcd2d2f7a9a8b1a4783aab867ccf3e94c7ef5b3815b2d98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.390-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.390-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3e9bbd12959bcf3fec10cf2fd987fba3eaf7a51edd5a7a55f0b9551f9ecc688e
MD5 69fb66b8ec748463e5a8c270c2e7f1a9
BLAKE2b-256 91938913304329d3fa2d93bff4cd26152c99bc2b519b099b5e38cbfdca1ac2f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.390-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.390-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ff7784f4644dba2f1bf1d60c8d116cf4b7984aed8e3601f9ffc91b2ce282c4b2
MD5 4131129cd719d662a7de1402e5744dd2
BLAKE2b-256 de7522776806092298a19a617317bbe6755e6f39e8ff8fcca6fff67fda172e48

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.390-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.390-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 251792430670280ccdacf21029d6141ea20c5ad3e1d8c404f8d3a423eb21a793
MD5 468b5aaa7d7b00df7893ccd5679779fb
BLAKE2b-256 8f44200446894f05dfb4152b614b60bd627aeba5c4719036ebbfa73afa9bef7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.390-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e945d28923828d4d973462c703ee05c82ec3cfa7abd727603dac82c7afe78d35
MD5 1b6dde0290d525512bcabef033a91a29
BLAKE2b-256 b12eb5c229d650adb65d471dbedd9270811f0a645fb82b172943419e613f8555

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.390-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.390-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 43521a94da5921d33002cf96c0e36c4dc28fe20b5715c9df9b05efc5eae1be04
MD5 48c1fdc0871d8f69eb76622fc719778f
BLAKE2b-256 40c50f881d2b6171e0db8718b3995a3997805fd17e56e952060708a7271eaf00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.390-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.390-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6ce48d233b81166639f500a26e42985aae577b6fb19a6cceed23d424b1234996
MD5 603810b7566a56ac7aa83b8f8d29c00e
BLAKE2b-256 9aceb0b4b8e2c25f133b79d43cb7901a15576736cbff158739558c1e07b79629

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.390-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.390-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 19f96d363fab25a5e18a55115f9fd9d8aac223ce55356b1851ceb0795dd6e6fa
MD5 8d70e5a34c5dc6829ad70d84b621ac02
BLAKE2b-256 d93b7e0093e2c0b91b6bd516d9601d8f534263647def3d2ae543e3aafe337240

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.390-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0cac84c0300c48709d4bac684d7c1ff9a9b57cec8e4f4fa031f7bd08b50883d9
MD5 7b9bc3cc4dc551545e0135f19b32ba79
BLAKE2b-256 bbb1c50bbe14428f70d6f995340df8c91d10b7f016521d994fa2e680469b5c55

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