function uu_product_test ( )

%*****************************************************************************80
%
%% UU_PRODUCT_TEST tests UU_PRODUCT.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    13 July 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'UU_PRODUCT_TEST:\n' );
  fprintf ( 1, '  UU_PRODUCT(I,J;X) = U(I,X) * U(J,X)\n' );

  r8_lo = -1.0;
  r8_hi = +1.0;
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, '   I   J      X               UI              UJ              UI*UJ       UU_PRODUCT\n' ); 
  fprintf ( 1, '\n' ); 
  for test = 1 : 10
    [ x, seed ] = r8_uniform_ab ( r8_lo, r8_hi, seed );
    [ i, seed ] = i4_uniform_ab ( 0, 6, seed );
    ui = u_polynomial_value ( i, x );
    [ j, seed ] = i4_uniform_ab ( -1, 4, seed );
    uj = u_polynomial_value ( j, x );
    uiuj = uu_product ( i, j, x );
    fprintf ( 1, '  %2d  %2d  %14.6g  %14.6g  %14.6g  %14.6g  %14.6g\n', ...
      i, j, x, ui, uj, ui * uj, uiuj );
  end

  return
end
