erster_Stand_compute.py

stand_1_pyproject.toml
This commit is contained in:
taliafuller committed 2026-10-20 18:45:09 +02:00
1 parent 88bbddc41f
commit 7265c4bf02
2 files changed
+12 -2

No files matched your search

+8 -2
View File
@@ -14,6 +14,7 @@ is raised.
import math
from typing import List, Iterable
from tabulate import tabulate
def _is_rectangular(matrix: Iterable[Iterable]) -> bool:
@@ -135,9 +136,14 @@ if __name__ == "__main__":
print(trsp)
print("\nrot_2D:")
# Punkt (1, 0) um 90 Grad (pi / 2) drehen
x_neu, y_neu = rot_2D(1.0, 0.0, math.pi / 2)
print(f"Gedrehter Punkt: x = {x_neu:.2f}, y = {y_neu:.2f}")
# optional wegen -e
if abs(x_neu) < 1e-15:
x_neu = 0.0
if abs(y_neu) < 1e-15:
y_neu = 0.0
punkt_tabelle = [[x_neu, y_neu]]
print(tabulate(punkt_tabelle))
+4
View File
@@ -0,0 +1,4 @@
[project]
name = "matrixmania"
version = "0.1.0"
dependencies = ["tabulate", "ruff"]