+// Test of the patch of Stefan Weinzierl that prevents an infinite loop if
+// a factor in a product is a complicated way of writing zero.
+static unsigned exam_series13()
+{
+ unsigned result = 0;
+
+ ex e = pow(2,x)*( 1/x*(-(1+x)/(1-x)) + (1+x)/x/(1-x));
+ ex d = Order(x);
+ result += check_series(e,0,d,1);
+
+ return result;
+}