 Home >>Java Math Methods >Java Math.asin() method

# Java Math.asin() method

### Java Math.asin() method

Java Math.asin() method is used to return for angle measurement of the trigonometric Arc Sine. Often called Arc Sine as an inverse of a Sine. This method returns values between -Π / 2 and Π /2.

### Syntax

`public static double asin(double a)`

### Parameters

a = This parameter is used to the value whose arc sine is to be returned.

### Returns

It is used to returns the arc sine of the argument.

1. This method returns the Arc Sine value if the argument is positive or negative number.
2. If the statement is -1 or beyond the -1 and 1 range this method returns -1.
3. When the argument is negative, the formula returns negative with the same sign as the argument.

### Java Math.asin() Method Example 1

``````
public class MyClass
{
public static void main(String[] args)
{
double x = 1.0;
System.out.println(Math.asin(x));
}
}
```
```
Output:
1.5707963267948966

### Java Math.asin() Method Example 2

``````
public class MyClass
{
public static void main(String[] args)
{
double x = -1.0;
System.out.println(Math.asin(x));
}
}
```
```
Output:
-1.5707963267948966