assertEquals(eval(c, 8, 2), 28.);
assertEquals(eval(c, 9, 7), 36.);
}
public void testCOS() throws Exception {
COS c = new COS();
TH.testDoubleInOutFunction(c);
for (int i = 0; i < 100; i++) {
double d = Math.random() * 1000 - Math.random() * 1000;
assertEquals("COS not working", TH.eval(c, d), Math.cos(d));
}