diff --git a/compute.py b/compute.py index 8414cb0..6c19c10 100644 --- a/compute.py +++ b/compute.py @@ -1,5 +1,8 @@ + import math +from tabulate import tabulate + def matmul(a: list[list[float]], b: list[list[float]]) -> list[list[float]]: """Multiplicates two matrices. @@ -193,6 +196,9 @@ if __name__ == "__main__": for row in matmul(r, [[1.0], [0.0]]): print([round(v, 10) for v in row]) + # Matrix in Tabelle ausgeben + print(tabulate(rot_2D(1.0))) + # Docstring und Type Hints sind vorhanden und stimmen mit dem Code überein. # Fehlerfälle werden behandelt # Namen sind Aussagekräftig 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