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.

sol=Ex1_delay_dde(alpha,K)
function sol=Ex1_delay_dde(alpha,K)
% use sol=Ex1_dde(3,50);
options=ddeset('RelTol',1.e-3,'AbsTol',1.e-6);
sol=ddesd(@ddewride,1,@ddewrihist,[0,K],options);
function dydt=ddewride(t,y,Z)
    ylag=Z;
    dydt=-alpha*ylag.*(1+y);
end
function s=ddewrihist(t)
    s=0.1*t.^3+t-0.5;
end
end

Contact us