The asin() method of Math class computes the trigonometric Arc Sine (inverse of sine ) of an angle. The value returned is between -pi/2 to pi/2.


public static double asin(double a)


The parameter ‘a’ represents the value whose arc sine is to be determined.

 Return Value:

The asin() method returns the arc sine of the argument .

  • It returns NaN, if we pass a NaN or absolute argument greater than 1.
  • If we pass zero as an argument, it will return zero with the same sign as the argument.

Example 1:


Example 2:


Example 3:


Example 4:


Pin It on Pinterest

Share This