source: MML/trunk/machine/SOLEIL/common/toolbox/chebfun_v2_0501/chebfun/chebtests/sumcos20x.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

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.