Class WaveFunction
java.lang.Object
|
+----WaveFunction
- public class WaveFunction
- extends Object
A one dimensional Schroedinger Wave Function class
-
WaveFunction(double, double, double, int, int, PotParser)
- The constructor calculates the potential, wave function, and the energy.
-
getE()
- Return the energy
-
getPsi()
- return an array of wave function values
-
getV()
- return an array of potential values
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.
getE
public double getE()
- Return the energy
getPsi
public double[] getPsi()
- return an array of wave function values
getV
public double[] getV()
- return an array of potential values