Code covered by the BSD License  

Highlights from
Chebpack

image thumbnail

Chebpack

by

 

15 Jul 2011 (Updated )

The MATLAB package Chebpack solves specific problems for differential or integral equations.

wip( f,g,r,wleg)
function I = wip( f,g,r,wleg)
% f,g,r values on Legendre grid
% I=int_dom1^dom2 f*g*r dx
[~,p]=size(g);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
gg=repmat(wleg'.*r,[1,p]).*g;
I=(f'*gg);

Contact us