[BUGFIX] numeric::info(nonnegative): correctly handle complex numbers.
authorAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Tue, 28 Feb 2012 14:12:56 +0000 (16:12 +0200)
committerAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Tue, 28 Feb 2012 14:12:56 +0000 (16:12 +0200)
commit05b3a16973aad40a9c17ee0f0bd06b02ac4706ef
treeb765f6ce3e948fc75587054895e9fcc15c6c13b0
parent4077d8b144e2e5f3db75cf95fbb590981b2eb8d4
[BUGFIX] numeric::info(nonnegative): correctly handle complex numbers.

numeric::info(info_flags::nonnegative) returns true for an arbitrary
complex number with non-zero imaginary part.

Thanks to Burcin Erocal for reporting.
check/exam_numeric.cpp
ginac/numeric.cpp