I have a problem with Math.sin. I thought it would output the sinus of the given integer. So I tried Math.sin(30) and my output was -0.988031624092
Math.sin
Math.sin(30)
As was said above, Math.sin() requires the use of radians as input. To convert degrees to radians, use:
Radians = (Degrees * (Math.PI/180))