- #1

happyparticle

- 400

- 20

Hi,

I'm trying to solve a transcendental equation. I would like all the values of E that solve this equation.

##k = -l \cdot Cot(la)##

However, using Nsolve or FindRoot, they give me a precision error. Hence, I'm trying this form.

##\sqrt{-e /(e+v)} = -Cot(la)##

FindRoot only give me an imaginary value and NSolve just keep running.

Here is my code

I'm trying to find all the energies corresponding to the bound states in a potential well.

https://quantummechanics.ucsd.edu/ph130a/130_notes/node151.html

Thank you

I'm trying to solve a transcendental equation. I would like all the values of E that solve this equation.

##k = -l \cdot Cot(la)##

However, using Nsolve or FindRoot, they give me a precision error. Hence, I'm trying this form.

##\sqrt{-e /(e+v)} = -Cot(la)##

FindRoot only give me an imaginary value and NSolve just keep running.

Here is my code

Code:

```
k = Sqrt[-2*m*e] /h
l = Sqrt[2*m*(e+v)] /h
m = (2.66*10^-26)(2.32*10^-26) / ((2.66*10^-26) + (2.32*10^-26))
h = 6.58-10^-16
v = 0.05
a = 3.2*10^-10
Nsolve[Sqrt[-e / (e+v)] == -(Cot[l-a]), e]
```

I'm trying to find all the energies corresponding to the bound states in a potential well.

https://quantummechanics.ucsd.edu/ph130a/130_notes/node151.html

Thank you

Last edited: