applications
Class EvaluatePolynomial

java.lang.Object
  |
  +--applications.EvaluatePolynomial

public class EvaluatePolynomial
extends java.lang.Object


Constructor Summary
EvaluatePolynomial()
           
 
Method Summary
static void main(java.lang.String[] args)
          test program
static Computable valueOf(Computable[] coeff, Computable x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvaluatePolynomial

public EvaluatePolynomial()
Method Detail

valueOf

public static Computable valueOf(Computable[] coeff,
                                 Computable x)
Returns:
coeff[0] * x^0 coeff a[1] * x^1 + coeff[2] * x^2 + ...
Throws:
java.lang.IllegalArgumentException - when coeff.length < 1

main

public static void main(java.lang.String[] args)
test program