The sequence in (defined for all reals) of Hermite polynomials can be orthonormalized, this constitutes a basis for the
space, then, in analogy with the n-dimensional case, any function f can be approximated by a linear combination of this sequence. This code graphs the approximation of various functions in terms of the 'Hermite basis' at
. If
Where is the Hermite function of order n, given by:
The last one constitutes a total orthonormal sequence in , and the corresponding Hermite polynomial is given by:
Using the properties of orthonormality of the sequence we can obtain the coefficients of the combination by taking the inner product
With this information we can obtain graphical representations of the approximations.