source: MML/trunk/machine/SOLEIL/common/toolbox/chebfun_v2_0501/chebfun/chebtests/max_and_imps.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: 315 bytes
Line 
1function pass = max_and_imps
2
3% Tests if max (or min) introduces small jumps when computing the maximum
4% of two smooth functions. Rodrigo Platte, May 2009.
5
6x = chebfun('x',[0 10]);
7f = sin(x) + sin(x.^2);
8hat = 1-abs(x-5)/5;
9h = max(f,hat);
10m = h./sqrt(1+x)+sin(2*x)/10;
11mp = diff(m);
12pass = size(mp.imps,1) == 1;
Note: See TracBrowser for help on using the repository browser.