- atanh_series(): corrected an oops.
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Mon, 3 Apr 2000 22:22:10 +0000 (22:22 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Mon, 3 Apr 2000 22:22:10 +0000 (22:22 +0000)
ginac/inifcns_trans.cpp

index 8705901464af978c08a8042a5e754ff5903ff921..924d195e7f44187eb8c6e427fa4e65166bfc46b3 100644 (file)
@@ -386,7 +386,7 @@ static ex tan_eval(const ex & x)
         if (z.is_equal(_num25())) // tan(5/12*Pi) -> 2+sqrt(3)
             return sign*(power(_ex3(),_ex1_2())+_ex2());
         if (z.is_equal(_num30())) // tan(Pi/2)    -> infinity
-            throw (std::domain_error("tan_eval(): infinity"));
+            throw (std::domain_error("tan_eval(): simple pole"));
     }
     
     if (is_ex_exactly_of_type(x, function)) {
@@ -896,8 +896,8 @@ static ex atanh_eval(const ex & x)
         if (x.is_zero())
             return _ex0();
         // atanh({+|-}1) -> throw
-        if (x.is_equal(_ex1()) || x.is_equal(_ex1()))
-            throw (std::domain_error("atanh_eval(): infinity"));
+        if (x.is_equal(_ex1()) || x.is_equal(_ex_1()))
+            throw (std::domain_error("atanh_eval(): logarithmic pole"));
         // atanh(float) -> float
         if (!x.info(info_flags::crational))
             return atanh_evalf(x);