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:
399 bytes
|
Line | |
---|
1 | function pass = callpref |
---|
2 | |
---|
3 | % Tests for changes in preference in a chebfun call. |
---|
4 | % Rodrigo Platte, May 2009 |
---|
5 | |
---|
6 | f = chebfun(@(x) sign(x-0.5), [-2 3], 'splitting', 1, 'minsamples', 5); |
---|
7 | pass(1) = f(0) == -1 && f(0.5) == 0 && f(1) == 1 && length(f) == 2; |
---|
8 | |
---|
9 | f = chebfun(@(x) sin(100*x), 'splitting', 1, 'splitdegree', 32); |
---|
10 | pass(2) = true; |
---|
11 | for k = 1:numel(f.funs) |
---|
12 | pass(2) = pass(2) && f.funs(k).n <32; |
---|
13 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.