24 template<
typename Pol>
40 typename Pol::NumberType one_divided_by_a = _constraintA.
lhs().coprime_factor_without_constant();
41 typename Pol::NumberType one_divided_by_b = _constraintB.
lhs().coprime_factor_without_constant();
42 typename Pol::NumberType c = _constraintA.
lhs().constant_part();
43 typename Pol::NumberType d = _constraintB.
lhs().constant_part();
45 Pol tmpA = (_constraintA.
lhs() - c) * one_divided_by_a;
46 Pol tmpB = (_constraintB.
lhs() - d) * one_divided_by_b;
49 if (tmpA != tmpB)
return 0;
50 bool termACoeffGreater =
false;
52 typename Pol::NumberType g;
57 termACoeffGreater =
true;
70 if (termACoeffGreater) {
MultivariatePolynomial< Rational > Pol
carl is the main namespace for the library.
const signed A_AND_B__IFF_C
Interval< Number > abs(const Interval< Number > &_in)
Method which returns the absolute value of the passed number.
signed compare(const BasicConstraint< Pol > &_constraintA, const BasicConstraint< Pol > &_constraintB)
Compares _constraintA with _constraintB.
cln::cl_I get_num(const cln::cl_RA &n)
Extract the numerator from a fraction.
cln::cl_I get_denom(const cln::cl_RA &n)
Extract the denominator from a fraction.
const signed NOT__A_AND_B
bool is_one(const Interval< Number > &i)
Check if this interval is a point-interval containing 1.
auto & get(const std::string &name)
Represent a polynomial (in)equality against zero.
Relation relation() const