function jacobi_cn_values_test ( )

%*****************************************************************************80
%
%% jacobi_cn_values_test() tests jacobi_cn_values().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 June 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'jacobi_cn_values_test():\n' );
  fprintf ( 1, '  jacobi_cn_values() returns values of\n' );
  fprintf ( 1, '  the Jacobi elliptic CN function.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '        U           M               CN(U,M)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, u, m, fx ] = jacobi_cn_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fprintf ( 1, '  %12f  %12f  %24.16f\n', u, m, fx );

  end

  return
end
