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.

rang.m
% Generates Figure 2.
 n=16;dom=[0,1];kind=2;N=9;p=1/2;
 D=deriv(n,dom);x=pd(n,dom,kind);
 S=dev(n,x,dom,p*x);T=cpv(n,0,dom);
 for k=0:0.25:N;A=D-k*S*D;A(n,:)=T;f(4*k+1)=rank(A);end;
 plot(0:0.25:N,f,'*');grid;axis([0 N+1 14 17]);
 xlabel('c');ylabel('rank(L)');

Contact us