Tabulate und Ruff hinzugefügt
This commit is contained in:
1 parent
c2491016b0
commit
79042907b4
2 files changed
+7
-1
No files matched your search
+6
-1
@@ -1,5 +1,8 @@
|
|||||||
from typing import TypeAlias
|
|
||||||
from math import cos, sin
|
from math import cos, sin
|
||||||
|
from typing import TypeAlias
|
||||||
|
|
||||||
|
from tabulate import tabulate
|
||||||
|
|
||||||
# Funktionen für Matrixberechnungen
|
# Funktionen für Matrixberechnungen
|
||||||
|
|
||||||
Number: TypeAlias = int | float
|
Number: TypeAlias = int | float
|
||||||
@@ -132,6 +135,8 @@ def rot_2D(theta: float) -> Matrix:
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
print(tabulate(rot_2D(1.0)))
|
||||||
|
|
||||||
# Beispiel Multiplikation
|
# Beispiel Multiplikation
|
||||||
A1 = [[1, 2, 3], [4, 5, 6]]
|
A1 = [[1, 2, 3], [4, 5, 6]]
|
||||||
B1 = [[7, 8], [9, 10], [11, 12]]
|
B1 = [[7, 8], [9, 10], [11, 12]]
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "matrixmania"
|
name = "matrixmania"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
dependencies = ["tabulate", "ruff"]
|
||||||
Reference in new issue
Block a user