function elliptic_integral_test ( )

%*****************************************************************************80
%
%% elliptic_integral_test() tests elliptic_integral().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 November 2020
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../elliptic_integral' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'elliptic_integral_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test elliptic_integral().\n' );
%
%  Carlson integrals.
%
  rc_test ( );
  rc_test2 ( );
  rd_test ( );
  rf_test ( );
  rj_test ( );
%
%  Complete integrals.
%
  elliptic_ea_test ( );
  elliptic_ek_test ( );
  elliptic_em_test ( );

  elliptic_fa_test ( );
  elliptic_fk_test ( );
  elliptic_fm_test ( );

  elliptic_pia_test ( );
  elliptic_pik_test ( );
  elliptic_pim_test ( );
%
%  Incomplete integrals.
%  (Require symbolic toolbox)
%
  if ( false )

    elliptic_inc_ea_test ( );
    elliptic_inc_ek_test ( );
    elliptic_inc_em_test ( );

    elliptic_inc_fa_test ( );
    elliptic_inc_fk_test ( );
    elliptic_inc_fm_test ( );

    elliptic_inc_pia_test ( );
    elliptic_inc_pik_test ( );
    elliptic_inc_pim_test ( );

  end
%
%  Jacobi elliptic functions.
%
  jacobi_cnm_test ( );
  jacobi_dnm_test ( );
  jacobi_snm_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'elliptic_integral_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../elliptic_integral' );

  return;
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

