dreieck_test/first.py

9 lines
205 B
Python
Raw Normal View History

2024-01-23 09:26:42 +01:00
#!/usr/bin/python3
from math import sin,cos,radians
def berechne_dreieck(alpha,c):
alpha = radians(alpha)
a = cos(alpha)*c# x
b = sin(alpha)*c# y
return a,b
print(berechne_dreieck(45,100))