28 std::ostringstream
oss;
38 const auto &coefficients =
a.get_coefficients();
41 for(std::size_t d = coefficients.size(); d > 0; --d)
43 if(coefficients[d - 1].is_zero())
48 out << coefficients[d - 1];
51 if(!coefficients[d - 1].is_one())
52 out << coefficients[d - 1] <<
"*";
std::ostream & operator<<(std::ostream &out, const algebraic_numbert &a)
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
Represents real numbers as roots (zeros) of a polynomial with rational coefficients.
constant_exprt as_expr() const
coefficientst coefficients
A constant literal expression.
Unbounded, signed real numbers.