function besselj_octave_test ( )

%*****************************************************************************80
%
%% besselj_octave_test() tests octave's besselj().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 November 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'besselj_octave_test():\n' );
  fprintf ( 1, '  The octave besselj() function evaluates \n' );
  fprintf ( 1, '  the Bessel Jn function for NONINTEGER order.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '        NU            X               besselj(nu,x)             Tabulated\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, n, x, fx2 ] = bessel_jx_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fx1 = besselj ( n, x );

    fprintf ( 1, '  %12f  %12f  %24.16g  %24.16g\n', n, x, fx1, fx2 );

  end

  return
end
