Home >>Java Math Methods >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.
public static double asin(double a)
a = This parameter is used to the value whose arc sine is to be returned.
It is used to returns the arc sine of the argument.
public class MyClass
{
public static void main(String[] args)
{
double x = 1.0;
System.out.println(Math.asin(x));
}
}
public class MyClass
{
public static void main(String[] args)
{
double x = -1.0;
System.out.println(Math.asin(x));
}
}