summaryrefslogtreecommitdiff
path: root/atan2.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-04-13 15:48:51 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-04-13 15:48:51 +0000
commite33acdcfe80d6194b8a508c06c6aef4e77da6769 (patch)
tree9b888e83eb2cfc49cc286c6e6d3266b5aeb4e2a1 /atan2.c
parent527c124b5889c94b6a29b9ad1a0d9a082ef80a24 (diff)
downloadmpfr-e33acdcfe80d6194b8a508c06c6aef4e77da6769.tar.gz
Add TODO.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3438 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'atan2.c')
-rw-r--r--atan2.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/atan2.c b/atan2.c
index 54e722d4c..dfb9e4e29 100644
--- a/atan2.c
+++ b/atan2.c
@@ -22,7 +22,14 @@ MA 02111-1307, USA. */
#define MPFR_NEED_LONGLONG_H
#include "mpfr-impl.h"
-/* Returns arctan (y/x) */
+/* TODO:
+ Returns arctan2 (y, x) = atan (y/x) si x > 0
+ = sign(y)*(PI - atan (|y/x|)) si x < 0
+ = 0 si x = 0 et y = 0
+ sign(y) * PI/2 si x = 0 et y != 0
+ How to handle signed zeros?
+*/
+
int
mpfr_atan2 (mpfr_ptr dest, mpfr_srcptr y, mpfr_srcptr x, mp_rnd_t rnd_mode)
{