Ensure that the angle you're inputting is in radians. If it`s in degrees, you'll need to convert it to radians first.