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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.31-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.31-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.31-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.31-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.31-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.31-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.31-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3aba2c22677b04d0ffde0553afa5b7333819bae66afa1722cf81f5117eacfc99
MD5 99c4d1eb756f9b5efce0cf7192f8ea91
BLAKE2b-256 0a48d6515759454bdf337e5a7a06479eed0e846fdfe53a26c48a3e5872465d44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.31-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.31-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d3ed8225a154f3a10ae4b8d712a12839f9ab7f07e9062b861392fbb0e555b683
MD5 aa563ce786f5b2783f08c2a5e02ffe64
BLAKE2b-256 f1985cd599bf2d7499af2b44f2204b59001cd8955e1209d83f94e36bb51eedeb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.31-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.31-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 51e8828d235461336e0faa9825346668901e573be8f60c8bf44d3dd52979ab0b
MD5 556797521cdae61b731a69aa82f3fbc1
BLAKE2b-256 65de50930a7ed517e0c5bd99ca04ebff1bf042a536e45418f0cfa03f3c11c647

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.31-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b17788103ecaf25ff2475fb6b822a516db27d15c053881b2ae078d791dd481fc
MD5 3ffa7891614106b8434bc2e78c8c479a
BLAKE2b-256 2942d74ef1a08a63e4e9db9d965569c8a282e9f9d16310d0d2898793c4d309d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.31-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.31-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7cb23719d545bb1e27ca99d7c17ae60d2ed474211ca744882d4e2f0acd145944
MD5 4ac74d602abebcea04f85e55bda7de57
BLAKE2b-256 acd5b459d07f85f5618f4c520929583d40ccbe6916709e4a67b81334c0254e39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.31-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.31-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9a447eb1f061f1793d012402eba8b10c631da7a6ca3a6622b2af89a3a8d91fb6
MD5 f1917e82eb6d617ce5cbfc24d43d2c39
BLAKE2b-256 0ca624c46a6c85f3ae9e5dbd1696ed54f8b896255ed5d06c617b25a6bdb59f84

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.31-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.31-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 74b6f2b622ca1856e68be3c9458553368b9e728a0614c4f5c88ad485c68b9b60
MD5 8fc6f8338937a66669b918a8f406de37
BLAKE2b-256 b84746b646478601b61b8fa99d55e62842890acbb891bf8d457f789ce0dc98a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.31-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43e8fb07b64b6f10f5a1e0349c3c3122d86429633562af5ce04b73f5a2934133
MD5 ebd0455fc773a250abf13436e5d9fb1f
BLAKE2b-256 d8e65b9f5c5ef26356f90a2f55862f91c1b7ebcaac53968b229623fdb6f08192

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.31-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.31-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 10933e334aa3bce5cdd7558ae671fae943d25ac5f74c697d421645e52bd444dc
MD5 1b62a89c5c6cc09becd2b813dbee9e0c
BLAKE2b-256 eb114b3f4920e3e52874736449be691ad03d02758a9a314f6ef7c57319224f91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.31-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.31-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8ac7de18594d92f0d45f78dbcff90ad10b56c04bb3b21366e2beddd1710b1a7a
MD5 34f7922412b5ab3a10aa55959121c21d
BLAKE2b-256 ee5d6b99142e8ba9af0b6364384070e01ccc0beeb6115e27bd48362e34166a25

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.31-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.31-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 061fa430d0c985f4c1e602cb58cd0e3fd46bef3c3faa3102c065d5525b9d4c61
MD5 51118470ff273c04ad52d660745ec1a0
BLAKE2b-256 504aff8448ba2357278073633513a0575e4cc2c987af25ac13cec5826e8d30a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.31-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8512693f948cdb22622ff1ecee3b9657d8e74b135a590912d94534545b2b1b58
MD5 767259e11eed7f2b82728673f3f8c378
BLAKE2b-256 0b9b9e47fc4802cda4f4796d68208c2a6b7bb8608bbdae8c0e95167c867c9d2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.31-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.31-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 28f588dc819b2f849cd7c06db228600172840f431f65b8f627283758e26620a3
MD5 2b9957486f7697a14e11e68f3b628864
BLAKE2b-256 a5ef13eb4b3dafd96726a89ac9a3702499d137c774009cef0f013931a4e3eae7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.31-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.31-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0a1736889cb51b5c46e8e24bd47090906c507081d71f52e2ab538cae64a13ac0
MD5 9363bb401dd04efed6bbb9ce60bf9b38
BLAKE2b-256 e0e706a53a079d735d69afacb40f9fad5db4b09cbf2907972a9f4288a4baf884

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.31-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.31-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a55190ff37375929ac999088ecbb746870371506d4380eae6a6b435f893656ef
MD5 42a796ecaaf73ee91f361345f595ee15
BLAKE2b-256 3ca8f561042d4992b873faa658cda54bf9eb8c7bb3cc3ca269f259e7c3e6f729

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.31-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f7bfe34a5c02ae52f99624d8c57f532df16ae3a3dc26fe050380b23f4a52ad5b
MD5 661d4405cdd52085247f7976f993879e
BLAKE2b-256 3dfb87d1c39ef6032705ac45167515fb02eb9bfdc8c918cbc769558962d8f544

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.31-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.31-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 30259f3855c4056b0f83fdbdd9c83e82f248342aac7d25d730c27e331b1dd475
MD5 c013450eca4cf39c657fd6bd45a66078
BLAKE2b-256 e26fd2acd7dabd402e24beabb2252e77bbc09bcdd03f7b359c691374fc1d9881

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.31-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.31-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 32cb76fff1a0116584a6166eb164224fb4169bc8f245d08c34b26c0e10ebecb8
MD5 0c8dd14b8b5123016346d550844ad7a8
BLAKE2b-256 da13e0451653a0f1fc91e25ccc83561466c45ff49f6e22cd58ba34c2b7e4ff77

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.31-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.31-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4f948b6b226e6144ce32d859abc4a55f5b56b9486fdc2355f28cdd553bc303e8
MD5 57c4463c88684a2998142e8600a25936
BLAKE2b-256 c29d46a390228609532c2e8b641a3e98746c4aa5edce1c56aad30231be262fb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.31-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6279b9c6ca6db7469100cb567225b52ee1d25fa36b3b9812887d59d9ac40614e
MD5 9f6295ab85278a15e04d1af87ef7d88f
BLAKE2b-256 4c181c86c33cedc21479e440b2b2aa7fb7e45a2e05eaf75b50e2bb52d8cdd63a

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