diff options
author | Kevin Ryde <user42@zip.com.au> | 2000-09-12 00:51:41 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2000-09-12 00:51:41 +0200 |
commit | 2345139f3bff43e38abef8208a962fc66b433699 (patch) | |
tree | b3e894621c14e44d43482b2997c67791e3c7ea55 /gmp.texi | |
parent | d74ea676575a99384a6df883ba0c9ea6c7f8b63d (diff) | |
download | gmp-2345139f3bff43e38abef8208a962fc66b433699.tar.gz |
* gmp.texi (Miscellaneous Rational Functions): Comment-out and
move version 1 compatibility note to "Compatibility" section.
(Rational Number Functions): Ditto for canonicalization note.
Diffstat (limited to 'gmp.texi')
-rw-r--r-- | gmp.texi | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -1095,6 +1095,14 @@ see the GMP 2 manual for details. @c @item The functions @code{mpz_pow_ui} and @code{mpz_ui_pow_ui} now yield 1 @c for 0^0. (In version 1, they yielded 0.) +@c In version 1 of the library, @code{mpq_set_den} handled negative +@c denominators by copying the sign to the numerator. That is no longer done. + +@c Pure assignment functions do not canonicalize the assigned variable. It is +@c the responsibility of the user to canonicalize the assigned variable before +@c any arithmetic operations are performed on that variable. +@c Note that this is an incompatible change from version 1 of the library. + @c @end enumerate @@ -2291,8 +2299,7 @@ Zero has the unique representation 0/1. Pure assignment functions do not canonicalize the assigned variable. It is the responsibility of the user to canonicalize the assigned variable before -any arithmetic operations are performed on that variable. @strong{Note that -this is an incompatible change from version 1 of the library.} +any arithmetic operations are performed on that variable. @deftypefun void mpq_canonicalize (mpq_t @var{op}) Remove any factors that are common to the numerator and denominator of @@ -2521,9 +2528,6 @@ Note that there's no need to copy a numerator or denominator to an @code{mpz_t} just to operate on it, all the @code{mpz} functions can be used with an @code{mpq_numref} or @code{mpq_denref}. When modifying a rational that way the rule about canonicalizing still applies of course. - -@strong{In version 1 of the library, @code{mpq_set_den} handled negative -denominators by copying the sign to the numerator. That is no longer done.} @end deftypefun |