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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.663-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.663-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.663-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.663-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ed19cf7ed6e63c2947dd8c93795df21cac0e84260be905f6b46a8443784af241
MD5 fc7f511fa62a3487b6290aeb6f1c97cc
BLAKE2b-256 83eb0a71ffa9e321a42478a0258edadc40bb10cd668710bdfdbd96367eb40dac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.663-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.663-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c07587976d174a805c7b853348ef8e06d28d4a7e14f8f2971614a62f11efdd27
MD5 6200162a441eb224523312a7711b36dd
BLAKE2b-256 63755f548d4d68449d0a8be4b79d362baab1891da58c9c973ad26fd01873ee37

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.663-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.663-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2a2d82994f347e3c61dad841a6eeed745fe032dc2660e7ee4e59ca17c7905753
MD5 55b503397a591b4544f562b414d6eedc
BLAKE2b-256 153e03e6b0d7056cb2ce2ce8deb4b85fc5f4e00a0eb485654d038360e9d7e862

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.663-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbd292b6977a88d755f9e0e510b76265e63944a66d29217842c66e43bab00bde
MD5 b77b4328762debd4b406518cad09cc4e
BLAKE2b-256 0447780714e97a0ff6aa33480b7f36d717c0fcc69e5765c6bd0d85b6258780c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.663-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 15360a4fa0f598f3fe75439d589dd5e6241fa4cb9fd5d14f21c51dca686dcd66
MD5 41b13e199c4c4a462378a3699b231df3
BLAKE2b-256 dc0bf019a0f131f07193af0e779c2ef35a014352930d187d11bf2b673c9ec106

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.663-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.663-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 600eb64bdc38dd7cb338172ce9064e2fb9efa9bc7537cb1235fd5c3d1f075d28
MD5 0b0b6bfe57994df38444cded37b5caeb
BLAKE2b-256 72ac6c0d053c693873a5b51a94371af2def987a656a011a6c96a6d9f081ce1e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.663-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.663-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e6e03d99d739ef2a9a3250c091583d1be282c95a59430f6fdec2ebd82b4ffd79
MD5 276d44705c0541d40a21b7b5075c0464
BLAKE2b-256 c4a1d09a07a8a49560a17b8913d045b7022b7b40cebeb13d26e6a8c47d48baae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.663-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8178e279c93b2d6d8be62776b9974a9cfd981d328ced1d1e130b1d14065a929
MD5 6a63a5dc0ecbcd8b7e39003b35272903
BLAKE2b-256 4c7da3b658a78fda6363db9dd5da3bf6052748d436947dd250a48c0ac7e5c179

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.663-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5044fa7d257f2e55b4ee8a78be34e887465ce90f385da21535378051efefa365
MD5 ebb6daa52b5c82fd02d3312c76a5a920
BLAKE2b-256 32538c6ee331d472a853fabd3af0fd3b44564d77ab8b3652c7accfe3b80bc34c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.663-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.663-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 78aa0dfe1c93d596c3ec123bf1300b677f55bc9686f62ecdffd325284b57ccda
MD5 54de348c057c8e3849f9d464faf6ba84
BLAKE2b-256 8064ce6313630bb18e5531d57d40a52fe5956f3179293c2e3d5ebb4335fab022

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.663-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.663-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3ea377921ec843b7d5f2ae3c72395728c26e16e97a93eccda474c34951c65514
MD5 62368ea3aabd1f9a0480b1ea7cc4ed2d
BLAKE2b-256 8e5d4c6b298dcfb86e6d518217d5795540f9d8228895d3ebcdbe93a3e971bb11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.663-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 05d313af27580c87f0fd5f53b3d763d25af35d344c8fa3bcd2a68ff89f419e78
MD5 ec9bb5523c1ea7a7238f589049233aa8
BLAKE2b-256 77ef7707e6e5e85b8499fe2ba68f33dffdc878dd976ec7d00e59702040a97235

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.663-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.663-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7a8d2a7bd91792c12073f7815eba2e6176db4e5182bcd292727efa1927b493e2
MD5 9bd38f8bd7725a6e5d46507870cd9614
BLAKE2b-256 6cdee67cfa415bca01a69a25af6f443bfe8c9ae2e037f544a18ce4bf918187f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.663-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.663-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ea2f8ac509f741840df08a437f1908c61b8d1396084694b673ebde0891505757
MD5 55d2327c650540637476502ee63ce5bd
BLAKE2b-256 89badbcf7c1e5dc22caff658934b4e73b8ee92e86791f929a42a4711f07e89a8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.663-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.663-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 31db96bae8ca62917ce019244f9f457d434fd391247b0d49f10570de4e4e2644
MD5 118416a91a1c5e3338b9fea9fe6869d3
BLAKE2b-256 fb9a979f9fc5446acd699d8d909142a588d32a0799a3f1615384001a805e489f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.663-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 65a5eee04e4e29a6630a14aff5631c7f807c405d562bf7811927452f37a1fb2b
MD5 d90637916f9cd67c7a39d04f90c22f11
BLAKE2b-256 3fbbd3c2b29a235cd453f0b1ca0d7811bf2b9c10acf0ca510e50bc2437d0e559

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.663-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.663-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c4bec5b19609018e41c83098c13b5404c0829ec37bc6fd8486c62d144e4c4d4f
MD5 9ce711ee6b74d60760e4dc9e00dc2c23
BLAKE2b-256 dac027e4d621de0b979bb7155543422a2a66898ceca338d9d6c1d30d5ccd98c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.663-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.663-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2c7605510cd8b6ffb24c4d5220460144fb353c05fb2af2cd197fbbf944a8f8cb
MD5 a22cf056bcb6bcfdccf8cdfdb80d5155
BLAKE2b-256 4deb1a994f9fb8757a1b9c1a91d21ae1d61bacdc939f10212c7abcc919671f36

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.663-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.663-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c32ab5d8362c7410501981d66e09c834b314906a220268e4c5ddbb4c769f11e5
MD5 5d41297d09db38187d81f2af50dc662d
BLAKE2b-256 85fa954661cddeef4b0ed9ada6d51e0cd1d9dbd021e9349528844114804c9adc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.663-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a7e48af4cc84e91c863409e7934b9dc1e554ec67ce59be628180154a0477caf
MD5 86a9b196be40cfabcc0739796cb23722
BLAKE2b-256 0c160825f1d34c40a4b798687f13f3327a7beb0f8c4f120350e36331d37f42dd

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