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.

1 Like