Class WaveFunction

java.lang.Object
   |
   +----WaveFunction

public class WaveFunction
extends Object
A one dimensional Schroedinger Wave Function class


Constructor Index

 o WaveFunction(double, double, double, int, int, PotParser)
The constructor calculates the potential, wave function, and the energy.

Method Index

 o getE()
Return the energy
 o getPsi()
return an array of wave function values
 o getV()
return an array of potential values

Constructors

 o WaveFunction
 public WaveFunction(double hb,
                     double xmin,
                     double xmax,
                     int n,
                     int node,
                     PotParser parser) throws ParseException, BoundException
The constructor calculates the potential, wave function, and the energy.

Throws: ParseException
ParseException occurs when the parser is unable to evaluate the potential because of syntax errors.
Throws: BoundException
BoundException occurs when the integrator is unable to find an upper or lower bound to the energy -- generally because of underflows or overflows or because the step size is too small.

Methods

 o getE
 public double getE()
Return the energy

 o getPsi
 public double[] getPsi()
return an array of wave function values

 o getV
 public double[] getV()
return an array of potential values