CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

Help on chebyshev polynomials

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 18, 2013, 11:03
Default Help on chebyshev polynomials
New Member
Join Date: Apr 2013
Posts: 15
Rep Power: 6
shubiaohewan is on a distinguished road
Hi all,

I want to see the orthogonality of the chebyshev polynomials in Matlab.

The nodes I choose is the Chebyshev nodes, cos(\pi\frac{2i-1}{2n}).. i=1.....n

According to the approximation theory, I can have \int_{-1}^1 T_i(x)T_j(x)\frac{dx}{\sqrt{1-x^2}}=\frac{\pi}{2}(1+\delta_{0i})\delta_{ij}

Now, how can I numerically show that the orthogonality? What I did is
(1) I generate the chebyshev polynomials in Matlab, stored in p(:,i), i is the order 0....n
(2) sum(p(:,i).*p(:,j)), meaning that the component-wise sum of the i-th order chebyshev and j-th one.

But it turns out that some of the results work, some of them don't.

Did I do something wrong here? I didn't mention the weight function since for the chebyshev nodes, the weight function is constant pi/n. So at least, it should affect the orthogonality.

Any comments? Thanks.
shubiaohewan is offline   Reply With Quote

Old   July 18, 2013, 11:32
New Member
Join Date: Apr 2013
Posts: 15
Rep Power: 6
shubiaohewan is on a distinguished road
Sorry, please ignore this thread. Problem solved.
shubiaohewan is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chebyshev collocation method Sun Yuhui Main CFD Forum 3 May 6, 2012 02:46
2D pseudo-spectral (Chebyshev) parallel Helmholtz solver package magicsquirrel Main CFD Forum 0 July 13, 2011 10:45
nasa polynomials gardian CFX 3 March 10, 2011 07:29
Chebyshev Polynomials in a infinite Channel??? Carlos Main CFD Forum 5 April 9, 2002 15:05
Chebyshev grid Annie Main CFD Forum 4 February 11, 2002 08:00

All times are GMT -4. The time now is 18:33.