com.singularsys.aa.polynomial
Class PolyExtractor

java.lang.Object
  extended by com.singularsys.aa.polynomial.PolyExtractor

public class PolyExtractor
extends java.lang.Object

Utility class for converting an expression into a canonical polynomial representation.

Author:
nathan

Constructor Summary
PolyExtractor()
          Creates a new instance of PolyExtractor
 
Method Summary
static void extractFromTree(UntypifiedExpr e, PolynomialExpr poly)
          Extracts the coefficients and exponents of a polynomial expression from a canonized expression tree and places them in the poly PolynomialExp instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolyExtractor

public PolyExtractor()
Creates a new instance of PolyExtractor

Method Detail

extractFromTree

public static void extractFromTree(UntypifiedExpr e,
                                   PolynomialExpr poly)
                            throws java.lang.IllegalArgumentException
Extracts the coefficients and exponents of a polynomial expression from a canonized expression tree and places them in the poly PolynomialExp instance.

Throws:
java.lang.IllegalArgumentException