- small efficiency fix in mul_series
[ginac.git] / ginac / pseries.cpp
index 268041325aebd1ce11cdff7e40bcfe5871e8df0a..58f8d629c48c02ad535408cf2640fdc021e8817b 100644 (file)
@@ -636,7 +636,7 @@ ex pseries::mul_series(const pseries &other) const
             ex a_coeff = coeff(*s, i);
             ex b_coeff = other.coeff(*s, cdeg-i);
             if (!is_order_function(a_coeff) && !is_order_function(b_coeff))
-                co += coeff(*s, i) * other.coeff(*s, cdeg-i);
+                co += a_coeff * b_coeff;
         }
         if (!co.is_zero())
             new_seq.push_back(expair(co, numeric(cdeg)));