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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.404-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.404-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.404-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.404-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7e50a1f87b8b4170746c8ab0ff3591f99f59ab926c3fc93fe66a0c6e90185583
MD5 f95604928434faa83f9eba0cf9fa2bc1
BLAKE2b-256 76fc4a604bd8ebfcfcece08cfec0aebaf5a4973f3a3dccdde116e98a8efcd129

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.404-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.404-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 094f7947ef6cf05fce81c36a3dd0574b305e73e595f123e4ed7c3f0baaebd44b
MD5 d553e15981363d9b216c1cc0e00fea2a
BLAKE2b-256 affdc5243b87fc8360fb9504e6ebbed79e38eec545b3310f23e2c954845f1ea1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.404-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.404-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4725dce700b3f3bba2602cadc9bcaf2668b451451e2f245c7807c3cb248b8e36
MD5 be316004126be086a7b91fbf974d54db
BLAKE2b-256 37ff0d316a4d28882c5e5b0c1a1facebb1462b885c1bf97b0ee1e85b27015154

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.404-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0bda61746d368c32390944b6759509a0d7e8ea5871b154b63d83427f1bfadfcb
MD5 243a8f5cc85f2e48fa3033fdd7832e6c
BLAKE2b-256 d21eaaab66f6624e1d4d5ea0716247cd690cfe50d6c37050203b988db49fda91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.404-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c2e7403af9afff6494053ae30a7c4631fa89c99a1d46e1dc058605c3d497783d
MD5 fd86f3a642963fc78f89ae02eff7d844
BLAKE2b-256 95e6f452304cfe87d117320f7dc268c94908f4c96d40ddb48b286e0d3173ce7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.404-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.404-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 0d07ecc47b91cd3164d7d4c1b6df91b1b0ae73fef5e76712c0740d9d86505a78
MD5 0c0b239a6d3b1a1500a499404041f260
BLAKE2b-256 36b8df4aa000d6db629ec6e77941764652285af636ec4b7fad3eb24386c574e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.404-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.404-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 05df43bc324ec6084cae130c6477f4927cc83e1c8be0d8138bd37147e2b4bbe0
MD5 eb2c8e4b8d9a3eb08809f46c1a7b68b3
BLAKE2b-256 aa172ff97e5242267479192d6df28fc2d6a405b7b5672b0dbea5b2b01df9c559

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.404-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5060b0d0aa310bce65a1587f6453550ef5fbed225300e658a3b0f21fb8e55e45
MD5 eae8bb17f854ec6f57a1f2161de73eb0
BLAKE2b-256 0af3d1fd3cf49f6ae3dbf63e330c2d2c057f0327265d02e9231ddec19fe95535

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.404-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0aaa4616c6c921f2e29ea455f4754430eb4c21ae0cd4a222ab3233b63ee0f90b
MD5 d3cd3f3412efbacd5c45fe5e6a5f8e13
BLAKE2b-256 dd703dee7ea5274413dd9b2e25f3f1a27b983ca445b3425d789fa6f7a2a41f61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.404-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.404-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 abb51ef347185ee3433a06c1eb1fa1712d1733a5b3d636d87c926ddf27d688f7
MD5 58317a792a17b9d4e8b011e16d0d9a79
BLAKE2b-256 183c30b865405cba1debc7f937373b851e8f29d477261471126ea375de6c01f9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.404-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.404-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fdc29951f6f0d4d723338946af079ede6fdecf3031fe76b057487ac71d4e8af7
MD5 de9a9466c0969c65596ef12d250e81db
BLAKE2b-256 453c030cde8b89e6b2375b24a5056ef2d86a8ea20fbc993712c125f48490140f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.404-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf287dbdbdb120bbf3c2b7ab2247b745b7b59e61e1041be1478f466bce99a314
MD5 804e07fdeac6f1ecaa981e89316386fb
BLAKE2b-256 28e745a33468e6df7727d93855d835613e6987e863e980c9289679739b3dcf79

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.404-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.404-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3317a56fc48be335656d4352942e5554d524603d91eb2f03c8a0dbf75c30e366
MD5 260dbfccb80fe67c10707ec62daa4a89
BLAKE2b-256 2bd61e71bea042be1a2231c39368d2f69e1de89be273ba7f074c29746a7df0f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.404-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.404-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1e6a9695270e6675a91f7495db2162581496c6b25e5e632336f17105daaef1f4
MD5 635e1f38e759a806cefe34923ee1b59b
BLAKE2b-256 890c6492b01984e9826c303a300278dc3efd183a4da8ca5524b6ff410090d4d3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.404-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.404-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b37772a2211e47d3e12007e6cc42640f9bb145b3fcb8b2ec065ef070593eab03
MD5 d68aca2649884cc79df8d0af5e5c1552
BLAKE2b-256 0f1edd055fea871b47922246506deb9574972deb9f7d91d31cbdf6db13b2ec0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.404-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f21edb127837398a0e82a2c7b2a63432fc6cf339de4d181d81763b5d52452f8e
MD5 f1dee1c64a5059a726e35fb8440cf81f
BLAKE2b-256 85eb67892c1f27577700720e8358c7ace8593df9307190646051361693321aef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.404-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.404-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 05d3c445912bf68cf99997e309e877ae477982f128a66a4cf7209de100a6d8ca
MD5 a139b992cefc214bb8eabb5a477d90a6
BLAKE2b-256 05671363cddd3c79d82fd2c8a011b7c3a0cf6ad07990fdea0261343aa5b323b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.404-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.404-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 cc458792f28816bf2dd05f69d8cc5ce9126a2a29c6283324028068fddf4ee728
MD5 933b69a2baa5e6d7dc9c197c5209cbc6
BLAKE2b-256 0369ab1323ddeb1b5796ef615b045584a8d333d86cfa97318a0ad2a43d3babac

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.404-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.404-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6eceb117b1b06efaee2c183cbeacd3e3fed5e777a124d48dd6a37cc713127654
MD5 49947faa831d4c741d3c69ef78bcb2c3
BLAKE2b-256 10ac770452dc78bd8d57f59a1c41d281e7ac74c159a7d834f47e915fe88a976b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.404-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 905a4fdf10d916001f5f33334392d1e9f5853a0ddeea1f160df387db0a9dbdb6
MD5 fc2e2270f5552c5de16c7a2ec4f997d5
BLAKE2b-256 459d6a15c984f16aa08a9256a4c0722c22bb3f74e49c52efad6053ad8e6917f1

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