compute.py finalisiert und formatiert

This commit is contained in:
englingvi103466 committed 2026-10-15 13:27:12 +02:00
1 parent dade4222fc
commit 658f1589ae
2 files changed
+9 -6

No files matched your search

Generated
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
+3 -6
View File
@@ -12,8 +12,7 @@ from typing import List
def matmul(
matrix_a: List[List[float]],
matrix_b: List[List[float]]
matrix_a: List[List[float]], matrix_b: List[List[float]]
) -> List[List[float]]:
"""Multiply two 2D matrices.
@@ -142,10 +141,8 @@ def rot_2D(theta: float) -> List[List[float]]:
"""
c = math.cos(theta)
s = math.sin(theta)
return [
[c, -s],
[s, c]
]
return [[c, -s], [s, c]]
if __name__ == "__main__":
# Testdaten für die Demonstration