Package org.opensourcephysics.numerics
Interface VectorFunction
public interface VectorFunction
VectorFunction defines a function of multiple variables that returns a resultant vector.
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]
evaluate
(double[] x, double[] result) Evaluates the vector function and returns the the result.
-
Method Details
-
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:
-