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

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

Initial import--MML version from SOLEIL@2013

File size: 217 bytes
Line 
1function pass = operarith
2
3d = domain(-1,4);
4Q = cumsum(d);
5D = diff(d);
6f = chebfun(@(x) exp(sin(x).^2+2),d);
7F = diag(f);
8A = -(2*D^2 - F*Q + 3);
9Af = A*f;
10
11pass = norm( Af - (f.*cumsum(f)-2*diff(f,2)-3*f) ) < eps;
Note: See TracBrowser for help on using the repository browser.