Compute Chebyshev L2 norm
y=chebyshev_norm(n)
a 1-by-1 matrix of doubles, integer value, n>=0.
a matrix of doubles, the norm
Compute the integral
If n=0,
If n>0,
// Check int Tn(x)^2 w(x) dx function y=sqTw(x, n) w=chebyshev_weight(x) P=chebyshev_eval(x,n) y=P^2*w endfunction for n = 1:5 [v,err]=intg(-1,1,list(sqHew,n)); disp([n,chebyshev_norm(n),v]) end