Why does tan 45(0.7853981633974483 in radian) give me 0.9999? What\'s wrong with the following code?
tan 45
0.9999
System.out.println(Math.tan(M
Use this
double radians = Math.toRadians(45.0); System.out.format("The tangent of 45.0 degrees is %.4f%n", Math.tan(radians));