function jacobi_sn_values_test ( )

%*****************************************************************************80
%
%% JACOBI_SN_VALUES_TEST demonstrates the use of JACOBI_SN_VALUES.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    25 June 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'JACOBI_SN_VALUES_TEST:\n' );
  fprintf ( 1, '  JACOBI_SN_VALUES returns values of\n' );
  fprintf ( 1, '  the Jacobi elliptic SN function.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '        U           M               SN(U,M)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

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

    if ( n_data == 0 )
      break
    end

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

  end

  return
end
