diff options
author | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2011-01-07 19:04:48 +0000 |
---|---|---|
committer | enge <enge@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2011-01-07 19:04:48 +0000 |
commit | c7e1e96458deb786d7db5ec3143445e3ba37085b (patch) | |
tree | 32821d487be7c2c21edcca6690621a9bb27afba9 | |
parent | 33785e1f8a2cb7668fbf747ef85c4bbb4c4fc852 (diff) | |
download | mpc-c7e1e96458deb786d7db5ec3143445e3ba37085b.tar.gz |
documented sin_cos
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@858 211d60ee-9f03-0410-a15a-8952a2c7a4e4
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | doc/mpc.texi | 7 | ||||
-rw-r--r-- | src/sin_cos.c | 3 |
3 files changed, 11 insertions, 0 deletions
@@ -3,6 +3,7 @@ Changes in version 0.8.3: - mpc_set_dc, mpc_set_ldc, mpc_get_dc, mpc_get_ldc for converting between mpc type variables and C variables of type double _Complex or long double _Complex + - mpc_sin_cos, computing simultaneously the sine and cosine - Speed-up of mpc_pow_si through binary exponentiation, and of mpc_pow_z when the exponent fits in a long - Bug fixes: diff --git a/doc/mpc.texi b/doc/mpc.texi index ccccdb6..256977c 100644 --- a/doc/mpc.texi +++ b/doc/mpc.texi @@ -1012,6 +1012,13 @@ Set @var{rop} to the cosine of @var{op}, rounded according to @var{rnd} with the precision of @var{rop}. @end deftypefun +@deftypefun int mpc_sin_cos (mpc_t @var{rop_sin}, mpc_t @var{rop_cos}, mpc_t @var{op}, mpc_rnd_t @var{rnd_sin}, mpc_rnd_t @var{rnd_cos}) +Set @var{rop_sin} to the sine of @var{op}, +rounded according to @var{rnd_sin} with the precision of @var{rop_sin}, +and @var{rop_cos} to the cosine of @var{op}, +rounded according to @var{rnd_cos} with the precision of @var{rop_cos}. +@end deftypefun + @deftypefun int mpc_tan (mpc_t @var{rop}, mpc_t @var{op}, mpc_rnd_t @var{rnd}) Set @var{rop} to the tangent of @var{op}, rounded according to @var{rnd} with the precision of @var{rop}. diff --git a/src/sin_cos.c b/src/sin_cos.c index e117ba8..20a3d6c 100644 --- a/src/sin_cos.c +++ b/src/sin_cos.c @@ -246,6 +246,9 @@ mpc_sin_cos_imag (mpc_ptr rop_sin, mpc_ptr rop_cos, mpc_srcptr op, int mpc_sin_cos (mpc_ptr rop_sin, mpc_ptr rop_cos, mpc_srcptr op, mpc_rnd_t rnd_sin, mpc_rnd_t rnd_cos) + /* Feature not documented in the texinfo file: One of rop_sin or + rop_cos may be NULL, in which case it is not computed, and the + corresponding ternary inexact value is set to 0 (exact). */ { int inex_sin, inex_cos; |