Interface Solvable

All Known Implementing Classes:
EffectiveMass, Histogram, KronigPenney, Schrodinger, SolnCache, TimeDepSchrodinger, SolvFunction, TimeGraph, Transmission

interface Solvable

Represents an equation (or some more abstract object) which can be solved or sampled for a set of evenly spaced x-values. This may involve function evaluation, or approximate integration, or some other technique.

See Also:
SolvFunction

Method Summary
 void solve(double x0, double step, double[] vals)
          Requests that the supplied array be filled with solution data.
 

Method Detail

solve

public void solve(double x0,
                  double step,
                  double[] vals)
Requests that the supplied array be filled with solution data. The nth element of the array should be the solution at x = x0 + step*n.
Parameters:
x0 - The initial x-value
step - The increment to be applied to x0
vals - The array which will hold the solution data