Next: , Previous: , Up: Rational Interval Functions   [Index]


5.4 Interval Comparison Functions

Inline Function: int mpri_equal (const mpri_t op1, const mpri_t op2)

Return either 1 (read true) if the rational intervals op1 and op2 are equal or 0 (read false) if they are non-equal.

Inline Function: int mpri_is_zero (const mpri_t op)

Return 1 (read true) if the rational interval op is the singleton interval [0/1,0/1] (zero), 0 (read false) otherwise.

Inline Function: int mpri_is_nonzero (const mpri_t op)

Return 1 (read true) if the rational interval op does not reduce to the singleton interval [0/1,0/1] (zero), 0 (read false) otherwise.

Inline Function: int mpri_has_zero (const mpri_t op)

Return 1 (read true) if zero belongs to the rational interval op, 0 (read false) otherwise.

Inline Function: int mpri_hasnot_zero (const mpri_t op)

Return either -1 if the rational interval op is strictly negative, or +1 if it is strictly positive, or 0 if it contains zero