From bbe7386f6cd797358e3a83fd2f138fdbcdfdf56c Mon Sep 17 00:00:00 2001 From: zimmerma Date: Wed, 3 Feb 2021 11:04:57 +0000 Subject: [doc/mpfr.texi] document mpfr_compound git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14343 280ebfd0-de03-0410-8827-d642c229c3f4 --- doc/mpfr.texi | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') diff --git a/doc/mpfr.texi b/doc/mpfr.texi index 67598d794..ca70ae7b2 100644 --- a/doc/mpfr.texi +++ b/doc/mpfr.texi @@ -2263,6 +2263,13 @@ We do not use the usual limit rules in this case, as these rules are not used for @code{pow}. @end deftypefun +@deftypefun int mpfr_compound (mpfr_t @var{rop}, mpfr_t @var{op}, long int @var{n}, mpfr_rnd_t @var{rnd}) +Set @var{rop} to the power @var{n} of one plus @var{op}, +following IEEE@tie{}754-2019 for the special cases and exceptions. +When @var{n} is zero and @var{op} is larger or equal @minus{}1, +@var{rop} is set to 1 (IEEE@tie{}754-2019 also allows NaN). +@end deftypefun + @deftypefun int mpfr_cos (mpfr_t @var{rop}, mpfr_t @var{op}, mpfr_rnd_t @var{rnd}) @deftypefunx int mpfr_sin (mpfr_t @var{rop}, mpfr_t @var{op}, mpfr_rnd_t @var{rnd}) @deftypefunx int mpfr_tan (mpfr_t @var{rop}, mpfr_t @var{op}, mpfr_rnd_t @var{rnd}) @@ -4147,6 +4154,8 @@ that were added after MPFR@tie{}2.2, and in which MPFR version. @item @code{mpfr_cmpabs_ui} in MPFR@tie{}4.1. +@item @code{mpfr_compound} in MPFR@tie{}4.2.0. + @item @code{mpfr_copysign} in MPFR@tie{}2.3. Note: MPFR@tie{}2.2 had a @code{mpfr_copysign} function that was available, but not documented, -- cgit v1.2.1