From ff7eeaa487dca86b36ddbb19b1dcefb2134327be Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Mon, 20 Aug 2001 19:42:26 +0000 Subject: [PATCH] - Fix the evalf(2^Pi) bug reported by Pearu. --- ginac/power.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ginac/power.cpp b/ginac/power.cpp index c3f348da..4959525c 100644 --- a/ginac/power.cpp +++ b/ginac/power.cpp @@ -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; -- 2.44.0