The problem is this. I need to calculate the cosine of the angle. BUT an error occurred and I decided to check its calculation.
public class Test { public static void main(String[] args) { double a = Math.cos(89); System.out.println(a); } }
To my surprise, the compiler issued 0.5101770449416689, although calculating on the calculator, I received 0.01745240643. What is the problem?