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 | |
---|
1 | function 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 | |
---|
6 | x = chebfun('x',[0 10]); |
---|
7 | f = sin(x) + sin(x.^2); |
---|
8 | hat = 1-abs(x-5)/5; |
---|
9 | h = max(f,hat); |
---|
10 | m = h./sqrt(1+x)+sin(2*x)/10; |
---|
11 | mp = diff(m); |
---|
12 | pass = size(mp.imps,1) == 1; |
---|
Note: See
TracBrowser
for help on using the repository browser.