I'm trying to tell maxima about a recurrence relation for the hermite polynomials:
My first expression is like this:
phi[0]:exp(-1/2*x^2);
phi[1]:sqrt(2)*x*phi[0];
wxplot2d([phi[0],phi[1]], [x,-5,5]);
So far so good, but I'd like now to define all the others by:
phi[n]:sqrt(2/n)*x*phi[n-1] - sqrt((n-1)/n)*phi[n-2];
This just bombs (stack overflow). What do I really want to say so that
wxplot2d(phi[10], [x,-5,5]) will give me a sensible picture?