function fzerotx_test ( )

%*****************************************************************************80
%
%% fzerotx_test tests fzerotx.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 January 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'fzerotx_test\n' );
  fprintf ( 1, '  fzerotx finds a zero of a function.\n' );

  f = @sin;
  a = 1.0;
  b = 4.0;

  x = fzerotx ( f, [ a, b ] );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Seek the zero of sin(x) between %g and %g\n', a, b );
  fprintf ( 1, '  sin(%g) = %g\n', x, sin(x) );

  return
end
