- Fix the evalf(2^Pi) bug reported by Pearu.
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Mon, 20 Aug 2001 19:42:26 +0000 (19:42 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Mon, 20 Aug 2001 19:42:26 +0000 (19:42 +0000)
ginac/power.cpp

index c3f348da095c4d4f0f824de7dd3ae99332a1338b..4959525c4887223cecbeb9237e98ed1ae2f6e458 100644 (file)
@@ -490,7 +490,7 @@ ex power::evalf(int level) const
                throw(std::runtime_error("max recursion level reached"));
        } else {
                ebasis = basis.evalf(level-1);
-               if (!is_ex_exactly_of_type(eexponent,numeric))
+               if (!is_ex_exactly_of_type(exponent,numeric))
                        eexponent = exponent.evalf(level-1);
                else
                        eexponent = exponent;