[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.3 Arithmetic Functions
- Function: void mpq_sub (mpq_t difference, mpq_t minuend, mpq_t subtrahend)
Set difference to minuend - subtrahend.
- Function: void mpq_mul (mpq_t product, mpq_t multiplier, mpq_t multiplicand)
Set product to multiplier times multiplicand.
- Function: void mpq_mul_2exp (mpq_t rop, mpq_t op1, mp_bitcnt_t op2)
Set rop to op1 times 2 raised to op2.
- Function: void mpq_div (mpq_t quotient, mpq_t dividend, mpq_t divisor)
-
Set quotient to dividend/divisor.
- Function: void mpq_div_2exp (mpq_t rop, mpq_t op1, mp_bitcnt_t op2)
Set rop to op1 divided by 2 raised to op2.
- Function: void mpq_inv (mpq_t inverted_number, mpq_t number)
Set inverted_number to 1/number. If the new denominator is zero, this routine will divide by zero.
This document was generated on February 16, 2012 using texi2html 5.0.