function r8poly_degree_test ( )

%*****************************************************************************80
%
%% R8POLY_DEGREE_TEST tests R8POLY_DEGREE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    28 May 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8POLY_DEGREE_TEST\n' );
  fprintf ( 1, '  R8POLY_DEGREE returns the degree of an R8POLY.\n' );

  n = 10;
  a = [ 0.0, 1.1, 0.0, 3.3, 4.4, 0.0, 6.6, 7.7, 0.0, 0.0, 0.0 ];

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

  return
end
