;ELC   
;;; compiled by roland@churchy.gnu.ai.mit.edu on Wed Sep 27 03:26:06 1995
;;; from file /gd/gnu/emacs/19.0/lisp/lunar.el
;;; emacs version 19.29.12.
;;; bytecomp version FSF 2.10
;;; 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.28.90")))
    (error "`lunar.el' was compiled for Emacs 19.29 or later"))


(byte-code "! ! !!" [fboundp atan require lisp-float-type error "Lunar calculations impossible since floating point is unavailable." solar] 2)
#@76 List of lunar phases for three months starting with Gregorian MONTH, YEAR.
(defalias 'lunar-phase-list #[(month year) "		\f_\\\\ƦTƥ)\n_\\\\ƦTƥ)\fEC\nUb 	̦UZ 	ΦU?Z 	ϦU)b Ђf SH*\nEC		E@)A@)AA@)S_\\V _\\٥Z	̦U 	ΦU? 	ϦU) T-ڥ\\\\_!_!!\"\f\" !C\"!T! !.	" [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 date day 31 day-of-year 23 10 366.0 -1900 12.368499999999999 index lunar-phase new-moon nil list calendar-date-compare append] 7 (#$ . 634)])
#@210 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.
(defalias 'lunar-phase #[(index) "	\"	ĥťǉAA@)S	@)\nA@)AA@)\f\nS_\\\nV \n_\\ѥZ\f\f¦Uw \fӦU?w \fԦU) T-	_	¥	ӥ[	ԥ\\\\\\\\*	_________\\\\_!)_\\\\\\\\\\	______\\\\\\\"&	______\\\\\\\",	______\\\\\\\"2>_Z&_!)_&\\_!)_,_!)_,\\_!)_,__!)_2\\_!)_&,\\_!)_&,Z_!)_2\\&\\_!)_2\\&Z_!)_2\\,\\_!)@ _2\\,Z_!)A _,\\&\\_!)B _\\\\\\\\\\\\\\\\\\\\\\\\/C D _Z&_!)_&\\_!)E _,_!)F _,\\_!)G _,__!)H _2\\_!)I _&,\\_!)J _&,Z_!)K _2\\&\\_!)L _2\\&Z_!)M _2\\,\\_!)N _2\\,Z_!)O _,\\&\\_!)P _&,\\Z_!)Q _&\\,\\_!)R _\\\\\\\\\\\\\\\\\\\\\\\\\\\\S&T U _!)V _,T U _!)W _X \\\\YZ UnSY\\~U|SYZ~SSS\\[\\ ] ^ !!AA@)!Z_ \\^ !Z` _] ^ !!a \"Y@b c YA\"E." [mod index 4 phase 4.0 1236.8499999999999 time (1 .5 1900) date prior-years month day year 31 day-of-year 2 23 10 0 100 400 365 29.530588680000001 .00011779999999999999 -1.55e-007 132.87 -.009173 166.56 x sin .017453292519943295 .00033000000000000003 .75932999999999993 29.105356 -3.3300000000000001e-005 -3.4700000000000002e-006 359.2242 360.0 sun-anomaly 385.81691805999998 .010730599999999999 1.2359999999999998e-005 306.02530000000002 360.0 moon-anomaly 390.67050646000001 -.0016528 -2.3899999999999997e-006 21.296399999999998 360.0 moon-lat (0 2) .1734 .00039300000000000001 .0020999999999999996 -.40679999999999996 .016100000000000001 3 -.0004 .0104 -.0050999999999999996 -.0074000000000000012 .0004 -.0004 -.00059999999999999982 .001 .0005 .17210000000000001 .0004 .0020999999999999996 -.62800000000000002 .0088999999999999986 -.0004 .0079000000000000012 -.011900000000000002 -.0046999999999999993 .00029999999999999991 -.0004 -.00059999999999999982 .0020999999999999996 .00029999999999999991 .0004 -.00029999999999999991 adjustment cos .017453292519943295 -.0004 .00029999999999999991 .0028000000000000004 adj 1 calendar-time-zone solar-ephemeris-correction calendar-gregorian-from-absolute truncate 1440.0 24 dst-adjust-time apply solar-time-string] 18 (#$ . 1348)])
#@88 Name of lunar PHASE.
0 = new moon, 1 = first quarter, 2 = full moon, 3 = last quarter.
(defalias 'lunar-phase-name #[(phase) "U U ćU ƇU ȇ" [phase 0 "New Moon" 1 "First Quarter Moon" 2 "Full Moon" 3 "Last Quarter Moon"] 2 (#$ . 3959)])
#@72 Create a buffer with the lunar phases for the current calendar window.
(defalias 'calendar-phases-of-moon #[nil "!\n\n_\\\\\nȦT\nȥ)\f_\\\nȦT\nȥ)\f!q\fUW !!\f$d !!\f%! \"#ceb!\f!!," [message "Computing phases of the moon..." displayed-month displayed-year y2 m2 y1 m1 12 -2 macro-y get-buffer-create lunar-phases-buffer nil buffer-read-only calendar-set-mode-line format "Phases of the Moon from %s to %s, %d%%-" calendar-month-name "Phases of the Moon from %s, %d to %s, %d%%-" 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 (#$ . 4221) nil])
#@209 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.
(defalias 'phases-of-moon #[(&optional arg) " !  @)\fAA@) ," [arg calendar-read-date t calendar-current-date date displayed-month displayed-year calendar-phases-of-moon] 3 (#$ . 5041) "P"])
#@26 Moon phases diary entry.
(defalias 'diary-phases-of-moon #[nil "	AA@)	@)	A@)	AA@)\nS_\\\nVZ \n_\\ʥZ\fȦUQ \f̦U?Q \fͦU)Z T-Υ\\\\_!_!	C\" T!o @	\" AA@!A@Q*" [truncate date month day year 31 day-of-year 2 4 23 10 0 100 400 366.0 -1900 12.368499999999999 index lunar-phase phase calendar-date-compare calendar-date-equal lunar-phase-name " "] 7 (#$ . 5465)])
#@52 Astronomical (Julian) day number of K th new moon.
(defalias 'lunar-new-moon-time #[(k) "_\n_____\f__\\\\\\\\\n_Z_Z__\f_\\\\\\__\f__\\\\\\\\__\f__\\\\\\\\ __\f_\\\\\\%__\\\\)_\\,_\\/_\\2_\\5_\\8_\\;_\\>_@ \\AB _C \\DE _F \\GH _I \\JK _L \\MN _O \\PQR QS _!)T _QR QS _!)U __\\QR QS _!)V _ \\QR QS _!)W _ZQR QS _!)X __\\QR QS _!)Y __\\QR QS _!)Z ___ \\ZQR QS _!)[ _ \\\\QR QS _!)\\ _\\\\QR QS _!)] __^ _QR QS _!)_ _ \\\\QR QS _!)` __ \\ZQR QS _!)a __\\ZQR QS _!)b __%QR QS _!)c _\\\\QR QS _!)d _\\ \\ZQR QS _!)e _^ _QR QS _!)f _ g _\\\\QR QS _!)h _\\ \\\\QR QS _!)i _ \\\\\\QR QS _!)j _Z g _ZQR QS _!)k _Z \\ZQR QS _!)l _^ _\\QR QS _!)m _n _QR QS _!)o _\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\p)QR QS _!)q _,QR QS _!)r _/QR QS _!)s _2QR QS _!)t _5QR QS _!)u _8QR QS _!)v _;QR QS _!)w _>QR QS _!)x _AQR QS _!)y _DQR QS _!)z _GQR QS _!){ _JQR QS _!)| _MQR QS _!)} _PQR QS _!)~ _\\\\\\\\\\\\\\\\\\\\\\\\\\p\\\\    !!!AA@)![ \\\\." [k 1236.8499999999999 T T2 T3 T4 29.530588853000001 .00013369999999999997 -1.5e-007 7.2999999999999972e-010 2451550.0976499999 JDE 1 .0025160000000000005 7.4000000000000012e-006 E 29.105356690000001 -2.1800000000000002e-005 -1.0999999999999999e-007 2.5533999999999999 sun-anomaly 385.81693528 .010743799999999999 1.2390000000000001e-005 -5.7999999999999998e-008 201.5643 moon-anomaly 390.67050274000002 -.0016341000000000001 -2.2699999999999996e-006 1.0999999999999999e-008 160.71080000000001 moon-argument -1.5637558 .0020691000000000002 2.1499999999999995e-006 124.77460000000001 omega .10740799999999999 -.009173 299.76999999999998 A1 .016320999999999999 251.88 A2 26.641886 251.83000000000001 A3 36.412478 349.42000000000002 A4 18.206239 84.659999999999997 A5 53.303770999999998 141.74000000000001 A6 2.453732 207.13999999999999 A7 7.3068600000000004 154.84 A8 27.261239 34.520000000000003 A9 .121824 207.19 A10 1.844379 291.33999999999997 A11 24.198153999999999 161.72 A12 25.513099 239.56 A13 3.5925180000000001 331.55000000000001 A14 x sin .017453292519943295 -.40720000000000001 .17241 .016080000000000001 .010389999999999999 .0073899999999999988 -.0051399999999999988 .0020800000000000001 -.0011100000000000001 -.00057000000000000011 .00055999999999999996 3 -.00042000000000000011 .00042000000000000011 .00038000000000000007 -.00023999999999999999 -.00017000000000000002 -7e-005 4e-005 4e-005 -2 3e-005 3e-005 -3e-005 3e-005 -2e-005 -2e-005 4 2e-005 correction .000325 .00016500000000000002 .00016399999999999997 .000126 .00011000000000000001 6.2000000000000002e-005 6e-005 5.5999999999999996e-005 4.6999999999999993e-005 4.1999999999999993e-005 4e-005 3.7000000000000006e-005 3.5e-005 2.2999999999999998e-005 additional newJDE solar-ephemeris-correction calendar-gregorian-from-absolute floor calendar-absolute-from-astro date calendar-time-zone 1440.0] 28 (#$ . 5907)])
#@440 Astronomical (Julian) day number of first new moon on or after astronomical
(Julian) day number d.  The fractional part is the time of day.

The date and time are local time, including any daylight savings rules,
as governed by the values of calendar-daylight-savings-starts,
calendar-daylight-savings-starts-time, calendar-daylight-savings-ends,
calendar-daylight-savings-ends-time, calendar-daylight-time-offset, and
calendar-time-zone.
(defalias 'lunar-new-moon-on-or-after #[(d) "!!!AA@)\f@)\fA@)\fAA@)S_\\	Vh 	_\\ͥZ	˦U_ ϦU?_ ЦU)h 	T		-ѥ\\Z_!!W T! \f!!Z_!!\f\"@AA@)S\f@)\fA@)\fAA@)S_\\	V	_\\ͥZ	˦UϦU?ЦU)	T		-_˥ϥ[Х\\\\\\\\*A@ߥ\\!." [calendar-gregorian-from-absolute floor calendar-absolute-from-astro d date month day year 31 day-of-year 2 4 23 10 0 100 400 365.25 2000.0 12.368499999999999 k lunar-new-moon-time a-date truncate 24 time dst-adjust-time adj calendar-astro-from-absolute prior-years 365 24.0] 9 (#$ . 9207)])
(provide (quote lunar))
