Math.asin()
Math.asin() returns the arc sin value.
Syntax
Math.asin(input)
Note that all outputs are in the range -Math.PI/2 and +Math.PI/2.
Here are some examples.
System.out.println(Math.asin(2)); //NaN
System.out.println(Math.asin(1.01)); //NaN
System.out.println(Math.asin(1)); // 1.5707963267948966
System.out.println(Math.asin(-1)); //-1.5707963267948966
System.out.println(Math.asin(0)); //0.0
System.out.println(Math.PI/2); // 1.5707963267948966
« All Math functions
« Java
This article is written by plus2net.com team.
plus2net.com