function dixon_elliptic_values_test ( )

%*****************************************************************************80
%
%% dixon_elliptic_values_test() tests dixon_elliptic_values().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 December 2023
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'dixon_elliptic_values_test():\n' );
  fprintf ( 1, '  dixon_elliptic_values() stores values of the\n' );
  fprintf ( 1, '  Dixon elliptic functions cm(x) and sm(x).\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '     X      CM(x)   SM(X)     CM(X)^3+SM(X)^3\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, x, cm, sm ] = dixon_elliptic_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fprintf ( 1, '  %8f  %8f  %8f  %8f\n', x, cm, sm, cm^3+sm^3 );

  end

  return
end
