summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-02-26 02:05:19 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-02-26 02:05:19 +0000
commit54176e3041f8a03b2a43d5fa1c94828d9ecf3b84 (patch)
tree6fb44858e5197481fff20bb5465515e4a23b9dae
parent10169c8962e5c465c1ea77b2a0a69ca68b78d6e1 (diff)
downloadmpfr-54176e3041f8a03b2a43d5fa1c94828d9ecf3b84.tar.gz
[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
-rw-r--r--doc/mpfr.texi3
1 files changed, 2 insertions, 1 deletions
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})