From: Jens Vollinga Date: Wed, 21 Nov 2007 04:14:32 +0000 (+0000) Subject: * Deleted bogus try -- catch block in the ex::series() [Sheplyakov]. X-Git-Tag: release_1-5-0~127 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=commitdiff_plain;h=e8b25d30502c630a181b1fa95f11b15a94a2bc74;p=ginac.git * Deleted bogus try -- catch block in the ex::series() [Sheplyakov]. --- diff --git a/ginac/mul.cpp b/ginac/mul.cpp index c4cb2e3b..bc80ef6e 100644 --- a/ginac/mul.cpp +++ b/ginac/mul.cpp @@ -469,8 +469,8 @@ ex mul::eval(int level) const // XXX: What is the best way to check if the polynomial is a primitive? numeric c = i->rest.integer_content(); - const numeric& lead_coeff = - ex_to(ex_to(i->rest).seq.begin()->coeff).div_dyn(c); + const numeric lead_coeff = + ex_to(ex_to(i->rest).seq.begin()->coeff).div(c); const bool canonicalizable = lead_coeff.is_integer(); // XXX: The main variable is chosen in a random way, so this code diff --git a/ginac/power.cpp b/ginac/power.cpp index 25b1f43a..642d16d7 100644 --- a/ginac/power.cpp +++ b/ginac/power.cpp @@ -506,8 +506,8 @@ ex power::eval(int level) const // (2*x + 6*y)^(-4) -> 1/16*(x + 3*y)^(-4) if (num_exponent->is_integer() && is_exactly_a(ebasis)) { numeric icont = ebasis.integer_content(); - const numeric& lead_coeff = - ex_to(ex_to(ebasis).seq.begin()->coeff).div_dyn(icont); + const numeric lead_coeff = + ex_to(ex_to(ebasis).seq.begin()->coeff).div(icont); const bool canonicalizable = lead_coeff.is_integer(); const bool unit_normal = lead_coeff.is_pos_integer(); diff --git a/ginac/pseries.cpp b/ginac/pseries.cpp index 0da6ae8d..f4571ed0 100644 --- a/ginac/pseries.cpp +++ b/ginac/pseries.cpp @@ -1280,11 +1280,7 @@ ex ex::series(const ex & r, int order, unsigned options) const else throw (std::logic_error("ex::series(): expansion point has unknown type")); - try { - e = bp->series(rel_, order, options); - } catch (std::exception &x) { - throw (std::logic_error(std::string("unable to compute series (") + x.what() + ")")); - } + e = bp->series(rel_, order, options); return e; }