<< chebyshev_eval Chebyshev chebyshev_pdf >>

Orthogonal Polynomials >> Orthogonal Polynomials > Chebyshev > chebyshev_norm

chebyshev_norm

Compute Chebyshev L2 norm

Calling Sequence

y=chebyshev_norm(n)

Parameters

n :

a 1-by-1 matrix of doubles, integer value, n>=0.

y :

a matrix of doubles, the norm

Description

Compute the integral

If n=0,

If n>0,

Examples

// 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

Authors


Report an issue
<< chebyshev_eval Chebyshev chebyshev_pdf >>