Erster Stand: compute.py

This commit is contained in:
AnnalenaTH committed 2026-10-15 13:34:25 +02:00
1 parent db8c5c3032
commit 81e8602a61
1 file changed
+3 -1
+3 -1
View File
@@ -127,4 +127,6 @@ if __name__ == "__main__":
# Einen Punkt (Vektor) als 2x1 Matrix rotieren: [ [x], [y] ] # Einen Punkt (Vektor) als 2x1 Matrix rotieren: [ [x], [y] ]
point = [[1.0], [0.0]] # Punkt auf der x-Achse bei x=1, y=0 point = [[1.0], [0.0]] # Punkt auf der x-Achse bei x=1, y=0
rotated_point = matmul(R, point) rotated_point = matmul(R, point)
print("Gedrehter Punkt (erwartet y=1, x=0):", rotated_point) print("Gedrehter Punkt (erwartet y=1, x=0):", rotated_point)
#Dieser Kommentar ist ein Test