qmsolve icon indicating copy to clipboard operation
qmsolve copied to clipboard

Visualization of potential isn't correct for negative values of V0 in 1D_potential_barrier.py

Open sanketsharma opened this issue 1 year ago • 0 comments

I am running the example 1D_potential_barrier.py. In the function potential barrier, if set V0 to a negative value then the visualization of the potential isn't correct. For negative values of V0 the potential is -1 when it should be 0 and -2 when it should be the V0. image

I think the issue lies in line 432 of the animate function.

sanketsharma avatar Apr 02 '24 19:04 sanketsharma