3 % small script demonstrating interval integration of polynomials
4 % of degree
'pdeg' with quadratures of degree
'qdeg'
7 % pdeg: polynomial degree (
default = 25)
8 % qdeg: quadrature degree (
default = 23)
11 % qres: a matrix with the integration results
13 % Bernard Haasdonk 28.8.2009
23 qres = zeros(pdeg+1,qdeg+1);
30 disp(qres); % otherwise in the demos command window no output appears.
function res = intervalquadrature(poldeg, func, varargin)
integration of function func over reference interval == unit interval. by Gaussian quadrature exactly...
function qres = demo_quadratures(pdeg, qdeg)
small script demonstrating interval integration of polynomials of degree pdeg with quadratures of deg...