Java Data Type Tutorial - Java StrictMath.atan(double a)








Syntax

StrictMath.atan(double a) has the following syntax.

public static double atan(double a)

Example

In the following code shows how to use StrictMath.atan(double a) method.

/*from  w  ww. j  a v  a2  s. c  o  m*/
public class Main {

  public static void main(String[] args) {
  
    double d1 = 0.20 , d2 = 60.00, d3 = 0;

    System.out.println("arc tangent of " + d1 + " = " + StrictMath.atan(d1));
     
    System.out.println("arc tangent of " + d2 + " = " + StrictMath.atan(d2));

    System.out.println("arc tangent of " + d3 + " = " + StrictMath.atan(d3));
  }
}

The code above generates the following result.