diff options
author | Guido van Rossum <guido@python.org> | 1995-03-13 10:03:32 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-03-13 10:03:32 (GMT) |
commit | 6bb1adc7ee688be85b839b747cf25a9e6254cc22 (patch) | |
tree | 8cb910de69fa0322275e60763bfc93a1ea12386f /Doc/libmpz.tex | |
parent | a8a8d4aadd49e3776e2212318331105c939974b4 (diff) | |
download | cpython-6bb1adc7ee688be85b839b747cf25a9e6254cc22.zip cpython-6bb1adc7ee688be85b839b747cf25a9e6254cc22.tar.gz cpython-6bb1adc7ee688be85b839b747cf25a9e6254cc22.tar.bz2 |
small changes by Soren Larsen
Diffstat (limited to 'Doc/libmpz.tex')
-rw-r--r-- | Doc/libmpz.tex | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/libmpz.tex b/Doc/libmpz.tex index ea0d1b7..1fd03f7 100644 --- a/Doc/libmpz.tex +++ b/Doc/libmpz.tex @@ -8,15 +8,15 @@ arithmetic routines. Only the interfaces to the \emph{integer} otherwise, the description in the GNU MP documentation can be applied. In general, \dfn{mpz}-numbers can be used just like other standard -Python numbers, e.g. you can use the built-in operators like \code{+}, +Python numbers, e.g.\ you can use the built-in operators like \code{+}, \code{*}, etc., as well as the standard built-in functions like \code{abs}, \code{int}, \ldots, \code{divmod}, \code{pow}. \strong{Please note:} the {\it bitwise-xor} operation has been implemented as a bunch of {\it and}s, {\it invert}s and {\it or}s, because the library lacks an \code{mpz_xor} function, and I didn't need one. -You create an mpz-number, by calling the function called \code{mpz} (see -below for an excact description). An mpz-number is printed like this: +You create an mpz-number by calling the function called \code{mpz} (see +below for an exact description). An mpz-number is printed like this: \code{mpz(\var{value})}. \renewcommand{\indexsubitem}{(in module mpz)} @@ -59,7 +59,7 @@ return mpz-numbers. \begin{funcdesc}{divm}{numerator\, denominator\, modulus} Returns a number \var{q}. such that \code{\var{q} * \var{denominator} \%{} \var{modulus} == \var{numerator}}. - One could also implement this function in python, using \code{gcdext}. + One could also implement this function in Python, using \code{gcdext}. \end{funcdesc} An mpz-number has one method: @@ -69,6 +69,6 @@ An mpz-number has one method: Convert this mpz-number to a binary string, where the number has been stored as an array of radix-256 digits, least significant digit first. - The mpz-number must have a value greater than- or equal to zero, + The mpz-number must have a value greater than or equal to zero, otherwise a \code{ValueError}-exception will be raised. \end{funcdesc} |