diff --git a/compute.py b/compute.py index 807ca01..ad18dd1 100644 --- a/compute.py +++ b/compute.py @@ -2,6 +2,8 @@ from math import cos, isclose, radians, sin +from tabulate import tabulate + Matrix = list[list[int | float]] @@ -72,6 +74,9 @@ def rot_2D(angle: float) -> Matrix: if __name__ == "__main__": + print("Rotationsmatrix für 1 Radiant:") + print(tabulate(rot_2D(1.0))) + integer_product = matmul([[1, 2], [3, 4]], [[5, 6], [7, 8]]) assert integer_product == [[19, 22], [43, 50]] print("Beispiel 1:", integer_product) diff --git a/pyproject.toml b/pyproject.toml index 0371289..3e205a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,7 @@ name = "matrixmania" version = "0.1.0" requires-python = ">=3.10" +dependencies = ["tabulate", "ruff"] [tool.ruff] line-length = 88