Here are some functions for constructing individual members of certain families of orthogonal polynomials.
n be a non-negative integer, and
x a ring element
(typically an indeterminate or a number). The functions below
evaluate the corresponding polynomial at
x is an
indeterminate then the polynomial itself is returned.
ChebyshevPoly(n,x)Chebyshev polynomial of 1st kind
ChebyshevPoly2(n,x)Chebyshev polynomial of 2nd kind
HermitePoly(n,x)Hermite polynomial (physics)
HermitePoly2(n,x)Hermite polynomial (probability)
LaguerrePoly(n,x)Laguerre polynomomial multiplied by
Some of the Chebyshev functions are not used, but I left them there in case they ever become useful.
The dispatch functions for Hermite polynomials have not been tested; so I do not know if the criterion for choosing between "explicit" and "iterative" implementations actually makes any sense.