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