function polynomial_degree_test ( )

%*****************************************************************************80
%
%% polynomial_degree_test() tests polynomial_degree().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    15 September 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polynomial_degree_test():\n' );
  fprintf ( 1, '  polynomial_degree() returns the degree of an polynomial.\n' );

  c = [ 0, 1, 0, 3, 4, 0, 6, 7, 0, 0, 0 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, '  polynomial coefficient vector c:\n' );
  disp ( c );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  p(x) = ' );
  polynomial_print ( c );
  degree = polynomial_degree ( c );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  The polynomial degree is %d\n', degree );

  return
end
