assertEquals(eval(s, toArray(2, 3, 9, 1, 8, 7, 5), toArray(6, 5, 11, 7,
5, 4, 4)), 79.);
}
public void testTAN() throws Exception {
TAN t = new TAN();
for (int i = 0; i < 100; i++) {
double d = Math.random() * 1000;
assertEquals("TAN not working", eval(t, d), Math.tan(d));
}
}