trancendental function branch-point sanity
[ginac.git] / ginac / inifcns.cpp
index f410e7aa6202213d585a55de36f522e87d4fc9a7..d5c90e1d59c7c0382bec755be540f38c8c305224 100644 (file)
@@ -114,7 +114,8 @@ static ex csgn_series(const ex & arg,
 {
        const ex arg_pt = arg.subs(rel);
        if (arg_pt.info(info_flags::numeric)
-        && ex_to_numeric(arg_pt).real().is_zero())
+           && ex_to_numeric(arg_pt).real().is_zero()
+           && !(options & series_options::suppress_branchcut))
                throw (std::domain_error("csgn_series(): on imaginary axis"));
        
        epvector seq;