3 % integration of
function func over reference cube == unit cube.
4 % by Gaussian quadrature exactly integrating polynoms of poldeg.
7 % poldeg: degree of polynomial the quadrature rule exactly approximates
9 % dim: dimension of cube on which we want to integrate (>=2)
10 % func: is a
function getting a local coordinate vector (1d) and giving a
11 % (vectorial or scalar) result
12 % varargin: optional further arguments for function
15 % res: result of quadrature
29 weightss = kron(weightss, weights);
30 weightss = reshape(weightss, m*n, 1);
31 pointss = [repmat(pointss, n, 1), reshape(repmat(points,1,m)',n*m,1)];
34 res = quadrature(weightss,pointss,func,varargin{:});
function res = cubequadrature(poldeg, func, varargin)
integration of function func over reference cube == unit cube. by Gaussian quadrature exactly integra...
function [ points , weights ] = get_quadrature_weights_1d(poldeg)
returns local quadrature points and corresponding weights for a Gaussian quadrature rule for a functi...