Next: Interval Arithmetic Functions, Previous: Interval Comparison Functions, Up: Rational Interval Functions [Index]
Some MPRIA functions on rational intervals return rational results, such as the diameter or the centre of a rational interval.
Set the value of rop to the absolute diameter of the rational interval op, that is to say, to the difference between its right endpoint and its left one.
Set the value of rop to the relative diameter of the rational interval op, in other words, either to the difference between its right endpoint and its left one divided by the absolute value of its centre when it is not symmetric or to NaN ([0/0,0/0]) when it is symmetric.
Set the value of rop to the relative diameter of the rational interval op if it does not contains zero and to its absolute diameter otherwise.
Set the value of rop to the mignitude and magnitude of the rational interval op, respectively, that is to say, to the smallest and largest absolute value of its elements, respectively.
Set the value of rop to the value of the middle of the rational interval op, namely, to the half sum of its endpoints.
Return a reference to the left and right endpoint of the rational interval op, respectively.
Set the value of rop to the left and right endpoint
of the rational interval op, respectively.
These functions are equivalent to calling mpq_set
with an appropriate mpri_lepref
or mpri_repref
.
Direct use of mpri_lepref
or mpri_repref
is recommended
instead of these functions.
Next: Interval Arithmetic Functions, Previous: Interval Comparison Functions, Up: Rational Interval Functions [Index]