source: MML/trunk/machine/SOLEIL/common/toolbox/chebfun_v2_0501/chebfun/chebtests/vectornorms.m

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: 386 bytes
Line 
1function pass = vectornorms
2
3% Nick Trefethen  27 October 2008
4
5f = chebfun(1,2,0:4:8);
6norms(1) = norm(f,1);
7norms(2) = norm(f,2);
8norms(3) = norm(f,inf);
9norms(4) = norm(f,'fro');
10norms(5) = norm(f',1);
11norms(6) = norm(f',2);
12norms(7) = norm(f',inf);
13norms(8) = norm(f','fro');
14s = sqrt(20);
15exact = [12 s 2 s 12 s 2 s];
16pass = (norm(norms-exact,inf) < 1e-14*chebfunpref('eps')/eps);
Note: See TracBrowser for help on using the repository browser.