9 lines
No EOL
205 B
Python
9 lines
No EOL
205 B
Python
#!/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)) |