On Thu, 27 Nov 2008, Jose A. Vallejo wrote: > H(V,f):=diff(f(x),x)+V*f(x) A note of caution... this, and all the other Maxima code in this thread, involves the first derivative of f(x). If you're trying to define the Hamiltonian, then you want the second derivative - which I think is what you had in the Mathematica snippet. -- HTH, Dan