summaryrefslogtreecommitdiff
path: root/mpfr.texi
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2009-09-17 11:30:18 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2009-09-17 11:30:18 +0000
commit3c1ce31803986ff19ea6c4902723f93a43b15d90 (patch)
treec974cec1450a6b3b23976832411c7dfa5e622627 /mpfr.texi
parent653246b4a936d18f8b3500bc5d8c4b61299c7846 (diff)
downloadmpfr-3c1ce31803986ff19ea6c4902723f93a43b15d90.tar.gz
[sin_cos.c] more precise meaning of the return value
[sinh_cosh.c] idem as above [taway.c] fixed to check the more precise return value git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6444 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'mpfr.texi')
-rw-r--r--mpfr.texi10
1 files changed, 7 insertions, 3 deletions
diff --git a/mpfr.texi b/mpfr.texi
index 6a0eac4b1..9e9aa9aca 100644
--- a/mpfr.texi
+++ b/mpfr.texi
@@ -1691,7 +1691,10 @@ Set simultaneously @var{sop} to the sine of @var{op} and
@var{cop} to the cosine of @var{op},
rounded in the direction @var{rnd} with the corresponding precisions of
@var{sop} and @var{cop}, which must be different variables.
-Return 0 iff both results are exact.
+Return 0 iff both results are exact, more precisely it returns @math{s+4c}
+where @math{s=0} if @var{sop} is exact, @math{s=1} if @var{sop} is larger
+than the sine of @var{op}, @math{s=2} if @var{sop} is smaller than the sine
+of @var{op}, and similarly for @math{c}.
@end deftypefun
@deftypefun int mpfr_acos (mpfr_t @var{rop}, mpfr_t @var{op}, mpfr_rnd_t @var{rnd})
@@ -1753,10 +1756,11 @@ rounded in the direction @var{rnd}.
@deftypefun int mpfr_sinh_cosh (mpfr_t @var{sop}, mpfr_t @var{cop}, mpfr_t @var{op}, mpfr_rnd_t @var{rnd})
Set simultaneously @var{sop} to the hyperbolic sine of @var{op} and
- @var{cop} to the hyperbolic cosine of @var{op},
+@var{cop} to the hyperbolic cosine of @var{op},
rounded in the direction @var{rnd} with the corresponding precision of
@var{sop} and @var{cop} which must be different variables.
-Return 0 iff both results are exact.
+Return 0 iff both results are exact (see @code{mpfr_sin_cos} for a more
+detailed description of the return value).
@end deftypefun
@deftypefun int mpfr_sech (mpfr_t @var{rop}, mpfr_t @var{op}, mpfr_rnd_t @var{rnd})