Home >>Java Math Methods >Java Math.atan() method
Java Math.atan() Method is used to measure the angle tangent of the trigonometric Arc. Often called Arc Tangent as an inverse of a tangent. This way the values between -pi/2 and pi/2 are recovered.
public static double atan(double a)
a = This parameter is used to specify the value whose arc tangent is to be returned.
It is used to returns the arc tangent of the argument.
public class MyClass
{
public static void main(String[] args)
{
double a = 3.237;
System.out.println(Math.atan(a));
}
}
public class MyClass
{
public static void main(String[] args)
{
double x = -2.0;
System.out.println(Math.atan(x));
}
}