From 9f91a2688b11ea33c293eb58b2de07018186bd46 Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Thu, 11 May 2000 20:39:18 +0000 Subject: [PATCH] - small efficiency fix in mul_series --- ginac/pseries.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ginac/pseries.cpp b/ginac/pseries.cpp index 26804132..58f8d629 100644 --- a/ginac/pseries.cpp +++ b/ginac/pseries.cpp @@ -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))); -- 2.44.0