Tabellenausgabe und Projektabhaengigkeiten ergaenzen

This commit is contained in:
Ziemowit Skowronek committed 2026-10-21 11:05:32 +02:00
1 parent 2019d5897c
commit f8e1b6f87b
2 files changed
+6

No files matched your search

+5
View File
@@ -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)
+1
View File
@@ -2,6 +2,7 @@
name = "matrixmania"
version = "0.1.0"
requires-python = ">=3.10"
dependencies = ["tabulate", "ruff"]
[tool.ruff]
line-length = 88