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.

demo_ex6dde.m
% use: demo_ex6dde
tic;
[T,Y,~]=Ex6_delay(128,10,1/0.1625,12/0.1625,0.5,-1,100);
toc;
I=find(T>95);plot(T(I),Y(I),'b');grid;xlabel('t');ylabel('y');hold on;
[T,Y,y_coef]=Ex6_delay(128,10,1/0.1625,12/0.1625,0.5, 1,100);
I=find(T>95);plot(T(I),Y(I),'r');hold on;
tic;
sol=Ex6_delay_dde(10,1/0.1625,12/0.1625,0.5,-1,100);
toc;
I=find(sol.x>95);plot(sol.x(I),sol.y(I),'bo');hold on;
sol=Ex6_delay_dde(10,1/0.1625,12/0.1625,0.5, 1,100);
I=find(sol.x>95);plot(sol.x(I),sol.y(I),'ro');hold on;
legend('y_1(t) Chebpack','y_2(t) Chebpack','y_1(t) ddesd','y_2(t) ddesd');

Contact us