#1765 Fixed solvePoly for polynomials having coeffs[n] != 1

pull/13383/head
Andrey Kamaev 13 years ago
parent 5ce2997c84
commit dcadc4f8fb
  1. 2
      modules/core/src/mathfuncs.cpp

@ -2487,7 +2487,7 @@ double cv::solvePoly( InputArray _coeffs0, OutputArray _roots0, int maxIters )
for( i = 0; i < n; i++ )
{
p = roots[i];
C num = coeffs[n], denom = 1;
C num = coeffs[n], denom = coeffs[n];
for( j = 0; j < n; j++ )
{
num = num*p + coeffs[n-j-1];

Loading…
Cancel
Save