function besselj_zero_test ( )

%*****************************************************************************80
%
%% besselj_zero_test() tests besselj_zero().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 June 2025
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../besselj_zero' );

  timestamp ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, 'besselj_zero_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test besselj_zero()\n' );

  n = 0;
  nt = 10;
  z0 = jn_zeros ( n, nt );

  n = 1;
  z1 = jn_zeros ( n, nt );

  fprintf ( 1, '\n' );
  fprintf ( 1, '    i    J0(root i)  J1(root i)\n' );
  fprintf ( 1, '\n' );
  for i = 1 : nt
    fprintf ( 1, '  %2d  %14.6g  %14.6g\n', i, z0(i), z1(i) );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'besselj_zero_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  rmpath ( '../besselj_zero' );

  return
end
function timestamp ( )

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

  return
end
