Problem with MuPAD command while solving Schrodinger Equation for Morse Potential
Show older comments

I'm trying to solve this problem with the following command but it's showing "Error: An arithmetical expression is expected. [normal]"
Command:
solve(ode(diff(y(x),x$2)+(2/x)*(diff(y(x),x))+2*(E-(D*(1-exp(-a*(x-j)))^2))*(M/h^2)*y(x)=0,y(x)))
While I try to solve the above problem by taking V as constant I get good result with the command
Command:
solve(ode(diff(y(x),x$2)+(2/x)*(diff(y(x),x))+2*(E-V)*(M/h^2)*y(x)=0,y(x)))
Solution:
{(C8*exp((2^(1/2)*M^(1/2)*x*(V - exp(1))^(1/2))/h))/x - (2^(1/2)*C9*h*exp(-(2^(1/2)*M^(1/2)*x*(V - exp(1))^(1/2))/h))/(4*M^(1/2)*x*(V - exp(1))^(1/2))}
Can anyone please help?
Answers (0)
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!