final Array x = new Array(new double[] { 0.0, 1.0, 2.0, 3.0, 4.0 });
final Array y = new Array(new double[] { 5.0, 4.0, 3.0, 2.0, 1.0 });
final Interpolation f = new LinearInterpolation(x, y);
f.update();
final Array x2 = new Array(new double[] { -2.0, -1.0, 0.0, 1.0, 3.0, 4.0, 5.0, 6.0, 7.0 });
final int N = x2.size();
final double tolerance = 1.0e-12;