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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.744-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.744-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.744-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.744-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8f229e8a1df236a923fc451b6b7ab34ad462cb72a36daaf906593ba82e1c2c24
MD5 28c886f6bb081c54d13f609ba7376ae1
BLAKE2b-256 0951af03da9415e2ed342406bb64ce852f88926d6aaefcecea949a237609ee30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.744-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.744-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3d8e5a1c27ffe9f0f8f1ffc90fc83fb3eab9381b18871a6813093c20ac31c6d8
MD5 5381b003585dd37138cd092952c7061c
BLAKE2b-256 f4eaa6481934dfb2629209a72b3c298614a02c7ee2a17bb80926264e46373234

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.744-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.744-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb38099cd3f025b51da71a36859435309c353b686b7e163b6e46a5459a1ef590
MD5 af2685245e96f5c667a75a7fe446ee0c
BLAKE2b-256 4a78cc6e417a39adfbdfd41a76ef779b0e8d91286f13bb6fa8309daa24ce0250

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.744-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20c3bf8b05279400acb39711e8482fcc14c4775adf769a272e75c85bafc09387
MD5 559de8ababaaa3872c85c764d1dde65b
BLAKE2b-256 e1a23f8661c2eafadaf912edfc647ec20342422739e2f76a309cb5b9d5bbe7ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.744-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 63675fdb73ebe6c15cc7528bf4912e182009339d22e3782ba0d807663c264ef3
MD5 a59d4eb6ce73d4d9691be2d5d6efc2b9
BLAKE2b-256 65ff85980f53cf0138635045d5535cb40c1375092e69a9497d68c6ee20fca18c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.744-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.744-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 de55377fb0e5594aaad442434e38a11fe008f05f060b408a7966f86428cf4351
MD5 836335c13e2b1e9c49c8d0e044bbc559
BLAKE2b-256 31b503d4299768f5aab9c9773424bacf079cd8b93f9f3d443ac5e4dd072cbdad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.744-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.744-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9b174867eb5afaa7d3be89fa7c6a4b3c439ad4bac053ab54604898c7f268e9f6
MD5 a4863fbaedfccf71ca01474872f42c3c
BLAKE2b-256 b1f6c865277d8c07dd7f5db00f7e35a3da0ab44c1b1166fe8805964d17b8270c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.744-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df278f290870c6b6ebd527cd21e403944087887607fdf6fb8821419ee17fd6d3
MD5 c735b624beef1f35d62fe66e77b8bcd3
BLAKE2b-256 aa68a4aa1c2d66cbf615b952bc5b0aeaf9982960ca1d72a02630f1214e5e1310

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.744-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 12ec76b20dc0465df9f5728cee6ab830f37324693dd7c6abd5f085217211741a
MD5 f38e2b71589c1fa527aee3a8a0e797e9
BLAKE2b-256 443a2a7ebcefce42d16c597569dba8f5453914a79a435d33f1787f100a2340ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.744-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.744-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1c23d463450ba14582af459f1b80ed13e1c3f95c06be8843d8c1a135cd9a4da7
MD5 137b8ef01f3ebcdac088ca8f5ee41a31
BLAKE2b-256 1d16e31306f569cb7013bdb64fd64703f214975d87e6bd5eb6838b07f552d5a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.744-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.744-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a48c4b7104ea672b1591f498b68c9c4a670de2402e2d21f6abc7af57f88b908f
MD5 8a8535ee7e0edd173152b3453aae7aa3
BLAKE2b-256 cdc7ea22febbbf7a52beb58d4fd1c5b0f68149bbeae7f9cd327d01e1b4021d05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.744-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20abbf3176b221df90c1dd714b9d51af04d8ccd7715f7015270f70fb61395529
MD5 f24a00b8bf25b61c51b49c2dfc26ad6f
BLAKE2b-256 80e65b85272ac1e8a573e4eee1007d320e6f03926354a2e2f2a1154ed67a56fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.744-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.744-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d696e2e2a74252385c50a63a07f8b89f88e3a8e5e15abaa0d8fc26624f3e4c20
MD5 514686e70d1ae2bbc8605a7e82a24e6e
BLAKE2b-256 5ef1d780caa28b60d6598c8030cf229ca78f9ccc59473e74a8e3aa8cf24bb323

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.744-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.744-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9cbf6c6365b9f93a43a3173ad8bee44ba1bcd3d60f16073c4905c79ed5f628a0
MD5 7348998a6e9ee27b7ef0fb7280fa4c5a
BLAKE2b-256 2cb4796c44b61552ea5cba0eaa3fbd1a81f0a1dac52f1a1c88b76fba39484e3a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.744-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.744-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 352ad709a3f6d19af2e69ae08a2bf07c471759d128b515a3fb4147c0d97b7a18
MD5 47549b24047f006bafdd93115e2cdda7
BLAKE2b-256 5057aa7f7106cfe00059ca5b61a26f0b47d23233ca60cad0c05026fb43c0777c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.744-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1e83ef3a7b88115d42af96b91081a73ba6d8aae06efa9576583e8fc94fb545a7
MD5 2b9794fd12adfc7622cd8d8fd08ee47b
BLAKE2b-256 5a80a52b348f2e598d90c15039e8226d1fbc290eaf6b05fbafd0f0a9b113da6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.744-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.744-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5ab35d86156e58bc5e716fa6491445bf3bc6fb31fd648817e59bf3ea14c37001
MD5 6e0155345b4c977a584a12aa33b38132
BLAKE2b-256 644ffcaa27ef1c7166710cd37a35d27030df615e385925dcbcf65d17247102d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.744-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.744-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8cc03ee99ddbedd9f5c8cced341b6b4f19e1cc6fd57c27969ed308bbdca12c46
MD5 35b367a5ecc3d57eb24ae13e1c6c009e
BLAKE2b-256 ffaeafc7f01212355deacc0f617249460524896cfc54706107ae2bb9e291a3e3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.744-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.744-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e5d0d5968be45e120d72cddaa30a4f64dc808dbb226210e3af31ee8496b6c6e0
MD5 f61908a6a61c2ed6aff6fcb94a86f721
BLAKE2b-256 50a9d1814c3c2f9ec3d0d0805dd8f67e33ac9e98274b283f3f549889fa4c0108

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.744-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 10c77dc9f2841b9f35d45c0639d981b8fea90c50c4c42b283cd51563f9dd16a1
MD5 fefed4a1afda009a8784a6a00464a5ea
BLAKE2b-256 818ace0461b40cd0ae2f95747ba534ad1c7ecf05049adff96453a5af14884c7f

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