org.opensourcephysics.sip.ch16
Class TDHalfStep

java.lang.Object
  extended by org.opensourcephysics.sip.ch16.TDHalfStep

public class TDHalfStep
extends java.lang.Object

TDHalfStep implements the half-step method for solving the time-dependent Schroedinger equation.


Constructor Summary
TDHalfStep(GaussianPacket packet, int numberOfPoints, double xmin, double xmax)
          Constructs TDHalfStep algorithm in the given x-domain.
 
Method Summary
 double getV(double x)
          Gets the potential energy at x.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TDHalfStep

public TDHalfStep(GaussianPacket packet,
                  int numberOfPoints,
                  double xmin,
                  double xmax)
Constructs TDHalfStep algorithm in the given x-domain. Units such that m = hbar = 1

Parameters:
packet -
numberOfPoints -
xmin -
xmax -
Method Detail

getV

public double getV(double x)
Gets the potential energy at x.

Parameters:
x -
Returns:
the potential