From 54176e3041f8a03b2a43d5fa1c94828d9ecf3b84 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Sun, 26 Feb 2017 02:05:19 +0000 Subject: [doc/mpfr.texi] Completed mpfr_root description: the 0th root gives NaN. (merged changesets r9929,9933 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@11344 280ebfd0-de03-0410-8827-d642c229c3f4 --- doc/mpfr.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/mpfr.texi b/doc/mpfr.texi index 05c3435e3..e86e3e299 100644 --- a/doc/mpfr.texi +++ b/doc/mpfr.texi @@ -1667,10 +1667,11 @@ is @minus{}Inf instead of +Inf. @deftypefunx int mpfr_root (mpfr_t @var{rop}, mpfr_t @var{op}, unsigned long int @var{k}, mpfr_rnd_t @var{rnd}) Set @var{rop} to the cubic root (resp.@: the @var{k}th root) of @var{op} rounded in the direction @var{rnd}. +For @var{k} = 0, set @var{rop} to NaN@. For @var{k} odd (resp.@: even) and @var{op} negative (including @minus{}Inf), set @var{rop} to a negative number (resp.@: NaN)@. The @var{k}th root of @minus{}0 is defined to be @minus{}0, -whatever the parity of @var{k}. +whatever the parity of @var{k} (different from zero). @end deftypefun @deftypefun int mpfr_pow (mpfr_t @var{rop}, mpfr_t @var{op1}, mpfr_t @var{op2}, mpfr_rnd_t @var{rnd}) -- cgit v1.2.1