function polynomial1_test ( )

%*****************************************************************************80
%
%% polynomial1_test() deals with a particular polynomial.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 December 2023
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polynomial1_test():\n' );
  fprintf ( 1, '  Bound the roots of a specific polynomial:\n' );
  fprintf ( 1, '    12z^5 + 2z^2 + 23i.\n' );

  c = [ 12.0, 0.0, 0.0, 2.0, 0.0, 23.0i ];
  
  b = polynomial_root_bound ( c );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Root magnitude bound is %g\n', b );

  r = roots ( c );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Polynomial roots are:\n' );
  disp ( r );

  clf ( );
  hold ( 'on' );
    plot ( real ( r ), imag ( r ), 'b.', 'markersize', 20 );
    t = linspace ( 0.0, 2.0 * pi, 49 );
    cx = b * cos ( t );
    cy = b * sin ( t );
    plot ( cx, cy, 'r', 'linewidth', 3 );
  hold ( 'off' );
  grid ( 'on' );
  axis ( 'equal' );
  title ( 'Polynomial #1' );
  filename = 'polynomial1_test.png';
  print ( '-dpng', filename );  
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  return
end

