function r8vec_softmax_test ( )

%*****************************************************************************80
%
%% r8vec_softmax_test() tests r8vec_softmax().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 August 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_SOFTMAX_TEST\n' );
  fprintf ( 1, '  R8VEC_SOFTMAX evaluates the softmax function of an R8VEC.\n' );

  n = 10;
  a = -3.0;
  b = +3.0;
  x = a + ( b - a ) * rand ( n, 1 );

  sx = r8vec_softmax ( n, x );

  r8vec2_print ( x, sx, '  X, Softmax(X):' );

  return
end
