applications
Class Horner

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

public class Horner
extends java.lang.Object


Constructor Summary
Horner()
           
 
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

Horner

public Horner()
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