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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.527-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.527-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.527-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.527-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 86d6a56bcb55dc59805ba4f55e91a45ace5f5bafbc108df1a9894d18c0f4871e
MD5 8ec322b78beda94721baa8817f705dfa
BLAKE2b-256 f64664bd7f6887a65b1f9775e21823ff9a7bd27917aeec2893c7151e3e18f469

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.527-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.527-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6a2f622e85b33262f1487702b26dde7d64286a1a967d9165f7ccfdd74782ea6b
MD5 cc18084be8200f427814f21ac62c49e2
BLAKE2b-256 f4131879ece57c57c453b22b2a33c445afe6ab24e3e8ae77021df43072f50ad8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.527-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.527-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 187587df8d61554d0ce6851bc5d432c2dc4a7e3cc229d26ff5d1b42b10b8cbfb
MD5 06ed3723441536b53ec61ed33559f810
BLAKE2b-256 d7dc35e54eae3cbe4e52159d40b70355d1e7680b56ed369bd2afe92389af35d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.527-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 10f91db6bec54f49b159c595d02b053e48072b5fc4567104594e351413d1d519
MD5 bbef19335ffd19bdce8abc7e804a0f6a
BLAKE2b-256 40e79aec23973125c9c0d7574c8436424f1072a1786f156386b4295447196029

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.527-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e486df68f21e71c232386ce0759f1c783fe35fca5c9109bc6b8097f837c645db
MD5 f372067391a3405220a475b3a9cca2cf
BLAKE2b-256 5454ede991c3e87dd627baa9f640836717a3ec4b9003ffe1651a0082122ad9ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.527-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.527-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4734caf73c121a800350de2bfed8d43cbd9d1d1710684f284649223608a59624
MD5 9d9a31c9e17897b578bb18e2e0960690
BLAKE2b-256 eb138ad2e09d1991d67319fc4f8b238a45732a368c7e85a76c26bcfa4b17eb5c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.527-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.527-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ef0133bc0a4003d387f29abd3bb726ef93f2707151ca7baffc82b0ca2e9fa162
MD5 23e435adb47de6838cd005b1a242950f
BLAKE2b-256 52ebb14f684677b53d0b07c65e065496d979038b7de6fec8842320df9f1e21cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.527-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11f6b238e66e2a1e828a3cb57cc92934052b4256ac598fb35f7560f443ba3325
MD5 542466a13b9fad95279f472e045fd42c
BLAKE2b-256 9490de5c6602b9b22a898e3baaf2190c1fadc3e30777ff51fd37eb85707d56a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.527-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 eb782f2622133acc21fcfbc3f4e58bbcaad061ddd149bd8c6157a9fa1c2dce6f
MD5 850ff3833697f3c448586a3f8142b0df
BLAKE2b-256 d1620b3ba859eca0fb924fc2876033163f1fcbf75a70f4e2301bdd341c2534e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.527-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.527-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 008881ad0a26f23bf937e4540f356c173277007648b6fa651dd0af91e96fd10c
MD5 2de5dbf422dde64eacfe73dba2489240
BLAKE2b-256 0f2437166f90b83bf024e57cda8145901175e35ad2a44c6b94856649da9cea86

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.527-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.527-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7788e0924057da3d4461a49c7c45ffc590bc897af3e88e6e667c8d4fdce5c488
MD5 71a96428f712b2f225247d3f14e13318
BLAKE2b-256 a5724de3f6816fac1d4e6c68a589585ccaac6d7a9baec4d0bbdd318db3e0ef17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.527-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1875444cebfa4cc36f146f6e384961bcfe62ce5461baa831b3cc54bd3886943b
MD5 a9e65854b9f8086eb82b3bf8be5053dc
BLAKE2b-256 03bc3e68aea5943b59a4fae9527a7c3b090672d81c078e252f6bad0b4175e572

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.527-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.527-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 59fdf37a461ef11f64904df1f1166dd40645e7a844fce3992faecd6c2b702976
MD5 2b10f323f4e81a5a6c3878f359a43b47
BLAKE2b-256 96115f6a882da107344c8a6ceac2065d0afb6a697c2676916b60a8d6db370914

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.527-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.527-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 31e502366ee8c12dfa9d8200e88982f0aee7659a34a27b3d83b510c035418c58
MD5 a80eaaf881f1f09abd1f2d613561160a
BLAKE2b-256 e1b4cb0f559b93a33b7e31f142518aa20d184439293df48a90d93d178abe52c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.527-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.527-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 29a57f8fc81252a9f3519de58b3c0f8d2b3ac611f9695362d3b5f1ee33c51b12
MD5 3dd9e922013c09be78cd8d20a6bbe49f
BLAKE2b-256 82dfb5a2a4be6f0fc64bd4a4325ca9fc6ca26185d246843269a218a558571c77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.527-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfa8c8083fc07de67a69ff468bee34a1741a413d7c01d9b881c9e1ecfb8bd533
MD5 62a3261f3dd7fb72463710acf6d604cb
BLAKE2b-256 adf7d211852e59d865901a8dfda47f308dc9949e995246ba98614965362c4610

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.527-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.527-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 095bddc4f22eb85187fb1b76b98050872749da65bb33a4f175db40de38b6880a
MD5 1b08aceb8e93f487475633716d2d76e5
BLAKE2b-256 972ae51e6a01c402853882449d4004dcfcc92d2260002c3525ba7099b1775274

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.527-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.527-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 0c4d0175dbd62cd96cb795cfe1ac3ad0183f1ef00c8256a16373742dd1db3cfd
MD5 e829f727a630c6017a859313e41c5362
BLAKE2b-256 68e4c20ca9eec3781d2cc2b3dccc3c11340b3985157425867f89fa7f9de31ce3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.527-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.527-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb4575f86780b00b2cdef4c770a375bb831a6c3707dde3d8656f5c97c86922a7
MD5 d59951e0783e45bd6f3fcbe1783aa481
BLAKE2b-256 7ef694c88247c67e67300311643d450832595afbaf9dfde4078609fd012fc344

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.527-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9790b2b1b7088c5cae1874ebfd6a362e0114289f763aa43e6b88774dbfd82d4
MD5 503230389abb006a21c1d5dc0716d75f
BLAKE2b-256 67d1f40bc4e4e07913a82b65d0718a765ce5e5d6537c26ee6c23fd1c6ffeb4d9

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