changeset 48674:f1e846c193c7

(solar-atn2): Give correct quadrant for arctan.
author Richard M. Stallman <rms@gnu.org>
date Thu, 05 Dec 2002 15:30:52 +0000
parents 1bcc16abed79
children 8da64061d63d
files lisp/calendar/solar.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/calendar/solar.el	Thu Dec 05 15:30:09 2002 +0000
+++ b/lisp/calendar/solar.el	Thu Dec 05 15:30:52 2002 +0000
@@ -262,7 +262,7 @@
    "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."