function elliptic_ea_test ( )

%*****************************************************************************80
%
%% ELLIPTIC_EA_TEST tests ELLIPTIC_EA.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    31 May 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ELLIPTIC_EA_TEST:\n' );
  fprintf ( 1, '  ELLIPTIC_EA returns values of\n' );
  fprintf ( 1, '  the complete elliptic integral of the\n' );
  fprintf ( 1, '  second kind, with parameter angle A.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '      A       E(A)          E(A)\n' );
  fprintf ( 1, '          Tabulated         Calculated\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, a, fx ] = elliptic_ea_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fx2 = elliptic_ea ( a );

    fprintf ( 1, '  %14.6f  %24.16g  %24.16g\n', a, fx, fx2 );

  end

  return
end
