* functions. */
/*
- * GiNaC Copyright (C) 1999-2011 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2015 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
if (arg_pt.is_zero())
must_expand_arg = true;
+ if (arg.diff(ex_to<symbol>(rel.lhs())).is_zero()) {
+ throw do_taylor();
+ }
+
if (must_expand_arg) {
// method:
// This is the branch point: Series expand the argument first, then