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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.67-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.67-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.67-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.67-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.67-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.67-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 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.67-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 92c41e44590ac99bfa98629e994421a1e4806fa61ab7430bdb63e812a8fdfb7c
MD5 3395ac7dc0395851a58fb1de885d27de
BLAKE2b-256 fc7251d28d00d58402b8bbe7d8fb8fdea8dec110d9d2dddc119a01824271d505

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.67-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.67-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 53c5d5cad88127cbd5750c253ac854a41d4f04f84822f1807bbe1d2e00b79a9d
MD5 02471325fb72d468f5b1d38ec93d95cc
BLAKE2b-256 bb587ca9dd9f5cbd360f81bae95cab52fd2caf07a978db8723dec4067d46d001

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.67-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.67-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ec62941b95b79cd6e20d4786852636dc248365af7727c51e47139374836bd879
MD5 c8fbf87c66d4c217ffde96641ed07022
BLAKE2b-256 0d01b7d2306fe69d857e11ef16db42c908e097e45202e4088638b64aa8d0daeb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.67-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54893c60c2ca6ec328f0f8f8b2745442db10153001bb691320eb7ce64cfcc54c
MD5 7af0932297aca2f78a00986961fb5078
BLAKE2b-256 0f29c77b463f29f9963720ad9ba6b842568f620ab2306f5dc01ca8a3cdeef2dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.67-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 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.67-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b8d74de6158620170a45e8982078b670016975fac653cf35b10d29fbe1405015
MD5 db48d78f72ec3e1d939b487b302239be
BLAKE2b-256 549846c9a8e906301958be92d5a7053806449359b1909000321566e982f1aeb1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.67-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.67-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f686317c0085ab0a7c9aeede089bdcf22c10ccc1771fbee75ac0f2345faf9591
MD5 338c33c07ca5e87e9952ce1c79fc893c
BLAKE2b-256 4f01b9d4297ed760dcbe4329deeb91bd3e1085880d40456626e53957bceddcff

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.67-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.67-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fe9874c8b4b6ba0e1effc59d7930c829743209f61f3f52ef8b4b27f46617a5ee
MD5 ccbec40a432ead1b8d90b2a986f27b09
BLAKE2b-256 062f2029df1d2eb045601448687f98462dd051a8454e8efb17ae9a6ee1046342

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.67-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ba7a36d35bff9f57255cd8c3e8c64720a875e2a90894c963f8ead9cd33752ba
MD5 f9bc6efde56402ced4330338e509b1ba
BLAKE2b-256 ca916ad519bad72b0ec417a9af4cde6946fc3524f43f0cc44a1ceba1f086a7a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.67-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 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.67-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ec0ec8a865520be67398bea87ed41f5e4536346245268483a3b90e489b34c652
MD5 38f0eaae913489110e7d77bac5b83b16
BLAKE2b-256 8af3aebcfa8f0fcd0d97506dd1d2b857a9581f5bf98b180b6acfa2428192a932

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.67-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.67-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7e01d149d0043d6d325fdfbdef82fe89d5013013d2c251e8e11ceb3fded4191e
MD5 ebaaa5c1f22a12314ffa1b41c2a8ec94
BLAKE2b-256 ea40ffd672a1d0b88c3562233d24e5208f05570e6e5342bc108dc8ad19c5507d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.67-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.67-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b8aabb374f1c1caed89098c111a8f48543a64415ec2b58db0fe70710e94aa0e1
MD5 6e938caaac7476f7f238e7697c71c943
BLAKE2b-256 6634b50c0744062a42754f0e9897bb6368185527ed4b35213894a2bedb397d49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.67-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5667e5cd59e5cb5e59d382ea73212031858cc1a06f9c69dca11c04060ed76729
MD5 49b4044d624a58a3e65d288f5435c2ae
BLAKE2b-256 260d7717665ef311579cf8d6621601173790c529ae2e2bfd1d888b79df9573d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.67-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.67-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a5d909ff0f0c5ad5e25436c71f7f93cfd7dad0a29593bf4c983bfd3b6c4084c2
MD5 e0c9595ff6e4a808b5ccaf25e19317a8
BLAKE2b-256 d479f3a053f1c0a40d07892734fc4b61cb422165bce2f76679eb14165e4e365e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.67-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.67-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 218c0a80525d7698ce13eaac1cb75ad4d137f79d01a45cfad0f973666734d286
MD5 0cc870339a0cfc52ae0f2253c0e76a09
BLAKE2b-256 f34a91a1af0118d8eca2c112a68cde35bdc1933c5a4de2d81778fb5ab2aad3d4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.67-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.67-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 673db929af33b581f84820c0032a85b0628915b2c7ebc7da3f002c4e2f421696
MD5 6e85e1bc53a07e843e83a9d9133d4c19
BLAKE2b-256 57f2d8dd1ab2e85473e38f76a2b14afe89e016afbf57197bb7b5d2c0bb6ffbc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.67-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ebdae06d3485e5583c8611f1568d556a2f43ca45e2537e33a072381d2e59325
MD5 a622ea7b62a39f3a600789a74a053258
BLAKE2b-256 8858d4b05a84feafb4ce201cc037ed5c5196b515e367b97b0a01dfda149edd60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.67-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.67-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e035e638fc49ede9dd4638dddd8b5738a587bacbff3d35806c028bf5b8d079ae
MD5 cbd29959fc973125758363c76f0b9d69
BLAKE2b-256 4d16f50d0dc3a30fc6224a44c39e54c57211b0651c25597da446ed5ece93f580

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.67-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.67-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b9b8465ac203d2d77d906a537af948796e3deb9726ca9e7e1a38339cc3daa030
MD5 89e22dc4aa40a1caca5e049135d9c383
BLAKE2b-256 c92971ba57f3413b1652d5b6cdddb4c9acb9283a102db613a5e83a4b33031f48

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.67-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.67-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 141653785b90c5d2a3e439317c387ec0fec7777049cc0b85db60254e6c1b7cce
MD5 4546c4ae2ba2bb4cb60d939ad5551f5e
BLAKE2b-256 712c32ba0cc4c33d723158d19df73606d42919bff004241fd18f80086f06e3d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.67-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6524238cbc6ea7eb802113773aa649c9eeb060f5ba4536ba49107a109c5f7f69
MD5 7542da8c8a10dbf3e80d785d5d94b0f1
BLAKE2b-256 b25d14b0e09063fa2edc3b6b671a4adfa70bef1d603ebdd096f3b10a9fc5425f

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