function r8vec_norm_lp_test ( )

%*****************************************************************************80
%
%% r8vec_norm_lp_test() tests r8vec_norm_lp().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 August 2018
%
%  Author:
%
%    John Burkardt
%
  ptest = [ 0.25, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 5.0, 10.0, 20.0 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_NORM_LP_TEST\n' );
  fprintf ( 1, '  R8VEC_NORM_LP computes the LP norm of an R8VEC.\n' );
 
  n = 10;
  b = -n;
  c = n;
  v = b + ( c - b ) * rand ( n, 1 );
 
  r8vec_print ( n, v, '  Input vector V:' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '      P      LP-norm(V)\n' );
  fprintf ( 1, '\n' );
  for i = 1 : 10
    p = ptest(i);
    value = r8vec_norm_lp ( n, v, p );
    fprintf ( 1, '  %8.4f  %14.6g\n', p, value );
  end

  return
end
