summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libmpz.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/lib/libmpz.tex')
-rw-r--r--Doc/lib/libmpz.tex10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/lib/libmpz.tex b/Doc/lib/libmpz.tex
index ea0d1b7..1fd03f7 100644
--- a/Doc/lib/libmpz.tex
+++ b/Doc/lib/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}