source: MML/trunk/machine/SOLEIL/common/toolbox/chebfun_v2_0501/chebfun/chebtests/systemsolve1.m

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

To have a stable version on the server.

  • Property svn:executable set to *
File size: 333 bytes
Line 
1function pass = systemsolve1
2
3% Test 2x2 system (sin/cos)
4% TAD
5
6tol = chebfunpref('eps');
7
8d=domain(-pi,pi);
9D=diff(d);
10I=eye(d);
11Z=zeros(d);
12A=[I -D; D I];
13x=d(:);
14f=[ 0*x 0*x ];
15A.lbc = {[I Z],-1};
16A.rbc = [Z I];
17u = A\f;
18
19u1 = u(:,1); u2 = u(:,2);
20pass(1) = norm( u1 - cos(x)) < 100*tol;
21pass(2) = norm( u2 - sin(x) ) < 100*tol;
Note: See TracBrowser for help on using the repository browser.