//numerical derivatives, calculated using difference tables //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 hard coded data for the square root of x public class derivatives { public static void main ( String args[] ) { int arraysize = 6; double x[] = { 2.50, 2.55, 2.60, 2.65, 2.70, 2.75 }; double f_of_x[] = { 1.58114, 1.59687, 1.61245, 1.62788, 1.64317, 1.65831 }; double x1[] = new double[arraysize]; double x2[] = new double[arraysize]; //initialize stuff for ( int i=0; i