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.


//  w  w w .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.





















Home »
  Java Tutorial »
    java.lang »




Boolean
Byte
Character
Class
Double
Enum
Float
Integer
Long
Math
Number
Object
Package
Process
ProcessBuilder
Runnable
Runtime
SecurityManager
Short
StackTraceElement
StrictMath
String
StringBuffer
StringBuilder
System
Thread
ThreadGroup
ThreadLocal
Throwable