function lagrange_rule_test ( )

%*****************************************************************************80
%
%% lagrange_rule_test() tests lagrange_rule();
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 November 2019
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'lagrange_rule_test():\n' );
  fprintf ( 1, '  lagrange_rule() computes weights for a Lagrange rule;\n' );
  fprintf ( 1, '\n' );

  n = 8;
  x = 1:n;
  w = lagrange_rule ( n, x );

  r8vec2_print ( n, x, w, '  (X,W) Lagrange rule weights' );

  return
end
