+ 1
What's wrong in this code?
When we pass the value in sin function, what does it actually consider? Degree or radian https://code.sololearn.com/cosZK6Y79w4F/?ref=app
1 Antwort
+ 6
math.sin(x)
Return the sine of x radians.
https://docs.python.org/3/library/math.html#math.sin
Use
math.sin(math.degrees(x)) instead.