emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/calendar/solar.el,v


From: Glenn Morris
Subject: [Emacs-diffs] Changes to emacs/lisp/calendar/solar.el,v
Date: Thu, 20 Mar 2008 04:49:18 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Glenn Morris <gm>       08/03/20 04:49:18

Index: solar.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/calendar/solar.el,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -b -r1.74 -r1.75
--- solar.el    16 Mar 2008 01:28:43 -0000      1.74
+++ solar.el    20 Mar 2008 04:49:18 -0000      1.75
@@ -125,14 +125,14 @@
                   (/ (aref calendar-latitude 1) 60.0)))
              (if (numberp calendar-latitude)
                  (if (> calendar-latitude 0) "N" "S")
-               (if (equal (aref calendar-latitude 2) 'north) "N" "S"))
+               (if (eq (aref calendar-latitude 2) 'north) "N" "S"))
              (if (numberp calendar-longitude)
                  (abs calendar-longitude)
                (+ (aref calendar-longitude 0)
                   (/ (aref calendar-longitude 1) 60.0)))
              (if (numberp calendar-longitude)
                  (if (> calendar-longitude 0) "E" "W")
-               (if (equal (aref calendar-longitude 2) 'east) "E" "W"))))
+               (if (eq (aref calendar-longitude 2) 'east) "E" "W"))))
   "Expression evaluating to the name of the calendar location.
 For example, \"New York City\".  The default value is just the
 variable `calendar-latitude' paired with the variable `calendar-longitude'.
@@ -188,7 +188,7 @@
       calendar-latitude
     (let ((lat (+ (aref calendar-latitude 0)
                   (/ (aref calendar-latitude 1) 60.0))))
-      (if (equal (aref calendar-latitude 2) 'north)
+      (if (eq (aref calendar-latitude 2) 'north)
           lat
         (- lat)))))
 
@@ -198,7 +198,7 @@
       calendar-longitude
     (let ((long (+ (aref calendar-longitude 0)
                    (/ (aref calendar-longitude 1) 60.0))))
-      (if (equal (aref calendar-longitude 2) 'east)
+      (if (eq (aref calendar-longitude 2) 'east)
           long
         (- long)))))
 
@@ -251,9 +251,9 @@
 (defun solar-arctan (x quad)
   "Arctangent of X in quadrant QUAD."
   (let ((deg (radians-to-degrees (atan x))))
-    (cond ((equal quad 2) (+ deg 180))
-          ((equal quad 3) (+ deg 180))
-          ((equal quad 4) (+ deg 360))
+    (cond ((= quad 2) (+ deg 180))
+          ((= quad 3) (+ deg 180))
+          ((= quad 4) (+ deg 360))
           (t              deg))))
 
 (defun solar-atn2 (x y)
@@ -830,14 +830,14 @@
                            (/ (aref calendar-latitude 1) 60.0)))
                       (if (numberp calendar-latitude)
                           (if (> calendar-latitude 0) "N" "S")
-                        (if (equal (aref calendar-latitude 2) 'north) "N" "S"))
+                        (if (eq (aref calendar-latitude 2) 'north) "N" "S"))
                       (if (numberp calendar-longitude)
                           (abs calendar-longitude)
                         (+ (aref calendar-longitude 0)
                            (/ (aref calendar-longitude 1) 60.0)))
                       (if (numberp calendar-longitude)
                           (if (> calendar-longitude 0) "E" "W")
-                        (if (equal (aref calendar-longitude 2) 'east)
+                        (if (eq (aref calendar-longitude 2) 'east)
                             "E" "W"))))))
          (calendar-standard-time-zone-name
           (if (< arg 16) calendar-standard-time-zone-name
@@ -971,43 +971,43 @@
   (let ((y (/ year 1000.0))
         (z (/ (- year 2000) 1000.0)))
     (if (< year 1000)                ; actually between -1000 and 1000
-        (cond ((equal k 0) (+ 1721139.29189
+        (cond ((= k 0) (+ 1721139.29189
                               (*  365242.13740 y)
                               (* 0.06134 y y)
                               (* 0.00111 y y y)
                               (* -0.00071 y y y y)))
-              ((equal k 1) (+ 1721233.25401
+              ((= k 1) (+ 1721233.25401
                               (* 365241.72562 y)
                               (* -0.05323 y y)
                               (* 0.00907 y y y)
                               (* 0.00025 y y y y)))
-              ((equal k 2) (+ 1721325.70455
+              ((= k 2) (+ 1721325.70455
                               (* 365242.49558 y)
                               (* -0.11677 y y)
                               (* -0.00297 y y y)
                               (* 0.00074 y y y y)))
-              ((equal k 3) (+ 1721414.39987
+              ((= k 3) (+ 1721414.39987
                               (* 365242.88257 y)
                               (* -0.00769 y y)
                               (* -0.00933 y y y)
                               (* -0.00006 y y y y))))
                                         ; actually between 1000 and 3000
-      (cond ((equal k 0) (+ 2451623.80984
+      (cond ((= k 0) (+ 2451623.80984
                             (* 365242.37404  z)
                             (* 0.05169 z z)
                             (* -0.00411 z z z)
                             (* -0.00057 z z z z)))
-            ((equal k 1) (+ 2451716.56767
+            ((= k 1) (+ 2451716.56767
                             (* 365241.62603 z)
                             (* 0.00325 z z)
                             (* 0.00888 z z z)
                             (* -0.00030 z z z z)))
-            ((equal k 2) (+ 2451810.21715
+            ((= k 2) (+ 2451810.21715
                             (* 365242.01767 z)
                             (* -0.11575 z z)
                             (* 0.00337 z z z)
                             (* 0.00078 z z z z)))
-            ((equal k 3) (+ 2451900.05952
+            ((= k 3) (+ 2451900.05952
                             (* 365242.74049 z)
                             (* -0.06223 z z)
                             (* -0.00823 z z z)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]