diff options
author | Marc Glisse <marc.glisse@inria.fr> | 2015-11-12 12:31:28 +0100 |
---|---|---|
committer | Marc Glisse <marc.glisse@inria.fr> | 2015-11-12 12:31:28 +0100 |
commit | e849b335f90419f9446d1bda14e8ee16d9e25b11 (patch) | |
tree | 70466f8880c57fd94027c71234750b00763f1b39 /doc/gmp.texi | |
parent | ad4ce78ca479da52138dc2b4ad3ea3b08a7e9080 (diff) | |
download | gmp-e849b335f90419f9446d1bda14e8ee16d9e25b11.tar.gz |
Tell users not to call factorial and primorial on negative numbers.
Diffstat (limited to 'doc/gmp.texi')
-rw-r--r-- | doc/gmp.texi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/gmp.texi b/doc/gmp.texi index 91d935471..8a851acd7 100644 --- a/doc/gmp.texi +++ b/doc/gmp.texi @@ -6873,7 +6873,8 @@ mpz_fdiv_q (q.get_mpz_t(), a.get_mpz_t(), d.get_mpz_t()); @deftypefunx void mpz_class::swap (mpz_class& @var{op}) @deftypefunx void swap (mpz_class& @var{op1}, mpz_class& @var{op2}) These functions provide a C++ class interface to the corresponding GMP C -routines. +routines. Calling @code{factorial} or @code{primorial} on a negative number +is undefined. @code{cmp} can be used with any of the classes or the standard C++ types, except @code{long long} and @code{long double}. |