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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.189-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.189-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.189-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.189-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f16766d95a7806b405262dc5d5df6957ca5868fe45541ac98c03762c6b622508
MD5 0861f35b242719d2f0b56899f9cffd48
BLAKE2b-256 1399c2a6b90f94cc4ecf7d6439fec211655fbc5e2bb5e3629ddfd47ec5a483fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.189-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.189-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 73cc62fdc5aa538ef37417cb85028f3c06a69fb3e77088dd107a1d00696102ee
MD5 62dbd0be088a02542b97ff0c1d2b1fd6
BLAKE2b-256 1d13f63748cc56d294c502ec82e86c069df9a686d1022bcd5bbe4d363f0e699c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.189-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.189-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e3b524a523a4bd6b2faa15e423bb029e4daaa89bd382fbb6c0ca6d0aff38a826
MD5 6563b735449ac617d2b984d4320c4c38
BLAKE2b-256 482f5f6aac0763d0a51220faa0147014ffabee561ae27f6718e4a4c21885d677

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.189-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 488cff1de15d52c688a2c5fe57a96099c23b30a92ff07ba4ce58adb129039039
MD5 28316fd3ffb1bb0aeeefbd8dafa05706
BLAKE2b-256 02d94a412d490f236cd84ea36a0617b7a2ef7f44c3dd0b0054481ccf4e384d0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.189-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bbeb500480cc25ff63d46812abda64dc6aa6582eee7fd09e97ac4b3385bd60bc
MD5 b63cc17864615fa3c20182ca534d18e2
BLAKE2b-256 18ced528c5d87e1bb46130a47e9195ededd10413c50b8a96dfc0bce414fc75fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.189-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.189-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a70b85493d9c2bc5c58f8646803491c337a62da33e88705300c19ee54400fb2d
MD5 e32f85986c193fb45d81649b087eb20d
BLAKE2b-256 475ad1da5b272ae6b68fc04abd25c686072b80c716b8143674f93299c1522e57

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.189-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.189-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 053f4caf74c4cf0200b0fef7290e5283d544ee5b3b2cb3e9f4f0fc77f379d551
MD5 8610dd75384acf91528568c0723e894c
BLAKE2b-256 ed48c6ac4957feda224cade213187bfdff8a3ac3ceaf5fdc43bda1477048ad2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.189-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72dd2dbedcda9673f5d3c73f23831ad039c4445f8f6d3567e98760fdf4d1e5c8
MD5 e90277938a17d5340b370e71b24a7772
BLAKE2b-256 4328b6939ceae889586f5f88436bdb12df3e8eaa5eeec2ed6a20281ab028e886

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.189-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b891693c12c835ec5dfe8dd723cd3e7985fbcfc083d7f2ab0ac1a32877c6f62c
MD5 cd69853eb7efbd18a52ef93b8c363f09
BLAKE2b-256 acc7a59843b9e5a9bfa48e4811192cae45f042316ecdd3b316fb9eac8145225c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.189-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.189-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5eb3fbf57c1630703ab25dc930799e23bce30e434886ee7eaab359e6684ea080
MD5 51f4134dfd95d6ec744eacbbe43aed86
BLAKE2b-256 f5e620c49d2b463b3b2505c76ff0780a4d2941d14743377679fab8b470081c16

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.189-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.189-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d138019f8d187922b2430523d301489a5c77667337db96ed4aac68256ca1105
MD5 b65b6ef573a33190c040935c7129ae3e
BLAKE2b-256 178874af593ec8d92d798fe0c85ab23d1eeaed27459509f0cc93ffc45533afa5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.189-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22bb593b87f232438d150963da9a8254504ca7de16c93d58da17e0c70b945bbe
MD5 228be1f45fbfd281cc8cab1beca6b1ef
BLAKE2b-256 57b6562fd034c0ef01d1d7b63f63f7d75cecb27b5955355cef0ba498f3ee1d8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.189-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.189-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 40b39527e2d8699a1fa45bc743547f02a35996b771c2914401c321a6ace921e4
MD5 f43715d64c329310757171b38ddd28f7
BLAKE2b-256 714182bb6a1bb83d17340c3a8a0f0c0e8033bb4ac24c35c6847f34d5225e0ff1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.189-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.189-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 40dbda57f1bc97a4bd7c4078c60722d3a57e6d3348df4f00e0c1d5840816db08
MD5 790fff94d80883c311caa08017804428
BLAKE2b-256 d5d2e07da10ec07f4e8d756cd85905c2bb41bae4d2f32ed6ae4e19dd3b293978

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.189-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.189-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5133e29833f5a911b08d5883f38b8e63f5adb71c4b5b7593e53524288a8e946f
MD5 4b95d1d13d3de33bbb7775c645e626c0
BLAKE2b-256 0c1d256bf067baec8a3a085b43809f89e0379740268741b11f231f9f307f1fb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.189-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 409a8de040bddc98c8c83988886ae637d3e9cf1f9438a93db5f2e3c51df019b7
MD5 705ee19c59dfdfc7e65e5c975d04cec8
BLAKE2b-256 6cfc3452d534c361b9e77caef32cc343841a74c12a08e15b639f9f980fbfae04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.189-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.189-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aef45866dd26538c4b5b07434587af22808a9ed37c2975da8c6234f994588517
MD5 3360ea5c0150224ffa0913af41462c32
BLAKE2b-256 0d0488cc78e3654f33c9edf01fe8cf2b26fc6f3341ca179e8b27408eb4dddf2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.189-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.189-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e1f1f913a88fb539c5227d34b077c633f5c4e93f818d9470fadcfe0a1077bbaa
MD5 f45fc21932c23ab3a08607384ff8e831
BLAKE2b-256 a58765932e7eb087c370b2242430230446c709bde127836d1e933b199f483a76

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.189-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.189-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bb61122232586a2d7aa04b4a80c070db9f0cbc9b7cc367166f04e95941c8e8a0
MD5 2611c664921e7b27201bc801faeb6abd
BLAKE2b-256 089559be8e3c6497aa8949722cc970034564aa636700c4b0ff30d807ad9327dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.189-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1c60bf2c93871317b9fb3354c84bd953205ee6aee77ad735a4e05db44e85a11
MD5 0bae92dbfe2955317f3bcb30129fbdd0
BLAKE2b-256 c324a1d71a24288bffdeb0b7fc1304165d8744539ab595148b12632c2f684013

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