Fix pseries::evalf() regression.
authorVladimir V. Kisil <kisilv@maths.leeds.ac.uk>
Tue, 1 Oct 2019 22:00:09 +0000 (00:00 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Tue, 1 Oct 2019 22:00:09 +0000 (00:00 +0200)
Since f8c2455fbb, rest was not evalf()'ed any more.

ginac/pseries.cpp

index 0d7b073..063722b 100644 (file)
@@ -414,7 +414,7 @@ ex pseries::evalf() const
        epvector new_seq;
        new_seq.reserve(seq.size());
        for (auto & it : seq)
-               new_seq.emplace_back(expair(it.rest, it.coeff));
+               new_seq.emplace_back(expair(it.rest.evalf(), it.coeff));
 
        return dynallocate<pseries>(relational(var,point), std::move(new_seq)).setflag(status_flags::evaluated);
 }