function r8mat_vand2_test ( )

%*****************************************************************************80
%
%% R8MAT_VAND2_TEST tests R8MAT_VAND2.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 February 2015
%
%  Author:
%
%    John Burkardt
%
  m = 5;
  n = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8MAT_VAND2_TEST\n' );
  fprintf ( 1, '  R8MAT_VAND2 returns a row Vandermonde matrix.\n' );

  x = r8vec_indicator1 ( m );
  r8vec_print ( m, x, '  The factor vector X:' );

  a = r8mat_vand2 ( m, n, x );
  r8mat_print ( m, n, a, '  The row Vandermonde matrix:' );

  return
end
