summaryrefslogtreecommitdiff
path: root/atan2.c
diff options
context:
space:
mode:
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)
{