summaryrefslogtreecommitdiff
path: root/sin_cos.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-06-07 14:22:08 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-06-07 14:22:08 +0000
commit0c5d5d07b72d32a376331aee381619d2a5e96980 (patch)
tree0f5bed7de992d9f1239035354312e22d618ca099 /sin_cos.c
parent584745ed15027deceaa15f66cffd041cec4a614f (diff)
downloadmpfr-0c5d5d07b72d32a376331aee381619d2a5e96980.tar.gz
added mpfr_sin and mpfr_cos
corrected in the documentation some exact values git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1090 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sin_cos.c')
-rw-r--r--sin_cos.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sin_cos.c b/sin_cos.c
index ff1300f09..dd5909e79 100644
--- a/sin_cos.c
+++ b/sin_cos.c
@@ -273,3 +273,15 @@ mpfr_sin_cos (sinus, cosinus, x, rnd_mode)
return 1; /* inexact result */
}
+
+int
+mpfr_sin (mpfr_ptr sinus, mpfr_srcptr x, mp_rnd_t rnd_mode)
+{
+ return mpfr_sin_cos (sinus, NULL, x, rnd_mode);
+}
+
+int
+mpfr_cos (mpfr_ptr cosinus, mpfr_srcptr x, mp_rnd_t rnd_mode)
+{
+ return mpfr_sin_cos (NULL, cosinus, x, rnd_mode);
+}