// 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 // needs laphi.class public class test_laphi { laphi L = new laphi(); test_laphi() { System.out.println("test_laphi.java running"); int N = 5; int j, k, n; double h, hf; double xg[] = new double[N+1]; // points go 1 to N double x, y, yp, ypp, yppp, ypppp; double xmin = 0.0; // xg[0] double xmax = 1.0; // xg[n] System.out.println("test_laphi.java running on 0