Next: , Up: Low-Level Rational Interval Functions   [Index]


6.1 Low-Level Interval Elementary Functions

Function: void mpri_set_qi_z_ASGMT (mpri_t rop, const mpz_t op1, const mpz_t op2, const mpz_t op3, mpri_prec_t prec, mpri_srnd_t srnd,
mpri_asgmt_t asgmt)

Set the value of rop to the best rational interval approximation of the quadratic irrational number (op1+sqrt(op2))/op3 with a guaranteed precision of at least prec bits and with respect to both the surrounding srnd and the assignment mode asgmt. The result remains undefined if the radicand op2 is negative or if the divisor op3 is zero.