- small efficiency fix in mul_series
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Thu, 11 May 2000 20:39:18 +0000 (20:39 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Thu, 11 May 2000 20:39:18 +0000 (20:39 +0000)
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)));