From: Richard M. Stallman Date: Thu, 5 Dec 2002 15:30:52 +0000 (+0000) Subject: (solar-atn2): Give correct quadrant for arctan. X-Git-Tag: ttn-vms-21-2-B4~12152 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bd0f7fd3df899c562a8ec0495932ba1b01c65999;p=emacs.git (solar-atn2): Give correct quadrant for arctan. --- diff --git a/lisp/calendar/solar.el b/lisp/calendar/solar.el index 889129858d9..10c385ac4a2 100644 --- a/lisp/calendar/solar.el +++ b/lisp/calendar/solar.el @@ -262,7 +262,7 @@ Returns nil if nothing was entered." "Arctan of point X, Y." (if (= x 0) (if (> y 0) 90 270) - (solar-arctan (/ y x) x))) + (solar-arctan (/ y x) (solar-xy-to-quadrant x y)))) (defun solar-arccos (x) "Arcos of X."