function c8_cube_root_test ( )

%*****************************************************************************80
%
%% c8_cube_root_test() tests c8_cube_root().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 March 2013
%
%  Author:
%
%    John Burkardt
%
  test_num = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'C8_CUBE_ROOT_TEST\n' );
  fprintf ( 1, '  C8_CUBE_ROOT computes the principal cube root of a C8.\n' );
 
  fprintf ( 1, '\n' );
  fprintf ( 1, ...
    '            C1=random            C2=C8_CUBE_ROOT(C1)         C3=C2*C2*C2\n' );
  fprintf ( 1, '\n' );

  for test = 1 : test_num
 
    c1 = c8_uniform_01 ( );
    c2 = c8_cube_root ( c1 );
    c3 = c1 * c1 * c1;

    fprintf ( 1, '  %10f  %10f    %10f  %10f    %10f  %10f\n', ...
      real ( c1 ), imag ( c1 ), ...
      real ( c2 ), imag ( c2 ), ...
      real ( c3 ), imag ( c3 ) );
 
  end

  return
end
