## [Vxl-users] vnl_real_polynomial documentation

 [Vxl-users] vnl_real_polynomial documentation From: Eric Moyer - 2009-07-13 15:01:51 Attachments: Message as HTML ```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^(degree-i). I recently had a bug in my code resulting from assuming that coefficients[i] is the coefficient on X^(i). --Eric ```

 [Vxl-users] vnl_real_polynomial documentation From: Eric Moyer - 2009-07-13 15:01:51 Attachments: Message as HTML ```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^(degree-i). I recently had a bug in my code resulting from assuming that coefficients[i] is the coefficient on X^(i). --Eric ```
 Re: [Vxl-users] vnl_real_polynomial documentation From: Peter Vanroose - 2009-08-16 10:25:06 ```-- On 2009-07-13, 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^(degree-i). >  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^(d-n) 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/c-169901-resor-biljetter.html?partnerId=96914052 ```