Java Math asin() Method

Facebooktwitterredditpinterestlinkedinmailby feather

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.

 Syntax:

public static double asin(double a)

Parameters:

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:

 Output:

Example 2:

Output:

Example 3:

Output:

Example 4:

 Output:

Facebooktwitterredditpinterestlinkedinmailby feather