id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 11235,Variance error when used with std::complex,Martín Sanz Sabater ,Eric Niebler,"The result of variance in complex numbers sequence must be real, but it is complex. It is solved changing the line (in ""variance.hpp""): this->variance = numeric::fdiv(this->variance * (cnt - 1), cnt) + numeric::fdiv(tmp * tmp, cnt - 1); with this one: this->variance = numeric::fdiv(this->variance * (cnt - 1), cnt) + numeric::fdiv(std::pow(std::abs(tmp),2), cnt - 1); P.D: sorry, I don't know how to fix it in ""lazy_variance""",Bugs,new,To Be Determined,accumulator,Boost 1.58.0,Problem,,,