All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class parser.NTuple

java.lang.Object
   |
   +----parser.Parser
           |
           +----parser.NTuple

public class NTuple
extends Parser
Note: NTuple is deprecated. A bug in Java 1.0 requires that we use "String.equals()" to test string constants rather than "=="

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.


Constructor Index

 o NTuple(String)
 o NTuple(String, short)

Method Index

 o main(String[])
Debugging method; ignore.

Constructors

 o NTuple
  public NTuple(String formula,
                short mode)
 o NTuple
  public NTuple(String formula)

Methods

 o main
  public static void main(String args[])
Debugging method; ignore.


All Packages  Class Hierarchy  This Package  Previous  Next  Index