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)
Math.sin works in radians, I guess your calculator is in degrees.