Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

atan2() - Return the Tangent of a/b in Java

  1. //atan2() - Return the Tangent of a/b
  2. import java.lang.Math.*;
  3. class Demotan2
  4. {
  5. public static void main(String args[])
  6. {
  7. System.out.println("Atan2 of -0.9 is" + Math.atan2(-0.9,0.1));
  8. }
  9. }
  10.  
  11.  


Output:
Atan2 of -0.9 is-1.460139105621001