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=Ex3_delay_dde
function sol=Ex3_delay_dde
% use sol=Ex3_delay_dde;
tic;options=ddeset('RelTol',1.e-12,'AbsTol',1.e-15);
sol=ddesd(@ddewride,@ddewridelays,@ddewrihist,[0,0.999999999999886],options);
figure(1);plot(sol.x,sol.y,'.r');xlabel('t');ylabel('y');grid;
tf=sol.x(end),yf=sol.y(end),yref=2.271492555500812,
toc;
function dydt=ddewride(t,y,Z)
dydt=Z;
end
function s=ddewrihist(t)
    s=1;
end
function d=ddewridelays(t,y)
    d=2*t-1;
end
end

Contact us