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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.521-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.521-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.521-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.521-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 58f72fa81b6e9c2c8d9a4eb41304f71a499539dc8b19887a2ed0d04ec09ab790
MD5 2474b260986a5f195ecb1b5095a560de
BLAKE2b-256 11007be846a7d584bd818a2e4ae1daa5f01392e1d5cd735638222049e8dda998

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.521-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.521-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 becdf2f92fdc73c745fe6ab01fa5e637c38c0c5608cdca3a7d37a50a1af3e2c0
MD5 29e103bb3128fd05c3b6aa9523c5637b
BLAKE2b-256 d227d7748941c775fab26c82119051b27557f8812a2eee6410878c6a58a5cf7d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.521-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.521-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 da3163dec1e8c39ce09725bd54dd0884354483e168c7995642bbd13add3b329d
MD5 cdac4791f58659e8fe386a326ada2dcc
BLAKE2b-256 4577cd63150bcffd1565ce863dde39a778834709f44950c1f8be3ea62f92859f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.521-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b84d618e7afaadefe0f9a538cba2fcc3470c1e4c1542fa281de0eb14ea76aaa
MD5 2fc64be2280d6b3310d767b2c5077e1b
BLAKE2b-256 3f520e7ff5abae5fff550d2f03ecc2d8b110ba5a3da6999eddc26beb6a37e890

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.521-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0b62b8cf7a91141d665cc22de2e7666d100e744f2a4e94dbadc8fad975edbc5b
MD5 44f71d40223f655cf6c9049260158941
BLAKE2b-256 1e9c5de1e572a4da9f0a5c11470c130020b47c430684dbe24950048cd3e21ec1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.521-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.521-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b2926656d884828b3fab06a3a0addd5be88366dcc939c436e8478e5762714f4f
MD5 4dde1b81d4320c3cbe84b10c34aefa2e
BLAKE2b-256 19f9f8a9c0a1143470f199eeec6f65632635cd6fa9938e49de8404e41be73ac2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.521-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.521-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 09d8b005e7b26f27b324b9615e36ccc473b11ed6ea032d2b7af77260fb1f439c
MD5 be74744530bf87e140b67a6acd846baa
BLAKE2b-256 afd6d5e5a56f40611d7a826d742f97d1900784935c9168a3d4b9bcb019b5ff20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.521-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 707f5c7562c55bb506e427166afc3cd07a4429f7c6fef308346e545426104a85
MD5 d764db326c2e466c23351588ecf60cfc
BLAKE2b-256 07f4cf7b5027ae2842e80c30715c1d63a75345ccefea64d295383ece89bf6b3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.521-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 31928eb8088049e1d944486e6fdf10769f4c146fe9d4da6e9a27d4659eb8e932
MD5 df9ecb13fbebac5485511cf28b4cb8d3
BLAKE2b-256 6a704b365c6febe1e3d0ae5ecd65bab4201bb3a1324e965c9373e2f3c029fa16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.521-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.521-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a2bc63be8823a0e8458acd9db5f4e37414d7f2ded45b519622dae93d8ab9592a
MD5 19481283e76924cc456ec0244f8230af
BLAKE2b-256 e8e64114d58800ab4f2402990a0835c1290e0629167bfaa24ea9ae8038197c5e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.521-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.521-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8a9aa35c467f2e3b2d698d9208dbf18dea9d702bc3bdba3443806016d06d08a0
MD5 1567e1b317ba18bed7380797523b6f31
BLAKE2b-256 e0e05c60056c4f00812bcfa4cb2bcbbb0b057a3e229e312dc9754cbcdeddceef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.521-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 173a601ced077a8b801a0d5dde6807d64a4dbd7ebf29a3a6f1f7cfc5b5800039
MD5 85db31e903cdf02561211d78d364c482
BLAKE2b-256 ebc9a6beabfe2284c30e3d7d9502e4253064b4659d7276936bafc15988c23778

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.521-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.521-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a715e4cec41cc2baa72ab8634412375f23a90bbebeeb355cfaf9293db535850a
MD5 837c436e2af407400abc8ee4a44e3b32
BLAKE2b-256 0fc3695cb7015a7c953d2dd924f3290e69d54c396af9c58f7b81490929544605

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.521-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.521-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5dcb33416f50c2f71d2dd2372adc9b4903551de0ecc4f0ebf35086e5691a833e
MD5 cb806d3fd20af5257bec59c9d5fcaa13
BLAKE2b-256 de4b093aeefcca6c14f1796d078b0cf9be072c9fb39fdd3035cf391a87f9e2ab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.521-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.521-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c484e0e021c6dc6b5b6f69256f96c421c55b93e28e30a3e14235bcd122254bec
MD5 02b74c2e44dabf94b9df1d7923d10fe6
BLAKE2b-256 522a12552147c33ad79549db8a44fdf4693ba7809fe72f368bf27b3444f56be8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.521-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a1fc7f2953a0205c6946ecabb6ddc73f48f4d12ef63a271d6569cc42c17717db
MD5 715605f5271b1ff8f16145497dae9456
BLAKE2b-256 901144fc483bdb406b4c8a2724e71b9dcf4f2b24133540879450930aa32628bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.521-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.521-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1d5b98eac6f8d64877618cf9d31ab369dcb8518775694d8b0ff85cbb53775e81
MD5 ac033723e5103b8caaa38a48f7b72cfb
BLAKE2b-256 0cb3a599ce306a041eb865b888ba7ae26a6afb0b656cdaa12f4ba53020229074

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.521-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.521-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 446bcb42cfc77997a84994499cd4bb7dcab24721166c6ccffc93680871c9ac12
MD5 e6d2fc054142e16f0e890184075b557a
BLAKE2b-256 36184803cde2180661c9f2f13f4028e76d64196a4c0315ae6f5f1140c854fdda

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.521-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.521-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c19499816129f1a68bbb50404bd9ec556df43e89b7adeeaaa23fe486a1989b36
MD5 849fbeb0d78c9167184fc5c54946a181
BLAKE2b-256 21bfe69889dddefbfb7ee52a39323bd913b2cc808605759cc44a6bbfe6d9d297

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.521-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 12086c54d0cec4f64325d6e676313879ce673e1775e9049c1522a9c8ec8a2109
MD5 52431c2da8b3f1553454426d2b0691de
BLAKE2b-256 440b7389ac0a83be183e804d0dbae459f76f5cf407d4e2db0bab297ceb20e0b0

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