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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.718-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.718-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.718-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.718-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f4c97a8f3144da55c4cdafe65d686ce92a25238514ed308cf0553ecf1dcd1b71
MD5 e06148065f5c9f8aa08ec344529c171b
BLAKE2b-256 6eea9293f0415229870f9937a8fad79eb8bc0bc951bc325a26d4f31a9f74a0a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.718-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.718-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 7978af4b3152f0d98c2aa31075df8a6feb010dbea217c022e2b8f361db21fe95
MD5 500697f58353964f89b25594c8a2ba22
BLAKE2b-256 1fa490fb387fb2b0fde6b8ed0282c15f018b5efe594b71ad4bf40d88ef7ab8e6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.718-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.718-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 534ef811ca0429c2e4a7e663885385d58ca192e4058960b89f9fc032623f65d1
MD5 5f89b0f44bec5913aff42b97d3d125ff
BLAKE2b-256 4cefabac044ef8e1b27b96859cd2fe30cd79d2b3bc15af62e59c7eaffda4344e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.718-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e39928aee649bf69b1155ca730ef675913924ffc72d975b1c7d0c2950dfe2db0
MD5 4c2c176960bcbed22499db2722a69fcb
BLAKE2b-256 af100075206684d6bd523bec4b85100ecc3172372c86ed0340f95749a3e49dd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.718-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5bbc319deccd761b5b227e3354aac4117a24590709f21a9c52d84be1b7ceac05
MD5 13ac183769d0992e7ae6d5092e086913
BLAKE2b-256 460354711ce6cf76d0d2fdc69ee6110ab58db18240bdc74f05f9893da75ab1a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.718-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.718-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b315c37cedfaf5c840a5d46a9a9fde946090cbb231f3c66ba0336ac7221532ca
MD5 1bfb07a2cbadfbe45033dadd70abe4fa
BLAKE2b-256 c9ecfa8b68aa4f6f802eb15deff811552ca90033fd81e65fbe911a9858478b26

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.718-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.718-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f74f83ec9fad9ec53615199f22725367c58c08dd54d3789cfecf69887c4046e0
MD5 bb30ac34b306d1d4e1a2f5a48a39f700
BLAKE2b-256 afd14b10b140c7425886803637f10ab94735083d2a987234c1b60c77692098a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.718-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b9f6facbf57d106b20117221f150a8161d12c2602d01a8bed88e405254fba93c
MD5 27300a47f9ed397123f9afc2b607e806
BLAKE2b-256 0a71b768afafe84e476be0f502a5f1b8e744398f4563ae7c1e30eb2e508f75fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.718-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e85bdadcb08267d828987458a3cd96457e1d8a384692421b074d59b950e5c811
MD5 95eaf5c256477ccfc08adb4adaa03359
BLAKE2b-256 bc9f50f79380d883864dcfbff7656a146042da90d05ebe24833f2a7b40777090

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.718-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.718-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 93009485a82e1219000ad0ed4514be45c78b4955cb2c848b54a5dd35503f8b52
MD5 2384899e572828c1ef041fc74417b67e
BLAKE2b-256 3fe860829d29ac0ac1827c37fb845d3e09ff2303442bb1816ff2c83d90f82012

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.718-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.718-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 52c47f160c7a1d85cc46392227bea7435ac75bffe1a7a35d87dc41e0bb82517c
MD5 73c7c16dc975f32f9d1ced3ff5e62788
BLAKE2b-256 ac7680cae25a1cafb0a8f185354f777e958c7273ec169e4ea06b5f4991ca55de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.718-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32b84e0f05dae2a57e39b85b3e51564c133ea4ffb8741f9127a6a0316788bc4d
MD5 56daeae46ed308ef50d089cef387b0eb
BLAKE2b-256 195b79f094ebbe0d6ef315906995295dc32696e29936d738d4caa25dc3d32b25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.718-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.718-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8acd8600cf58b0590c49590d819aeedfbca0059d5a37797ad0a44299b2e55010
MD5 10af92739a8a06e2053b1e2161998a97
BLAKE2b-256 ab68082b5d3e0cd338e8e76f96227a025ae2aad54c38d96d80be263ee7439291

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.718-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.718-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c2b4747252ce44fd021efdd33197a1f427022939479c82ba582d983b7737952a
MD5 eb4fba8a4f0f0e1475cbecba0f99262c
BLAKE2b-256 d42423e8a40b2d449a2318002817535359305b809db7f09b5f175f19525f8e3a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.718-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.718-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c904b29f5c9c361b8614098eba0876757048343f20700c9e7e2b7b849b8dd66f
MD5 aae29036ed3cc6074ceb4bb497435868
BLAKE2b-256 ada9b4e5d90917316f9f650748bc3a59de04d7c7da8193020d3a728e05f246cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.718-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33c1924623fc19b2e62839382bf337b26beab45b1f3ef9b65d952a5969652cca
MD5 2872051ebfed288cb649757b67bcd358
BLAKE2b-256 4e0c01a9aa06b0a8d7fc7dc7e28d1ccd30bab83eab4700595b66fc87eb516235

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.718-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.718-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fcd809d723e9759f5f43e7756216394950048118c769933500f21d6b234a0495
MD5 a64620c2ccd989e6054c310a04d8b1b2
BLAKE2b-256 696c240ee517e5a2ce56cbc2d7ae20b57fedcaa709395db9f7efc94910781774

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.718-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.718-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b51a9a95a00410346dbe289994c78b1fa811f303a7ee458415205f277a56f788
MD5 f26f9e0219869e54a6c5f4a8f95b84a6
BLAKE2b-256 b3b33dffadf48213175c45a987fd303acf9c03aed91e043ff9ea272d87f22691

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.718-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.718-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a7e28d0b57b27c6565040e4a84b32fcd412e96048abd91c02107044654aad801
MD5 8a0c7ad1bc77d404d600aafaa9292c65
BLAKE2b-256 631312e78cc8777c4cb639e78ec1ad027de3ccba1527ea4bd356cf12936eb48d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.718-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6c2d51df35c604c0f8fb748de42379c6ab756440f199d195d8562d474f586824
MD5 13669b02c3660642af33ddc800609c1b
BLAKE2b-256 d03610e1bf1ed60e4280640ca9852dcbfab9da23132304c1155209011a5e420a

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