Last change
on this file was
17,
checked in by zhangj, 10 years ago
|
To have a stable version on the server.
|
-
Property svn:executable set to
*
|
File size:
483 bytes
|
Line | |
---|
1 | function pass = normtests |
---|
2 | |
---|
3 | % Nick Trefethen 22 March 2009 |
---|
4 | tol = chebfunpref('eps'); |
---|
5 | x = chebfun('x'); |
---|
6 | absx = abs(x); |
---|
7 | pass1 = (norm(absx,1)==1); |
---|
8 | |
---|
9 | dabsx = diff(abs(x)); |
---|
10 | pass2 = (norm(dabsx,1)==2); |
---|
11 | pass3 = (norm(dabsx,inf)==1); |
---|
12 | pass4 = (norm(-dabsx,inf)==1); |
---|
13 | |
---|
14 | ddabsx = diff(dabsx); |
---|
15 | pass5 = (norm(ddabsx,1)==2); |
---|
16 | pass6 = (norm(-ddabsx,1)==2); |
---|
17 | pass7 = (norm(ddabsx,inf)==inf); |
---|
18 | pass8 = (norm(-ddabsx,inf)==inf); |
---|
19 | pass = pass1 && pass2 && pass3 && pass4 && pass5 && pass6 && pass7 && pass8; |
---|
Note: See
TracBrowser
for help on using the repository browser.