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);
}