X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fpseries.cpp;h=e08921e8ccd8cf6cbfd57a1e982ecff49340506e;hp=7f77cc664bec67025f62df51070adcbda2db25c2;hb=bf82f5b1d41738936afe763e1fa6aa347c81ba2c;hpb=729d30ae80fa9fdcdbafd7a29e8671083130f69c diff --git a/ginac/pseries.cpp b/ginac/pseries.cpp index 7f77cc66..e08921e8 100644 --- a/ginac/pseries.cpp +++ b/ginac/pseries.cpp @@ -73,8 +73,8 @@ DEFAULT_DESTROY(pseries) * @return newly constructed pseries */ pseries::pseries(const ex &rel_, const epvector &ops_) : basic(TINFO_pseries), seq(ops_) { - GINAC_ASSERT(is_exactly_a(rel_)); - GINAC_ASSERT(is_exactly_a(rel_.lhs())); + GINAC_ASSERT(is_a(rel_)); + GINAC_ASSERT(is_a(rel_.lhs())); point = rel_.rhs(); var = rel_.lhs(); } @@ -551,7 +551,7 @@ ex symbol::series(const relational & r, int order, unsigned options) const { epvector seq; const ex point = r.rhs(); - GINAC_ASSERT(is_exactly_a(r.lhs())); + GINAC_ASSERT(is_a(r.lhs())); if (this->is_equal_same_type(ex_to(r.lhs()))) { if (order > 0 && !point.is_zero()) @@ -655,7 +655,7 @@ ex add::series(const relational & r, int order, unsigned options) const epvector::const_iterator itend = seq.end(); for (; it!=itend; ++it) { ex op; - if (is_ex_exactly_of_type(it->rest, pseries)) + if (is_exactly_a(it->rest)) op = it->rest; else op = it->rest.series(r, order, options); @@ -868,7 +868,7 @@ pseries pseries::shift_exponents(int deg) const ex power::series(const relational & r, int order, unsigned options) const { // If basis is already a series, just power it - if (is_ex_exactly_of_type(basis, pseries)) + if (is_exactly_a(basis)) return ex_to(basis).power_const(ex_to(exponent), order); // Basis is not a series, may there be a singularity? @@ -907,7 +907,7 @@ ex power::series(const relational & r, int order, unsigned options) const ex pseries::series(const relational & r, int order, unsigned options) const { const ex p = r.rhs(); - GINAC_ASSERT(is_exactly_a(r.lhs())); + GINAC_ASSERT(is_a(r.lhs())); const symbol &s = ex_to(r.lhs()); if (var.is_equal(s) && point.is_equal(p)) { @@ -947,9 +947,9 @@ ex ex::series(const ex & r, int order, unsigned options) const ex e; relational rel_; - if (is_ex_exactly_of_type(r,relational)) + if (is_exactly_a(r)) rel_ = ex_to(r); - else if (is_ex_exactly_of_type(r,symbol)) + else if (is_a(r)) rel_ = relational(r,_ex0); else throw (std::logic_error("ex::series(): expansion point has unknown type"));