From 51f39a6402a1cbb16dfa2e3dceee70582d3c2284 Mon Sep 17 00:00:00 2001 From: Lena Date: Tue, 27 Oct 2026 19:12:08 +0100 Subject: [PATCH] pyproject.toml und compute.py mit tabulate und ruff aktualisiert --- compute.py | 10 +++++++--- pyproject.toml | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/compute.py b/compute.py index 2e5517c..f9690c4 100644 --- a/compute.py +++ b/compute.py @@ -1,5 +1,7 @@ -from typing import TypeAlias from math import cos, sin +from typing import TypeAlias + +from tabulate import tabulate Number: TypeAlias = int | float Matrix: TypeAlias = list[list[Number]] @@ -153,9 +155,11 @@ if __name__ == "__main__": assert matrix == expected print("Rotation erfolgreich:", matrix) - # Beispiel Transponierung ghfghgf + # Beispiel Transponierung matrix = [[1, 2, 3], [4, 5, 6]] expected = [[1, 4], [2, 5], [3, 6]] assert transpose(matrix) == expected - print("Transponierung erfolgreich:", transpose(matrix)) \ No newline at end of file + print("Transponierung erfolgreich:", transpose(matrix)) + + print(tabulate(rot_2D(1.0))) \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 46e3b47..3a776b1 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"] \ No newline at end of file