function lp_values_test ( )

%*****************************************************************************80
%
%% lp_values_test() tests lp_values().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 October 2014
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'lp_values_test():\n' );
  fprintf ( 1, '  lp_values() stores values of\n' );
  fprintf ( 1, '  the Legendre polynomial P(o,x).\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '                        Tabulated\n' );
  fprintf ( 1, '     O        X           L(O,X)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, o, x, fx ] = lp_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fprintf ( 1, '  %4d  %12f  %24g\n', o, x, fx );

  end

  return
end
