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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.970-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.970-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.970-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.970-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 95244a0d9b970361ceba0e728622ea24e99deb68467decd3019ae54431448e5f
MD5 ee9b29abb8c721425332a145ed4cadc8
BLAKE2b-256 a5e8602b65bf097bcc23488c8ea15cbe45fde0e50aae7f66f8085d5f92a8bc9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.970-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.970-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 55f8f95236be8bb67d6d0ec1d947c9e326da95ead959ed8e9666a1e62e6e44ed
MD5 9033e0e773f1897448379999ba87c767
BLAKE2b-256 9ef6ae5733a09f067117a718fbf6025f4fee109253d4a9edd96bd73b5191dc5c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.970-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.970-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e9bea455684d99375a6c86642c903874d796318a102056ade970e0860c654e0f
MD5 273159e98b8b6312259c7f82e068fb6e
BLAKE2b-256 8eece3e1772f2dc9242195fecad2c7a90ce522840cb50d44917c39f80d94bfb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.970-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5aac1a3d890c7ac2ddbd9b6c4c7b9d5ef13828a5cddcf8796a7c60a604d55634
MD5 2bffc46777b91ead12079d5838a2d8ba
BLAKE2b-256 4eab0b691b34cc97baf5d143b6fde9858d46df0e5798a3913e6ce5916fce61b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.970-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bd1c9fc82851718036e74f3f2c1bfb3a1e35bf79b96f66cb211dda42e3b916e7
MD5 67ebf9681c7f012a4cc9c03b3455a895
BLAKE2b-256 3c835e89e778447cb1d423a0b22ec67742c529c3b2a6dc0b39ad4d97a39da9a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.970-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.970-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a2a7845c5c588dc0f57db1f1f7d5d21bd81a7409e3aa25b1d1bf3d7947e44e48
MD5 94fd232391bb3efc35e7f01c44807bd5
BLAKE2b-256 18d6f33b75b856ba4bd95d6f56fc7bf2f3c14171181e9a3c09a0589ffe5f4485

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.970-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.970-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d9995bcd3b9d4cb65e44f2557e11cce8593b7841c6ce359140f1efc2b58d12cc
MD5 53dd112f244a4e5c7d11d8da89578a7e
BLAKE2b-256 746f766a5f114824163e6513e396ea03def8e2989f35de63044641e09653f3ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.970-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7da2dba99351c39c603203f64d6ed6b7447b96969d84f785bbac754946d35d45
MD5 2527631423570ef1232eea1cc9654c0f
BLAKE2b-256 b06e45ad1cd6a239f67276dfbdd45f06eed4cd444d47173d2e5d3f14baaf1f82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.970-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a04389748f7e7aaea9e22ffcf7728cd6628c107dd7203646b7f536cd6eb1b87b
MD5 b3cfb22100441f9d2c4de4a718110b2f
BLAKE2b-256 8f6d5554e11d3996d11280bf5c4f722d6223c1371bd23701f913cbb3406d93a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.970-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.970-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 441ad2aea8a04f1a1664df1d4020de594e26b7437c26d4de9ca9f09f984bc2b2
MD5 7489b3284e8cec20df5545a5e489d4d8
BLAKE2b-256 8ce7de4c3106efa2c36e1745e406949e4bec52aaa7a9e1502dab5689ead8bc08

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.970-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.970-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b69a635292bc18f760e8a471bda380c94d20fef0a06e0716f681ee5e71fabf18
MD5 456c61cc0174f42e00dd298d61aee9f1
BLAKE2b-256 f4bbf15ed9a999d4077ad0bc21f24b5c580e337c358f66e8108e95066465ec83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.970-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 54f77e0e06c0532a410bb3e7d6f7aa63aff33397018bad97fd48e0f8d837899f
MD5 dfe83be81b5c45aa9d77a1159d75cc26
BLAKE2b-256 44ea368891d27660f782219a7311c74abbc366c59e563b27113f98cc329cf138

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.970-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.970-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cc99a039681e0a4c727ed82890b332aa4fbedff263dae52719141ff490aba7f0
MD5 e0a705e76ad44a82894431dc2e813312
BLAKE2b-256 942637d0487c56fd631f92f53e18a0cf1d02e5f10d3e685ae74db5fa778b18a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.970-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.970-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 452156fc95182961d1a72af791f8a5b5606362a2b9cf36cb3e9f3b597f6c328b
MD5 a83e9135f5248e4ee15af7878ba9bfce
BLAKE2b-256 75d50e0cfcfe0c7ac47ab40b13eb4768f307f2332f6ad3b60366a98d07e19570

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.970-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.970-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 872b71d4ff2fc2984f4334a08d5e211f75f1302ecfea5bf3f5cd330e0873412f
MD5 94629a84972d51d24a17d13f84f4ffe5
BLAKE2b-256 5171d90616b6ef8935781a88190fdaf6f8f57473c0c6ce04b5a62c5e7524d769

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.970-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37dbe0099ea09e3321cf10b53bfd76dcc7e267822501cf0d92994ed9c33faba7
MD5 07a3889878e2034c7675c97c7d74ea5d
BLAKE2b-256 6ceb1fcf3afac0a717198b0ab4c00f0583a71c0ffddf9af28a75caa65bc07892

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.970-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.970-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d025e83f63bb7779f77c40d185bc1e2e4f47c3cdf85aa2c9d383cd2b0fc629d9
MD5 fcafa993adf40873a4da57b5b51791d7
BLAKE2b-256 c0f889427e1685097d061cfb50823ca9bfe66d9f43ff43427945dcf367389fe8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.970-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.970-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 2be46fefae9f58fd17e2651965e6e007a648d66a22c655ea50b9a3c28f27eddb
MD5 4dab342f5fc0abec53ad18349453b4dd
BLAKE2b-256 7b79329794098595b6b159642258afaa98f41bab72cb4962f02a29a1e977c107

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.970-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.970-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0ba2a747952c634ca565ad3f2c414636fc4d49c6e39cd53ab8fa46f7660d44c9
MD5 d9ebed36c7f28726c951156580258de4
BLAKE2b-256 ac75a973c6b26d36fe88e5116868fe7c4a5b35583d613ed88d2573382c92bd9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.970-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 245f0917bbdfa9ab8c7b048fff665933ae0ad0376bb8726afd8aa77797d611a1
MD5 f34c2b61d5b4b8c7ab934b800eb30507
BLAKE2b-256 e3a743ed813473e652981275cda674b06ebf23327188705d8c0d4ea59df6dd04

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