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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.2-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.2-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.2-cp311-cp311-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.2-cp310-cp310-win_amd64.whl (117.5 kB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.2-cp39-cp39-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.2-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.2-cp39-cp39-macosx_11_0_arm64.whl (119.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.2-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.2-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.2-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.2 kB
  • Tags: CPython 3.12, 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.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7ae8e491999fa25d41c09f876505017efeeebe141c5dcdbd1388afffecb2029f
MD5 beb581d03b55782dd8b2717bf7d406f7
BLAKE2b-256 156774f9ab5d289e26696ea171504b62f2373cb7f1d85aab49d92c45954fc5d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.2-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.2-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 69c9717f05b908b93b320acc0228376831a4e00bfe4eeba17d37976f9e338c33
MD5 757b4162f50c68e9ae441991587b963e
BLAKE2b-256 bdf79a560b8e9e326b3d099949a214ef645693e73a888165f1a09902f4cdcb60

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.2-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.2-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3e00c33d592a146bdfc4a726c846f4c7a574ee20bcf205a92cf693a902c3db0f
MD5 8d6a96308a2b2b1443b0ea9ef7ef5209
BLAKE2b-256 8b8b1ddb47d07cf69bf42120fdf0f2d92816fd5e94a168105d35313f849fc1c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66a77b9f7596800062fbd097eac4443f6dc42523415f143b59c5262fe11c4b21
MD5 f47514377bcfdca2668de7cb4d82022a
BLAKE2b-256 ec1ff59f5a802b9f9247577d6c1fa12b192b717d9ba71bbb19e9056347fd8893

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.11, 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.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3249b253fe34d18cb516d9305f3db81a4adce43506217d3040ac0dcc9c53d4f8
MD5 eea6879a525eafba5bcfe0ce6e6fa6d2
BLAKE2b-256 156120d30796ee1b6cdbe1fdb9ff693a63095362dcecc0dc181adefea15af2a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.2-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.2-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d020fdcc3885f54da1829f75f5f27c3be86676221b68e76efffb21c8e2e9f288
MD5 1d0e02c1288f10989d8ca3bfc9a6c146
BLAKE2b-256 56f29bb2b190b87a1e4fbb378cc473f0aa2df4dedbff61362fbbdd120014629d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.2-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.2-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9f1bc33b2872fd2dc067270a9f7bc3c844e747c7765ae445dc480e1a0ece4778
MD5 2ee9bba8ecfa330309d24a4bda441708
BLAKE2b-256 c998989394daf0901601530d4fd62d2917d2bc81834c73b6a056bc5c0d7374fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7492a08297f11743c7287fac78f46b8007b47cce82db941b1705ccbc124ce181
MD5 3446885f8e276ce53121258a0d6bed24
BLAKE2b-256 9e3d2c16ce0e13add153d8aa6c1b54190a6e2ce8eead42964724df55e316578b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.5 kB
  • Tags: CPython 3.10, 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.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7f0df9195487ffdc33661655db6bfac01e7b5c4cfb5dd3e409355b9d7cbb3c6a
MD5 8bfb21340d9c405d16e04bdcbc0b5d3a
BLAKE2b-256 5d600a8610b211eb702b17fffc91ba6f76863e2aa4a4def4446e0bba73339561

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.2-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.2-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7d6b4dba7165747cc712822753fa52746603d9791399269cdab2239ffd0b56c7
MD5 a1169cc9f0a83c37385d93ddbe3de191
BLAKE2b-256 f04ab024cffd32c315539ebd856d92bd5d877f5bd290d9e69957968f3b59fd5c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.2-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.2-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d54fc81346414449d1f3b57bdabbdcf57becaa9492e1e50d6e11031e728c53da
MD5 6fbd98ae93c88d1e01cbafc88adaca33
BLAKE2b-256 61c3a63050caac5cb47d58be4111161bd5f36021c8f8cc36011746af509edc2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7955d4a952a939e5c7a0abfc48ff5957df6b21b012eaf5db3e484471150b4173
MD5 3a22b5142126d2799936f14c366688b1
BLAKE2b-256 27beae7ec57b90225325b0887a5e0249c5e3f7dba58a4857b57e293bd3d687d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4723d886493e3ec1ba96fe8244bc992ab95827921b7700d9cd472b5db7c6e895
MD5 ce8f97dfaafbe64b6346605b0ea0acfb
BLAKE2b-256 20111798c5e8786fd1215a685809d962d42784422845682b3d46ee744367c5d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.2-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.2-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f7a094d3640625ff17d549da94510cbb947264b776814d19911ae943634a0b56
MD5 4210d3025554b74416e80b82252dda9a
BLAKE2b-256 962da0707b0d1cd3abbfc282e08200846fb89131bbb6100bd99089128b7ff7dd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.2-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.2-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b118b5b68e73e34d4496e74f6201b18f49528670121e92ee3c90ecb925590605
MD5 6fb52a8f87ffa67a09a723f1fb3ebd69
BLAKE2b-256 1cbace873780b51ac61db546438d297dfd4765995569521c02bcd79c9b482eea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eae14a72a5bf0a55bdbf5e56f90cf7cf6371de0ae55d641caf1ca437c45192ea
MD5 cd299a6bda84e8a1abda02d75600ea31
BLAKE2b-256 6a50c3dc1b6665c263e0771648a603662ac8f89fca0dc460e2cbe090acdeb3d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.2-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.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 137d3a3e3f6ed34aa61110e45bae1210e99e2307fc0d1a2a12eb9cee797d7a37
MD5 603c5d7eb8ccd93fdf62ceb4e5dc09aa
BLAKE2b-256 9eae2dcac5ba394bb92f3957c21798151997c3871d139a79cb8eb28d57c3b63b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.2-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.2-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3e717c32331db6309e223f71be5cb916bc5b5a5bbf97710a2d8802239f3558e1
MD5 c345a06209545a497e4eca690a50de7a
BLAKE2b-256 bec8c3f5c1e9c2ee4eeadbc8f44873d83ef6d49f5dcdbebdbf27297f1b453400

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.2-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.2-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 62ce1b3553e19e67137bfbb78030edede00f8b6d5395fe7557600d126b1c3d75
MD5 ac826994dd069e94b6e18d68d1a25b63
BLAKE2b-256 ee6553124a7cf0276827980d627c63804f92d3938f17ad7b927d43691976e71b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 309807aa2743901e6d4aff4acacfe12b269fa55a516ef6d37983f4a3636d04cb
MD5 1bd2500acb8b5fced9d152f2846c6546
BLAKE2b-256 15998b9ba15a85df2dc454bd4c23eb8af7e8fa68e38b7f961e33c4c111474d4e

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