source:
MML/trunk/machine/SOLEIL/common/toolbox/chebfun_v2_0501/chebfun/chebtests/restrictimps.m
@
4
Last change on this file since 4 was 4, checked in by , 11 years ago | |
---|---|
File size: 268 bytes |
Line | |
---|---|
1 | function pass = restrictimps |
2 | % Test handling of the imps matrix by restrict |
3 | % RodP 18/12/2008 |
4 | |
5 | splitting on |
6 | |
7 | f = chebfun(@(x) sign(x)+sin(x)); |
8 | g = diff(f); |
9 | h = g{-0.8, 0.7}; |
10 | IM = [[g(-0.8); 0] g.imps(:,2) [g(0.7); 0]]; |
11 | pass = norm(h.imps - IM) < 10*chebfunpref('eps'); |
Note: See TracBrowser
for help on using the repository browser.