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

Last change on this file since 4 was 4, checked in by zhangj, 11 years ago

Initial import--MML version from SOLEIL@2013

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.