1 /********************* */
2 /*! \file delta_rational.cpp
4 ** Original author: taking
5 ** Major contributors: none
6 ** Minor contributors (to current version): none
7 ** This file is part of the CVC4 prototype.
8 ** Copyright (c) 2009, 2010 The Analysis of Computer Systems Group (ACSys)
9 ** Courant Institute of Mathematical Sciences
10 ** New York University
11 ** See the file COPYING in the top-level source directory for licensing
12 ** information.\endverbatim
14 ** \brief [[ Add one-line brief description here ]]
16 ** [[ Add lengthier description here ]]
17 ** \todo document this file
21 #include "theory/arith/delta_rational.h"
26 std::ostream
& CVC4::operator<<(std::ostream
& os
, const DeltaRational
& dq
){
27 return os
<< "(" << dq
.getNoninfintestimalPart()
28 << "," << dq
.getInfintestimalPart() << ")";
32 std::string
DeltaRational::toString() const {
33 return "(" + getNoninfintestimalPart().toString() + "," +
34 getInfintestimalPart().toString() + ")";