|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensourcephysics.sip.ch16.Eigenstate
public class Eigenstate
Eigenstate computes energy eigenstates for an arbitrary potential.
Field Summary | |
---|---|
static int |
DID_NOT_CONVERGE
|
static int |
INSUFFICIENT_NUMBER_OF_POINTS
|
static int |
NO_ERROR
|
Constructor Summary | |
---|---|
Eigenstate(Function potential,
int numberOfPoints,
double xmin,
double xmax)
Constructs an Eigenstate using the given potential function and the given x-domain. |
Method Summary | |
---|---|
double[] |
getEigenstate(int qnumber)
Gets the energy eigenfuntion for the given quantum number. |
int |
getErrorCode()
Gets the error code for the last eigenstate computation. |
void |
getRate(double[] state,
double[] rate)
Gets the rate of change using the argument's state variables. |
double[] |
getState()
Gets the state. |
double[] |
getXCoordinates()
Gets the x coordinates during the eigenstate computation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NO_ERROR
public static final int DID_NOT_CONVERGE
public static final int INSUFFICIENT_NUMBER_OF_POINTS
Constructor Detail |
---|
public Eigenstate(Function potential, int numberOfPoints, double xmin, double xmax)
Method Detail |
---|
public double[] getEigenstate(int qnumber)
qnumber
- quantum number
public double[] getXCoordinates()
public int getErrorCode()
public double[] getState()
getState
in interface ODE
public void getRate(double[] state, double[] rate)
ODE
getRate
in interface ODE
state
- the state arrayrate
- the rate array
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |