From 79042907b48f17ad98809d3a9f9482c0bea59a59 Mon Sep 17 00:00:00 2001 From: Amalia Sucipto Date: Thu, 22 Oct 2026 00:29:49 +0200 Subject: [PATCH] =?UTF-8?q?Tabulate=20und=20Ruff=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compute.py | 7 ++++++- pyproject.toml | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/compute.py b/compute.py index f59fcb3..028f861 100644 --- a/compute.py +++ b/compute.py @@ -1,5 +1,8 @@ -from typing import TypeAlias from math import cos, sin +from typing import TypeAlias + +from tabulate import tabulate + # Funktionen für Matrixberechnungen Number: TypeAlias = int | float @@ -132,6 +135,8 @@ def rot_2D(theta: float) -> Matrix: if __name__ == "__main__": + print(tabulate(rot_2D(1.0))) + # Beispiel Multiplikation A1 = [[1, 2, 3], [4, 5, 6]] B1 = [[7, 8], [9, 10], [11, 12]] diff --git a/pyproject.toml b/pyproject.toml index 46e3b47..579c5f4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,4 @@ [project] name = "matrixmania" -version = "0.1.0" \ No newline at end of file +version = "0.1.0" +dependencies = ["tabulate", "ruff"]