chebyshev with sinus parameter as an input

Hello, is there a way to get an expression for P_n(sin (theta)) a chebyshev polynomial with sinus theta as an input parameter?
Thanks

 채택된 답변

John D'Errico
John D'Errico 2017년 5월 14일
편집: John D'Errico 2017년 5월 14일

0 개 추천

What have you tried? If nothing, then why not?
Easy enough to build a Chebychev polynomial, using the standard recursion relations. Wikipedia will surely give them, and I know that sufficient information can be found in Abramowitz and Stegun, because I wrote tools based on that long ago. My copy of Abramowitz and Stegun is so well used that I put tabs in it at a few useful pages. (A useful text.) Then you just make it into a function of theta, as you wish. So just create a function handle.
Probably easier yet is to download the chebfun toolbox, which will probably make it easy to solve that problem. So 2 simple lines of code.
p3 = chebpoly(3);
pfun = @(theta) p3(sin(theta));
pfun(.5)
ans =
-0.99749
Or, if you wanted it for a general value of n, not fixed in advance as I did, then just write a function m-file.

댓글 수: 1

fima v
fima v 2017년 7월 8일
편집: fima v 2017년 7월 8일
Hello, i am trying to recreate this article example i tried functions like chebychefT but i cant get this specific numbers. what do you think they were using? Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Polynomials에 대해 자세히 알아보기

질문:

2017년 5월 14일

편집:

2017년 7월 8일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by