Examples of ATAN2


Examples of org.apache.pig.piggybank.evaluation.math.ATAN2

          double actual = (new Double(output.strval())).doubleValue();
          assertEquals(actual, expected, delta);
      }
  
   public void testATAN2() throws Exception {
          EvalFunc<DataAtom> ATAN2 = new ATAN2();
          Tuple tup = new Tuple(2);
          tup.setField(0, 0.5);
          tup.setField(1,0.6);
          DataAtom output = new DataAtom();
          ATAN2.exec(tup, output);
          double expected = Math.atan2(0.5,0.6);
          double actual = (new Double(output.strval())).doubleValue();
          assertEquals(actual, expected, delta);
      }
View Full Code Here

Examples of org.boris.expr.function.excel.ATAN2

            assertEquals("ATAN not working", TH.eval(a, d), Math.atan(d));
        }
    }

    public void testATAN2() throws Exception {
        ATAN2 a = new ATAN2();
        assertEquals(TH.eval(a, 1, 1), 0.785398163397448);
        assertEquals(TH.eval(a, -1, -1), -2.35619449019234);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.