From e849b335f90419f9446d1bda14e8ee16d9e25b11 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Thu, 12 Nov 2015 12:31:28 +0100 Subject: Tell users not to call factorial and primorial on negative numbers. --- doc/gmp.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') 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}. -- cgit v1.2.1