diff options
Diffstat (limited to 'src/theory/arith/delta_rational.h')
-rw-r--r-- | src/theory/arith/delta_rational.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/theory/arith/delta_rational.h b/src/theory/arith/delta_rational.h index ed256faa1..ca182a844 100644 --- a/src/theory/arith/delta_rational.h +++ b/src/theory/arith/delta_rational.h @@ -181,6 +181,10 @@ public: std::string toString() const; + Rational substituteDelta(const Rational& d) const{ + return getNoninfinitesimalPart() + (d * getInfinitesimalPart()); + } + }; std::ostream& operator<<(std::ostream& os, const DeltaRational& n); |