All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----parser.Parser | +----parser.NTuple
An NTuple may consist of scalar formulas, such as x^2-sin(x), or of vector expressions, like (x^2, 3xy), or a mixture of the two; 2t(2, -1, 1) + (t, t/4, 2t). Vectors may be added, subtracted and scalar multiplied. Vector-valued functions, fuctions of vectors, scalar and cross products will be added in future versions.
NTuples are evaluated using the eval() methods of Parser. An NTuple may evaluate to a String or Double, if it is scalar, or to a Vector, if it is multidimensional. The elements of the Vector are guaranteed to be Strings or Doubles.
public NTuple(String formula, short mode)NTuple
public NTuple(String formula)
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index