function i4poly_add_test ( )

%*****************************************************************************80
%
%% i4poly_add_test() tests i4poly_add().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    27 May 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4poly_add_test():\n' );
  fprintf ( 1, '  i4poly_add() adds two I4POLY''s.\n' );

  na = 5;
  a = [ 0, 1, 2, 3, 4, 5 ];
  nb = 5;
  b = [ 1, -2, 7, 8, 0, -5 ];

  c = i4poly_add ( na, a, nb, b );

  i4poly_print ( na, a, '  Polynomial A:' );

  i4poly_print ( nb, b, '  Polynomial B:' );

  nc = max ( na, nb );

  nc2 = i4poly_degree ( nc, c );

  i4poly_print ( nc2, c, '  Polynomial C = A+B:' );

  return
end
