From 9dccee20b5b26810183fafb6e8d94aa7bb4278c8 Mon Sep 17 00:00:00 2001 From: zimmerma Date: Tue, 9 Feb 2021 12:46:17 +0000 Subject: added mpfr_powr git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14414 280ebfd0-de03-0410-8827-d642c229c3f4 --- doc/mpfr.texi | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'doc/mpfr.texi') diff --git a/doc/mpfr.texi b/doc/mpfr.texi index 87a031c82..5278ac3db 100644 --- a/doc/mpfr.texi +++ b/doc/mpfr.texi @@ -2240,18 +2240,22 @@ rounded in the direction @var{rnd}. @anchor{mpfr_pow} @deftypefun int mpfr_pow (mpfr_t @var{rop}, mpfr_t @var{op1}, mpfr_t @var{op2}, mpfr_rnd_t @var{rnd}) +@deftypefunx int mpfr_powr (mpfr_t @var{rop}, mpfr_t @var{op1}, mpfr_t @var{op2}, mpfr_rnd_t @var{rnd}) @deftypefunx int mpfr_pow_ui (mpfr_t @var{rop}, mpfr_t @var{op1}, unsigned long int @var{op2}, mpfr_rnd_t @var{rnd}) @deftypefunx int mpfr_pow_si (mpfr_t @var{rop}, mpfr_t @var{op1}, long int @var{op2}, mpfr_rnd_t @var{rnd}) @deftypefunx int mpfr_pow_uj (mpfr_t @var{rop}, mpfr_t @var{op1}, uintmax_t @var{op2}, mpfr_rnd_t @var{rnd}) @deftypefunx int mpfr_pow_sj (mpfr_t @var{rop}, mpfr_t @var{op1}, intmax_t @var{op2}, mpfr_rnd_t @var{rnd}) -@deftypefunx int mpfr_pow_n (mpfr_t @var{rop}, mpfr_t @var{op1}, intmax_t @var{op2}, mpfr_rnd_t @var{rnd}) +@deftypefunx int mpfr_pown (mpfr_t @var{rop}, mpfr_t @var{op1}, intmax_t @var{op2}, mpfr_rnd_t @var{rnd}) @deftypefunx int mpfr_pow_z (mpfr_t @var{rop}, mpfr_t @var{op1}, mpz_t @var{op2}, mpfr_rnd_t @var{rnd}) @deftypefunx int mpfr_ui_pow_ui (mpfr_t @var{rop}, unsigned long int @var{op1}, unsigned long int @var{op2}, mpfr_rnd_t @var{rnd}) @deftypefunx int mpfr_ui_pow (mpfr_t @var{rop}, unsigned long int @var{op1}, mpfr_t @var{op2}, mpfr_rnd_t @var{rnd}) Set @var{rop} to @m{@var{op1}^{@var{op2}}, @var{op1} raised to @var{op2}}, rounded in the direction @var{rnd}. -(The @code{mpfr_pow_n} function is just an alias for @code{mpfr_pow_sj}, -to follow the C2x function @code{pown}.) +The @code{mpfr_powr} function corresponds to the @code{powr} function +from IEEE@tie{}754-2019, i.e., it computes the exponential of +@var{op2} multiplied by the logarithm of @var{op1}. +The @code{mpfr_pown} function is just an alias for @code{mpfr_pow_sj}, +to follow the C2x function @code{pown}. Special values are handled as described in the ISO C99 and IEEE@tie{}754-2008 standards for the @code{pow} function: @itemize @bullet @@ -4280,7 +4284,7 @@ use @code{mpfr_get_z_exp}. @item @code{mpfr_nrandom} in MPFR@tie{}4.0. -@item @code{mpfr_pow_sj} and @code{mpfr_pow_uj} in MPFR@tie{}4.2. +@item @code{mpfr_powr}, @code{mpfr_pow_sj} and @code{mpfr_pow_uj} in MPFR@tie{}4.2. @item @code{mpfr_printf} in MPFR@tie{}2.4. -- cgit v1.2.1