Originally posted by: Armitage
This is pretty straight forward if you can evaluate the function to be approximated at the nodes of the Nth Chebyshev polynomial. I know it can be done for an arbitrary choice of points, but I haven't found any references as to how.
Any pointers?
Originally posted by: Armitage
I think I have a way to do it by mapping my equidistant x values onto the Chebyshev nodes. I've got the mapping function worked out - I'll try the rest tomorrow. It ought to work![]()
Originally posted by: TuxDave
Originally posted by: Armitage
I think I have a way to do it by mapping my equidistant x values onto the Chebyshev nodes. I've got the mapping function worked out - I'll try the rest tomorrow. It ought to work![]()
If you have MATLAB, it should be fairly easy to map out. Solving a set of N linear equations is a quick matrix operation.
y = ax^N+bx^(N-1)+.... +z
Substitute your x and y values in and you get a linear equation of a,b,c,d,e..... solve with matrices and matlab since it's pretty good when working with vectors.
Yeah, it's a lot easier with Lagrangian or Legendre polynomials. These are typically used for numerical solution techniques for that reason. I've yet to figure out the real benefit to using Chebyshev, but my application experience is pretty much zero, so I'm sure it is useful to someone. If you need any help with the other two, let me know.Originally posted by: Armitage
Meh - I'm bailing on the Chebyshev stuff - tried it primarily because it came highly reccomended by a senior guy at work. They still look like a really good deal if you can evaluate the original function at the nodes to build the Chebyshev model.
I put together a quick-n-dirty lagrange polynomial today and it's working great.
Originally posted by: CycloWizard
Yeah, it's a lot easier with Lagrangian or Legendre polynomials. These are typically used for numerical solution techniques for that reason. I've yet to figure out the real benefit to using Chebyshev, but my application experience is pretty much zero, so I'm sure it is useful to someone. If you need any help with the other two, let me know.Originally posted by: Armitage
Meh - I'm bailing on the Chebyshev stuff - tried it primarily because it came highly reccomended by a senior guy at work. They still look like a really good deal if you can evaluate the original function at the nodes to build the Chebyshev model.
I put together a quick-n-dirty lagrange polynomial today and it's working great.