3 #include "../parser/parser.h"
6 namespace boost {
namespace spirit {
namespace traits {
7 #if BOOST_VERSION >= 105900
8 template<>
inline bool scale(
int exp, mpz_class& n, mpz_class acc_n) {
15 template<>
inline bool scale(
int exp, mpq_class& n, mpq_class acc_n) {
23 template<>
inline void scale(
int exp, mpz_class& n) {
29 template<>
inline void scale(
int exp, mpq_class& n) {
36 #if BOOST_VERSION < 107000
37 template<>
inline bool is_equal_to_one(
const mpz_class& value) {
40 template<>
inline bool is_equal_to_one(
const mpq_class& value) {
Interval< Number > exp(const Interval< Number > &i)
Interval< Number > div(const Interval< Number > &_lhs, const Interval< Number > &_rhs)
Implements the division which assumes that there is no remainder.
Interval< Number > pow(const Interval< Number > &i, Integer exp)
bool is_one(const Interval< Number > &i)
Check if this interval is a point-interval containing 1.