source:
MML/trunk/machine/SOLEIL/common/toolbox/chebfun_v2_0501/chebfun/chebtests/orthosincos.m
@
4
Last change on this file since 4 was 4, checked in by , 11 years ago | |
---|---|
File size: 197 bytes |
Line | |
---|---|
1 | function pass = orthosincos |
2 | |
3 | % TAD |
4 | |
5 | S = []; C = []; |
6 | for n = 1:5 |
7 | S = [S chebfun(@(x) sin(n*x),[0 2*pi])]; |
8 | C = [C chebfun(@(x) cos(n*x),[0 2*pi])]; |
9 | end |
10 | ip = S'*C; |
11 | pass = norm(ip) < 100*eps; |
12 | |
13 | end |
Note: See TracBrowser
for help on using the repository browser.