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