diff options
-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; |