Next: Interval Approximation of Elementary Functions, Previous: Interval Basic Functions, Up: Rational Interval Functions [Index]
Set rop to op1 + op2.
Set rop to op1 - op2.
Set rop to op1 * op2. Multiplication by zero, passed as singleton interval [0/1,0/1] or literally, gives the singleton interval [0/1,0/1].
Set rop to op1/op2. When the dividend op1 reduces to the singleton interval [0/1,0/1], viz. zero, the division returns the singleton interval [0/1,0/1] as result; when the divisor op2 contains zero, the division returns [0/0,0/0], namely NaN.
Set rop to -op.
Set rop to abs(op), the absolute value of op.
Set rop to 1/op when the rational interval op does not contains zero, to [0/0,0/0] (NaN) otherwise.
Set rop to the square of op.
Set rop to the best rational interval approximation
of the square root of op,
sqrt(op),
with a guaranteed precision of at least prec bits.
If the rational interval radicand op is not positive,
the return interval is [0/0,0/0], namely NaN.
This inline function implements an efficient wrapper
around the low-level function mpri_set_qi_z_ASGMT
.
Set rop to the best rational interval approximation
of the reciprocal square root of op,
literally sqrt(op)/op,
with a guaranteed precision of at least prec bits.
If the rational interval operand op is not strictly positive,
the return interval is [0/0,0/0], to wit NaN.
This inline function efficiently implements a wrapper
around the low-level function mpri_set_qi_z_ASGMT
.
Set rop to op times 2 raised to exponent.
Set rop to op divided by 2 raised to exponent.
Next: Interval Approximation of Elementary Functions, Previous: Interval Basic Functions, Up: Rational Interval Functions [Index]