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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.813-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.813-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.813-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.813-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 959051cea8b46081cd0f04795ca2bf75dadcc0fe3499a21f111dbbfea43501d6
MD5 7e3b6ea7cd79d74de302defa3c88c432
BLAKE2b-256 9b773afd0647444bfdd98ef35c2acf5a53496ea7e26f66eb83b42a5297c5e8e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.813-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.813-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 de267e9d3d77ab5b28a585361a64771345487afaac088ea1a9c92d45628397c7
MD5 fb60a1d81afc768cb09f3d3eb5b4f6cb
BLAKE2b-256 d076af2b0acdcbace9cfa94a25992aa96ef61cff73e80658276b56858fc2fccb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.813-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.813-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a52170fab28b4955b79615a9f1670e15cc8762ca7f4271d71f5a6d2dd90c2176
MD5 84c122edb0f43c75ccb9a3a128935164
BLAKE2b-256 e432eb81c80ebacc7e2e467b028421f51f994dd02e1ed931270adbac6388516d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.813-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59941a35dd2bea6534274650fb5e7ac3fc15fc43f5c7cc0b384c2c8d4aadaf97
MD5 152f2e8fde9f72d344599e1dfb423a6f
BLAKE2b-256 767f4c12688a15939cbaf4be58abd26f958d293e3d5751190d4fd1ad40c1af11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.813-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e2567d15b1ef00aec27debd2d34eb61179877b80257c77842ee9b47cd8f53336
MD5 4b0f605bb50f7c29bbd9812f8b9e0076
BLAKE2b-256 711de6d3348a5066f5893117a05d13631cd5aa41168a43ef257c90a01cc40cae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.813-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.813-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4ca1bb2e731ac9fc374e949d2d92f63b9fe30111a4b0861080b57e55ea51ec12
MD5 f5181900f59ff62b1af10c79c128c961
BLAKE2b-256 956966d8189cee5063697b6c1b4af113340deac3fe4f85a331602400e2ba6695

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.813-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.813-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d67e71a3b50c509ddaa2454366a417b0539e621ef2645e86da2a9620912f7e6c
MD5 c5c87f4df32c1b0f2e777e705f159695
BLAKE2b-256 7b079c4266ea0255133b53153df0280dce96b0cc401c65fd41e154b70a9d85e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.813-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01e03d054e2db8cfeefd8dbe3d648c30b10ba5607a1899566749610e36a243b8
MD5 7c42abf48933349b3928d7e014ca4afd
BLAKE2b-256 2163b5661249fb80674ec6462005e9871efb75b722edcb26842228a91c1958cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.813-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ca52b9490955fdc049b81751e1a072ba6aacb3e136f350316da5292e2475c260
MD5 dcd2b3e07eb4f0201f81cc721d4a95d5
BLAKE2b-256 da8f6ef28629b673219dbe0067ad54b035ca49e0a6f976bfc54762527ebffffa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.813-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.813-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cf7e15c0bd90aba4f594ac974931d8b680e8986a9b28a9b27b4ba791fb1d517f
MD5 447a824a15287aef1bce2a0fa72cbbaf
BLAKE2b-256 6a1a781430911cb78ea8f489df5df922c99b4db05cbd8dd7bb0f4cb28f78c1b3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.813-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.813-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 35e4acc70e2c429de4a4c08559d09162e88435d869a2dac8e1b57ddfb4f0ff30
MD5 5794a2f30dc514e1df8bddb5f0382b6e
BLAKE2b-256 81763d53cf73b7857fc184228b49c1dd00ecdd31f662cab40dd345a1b18f330f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.813-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b98f372b0ca01f8828e98120016cbccff81b216068504de7829197ad47f5257c
MD5 5585b1d41c8233f260a5aa205be768af
BLAKE2b-256 da0aac00edd126006da0061535423cfa48e2b1350b2b6331dd705ce6219b5c19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.813-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.813-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e3bc610f4904d17e7965877919e581f638ca33bcffbca7cd5702aca4320b1d7d
MD5 b48163c2586323d9667cc8829054e0d0
BLAKE2b-256 b7027ba5125b3410b3a29ed428b3f11afa227d63dd637aef5abd46df15c599ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.813-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.813-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 32f422845ca510cb66f7c99330d815e8bf6184f3fe719299f4f59dbfd6a9792d
MD5 07fc3362b8667a22cfe408db235894a6
BLAKE2b-256 8b548fa6492cddf49c48219592077b537f5186336d5d1407947ac0529af4d0b0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.813-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.813-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6c473ff75c6704244d286543728806b5710cb45e20555f56e3bfcfcb8e5557b7
MD5 3dca02752193d57130e6aa37c3638062
BLAKE2b-256 0fbb1753b17383747ed2cd71a928f8fabc85c57b6f09ab5043f310ced77941ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.813-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a0e5f5beb8bb9a035b6ecdb84e9f3eb28ecc99f03fc423b8a3a40fd4b547504d
MD5 4d47a896860834056d6da3439b718a77
BLAKE2b-256 faca72003427f0c171d97a48022d1197b3c6d9fd28be914aa5e732659e48429d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.813-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.813-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3405a5cf6b0515d90577aee1e8cc5dbd8bab8c98450de3538a04a3676772f4eb
MD5 34e13708752c31a9a4ef8f48329ac53a
BLAKE2b-256 5c031c574c7fb455a512f506fcc2985be736fce753901f9bf5b8ca32a89a861e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.813-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.813-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 57ddedd283bd0abd19c2c8184640f11dc6e31a42b9c6ae6d6f3733a9c91f1374
MD5 792ed119c09ae7ceb9257beeb29e9c8f
BLAKE2b-256 fb5cb4cbe772336b9a604489a84061a7edcbbd94d089d095c84ae2b7d13997a9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.813-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.813-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be16d3fc3858e5776ca7e16e9008380b2087c4858b6a56f6a7c054df3c2edcde
MD5 90463620cea9532f4424b89c9ac0e003
BLAKE2b-256 f0fc41f6a7fbf4d0306a8b1f01b12c041d0131281b6670171f7fb96ad4930a2b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.813-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32f05ae294a37a993eea62ab1c07d0e7cd4e1339eea9d4a3ee17ea06f4b6c9e1
MD5 e821801d9d979c13e8acbb05fec9ada7
BLAKE2b-256 a198d6ee638318e544e05da57b6199a6d1a0f7c414fb2c71edae1668ee14b791

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