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"]