Interaction Module

This module handles interaction and plotting functions to display and visualize results.

Main.SchrödingerSolver.Interaction.plot_wavefunctionsMethod
plot_wavefunctions(
    x_vals::AbstractVector{Float64},
    wavefunctions::Vector{Vector{Float64}},
    num_levels::Int,
    potential_name::String,
    potential_params::Vector{Float64}
)

Plots the wave functions.

Arguments

  • x_vals: Values of x.
  • wavefunctions: Precomputed and normalized wave functions.
  • num_levels: Number of energy levels to plot.
  • potential_name: The name of the potential function.
  • potential_params: Coefficients for the polynomial potential function.
source