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