source: MML/trunk/machine/SOLEIL/common/toolbox/chebfun_v2_0501/chebfun/chebtests/aliasing.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: 297 bytes
Line 
1function pass = aliasing
2
3% Tests for aliasing. Rodrigo Platte, May 2009.
4
5p1 = chebfun(@(x) cos(50*acos(x)), 'sampletest', 1);
6p2 = chebpoly(50,[-1,1]);
7pass(1) = norm(p1-p2) < chebfunpref('eps')*100;
8
9f = chebfun(@(x) sin(50*x).*exp(-x.^2), [-10,10],'sampletest',1);
10pass(2) = length(f) > 600;
11
Note: See TracBrowser for help on using the repository browser.