;ELC ;;; compiled by jwz@thalidomide on Sun Jan 2 02:59:21 1994 ;;; from file /th/jwz/emacs19/lisp/calendar/lunar.el ;;; emacs version 19.9 Lucid (beta10). ;;; bytecomp version 2.22; 22-dec-93. ;;; optimization is on. ;;; this file uses opcodes which do not exist in Emacs 18. (if (and (boundp 'emacs-version) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19"))) (error "This file was compiled for Emacs 19.")) (byte-code "!!!!" [fboundp atan require lisp-float-type error "Lunar calculations impossible since floating point is unavailable." solar] 2) (fset 'lunar-phase-list #[(month year) "   _ \\\\ƦTƥ)\n_ \\\\ƦTƥ) EC U\n̦U\nΦU\nϦUЪ SH\nEC  E@ EA@ EAA@S_\\V_\\إZ ̦U ΦU ϦUT,٥\\\\_!_!  \"\" C\" T!Z . " [month year start-year start-month end-year end-month 12 2 macro-y -2 1 end-date 4 0 100 400 29 [31 28 31 30 31 30 31 31 30 31 30 31] start-date truncate day 31 day-of-year 23 10 366.0 -1900 12.3685 index lunar-phase new-moon nil list calendar-date-compare append] 6 "\ List of lunar phases for three months starting with Gregorian MONTH, YEAR."]) (fset 'lunar-phase #[(index) "åĥ     S_\\ V _\\ҥZ U ԦU զUT,_ԥ[ե\\\\\\\\)_ __ ___ _ __\\\\!_\\\\\\\\\\ _ __ ___\\\\\\\"'_ __ ___\\\\\\\"-_ __ ___\\\\\\\"3\n>o _Z'!_'\\!_-!_-\\!_-_!_3\\!_'-\\!_'-Z!_3\\'\\!_3\\'Z!@_3\\-\\!A_3\\-Z!B_-\\'\\!C_\\\\\\\\\\\\\\\\\\\\\\\\,D E_Z'!_'\\!F_-!G_-\\!H_-_!I_3\\!J_'-\\!K_'-Z!L_3\\'\\!M_3\\'Z!N_3\\-\\!O_3\\-Z!P_-\\'\\!Q_'-\\Z!R_'\\-\\!S_\\\\\\\\\\\\\\\\\\\\\\\\\\\\TU'!V_U-!W_X\\\\Y\nUTY\\\nUTYZTT T\\ Z[\\ !!AA@!][\\ \\ !Z^_[\\ !! _  \"\nE." [index 4 phase 4.0 1236.85 time 1899 prior-years 1 month 0.5 day 1900 year 31 day-of-year 2 23 10 0 100 400 365 29.53058868 0.0001178 -1.55e-07 solar-sin-degrees 132.87 -0.009173000000000001 166.56 0.00033 0.7593299999999999 date mod 29.105356 -3.33e-05 -3.47e-06 359.2242 360.0 sun-anomaly 385.81691806 0.0107306 1.236e-05 306.0253 360.0 moon-anomaly 390.67050646 -0.0016528 -2.39e-06 21.2964 360.0 moon-lat (0 2) 0.1734 0.000393 0.0021 -0.4068 0.0161 3 -0.0004 0.0104 -0.0051 -0.0074 0.0004 -0.0004 -0.0005999999999999999 0.001 0.0005 0.1721 0.0004 0.0021 -0.628 0.0089 -0.0004 0.007900000000000001 -0.0119 -0.0047 0.0003 -0.0004 -0.0005999999999999999 0.0021 0.0003 0.0004 -0.0003 adjustment solar-cosine-degrees -0.0004 0.0003 0.0028 adj solar-ephemeris-correction calendar-gregorian-from-absolute truncate 1440.0 24 solar-time-string] 18 "\ Local date and time of lunar phase INDEX. Integer below INDEX/4 gives the lunation number, counting from Jan 1, 1900; remainder mod 4 gives the phase: 0 new moon, 1 first quarter, 2 full moon, 3 last quarter."]) (fset 'lunar-phase-name #[(phase) "U‡UćUƇUȇ" [phase 0 "New Moon" 1 "First Quarter Moon" 2 "Full Moon" 3 "Last Quarter Moon"] 2 "\ Name of lunar PHASE. 0 = new moon, 1 = first quarter, 2 = full moon, 3 = last quarter."]) (fset 'calendar-phases-of-moon #[nil "!\n \n  _ \\\\ ʦT  ʥ)_\\ ʦT ʥ) !q !!%!  \"#ceb! !!-" [message "Computing phases of the moon..." displayed-month displayed-year "*Phases of Moon*" lunar-phases-buffer y2 m2 y1 m1 12 -2 macro-y get-buffer-create nil buffer-read-only calendar-set-mode-line format "Phases of the moon from %s, %d to %s, %d%%-" calendar-month-name erase-buffer mapconcat #[(x) "@A@AA@ ! !\n+" [x phase time date calendar-date-string ": " lunar-phase-name " "] 5] lunar-phase-list "\n" set-buffer-modified-p t display-buffer "Computing phases of the moon...done"] 8 "\ Create a buffer with the lunar phases for the current calendar window." nil]) (fset 'phases-of-moon #[(&optional arg) "   \"\"$! !\"A @ AA@!# AA@ -" [t completion-ignore-case calendar-current-date date arg assoc capitalize completing-read "Month name: " mapcar list append calendar-month-name-array nil calendar-make-alist displayed-month calendar-read "Year (>0): " (lambda (x) (> x 0)) int-to-string displayed-year calendar-phases-of-moon] 9 "\ Display the quarters of the moon for last month, this month, and next month. If called with an optional prefix argument, prompts for month and year. This function is suitable for execution in a .emacs file." "P"]) (fset 'diary-phases-of-moon #[nil " AA@ @ A@ AA@ \nS_\\\nV\n_\\ʥZ ȦU ̦U ͦUT,Υ\\\\_!_! C\"T!k@ \"AA@!A@Q*" [truncate date month day year 31 day-of-year 2 4 23 10 0 100 400 366.0 -1900 12.3685 index lunar-phase phase calendar-date-compare calendar-date-equal lunar-phase-name " "] 5 "\ Moon phases diary entry."]) (provide 'lunar)