프로그래밍에 익숙하지 않아 무엇이 잘못되었는지 알지 못합니다. atan2
는 두 개의 인수를 필요로하는 오류의 원인은"atan2()는 정확히 2 개의 인수 (주어진 1 개)를 사용합니다."
from math import atan2, pi
x = int(input("value of x"))
y = int(input("value of y"))
r = (x**2 + y**2) ** 0.5
ang = atan2(y/x)
print("Hypotenuse is", r, "angle is", ang)
'atan2'를 호출하면 2 개의 인수를 전달해야합니다. 'y/x'는 1입니다. argument –
또한,'atan2 ('. – lit