]> www.ginac.de Git - ginac.git/commitdiff
Synced to 1.2
authorJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Wed, 1 Sep 2004 15:13:11 +0000 (15:13 +0000)
committerJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Wed, 1 Sep 2004 15:13:11 +0000 (15:13 +0000)
ginac/inifcns_trans.cpp

index dc19fb6dc27358df7efacec6a13cd83878168fd9..56d52c59737784be9489bc84b23288601e1e1acd 100644 (file)
@@ -111,7 +111,7 @@ static ex log_eval(const ex & x)
        if (x.info(info_flags::numeric)) {
                if (x.is_zero())         // log(0) -> infinity
                        throw(pole_error("log_eval(): log(0)",0));
-               if (x.info(info_flags::real) && x.info(info_flags::negative))
+               if (x.info(info_flags::rational) && x.info(info_flags::negative))
                        return (log(-x)+I*Pi);
                if (x.is_equal(_ex1))  // log(1) -> 0
                        return _ex0;