! test_laphi.f90 family of Lagrange functions and derivatives ! L_n,j(x) = product i=1,n i/=j (x-x_i)/(x_j-x_i) ! for points x_1, x_2, ,. , x_n ! generate L_n,j(x) for n=2,6 j=1,n and derivatives to 4th ! should be same results as produced by test_laphi.adb program test_laphi use laphi implicit none integer, parameter :: NN = 6 double precision :: h, hf double precision, dimension(NN) :: xg double precision :: x, y, yp, ypp, yppp, ypppp double precision :: xmin = 0.0 ! xg(0) double precision :: xmax = 1.0 ! xg(n) integer :: n, j, k print *, 'test_laphi.f90 running on 0