opale.mathtools
Class Polynom

java.lang.Object
  |
  +--opale.mathtools.Polynom

public class Polynom
extends java.lang.Object

This class represents a Polynom with real coefficients. The coefficients are coded by a subclass of PolynomModel.

Since:
Opale-Mathtools 0.11
Author:
O.C.
See Also:
PolynomModel

Constructor Summary
Polynom(int n, double[] tab)
          Constructs a polynom of degree n, with the coefficients in the array tab.
 
Method Summary
 double compute(double x)
          Evaluates the polynom at the point x.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Polynom

public Polynom(int n,
               double[] tab)
Constructs a polynom of degree n, with the coefficients in the array tab. The storage of coefficients is ClassicPolynomModel, i.e. all the coefficients are stored.
Parameters:
int - n, the degree
double[] - tab, the array of coefficients
Method Detail

compute

public double compute(double x)
Evaluates the polynom at the point x.
Parameters:
double - x, the point x
Returns:
double, the value of the polynom