source: MML/trunk/machine/SOLEIL/common/toolbox/chebfun_v2_0501/chebfun/chebtests/sumcos20x.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: 208 bytes
Line 
1function pass = sumcos20x
2
3% TAD
4
5tol = chebfunpref('eps');
6
7f = chebfun('cos(20*x)');
8pass = abs(sum(f)-sin(20)/10) < 1e-15*(tol/eps);
9
10% RodP
11pass = pass && abs(sum(f*1i)-1i*sin(20)/10) < 1e-15*(tol/eps);
12
Note: See TracBrowser for help on using the repository browser.