Java Math asin() method with Example
The java.lang.Math.asin() returns the arc sine of an angle in between -pi/2 and pi/2. Arc sine is also called as an inverse of a sine.
- If the argument is NaN or its absolute value is greater than 1, then the result is NaN.
- If the argument is zero, then the result is a zero with the same sign as the argument.
public static double asin(double angle) Parameter : angle : the value whose arc sine is to be returned.
This method returns the arc sine of the argument.
Example 1 : To show working of java.lang.Math.asin() method.
NaN 0.054858647341251204 1.5707963267948966 0.0 -1.5707963267948966 NaN