Using java.lang.Math functions. Could someone exaplain why the value of cos(90) = 6.1 ?
for (int i = 0; i < 91; i++) {
System.out.println(i + " = " + cos(toRadians(i)));
}
Output is:
0 = 1.0
1 = 0.9998476951563913
2 = 0.9993908270190958
...
89 = 0.0174524064372836
90 = 6.123233995736766E-17