From bdbc7bc10fcefdc000fd532280679d8e57b36795 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Mon, 3 Apr 2000 22:22:10 +0000 Subject: [PATCH] - atanh_series(): corrected an oops. --- ginac/inifcns_trans.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ginac/inifcns_trans.cpp b/ginac/inifcns_trans.cpp index 87059014..924d195e 100644 --- a/ginac/inifcns_trans.cpp +++ b/ginac/inifcns_trans.cpp @@ -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); -- 2.44.0