Math.acos()
Math.acos() returns the arc cosine value.
Syntax
Math.acos(input)
Here are some examples.
System.out.println(Math.acos(2)); //NaN
System.out.println(Math.acos(1.01)); //NaN
System.out.println(Math.acos(1)); // 0.0
System.out.println(Math.acos(-1)); //3.141592653589793
System.out.println(Math.acos(0)); //1.5707963267948966
System.out.println(Math.PI/2); //1.5707963267948966
« All Math functions
« Java
This article is written by plus2net.com team.
plus2net.com