assertEquals(eval(s, 4 - 4), 0.);
assertEquals(eval(s, -0.00001), -1.);
}
public void testSIN() throws Exception {
SIN s = new SIN();
for (int i = 0; i < 100; i++) {
double d = Math.random() * 1000;
assertEquals("SIN not working", eval(s, d), Math.sin(d));
}
}