//interpolation //this takes experimental data for x and f(x) //the data is used to calculate the values for //the function in areas where we have no data //this example uses hardcoded data //f(x) = cube root of x public class interpolation { public static void main ( String args[] ) { int arraysize = 5; double x[] = { 4.0, 4.5, 5.5, 6.0, 7.0 }; double f_of_x[] = { 1.58740, 1.65096, 1.76517, 1.81712, 1.91293 }; double x1[] = new double[arraysize]; double x2[] = new double[arraysize]; double x3[] = new double[arraysize]; double x4[] = new double[arraysize]; //initialize stuff for ( int i=0; i