assertEquals("COS not working", TH.eval(c, d), Math.cos(d));
}
}
public void testCOSH() throws Exception {
COSH c = new COSH();
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.cosh(d));
}