-- test_laphi.adb 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.c with Ada.Text_IO; use Ada.Text_IO; with Real_Arrays; use Real_Arrays; with Laphi; use Laphi; procedure test_laphi is NN : Integer := 6; h, hf : real; xg : Real_Vector(1..NN); x, y, yp, ypp, yppp, ypppp : real; xmin : Real := 0.0; -- xg(0) xmax : Real := 1.0; -- xg(n) Package Real_IO is new Float_IO(Real); use Real_IO; begin Put_Line("test_laphi.adb running on 0