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 0d7b073b06a8b35030b32a5d30c28e912ddd1d0f..063722b10dd90e34e0b7afec1eb0365db0202b5c 100644 (file)
@@ -414,7 +414,7 @@ ex pseries::evalf() const
        epvector new_seq;
        new_seq.reserve(seq.size());
        for (auto & it : seq)
        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);
 }
 
        return dynallocate<pseries>(relational(var,point), std::move(new_seq)).setflag(status_flags::evaluated);
 }