Tabellenausgabe und Projektabhaengigkeiten ergaenzen
This commit is contained in:
1 parent
2019d5897c
commit
f8e1b6f87b
2 files changed
+6
No files matched your search
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
from math import cos, isclose, radians, sin
|
from math import cos, isclose, radians, sin
|
||||||
|
|
||||||
|
from tabulate import tabulate
|
||||||
|
|
||||||
Matrix = list[list[int | float]]
|
Matrix = list[list[int | float]]
|
||||||
|
|
||||||
|
|
||||||
@@ -72,6 +74,9 @@ def rot_2D(angle: float) -> Matrix:
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
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]])
|
integer_product = matmul([[1, 2], [3, 4]], [[5, 6], [7, 8]])
|
||||||
assert integer_product == [[19, 22], [43, 50]]
|
assert integer_product == [[19, 22], [43, 50]]
|
||||||
print("Beispiel 1:", integer_product)
|
print("Beispiel 1:", integer_product)
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
name = "matrixmania"
|
name = "matrixmania"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
|
dependencies = ["tabulate", "ruff"]
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
line-length = 88
|
line-length = 88
|
||||||
Reference in new issue
Block a user