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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.341-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.341-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.341-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.341-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 359ffe779c7a8c7c7bc2a68df40f742b9a41bd4bccaa6cf868ffbbf476ebf192
MD5 26ab75682a37946c936f8c8e58ec0bba
BLAKE2b-256 c394b638865d386e8e9999eb6bf260cc8b94c8e28b9a468a205338894094958d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.341-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.341-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3b942edd73a3633ba6fecf258a2a6fc229d826dfca3a98dff0301eab52f19fba
MD5 9d3976e1586d52b21e159a34cc169e88
BLAKE2b-256 06e479e67bd051eb9366ddbc1484859f259a00bdb033e240682eb709aa556da6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.341-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.341-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bccaa9c1abede0e8a5ae10d6dfb52b84e8f2276dfd47e9c86b9f92758366cb91
MD5 becb636244e2a6f42099c084bf18b0ce
BLAKE2b-256 2e10d1e28d54e0246e00d7c1a3dadf60721cb1165aba3325cea841a3bd74be31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.341-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d78308d5de11ff483426a2b3b19c9f4512ff652e54b3106a70db3ad248cad41
MD5 512304dae33f34237bf34784876869bf
BLAKE2b-256 fcded680d25c328324e334246b4a574dfcfaf38c95705842a43695653c0525a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.341-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9bff001279a9a77c13d095d9fd355503fcc3cbdde8bcf9bf35f0d224d0237e28
MD5 80260f6ed9aaebed78993a3c950d8f32
BLAKE2b-256 c63d105f568b0200bdcaf8431d1402b04b7bad2b35218a4476c7085c8d65332e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.341-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.341-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8ed5eeb9a4102e68f375ca4be08aab1d6a5c50a46546e7b5c14f444791a5458c
MD5 f7e86df3ac3e299b433155d5f6adb645
BLAKE2b-256 ed609957f1c570c724c4526a69a64b5ef0f2b12e25a3483d4d04f08b7df0ee9b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.341-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.341-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c02f1eee615b59b275874976b35d99662b7a8b9b6439bbc81a4e37435c8dd74f
MD5 4ad64bef3493da7b1f86bedc8c73c8bb
BLAKE2b-256 ef9b5f02d1288262219aad432244024b70aa321216fa015bbdd898bfd0326f17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.341-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f45ed47dbb4ab05b4d01e0c704ebe2ed1a5cf70a99fb72cc85411241bf11c0a6
MD5 2f3d8499de40e7c11ab292d1f49308c5
BLAKE2b-256 aca677953542ffb893b54c6d1417621eaa5552a1871ac59dd4fd1972c460453f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.341-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cd98c31b37dc2faf6e6662f8e696ea9170342b94eb821ee5dee0a350faf47b2f
MD5 fdfe1b79a54f81703c34612f9b754640
BLAKE2b-256 76fcaafd1c1ae8cfe2efd09d3df3635bc6e6d8bd9577f7196817a7087ea93288

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.341-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.341-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e87eb7bf400f7e7c403b4326dbbe9ea3020cabb1352bba6ca289a474689496b4
MD5 fdfb68b5674d9e2035bfda6b0d752961
BLAKE2b-256 4625d821c816ce77625ebc66b5a224ac9ca85b0e03e1ae867613d04d718f5ec8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.341-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.341-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9cbf076e6ea622cfca5b5db233bccf666e8ee28150f4781b0f1f8bcff966ff66
MD5 970cf80fcd067e6133d02e6c2022ff27
BLAKE2b-256 8e9e7ead8823c32d0974c03d7d71f9d54144d62522f27769dc933ea64a39e7a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.341-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0df271496432bf281a790a78e24c549e1f7405a89ea5adc1ca20e6960d5f1a3a
MD5 5b7d82b4b6bc0e4daf9155862f8810e7
BLAKE2b-256 ee99dd5dfc8df4bdf15e1fda63f7187362540500bc4c68abff6882d960865d36

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.341-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.341-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 406f7a9ca2dcb406e93f58ba53fc1ade8f4bc4d3a4a6cc01b7a1b3fd21170ddc
MD5 931cf88b0dd234ccaadaa896e2c97367
BLAKE2b-256 63ab5e5dce2ff72b30b5f7e02526ca9b00521554031c3f1b2810e724f4ae8594

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.341-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.341-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8f2383876802726111b102a6816f4f88e3f37b276fcb058c5aa9cbca532c6db2
MD5 6f40768596f67e442eb11417c9e19a65
BLAKE2b-256 d2a727a4bf3254e9bb7486efacba2013d4416e5c21ba432e819c0dff0c632d2f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.341-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.341-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3f8655021f0abb8434cef5dccb9de6639d00c64dfd13baabd48ffbb39c7eb0fe
MD5 77485cb87bfd1f7b3f9aee748049931c
BLAKE2b-256 b73c4bc47b8f2bf3d8cbde82291b8068c9f121d2ed3f57dfe4cafbfcd7994464

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.341-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e1632891585e92441f3c757080e92ef8f5a12641430b455e4374a84c3200e16
MD5 d74caf6c1d640679c7a0aa9f1e8298fd
BLAKE2b-256 3ba534f3f1791954a92faa2b723b87cab78ab1904d369925f8cfc13f67f1defc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.341-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.341-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 effd9a9878c679b6c91253fa51e91aff7fe7a94e9b99a80dcb25ec8f4a82d50b
MD5 e18eb41a0d2dd4c0028021f83a95063a
BLAKE2b-256 475c8390b4950223ed5f621dfc1b326caf1403a9d29f40cfd40e365a1c69ffe4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.341-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.341-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6fe935f31e5fded3cc114e61613910084d977df3b76a4a9c4321e1a69403b064
MD5 8619327948e878bd4756d9a5f21e2a2c
BLAKE2b-256 15c3295abb09b1498e9c16a401fa6128177dbff301ddad9de8433ac3b72d7c15

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.341-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.341-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b068e4fe456add884036ebac27d39de064ad37f93a7caa487f7ca927f4c00e0b
MD5 09161e61e2305964c213d39e30e6593c
BLAKE2b-256 8a32faa98f69a2eccc74f0add4ed94e91a82ced5c5aa5223bc5ded4733b2c6d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.341-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 102d99016fb8fea2853003ee77ef69343fa221f4668d6c969d2a35e8fb1f0f57
MD5 cd3aebcc0062615426365e6cc91b5409
BLAKE2b-256 74f39694b4d09e72f0f33fa392298a61b973b2b6370cdf41535770536b3feaf4

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