org.opensourcephysics.sip.ch16
Class GaussianPacket

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

public class GaussianPacket
extends java.lang.Object

A Gaussian wave function with a momentum boost.


Constructor Summary
GaussianPacket(double width, double center, double momentum)
          Constructs the Gaussian wave function with the given center and momentum boost.\
 
Method Summary
 double getImaginary(double x)
          Gets the imaginary part of the Gaussian wave function at the given x.
 double getReal(double x)
          Gets the real part of the Gaussian wave function at the given x.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GaussianPacket

public GaussianPacket(double width,
                      double center,
                      double momentum)
Constructs the Gaussian wave function with the given center and momentum boost.\

Parameters:
width - double
center - double
momentum - double
Method Detail

getReal

public double getReal(double x)
Gets the real part of the Gaussian wave function at the given x.

Parameters:
x - double
Returns:
double

getImaginary

public double getImaginary(double x)
Gets the imaginary part of the Gaussian wave function at the given x.

Parameters:
x - double
Returns:
double