function i4poly_degree_test ( )

%*****************************************************************************80
%
%% i4poly_degree_test() tests i4poly_degree().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    26 May 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4poly_degree_test():\n' );
  fprintf ( 1, '  i4poly_degree() returns the degree of an I4POLY.\n' );

  n = 10;
  a = [ 0, 1, 0, 3, 4, 0, 6, 7, 0, 0, 0 ];

  i4poly_print ( n, a, '  The polynomial:' );
  degree = i4poly_degree ( n, a );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  The polynomial degree is %d\n', degree );

  return
end
