summaryrefslogtreecommitdiff
path: root/src/theory/arith/delta_rational.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/arith/delta_rational.h')
-rw-r--r--src/theory/arith/delta_rational.h4
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);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback