source: MML/trunk/machine/SOLEIL/common/toolbox/chebfun_v2_0501/chebfun/chebtests/ivp1.m @ 17

Last change on this file since 17 was 17, checked in by zhangj, 10 years ago

To have a stable version on the server.

  • Property svn:executable set to *
File size: 206 bytes
Line 
1function pass = ivp1
2
3tol = chebfunpref('eps');
4
5d = domain(-1,1);
6x = chebfun(@(x)x,d);
7I = eye(d);
8D = diff(d);
9A = (D-I) & {'dirichlet',exp(-1)-1};
10u = A\(1-x);
11
12pass = norm( u - (exp(x)+x) ) < 100*tol;
Note: See TracBrowser for help on using the repository browser.