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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.367-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.367-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.367-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.367-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.367-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bb349e02d4901342313a3bfbc21927508cdd3ed56d5b985640aec235c7ea7201
MD5 4c226278e424efa38979780b2e6e2f79
BLAKE2b-256 d032f0bb6a4e4c8024eb65163e9ce53803d4f33c165f653d637a0b7fac032c3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.367-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.367-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c2de061af4f559852fec1020cc2f44d9276993cd86bbcab549a42b4801749095
MD5 1166f1c1dd9c9dba6bc444ee5ad7ef1a
BLAKE2b-256 fcb5c9d237490502cc94759832ef6bbde93dffc4f288aeb5cf6a85377f757f3a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.367-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.367-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d8ea406c2188b8e603da63d89356bb025a4c7cfa9e70c2025af6de34a5522c34
MD5 ed9ffa742c05aec12bb5758064bffbc3
BLAKE2b-256 744ba4fb71f73f7cde5ca326aabaff5ed5d840a82f5738afde1fbcb739667b1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.367-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb5206577b4317cd2237d8d15ec93665418484fbd92e1025ee5b426d77e6bafc
MD5 d9adf8dc6131b4d51a5eb1cffd1003ed
BLAKE2b-256 90cc13e1aa63b4b2db0554299455b6327fe64f3432ac48bed747a042f4ab2a05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.367-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2b14c25ee418adbcc03dd06858b12752864239bf260304d7e919c2cd39d61574
MD5 d88825d5f0614bcc67c22317cc97e3f2
BLAKE2b-256 c7395c65f5ff5558a78ddfe1fb11c113c7273dfff10cda7151179faff18bc7eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.367-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.367-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fa875aed5516c1542d4cfd6e2c1a7d0ba5e4faf0c17b0274f8d2b04b6531e119
MD5 ff7525919214dd855aa9a7ca34841bb9
BLAKE2b-256 ea922e7bb2f27ad7e6b5e6d3122874b54b1bb04d35bda2f2deb780fd221a7402

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.367-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.367-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 51eb1449bef5a2d8fb24991a1bb3b8102264a498a5864e097144c69b5441bf57
MD5 35f46996ba4aa5f77583d1d80cab441b
BLAKE2b-256 2bce91284538886ec552d5a58385a5f308386b61287c90d51040f93cf4a00a84

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.367-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02866be6d576191687dcce1bd300ed266098eb9925845f8a2c76bb1a0d202d13
MD5 2a62e658c7d93a18b9b07ffd4e436bdd
BLAKE2b-256 b36e8ac8c978ea409fbfd4494239ea4ae592034799665d2dee01e4b2e60c13dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.367-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bc5044b5f65956596efc39729b40cdd001364d912d7d15b8134800effdd325a4
MD5 f2d90505867b98502b68334679e134db
BLAKE2b-256 1396d686e498ccdf648c36a33132a0f79bae4b397ffa40ab1dc2efbc659f14ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.367-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.367-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5d1c683553cf6294a2f85698b47cc45ede4387cebb17001a565e38fc7b270d76
MD5 0b041fd80cd9ecac1ef56a632af58461
BLAKE2b-256 f86851fd143188c619801692bf41068fbf3ebd54c27d30777cc43327be54d2ed

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.367-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.367-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8547c2db41fc833e990feabacb6c573c6db3f87104baae7c8f186cae313667d4
MD5 3d3197195e42afec765118ac8cf404ac
BLAKE2b-256 6df7285dc3a5b3308aca147eaa4c3a3a463a68048423ae5d254f1f24816f2ef9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.367-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eb61b37cc170f38a5fd3b7e36ba17486d6be84eb6e2f1183b78ee5cbe5a6aae7
MD5 4f91d6d9d9a45f01daf1eac55495917c
BLAKE2b-256 2b5b13bd2fdb47764ea4ff5176b2687a5b64f5dd5678a95d305c3e0cdad2c63b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.367-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.367-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4d66251952c13dad2539e77b394286d8be031be5c3e9ac902e8220ce7dc5ad8e
MD5 73c2034d4b2436f37aacb0d0b90fce46
BLAKE2b-256 7dd4173bf4914a0d905873f0df633f56cee27e9211eebd18d75012018dc455af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.367-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.367-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b5c054ec0f4158b9d8fde016f6ada0e3bb0dba731353e66bdefe98aaa60f3802
MD5 81d2dc43a49e7cc168d792b8fa6233f0
BLAKE2b-256 500417a7e4dc12d74bc1025e232ee3531b82d6530a978ed867c3034d4cad6203

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.367-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.367-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f3adcc0c7b87a0d0c4d1398205e0b0d543dfc79c790debbc7cf497937605799f
MD5 447efd8c26f3dcdd15fbec0e2d31dda9
BLAKE2b-256 eaf360032f4434f4a9b676ff62a207d1ce7148ed0fdf7d6f234d2027a409172a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.367-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 764324479829bf7d6fcd593717f96b32fe6cafc821f3b9a78519e5dc4b78e50c
MD5 533c5928f3665800badefcf3ce57db6e
BLAKE2b-256 3ce35c7d3f2f7def9ec0775639df3d31a1d0c76f5c9945b858b11908119a6dc6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.367-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.367-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aa9e3d103708ba010ad4e413b9312361508cbe0557d51ac35f34e126fe271f54
MD5 e9f5c8a58bf1aeab3e8c773dbe1ef709
BLAKE2b-256 1e60d03557932d8195c5b546a71d831c2e475b7201b964d2ef96f434999326d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.367-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.367-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 282f57e214d13569abc556915b57e5b5872426fb3634c46a929b5ad268d90995
MD5 8bcf14fb16f06d74f4f6638aa4dc9ea0
BLAKE2b-256 573b0187bce35ccdf2723708cfae60241f89d24e92914c1d9e685e04e9d1f0e6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.367-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.367-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 af1fee82722df3d7889b884def7cd3e95abfbe6f2dc3473ad1d3b4d38d413433
MD5 221154ebe3bf3361864b715c41a67a5d
BLAKE2b-256 044b8c95c9f3ad13d1ad65d47a0441473d07fbc31efa7310b065298b17b5f250

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.367-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82801b4b4a8d25dc5a30030bc3a4f8eeb3e3dae6dcbe9590ff02d6a8598b0229
MD5 dcbfec0ae6bfebf45d198e30bea25a35
BLAKE2b-256 2fb528b13bf72546808c68dd87ac9e340ee67e36d83ae99be8e55497ff606035

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