summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
edfa67d)
Check if the argument is on a branch cut check if it actually depends
on the expansion variable before trying to expand around a different
point in order to avoid the infinite recursion (or rather a segfault
due to a stack overflow).
Thanks to Mario Prausa for a bugreport.
if (ex(log(pow(a,b))).is_equal(b*log(a)))
++result;
if (ex(log(pow(a,b))).is_equal(b*log(a)))
++result;
+ // infinite recursion log_series
+ ex e(log(-p));
+ ex ser = ex_to<pseries>(e.series(z, 1))
+ .convert_to_poly(/* no_order = */ true);
+ if (!ser.is_equal(e)) {
+ clog << "series(" << e << ", " << z << "): wrong result" << endl;
+ ++result;
+ }
+
if (arg_pt.is_zero())
must_expand_arg = true;
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
if (must_expand_arg) {
// method:
// This is the branch point: Series expand the argument first, then