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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.789-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.789-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.789-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.789-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 00d96176fc681566b78f4ae25334617b6fa8e54bba5c09999d71f9edb4caf4d2
MD5 b8befb3364d4a0cd1b2883fb7ef92062
BLAKE2b-256 114e6c161a4725a3ec8fdee132a8c6cea9b43cd4e52b044faf3eb37796568f35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.789-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.789-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c9c5a1bab879ab0a9b875a41bb837a3efcc8ae59624c2dc91bb70883139a1852
MD5 fb6108efa16df034354820dc19916b89
BLAKE2b-256 6cc8814b736002bf72735c22a486b4a0aa7d466fc168445784b89aecf5611ad3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.789-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.789-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b6d1ddfe8a078613d9d6b5eca48baa8ca6037ffd1310d97bde6380dcfb2eb022
MD5 75829f4a632e2f71e018337c372af1b9
BLAKE2b-256 87b35a8f843ba88c30d5d484c8107667046b3301b06c00425d5f0ee1b0e9dc92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.789-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74a10c6d399fff70e8e1f9731f0f3a9a40e120198f4873590741bda0df9ff563
MD5 fa7f10c89d1262b8e76625e6227879e3
BLAKE2b-256 3be3544b29ef2a849a05463027612dcdc577cadbfd186b88bc51f8620d7695d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.789-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 aaa2046d3368c38dfb9a7f1a966d72030e348fd9ad46340de70251c61cf0df0b
MD5 84251fefefa03f6d2703e2f5e5d02c47
BLAKE2b-256 3ab423ff777483fe879f4b5c3742e47cdcbebb641083908da63e4568f616280d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.789-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.789-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 99c3d91dc47a81c9e607284f5ac9838e04a0269e813e4a17c6ba2b26869e90c4
MD5 9454084c417893eb2719a11173e882c7
BLAKE2b-256 8eafe79abfe9d06e02ec7b6d069e54a9a49f56e8fed2bbd3d7f231764b8edd99

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.789-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.789-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 788f29d44c8061befd3701d81bd4e0a87a6ec9ef5534fc7bb788418518369a89
MD5 0b3540e63d94f84fb475faf114891701
BLAKE2b-256 9faf0f1f741675fecc9785a5c16bd5fbc0aff04e549e4dbef8527b6db505f256

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.789-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6b32d1b3d6cd3f46c06ccea3b3f9e7f71f349036ba2b259ea5b4e1a05194741
MD5 7116b8abd848da4b9c30423073a3aa6e
BLAKE2b-256 1ac06cd521c5c8be01c736c13a659b6ad0eb4db760ba9c973f48e26fe554ac2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.789-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0dc23be3b427fca408b69168070a365005a69afee31083ebae760871416c6574
MD5 0fdcea59335e7411f857737e92a1a5a1
BLAKE2b-256 9b31e9e4137509b0c248f2d326a1464ee603a8bf9270d6eb8a7ca4bef89d3b17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.789-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.789-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 62670ead3528303b867202846994fd9f15773f700b0c8ec35ebb55f539954e6e
MD5 265089d529e09bfb9d0846732acb1663
BLAKE2b-256 d8ea5c5b8ca3f305fdc7a45625525bc42b1265f4574a29ad9223689ceb9dae5a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.789-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.789-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6c8cca6c58b4e64a3b5cf1886941986c90534bb2b0b2a26a0669b4be47abfd44
MD5 900ab8e742b5aa6d2090124648892887
BLAKE2b-256 61e93786c758e2237326354934e02020e2b99d142445439431847c7abf24d77b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.789-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5a7749c87e477e85781608cb1684e0d6a3e4d08241f404fa2a46f341dd6318c
MD5 9ded93a8008f755176d9d1f9c3cb281b
BLAKE2b-256 e8c70ab8fcd5cdc271efb8065e5f360292d5ef3fa3d571104ebcb5c3e9a7b233

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.789-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.789-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b9b1628e1d4a475a4560c431bd5ccea1b08cadd02ddae26209a02dda2259d1c2
MD5 bc1698cb775c620713cb0e7b3675322d
BLAKE2b-256 626d13308d86cacc5a0647cdf28311fa5194c4f945b72f8d9b49f3086a12c009

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.789-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.789-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b926b7e9cccc79a0b6fb5d99a591f2679cdf9a3f7ed12fc8a2b8fef891331dc5
MD5 8fd18382dd301106dffc955f75f5c6c1
BLAKE2b-256 6a848bedaeefc02f2a19225342c75e661512ee8842cb2eb976b5aee531efce6b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.789-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.789-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 272f20199339ee17b43ac379e33f82e938b08d318a71972019f057f49722040e
MD5 4ccb630ecac4417192ef00002d561344
BLAKE2b-256 240146beab220decdf532f337594330f47727ded1901fcaef34d1c488e83a8bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.789-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f7d6ac18dfcafe2f8fc3053eb8a1b0fed5768e180f3ed456f616d41ec95fe679
MD5 4e6f21172df2a2c6e9178ab79a2741d4
BLAKE2b-256 10609d8ee1716a65981e12829530cef250c022bedfbae964324dd5f8f9c9dc56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.789-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.789-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 44d802a8face446b3b3e7248bb71cbd8130bd2750910c2d414d08c53cb727af8
MD5 ed0bf63c14549ab0f5d6b64ac446e81d
BLAKE2b-256 3a6aa199fb4d0a550de136d2374c27bbc04ba8d783887911adeedf8d788f4aa9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.789-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.789-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fb7ec68a421531820ac4774b5944337a3b3cc1bcc3f1bdcc4a313d009a763130
MD5 8702d30767b8d3e468f1f65a9cf9f996
BLAKE2b-256 81efade4708e46a60086abdc0ddb73e97bfc088e468edc1229e680f2e4e1765e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.789-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.789-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 be13173f11f073672bd51416076a2873dd5c65ad463d3b0029e8ce0d049e0a82
MD5 40bb988069eb006a0f60e70b52a4baf4
BLAKE2b-256 f2e9056df5083909344f6f79de44ea56a25b9e7c5f54a44aba6da4ef533f25aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.789-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0dbf3ebbfcb75ee29ac255b86f58102579e0c5b47aac742753d0a9c21c4eaddf
MD5 6833cc8564216c296dc96a72f065c544
BLAKE2b-256 3b5d8a444f5877be7e6d993266ab4b6f6cd7ded3189eb5f2dd8a6ee054b34663

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