X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Finifcns_trans.cpp;h=682a981b772f3bda2854bf187698980b995a7084;hp=c5551f75a2e77e4c247914d4cd531df458b7b1c9;hb=13964f3416ec9de8829b57d4a2bbd9fe9a6db4ef;hpb=edfa67d26bac695b5ef9911f3cda3ff50232e35a diff --git a/ginac/inifcns_trans.cpp b/ginac/inifcns_trans.cpp index c5551f75..682a981b 100644 --- a/ginac/inifcns_trans.cpp +++ b/ginac/inifcns_trans.cpp @@ -204,6 +204,10 @@ static ex log_series(const ex &arg, if (arg_pt.is_zero()) must_expand_arg = true; + if (arg.diff(ex_to(rel.lhs())).is_zero()) { + throw do_taylor(); + } + if (must_expand_arg) { // method: // This is the branch point: Series expand the argument first, then