Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Can I evaluate a Chebyshev polynomial using a function
#1
Hello everyone. I need to evaluate an arbitrary Chebyshev polynomial of order n at a point x. I have done it manually using their definition as

mt.cos(n*mt.acos(x))
However, I am not satisfied by the numerical precision of this, the results are not exact. I have searched the web for a function that does this in a more efficient way and the closest thing I have found is the Chebyshev module. However, inside of it I cannot find what I am looking for.

The first Chebyshev polynomials are P_0=1, P_1=x,P_2=2x^2-1 and so on. I need a function which output is the polynomial of the selected order evaluated at an arbitrary point. i.e. f(n=1, x=0.6)= 0.6, f(n=2, x=0.5)= 2*(0.5)^2-1 and so on.

Can someone tell me if said function exists?
Thanks.
Quote

Top Page

Messages In This Thread
Can I evaluate a Chebyshev polynomial using a function - by player1681 - Nov-21-2019, 08:19 AM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Finding out roots of Chebyshev's polynomials player1681 2 193 Dec-02-2019, 11:53 PM
Last Post: scidam
  Machine Learning Polynomial Regression braveYug 0 137 Nov-13-2019, 11:41 AM
Last Post: braveYug
  Evaluate dataset with logistic regression chisox721 6 509 Jun-06-2019, 03:01 PM
Last Post: chisox721
  Confidence intervals over time with polynomial regression jjameson 0 398 May-16-2019, 02:22 PM
Last Post: jjameson
  To draw a polynomial solution pianistseb 2 614 Nov-13-2018, 01:45 PM
Last Post: pianistseb

Forum Jump:


Users browsing this thread: 1 Guest(s)