Skip to content

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

@sanketsharma

Description

@sanketsharma

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions