summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2021-02-05 15:35:57 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2021-02-05 15:35:57 +0000
commitac8a2e8e4ab0295efd1950923d3dc20f18ce419a (patch)
tree36b489f1a6c86c167f19f0afcfb3d8b612e6ddd7 /doc
parent18ce060a9693c3df8a8b92bd4a5b789422d2593f (diff)
downloadmpfr-ac8a2e8e4ab0295efd1950923d3dc20f18ce419a.tar.gz
added new function mpfr_exp2m1 for 2^x-1
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14384 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'doc')
-rw-r--r--doc/mpfr.texi8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/mpfr.texi b/doc/mpfr.texi
index a00435dd2..a7560019a 100644
--- a/doc/mpfr.texi
+++ b/doc/mpfr.texi
@@ -2228,8 +2228,12 @@ rounded in the direction @var{rnd}.
@end deftypefun
@deftypefun int mpfr_expm1 (mpfr_t @var{rop}, mpfr_t @var{op}, mpfr_rnd_t @var{rnd})
+@deftypefunx int mpfr_exp2m1 (mpfr_t @var{rop}, mpfr_t @var{op}, mpfr_rnd_t @var{rnd})
Set @var{rop} to @m{e^{@var{op}}-1,the exponential of @var{op} followed by a
-subtraction by one}, rounded in the direction @var{rnd}.
+subtraction by one}
+(resp.@: @m{2^{@var{op}}-1,2 power of @var{op} followed by a
+subtraction by one}),
+rounded in the direction @var{rnd}.
@end deftypefun
@anchor{mpfr_pow}
@@ -4197,6 +4201,8 @@ use @code{mpfr_custom_get_mantissa}.
@item @code{mpfr_erandom} in MPFR@tie{}4.0.
+@item @code{mpfr_exp2m1} in MPFR@tie{}4.2.
+
@item @code{mpfr_flags_clear}, @code{mpfr_flags_restore},
@code{mpfr_flags_save}, @code{mpfr_flags_set} and @code{mpfr_flags_test}
in MPFR@tie{}4.0.