// as expected, we are OK.
System.out.println(ex);
}
// case 2: enable extrapolation
f.enableExtrapolation();
final Array y2 = x2.clone().transform(f);
System.out.println(y2);
for (int i=0; i<N-1; i++) {
final double expected = 5.0 - x2.get(i);
final double calculated = y2.get(i);