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

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

Initial import--MML version from SOLEIL@2013

File size: 177 bytes
Line 
1function pass = testpoly
2% Tests the function poly. Rodp, Feb 2009.
3
4c = rand(1,5);
5f = chebfun(@(x) polyval(c,x), [-2 10],5);
6pass = norm(c - poly(f)) < chebfunpref('eps')*1e5;
Note: See TracBrowser for help on using the repository browser.