assertEquals(eval(s, toArray(1, 2.5, 3), "=2.5", toArray(3, 2, 1)), 2.);
assertEquals(eval(s, toArray(1, 2.5, 3), 1, toArray(3, 2, 1)), 3.);
}
public void testSUMPRODUCT() throws Exception {
SUMPRODUCT s = new SUMPRODUCT();
assertEquals(eval(s, toArray(1, 2, 3), toArray(4, 5, 6)), 32.);
assertEquals(eval(s, toArray(3., 8, 1, 4., 6, 9), toArray(2, 6, 5, 7,
7, 3)), 156.);
}