From: Peter Vanroose <peter_vanroose@ya...>  20090816 10:25:06

 On 20090713, Eric Moyer <eric_moyer@...> wrote: > I would like to suggest that the vnl_real_polynomial class > documentation be altered to mention that in the coefficient > array coefficients[i] is the coefficient on X^(degreei). > I recently had a bug in my code resulting from assuming > that coefficients[i] is the coefficient on X^(i). Change has been made to the documentation. Here is the current class documentation; let me know if this is OK! ========================================= Evaluation of real polynomials at real and complex points. vnl_real_polynomial represents a univariate polynomial with real coefficients, stored as a vector of doubles. This allows evaluation of the polynomial p(x) at given values of x, or of its derivative p'(x). The coefficients (coeffs_) are stored as a vnl_vector, where coeffs_[n] is the coefficient of the x^(dn) term, where d is the degree of the polynomial. Otherwise said, the coefficients are stored starting with the highest degree term. Roots may be extracted using the roots() method. =========================================  Peter.  __________________________________________________________ Ta semester!  sök efter resor hos Kelkoo. Jämför pris på flygbiljetter och hotellrum här: http://www.kelkoo.se/c169901resorbiljetter.html?partnerId=96914052 