// test_laphi.java family of Lagrange functions and derivatives // L_n,j(x) = product i=0,n i!=j (x-x_i)/(x_j-x_i) // for points x_0, x_1, ... , x_n // generate L_n,j(x) for n=1,5 j=0,n and derivatives to 4th // should be same results as produced by lagrange_fem.c class test_laphi { test_laphi() { int N = 5; int j, k, n; double h, hf; double xg[] = new double[7]; double x, y, yp, ypp, yppp, ypppp; double xmin = 0.0; // xg[0] double xmax = 1.0; // xg[n] laphi L = new laphi(); System.out.println("test_laphi.c running on 0