function r8_cube_root_test ( )

%*****************************************************************************80
%
%% r8_cube_root_test() tests r8_cube_root().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 May 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8_cube_root_test():\n' );
  fprintf ( 1, '  r8_cube_root() computes the cube root of an R8.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '       X               Y               Y^3\n' );
  fprintf ( 1, '\n' );

  for i = 1 : 10
    x1 = -10.0 + 20.0 * rand ( );
    y = r8_cube_root ( x1 );
    x2 = y ^ 3;
    fprintf ( 1, '  %14.6g  %14.6g  %14.6g\n', x1, y, x2 );
  end

  return
end
