org.opensourcephysics.numerics
Interface VectorFunction


public interface VectorFunction

VectorFunction defines a function of multiple variables that returns a resultant vector.


Method Summary
 double[] evaluate(double[] x, double[] result)
          Evaluates the vector function and returns the the result.
 

Method Detail

evaluate

double[] evaluate(double[] x,
                  double[] result)
Evaluates the vector function and returns the the result. If the result array is null, a new array is allocated. Otherwise the result array is used.

Parameters:
x -
result -
Returns: