(interactive
(let* ((start-year (calendar-read
"Starting year of holidays (>0): "
- '(lambda (x) (> x 0))
+ (lambda (x) (> x 0))
(int-to-string (extract-calendar-year
(calendar-current-date)))))
(end-year (calendar-read
(format "Ending year (inclusive) of holidays (>=%s): "
start-year)
- '(lambda (x) (>= x start-year))
+ (lambda (x) (>= x start-year))
(int-to-string start-year)))
(completion-ignore-case t)
(lists
(goto-char (point-min))
(insert
(mapconcat
- '(lambda (x) (concat (calendar-date-string (car x))
+ (lambda (x) (concat (calendar-date-string (car x))
": " (car (cdr x))))
holiday-list "\n"))
(goto-char (point-min))
(erase-buffer)
(insert
(mapconcat
- '(lambda (x) (concat (calendar-date-string (car x))
+ (lambda (x) (concat (calendar-date-string (car x))
": " (car (cdr x))))
holiday-list "\n"))
(goto-char (point-min))
(erase-buffer)
(insert
(mapconcat
- '(lambda (x)
+ (lambda (x)
(let ((date (car x))
(time (car (cdr x)))
(phase (car (cdr (cdr x)))))
(provide 'lunar)
-;;; arch-tag: 72f0b8a4-7bcc-4a1b-b67a-ff53c4a1d222
+;; arch-tag: 72f0b8a4-7bcc-4a1b-b67a-ff53c4a1d222
;;; lunar.el ends here
(* 62833.1961680 U)
(* 0.0000001
(apply '+
- (mapcar '(lambda (x)
+ (mapcar (lambda (x)
(* (car x)
(sin (mod
(+ (car (cdr x))
(W (- (* 35999.373 T) 2.47))
(Delta-lambda (+ 1 (* 0.0334 (solar-cosine-degrees W))
(* 0.0007 (solar-cosine-degrees (* 2 W)))))
- (S (apply '+ (mapcar '(lambda(x)
+ (S (apply '+ (mapcar (lambda(x)
(* (car x) (solar-cosine-degrees
(+ (* (car (cdr (cdr x))) T)
(car (cdr x))))))
(provide 'solar)
-;;; arch-tag: bc0ff693-df58-4666-bde4-2a7837ccb8fe
+;; arch-tag: bc0ff693-df58-4666-bde4-2a7837ccb8fe
;;; solar.el ends here