Julia analog to R's poly function, orthogonal polynomials by QR decomposition

Trefethen and Bau lecture 37 talks about the connection of orthogonal polynomials to Lanczos. The only difference between e.g. Legendre polynomials and your case (discrete collection of points) is the inner product.

2 Likes

Great, I´ll have it in mind! Thanks for the help!!

Great, I’ll check out the reference!! Thanks for the help!!