home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Corel 10 Texture (image/corel10Texture)
| ext
| Unsupported |
1%
| dexvert
| Croteam texture file (image/croteamTextureFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0a 5c 61 70 70 65 6e 64 | 69 78 0a 0a 5c 73 65 63 |.\append|ix..\sec|
|00000010| 74 69 6f 6e 7b 53 65 6c | 65 63 74 65 64 20 4c 69 |tion{Sel|ected Li|
|00000020| 73 74 69 6e 67 20 6f 66 | 20 58 4c 49 53 50 2d 53 |sting of| XLISP-S|
|00000030| 54 41 54 20 46 75 6e 63 | 74 69 6f 6e 73 7d 0a 0a |TAT Func|tions}..|
|00000040| 5c 73 75 62 73 65 63 74 | 69 6f 6e 7b 41 72 69 74 |\subsect|ion{Arit|
|00000050| 68 6d 65 74 69 63 20 61 | 6e 64 20 4c 6f 67 69 63 |hmetic a|nd Logic|
|00000060| 61 6c 20 46 75 6e 63 74 | 69 6f 6e 73 7d 0a 0a 5c |al Funct|ions}..\|
|00000070| 62 65 67 69 6e 7b 6c 69 | 73 70 64 6f 63 7d 0a 5c |begin{li|spdoc}.\|
|00000080| 66 64 6f 63 69 74 65 6d | 7b 28 2b 20 5c 26 72 65 |fdocitem|{(+ \&re|
|00000090| 73 74 20 6e 75 6d 62 65 | 72 73 29 7d 0a 52 65 74 |st numbe|rs)}.Ret|
|000000a0| 75 72 6e 73 20 74 68 65 | 20 73 75 6d 20 6f 66 20 |urns the| sum of |
|000000b0| 69 74 73 20 61 72 67 75 | 6d 65 6e 74 73 2e 20 20 |its argu|ments. |
|000000c0| 57 69 74 68 20 6e 6f 20 | 61 72 67 73 2c 20 72 65 |With no |args, re|
|000000d0| 74 75 72 6e 73 20 30 2e | 20 56 65 63 74 6f 72 69 |turns 0.| Vectori|
|000000e0| 7a 65 64 2e 0a 0a 5c 66 | 64 6f 63 69 74 65 6d 7b |zed...\f|docitem{|
|000000f0| 28 2d 20 6e 75 6d 62 65 | 72 20 5c 26 72 65 73 74 |(- numbe|r \&rest|
|00000100| 20 6d 6f 72 65 2d 6e 75 | 6d 62 65 72 73 29 7d 0a | more-nu|mbers)}.|
|00000110| 53 75 62 74 72 61 63 74 | 73 20 74 68 65 20 73 65 |Subtract|s the se|
|00000120| 63 6f 6e 64 20 61 6e 64 | 20 61 6c 6c 20 73 75 62 |cond and| all sub|
|00000130| 73 65 71 75 65 6e 74 20 | 4e 55 4d 42 45 52 73 20 |sequent |NUMBERs |
|00000140| 66 72 6f 6d 20 74 68 65 | 20 66 69 72 73 74 2e 20 |from the| first. |
|00000150| 57 69 74 68 20 6f 6e 65 | 20 61 72 67 2c 0a 6e 65 |With one| arg,.ne|
|00000160| 67 61 74 65 73 20 69 74 | 2e 20 56 65 63 74 6f 72 |gates it|. Vector|
|00000170| 69 7a 65 64 2e 0a 0a 5c | 66 64 6f 63 69 74 65 6d |ized...\|fdocitem|
|00000180| 7b 28 2a 20 5c 26 72 65 | 73 74 20 6e 75 6d 62 65 |{(* \&re|st numbe|
|00000190| 72 73 29 7d 0a 52 65 74 | 75 72 6e 73 20 74 68 65 |rs)}.Ret|urns the|
|000001a0| 20 70 72 6f 64 75 63 74 | 20 6f 66 20 69 74 73 20 | product| of its |
|000001b0| 61 72 67 75 6d 65 6e 74 | 73 2e 20 57 69 74 68 20 |argument|s. With |
|000001c0| 6e 6f 20 61 72 67 73 2c | 20 72 65 74 75 72 6e 73 |no args,| returns|
|000001d0| 20 31 2e 20 56 65 63 74 | 6f 72 69 7a 65 64 2e 0a | 1. Vect|orized..|
|000001e0| 0a 5c 66 64 6f 63 69 74 | 65 6d 7b 28 2f 20 6e 75 |.\fdocit|em{(/ nu|
|000001f0| 6d 62 65 72 20 5c 26 72 | 65 73 74 20 6d 6f 72 65 |mber \&r|est more|
|00000200| 2d 6e 75 6d 62 65 72 73 | 29 7d 0a 44 69 76 69 64 |-numbers|)}.Divid|
|00000210| 65 73 20 74 68 65 20 66 | 69 72 73 74 20 4e 55 4d |es the f|irst NUM|
|00000220| 42 45 52 20 28 65 6c 65 | 6d 65 6e 74 2d 77 69 73 |BER (ele|ment-wis|
|00000230| 65 29 20 62 79 20 65 61 | 63 68 20 6f 66 20 74 68 |e) by ea|ch of th|
|00000240| 65 20 73 75 62 73 65 71 | 75 65 6e 74 20 4e 55 4d |e subseq|uent NUM|
|00000250| 42 45 52 53 2e 0a 57 69 | 74 68 20 6f 6e 65 20 61 |BERS..Wi|th one a|
|00000260| 72 67 2c 20 72 65 74 75 | 72 6e 73 20 69 74 73 20 |rg, retu|rns its |
|00000270| 72 65 63 69 70 72 6f 63 | 61 6c 2e 20 56 65 63 74 |reciproc|al. Vect|
|00000280| 6f 72 69 7a 65 64 2e 0a | 0a 5c 66 64 6f 63 69 74 |orized..|.\fdocit|
|00000290| 65 6d 7b 28 5c 5e 7e 7e | 20 62 61 73 65 2d 6e 75 |em{(\^~~| base-nu|
|000002a0| 6d 62 65 72 20 70 6f 77 | 65 72 2d 6e 75 6d 62 65 |mber pow|er-numbe|
|000002b0| 72 29 7d 0a 52 65 74 75 | 72 6e 73 20 42 41 53 45 |r)}.Retu|rns BASE|
|000002c0| 2d 4e 55 4d 42 45 52 20 | 72 61 69 73 65 64 20 74 |-NUMBER |raised t|
|000002d0| 6f 20 74 68 65 20 70 6f | 77 65 72 20 50 4f 57 45 |o the po|wer POWE|
|000002e0| 52 2d 4e 55 4d 42 45 52 | 2e 20 56 65 63 74 6f 72 |R-NUMBER|. Vector|
|000002f0| 69 7a 65 64 2e 0a 0a 5c | 66 64 6f 63 69 74 65 6d |ized...\|fdocitem|
|00000300| 7b 28 2a 2a 20 62 61 73 | 65 2d 6e 75 6d 62 65 72 |{(** bas|e-number|
|00000310| 20 70 6f 77 65 72 2d 6e | 75 6d 62 65 72 29 7d 0a | power-n|umber)}.|
|00000320| 52 65 74 75 72 6e 73 20 | 42 41 53 45 2d 4e 55 4d |Returns |BASE-NUM|
|00000330| 42 45 52 20 72 61 69 73 | 65 64 20 74 6f 20 74 68 |BER rais|ed to th|
|00000340| 65 20 70 6f 77 65 72 20 | 50 4f 57 45 52 2d 4e 55 |e power |POWER-NU|
|00000350| 4d 42 45 52 2e 20 56 65 | 63 74 6f 72 69 7a 65 64 |MBER. Ve|ctorized|
|00000360| 2e 0a 0a 5c 66 64 6f 63 | 69 74 65 6d 7b 28 24 3c |...\fdoc|item{($<|
|00000370| 24 20 5c 26 72 65 73 74 | 20 6e 75 6d 62 65 72 73 |$ \&rest| numbers|
|00000380| 29 7d 0a 52 65 74 75 72 | 6e 73 20 54 20 69 66 20 |)}.Retur|ns T if |
|00000390| 4e 55 4d 42 45 52 53 20 | 61 72 65 20 69 6e 20 73 |NUMBERS |are in s|
|000003a0| 74 72 69 63 74 6c 79 20 | 69 6e 63 72 65 61 73 69 |trictly |increasi|
|000003b0| 6e 67 20 6f 72 64 65 72 | 3b 20 4e 49 4c 20 6f 74 |ng order|; NIL ot|
|000003c0| 68 65 72 77 69 73 65 2e | 0a 56 65 63 74 6f 72 69 |herwise.|.Vectori|
|000003d0| 7a 65 64 2e 0a 0a 5c 66 | 64 6f 63 69 74 65 6d 7b |zed...\f|docitem{|
|000003e0| 28 24 3c 3d 24 20 5c 26 | 72 65 73 74 20 6e 75 6d |($<=$ \&|rest num|
|000003f0| 62 65 72 73 29 7d 0a 52 | 65 74 75 72 6e 73 20 54 |bers)}.R|eturns T|
|00000400| 20 69 66 20 4e 55 4d 42 | 45 52 53 20 61 72 65 20 | if NUMB|ERS are |
|00000410| 69 6e 20 6e 6f 6e 64 65 | 63 72 65 61 73 69 6e 67 |in nonde|creasing|
|00000420| 20 6f 72 64 65 72 3b 20 | 4e 49 4c 20 6f 74 68 65 | order; |NIL othe|
|00000430| 72 77 69 73 65 2e 20 56 | 65 63 74 6f 72 69 7a 65 |rwise. V|ectorize|
|00000440| 64 2e 0a 0a 5c 66 64 6f | 63 69 74 65 6d 7b 28 3d |d...\fdo|citem{(=|
|00000450| 20 5c 26 72 65 73 74 20 | 6e 75 6d 62 65 72 73 29 | \&rest |numbers)|
|00000460| 7d 0a 52 65 74 75 72 6e | 73 20 54 20 69 66 20 4e |}.Return|s T if N|
|00000470| 55 4d 42 45 52 53 20 61 | 72 65 20 61 6c 6c 20 65 |UMBERS a|re all e|
|00000480| 71 75 61 6c 3b 20 4e 49 | 4c 20 6f 74 68 65 72 77 |qual; NI|L otherw|
|00000490| 69 73 65 2e 20 56 65 63 | 74 6f 72 69 7a 65 64 2e |ise. Vec|torized.|
|000004a0| 0a 0a 5c 66 64 6f 63 69 | 74 65 6d 7b 28 2f 3d 20 |..\fdoci|tem{(/= |
|000004b0| 5c 26 72 65 73 74 20 6e | 75 6d 62 65 72 73 29 7d |\&rest n|umbers)}|
|000004c0| 0a 52 65 74 75 72 6e 73 | 20 54 20 69 66 20 4e 55 |.Returns| T if NU|
|000004d0| 4d 42 45 52 53 20 6e 6f | 20 74 77 6f 20 61 64 6a |MBERS no| two adj|
|000004e0| 61 63 65 6e 74 20 6e 75 | 6d 62 65 72 73 20 61 72 |acent nu|mbers ar|
|000004f0| 65 20 65 71 75 61 6c 3b | 20 4e 49 4c 20 6f 74 68 |e equal;| NIL oth|
|00000500| 65 72 77 69 73 65 2e 20 | 56 65 63 74 6f 72 69 7a |erwise. |Vectoriz|
|00000510| 65 64 2e 0a 0a 5c 66 64 | 6f 63 69 74 65 6d 7b 28 |ed...\fd|ocitem{(|
|00000520| 24 3e 3d 24 20 5c 26 72 | 65 73 74 20 6e 75 6d 62 |$>=$ \&r|est numb|
|00000530| 65 72 73 29 7d 0a 52 65 | 74 75 72 6e 73 20 54 20 |ers)}.Re|turns T |
|00000540| 69 66 20 4e 55 4d 42 45 | 52 53 20 61 72 65 20 69 |if NUMBE|RS are i|
|00000550| 6e 20 6e 6f 6e 69 6e 63 | 72 65 61 73 69 6e 67 20 |n noninc|reasing |
|00000560| 6f 72 64 65 72 3b 20 4e | 49 4c 20 6f 74 68 65 72 |order; N|IL other|
|00000570| 77 69 73 65 2e 20 56 65 | 63 74 6f 72 69 7a 65 64 |wise. Ve|ctorized|
|00000580| 2e 0a 0a 5c 66 64 6f 63 | 69 74 65 6d 7b 28 24 3e |...\fdoc|item{($>|
|00000590| 24 20 5c 26 72 65 73 74 | 20 6e 75 6d 62 65 72 73 |$ \&rest| numbers|
|000005a0| 29 7d 0a 52 65 74 75 72 | 6e 73 20 54 20 69 66 20 |)}.Retur|ns T if |
|000005b0| 4e 55 4d 42 45 52 53 20 | 61 72 65 20 69 6e 20 73 |NUMBERS |are in s|
|000005c0| 74 72 69 63 74 6c 79 20 | 64 65 63 72 65 61 73 69 |trictly |decreasi|
|000005d0| 6e 67 20 6f 72 64 65 72 | 3b 20 4e 49 4c 20 6f 74 |ng order|; NIL ot|
|000005e0| 68 65 72 77 69 73 65 2e | 20 56 65 63 74 6f 72 69 |herwise.| Vectori|
|000005f0| 7a 65 64 2e 0a 0a 5c 66 | 64 6f 63 69 74 65 6d 7b |zed...\f|docitem{|
|00000600| 28 61 62 73 20 6e 75 6d | 62 65 72 29 7d 0a 52 65 |(abs num|ber)}.Re|
|00000610| 74 75 72 6e 73 20 74 68 | 65 20 61 62 73 6f 6c 75 |turns th|e absolu|
|00000620| 74 65 20 76 61 6c 75 65 | 20 6f 72 20 6d 6f 64 75 |te value| or modu|
|00000630| 6c 75 73 20 6f 66 20 4e | 55 4d 42 45 52 2e 20 56 |lus of N|UMBER. V|
|00000640| 65 63 74 6f 72 69 7a 65 | 64 2e 0a 0a 5c 66 64 6f |ectorize|d...\fdo|
|00000650| 63 69 74 65 6d 7b 28 61 | 63 6f 73 20 6e 75 6d 62 |citem{(a|cos numb|
|00000660| 65 72 29 7d 0a 52 65 74 | 75 72 6e 73 20 74 68 65 |er)}.Ret|urns the|
|00000670| 20 61 72 63 20 63 6f 73 | 69 6e 65 20 6f 66 20 4e | arc cos|ine of N|
|00000680| 55 4d 42 45 52 2e 20 56 | 65 63 74 6f 72 69 7a 65 |UMBER. V|ectorize|
|00000690| 64 2e 0a 0a 5c 66 64 6f | 63 69 74 65 6d 7b 28 61 |d...\fdo|citem{(a|
|000006a0| 73 69 6e 20 6e 75 6d 62 | 65 72 29 7d 0a 52 65 74 |sin numb|er)}.Ret|
|000006b0| 75 72 6e 73 20 74 68 65 | 20 61 72 63 20 73 69 6e |urns the| arc sin|
|000006c0| 65 20 6f 66 20 4e 55 4d | 42 45 52 2e 20 56 65 63 |e of NUM|BER. Vec|
|000006d0| 74 6f 72 69 7a 65 64 2e | 0a 0a 5c 66 64 6f 63 69 |torized.|..\fdoci|
|000006e0| 74 65 6d 7b 28 61 74 61 | 6e 20 6e 75 6d 62 65 72 |tem{(ata|n number|
|000006f0| 29 7d 0a 52 65 74 75 72 | 6e 73 20 74 68 65 20 61 |)}.Retur|ns the a|
|00000700| 72 63 20 74 61 6e 67 65 | 6e 74 20 6f 66 20 4e 55 |rc tange|nt of NU|
|00000710| 4d 42 45 52 2e 20 56 65 | 63 74 6f 72 69 7a 65 64 |MBER. Ve|ctorized|
|00000720| 2e 0a 0a 5c 66 64 6f 63 | 69 74 65 6d 7b 28 63 65 |...\fdoc|item{(ce|
|00000730| 69 6c 69 6e 67 20 6e 75 | 6d 62 65 72 29 7d 0a 52 |iling nu|mber)}.R|
|00000740| 65 74 75 72 6e 73 20 74 | 68 65 20 73 6d 61 6c 6c |eturns t|he small|
|00000750| 65 73 74 20 69 6e 74 65 | 67 65 72 28 73 29 20 6e |est inte|ger(s) n|
|00000760| 6f 74 20 6c 65 73 73 20 | 74 68 61 6e 20 6f 72 20 |ot less |than or |
|00000770| 4e 55 4d 42 45 52 2e 20 | 56 65 63 74 6f 72 69 7a |NUMBER. |Vectoriz|
|00000780| 65 64 2e 0a 0a 5c 66 64 | 6f 63 69 74 65 6d 7b 28 |ed...\fd|ocitem{(|
|00000790| 63 6f 6d 70 6c 65 78 20 | 72 65 61 6c 70 61 72 74 |complex |realpart|
|000007a0| 20 5c 26 6f 70 74 69 6f | 6e 61 6c 20 28 69 6d 61 | \&optio|nal (ima|
|000007b0| 67 70 61 72 74 20 30 29 | 29 7d 0a 52 65 74 75 72 |gpart 0)|)}.Retur|
|000007c0| 6e 73 20 61 20 63 6f 6d | 70 6c 65 78 20 6e 75 6d |ns a com|plex num|
|000007d0| 62 65 72 20 77 69 74 68 | 20 74 68 65 20 67 69 76 |ber with| the giv|
|000007e0| 65 6e 20 72 65 61 6c 20 | 61 6e 64 20 69 6d 61 67 |en real |and imag|
|000007f0| 69 6e 61 72 79 20 70 61 | 72 74 73 2e 0a 0a 5c 66 |inary pa|rts...\f|
|00000800| 64 6f 63 69 74 65 6d 7b | 28 63 6f 6e 6a 75 67 61 |docitem{|(conjuga|
|00000810| 74 65 20 6e 75 6d 62 65 | 72 29 7d 0a 52 65 74 75 |te numbe|r)}.Retu|
|00000820| 72 6e 73 20 74 68 65 20 | 63 6f 6d 70 6c 65 78 20 |rns the |complex |
|00000830| 63 6f 6e 6a 75 67 61 74 | 65 20 6f 66 20 4e 55 4d |conjugat|e of NUM|
|00000840| 42 45 52 2e 0a 0a 5c 66 | 64 6f 63 69 74 65 6d 7b |BER...\f|docitem{|
|00000850| 28 63 6f 73 20 72 61 64 | 69 61 6e 73 29 7d 0a 52 |(cos rad|ians)}.R|
|00000860| 65 74 75 72 6e 73 20 74 | 68 65 20 63 6f 73 69 6e |eturns t|he cosin|
|00000870| 65 20 6f 66 20 52 41 44 | 49 41 4e 53 2e 20 56 65 |e of RAD|IANS. Ve|
|00000880| 63 74 6f 72 69 7a 65 64 | 2e 0a 0a 5c 66 64 6f 63 |ctorized|...\fdoc|
|00000890| 69 74 65 6d 7b 28 65 78 | 70 20 78 29 7d 0a 43 61 |item{(ex|p x)}.Ca|
|000008a0| 6c 63 75 6c 61 74 65 73 | 20 65 20 72 61 69 73 65 |lculates| e raise|
|000008b0| 64 20 74 6f 20 74 68 65 | 20 70 6f 77 65 72 20 78 |d to the| power x|
|000008c0| 2c 20 77 68 65 72 65 20 | 65 20 69 73 20 74 68 65 |, where |e is the|
|000008d0| 20 62 61 73 65 20 6f 66 | 20 6e 61 74 75 72 61 6c | base of| natural|
|000008e0| 0a 6c 6f 67 61 72 69 74 | 68 6d 73 2e 20 56 65 63 |.logarit|hms. Vec|
|000008f0| 74 6f 72 69 7a 65 64 2e | 0a 0a 5c 66 64 6f 63 69 |torized.|..\fdoci|
|00000900| 74 65 6d 7b 28 65 78 70 | 74 20 62 61 73 65 2d 6e |tem{(exp|t base-n|
|00000910| 75 6d 62 65 72 20 70 6f | 77 65 72 2d 6e 75 6d 62 |umber po|wer-numb|
|00000920| 65 72 29 7d 0a 52 65 74 | 75 72 6e 73 20 42 41 53 |er)}.Ret|urns BAS|
|00000930| 45 2d 4e 55 4d 42 45 52 | 20 72 61 69 73 65 64 20 |E-NUMBER| raised |
|00000940| 74 6f 20 74 68 65 20 70 | 6f 77 65 72 20 50 4f 57 |to the p|ower POW|
|00000950| 45 52 2d 4e 55 4d 42 45 | 52 2e 20 56 65 63 74 6f |ER-NUMBE|R. Vecto|
|00000960| 72 69 7a 65 64 2e 0a 0a | 5c 66 64 6f 63 69 74 65 |rized...|\fdocite|
|00000970| 6d 7b 28 66 6c 6f 61 74 | 20 6e 75 6d 62 65 72 29 |m{(float| number)|
|00000980| 7d 0a 43 6f 6e 76 65 72 | 74 73 20 72 65 61 6c 20 |}.Conver|ts real |
|00000990| 6e 75 6d 62 65 72 20 74 | 6f 20 61 20 66 6c 6f 61 |number t|o a floa|
|000009a0| 74 69 6e 67 2d 70 6f 69 | 6e 74 20 6e 75 6d 62 65 |ting-poi|nt numbe|
|000009b0| 72 2e 20 20 49 66 20 4e | 55 4d 42 45 52 20 69 73 |r. If N|UMBER is|
|000009c0| 0a 61 6c 72 65 61 64 79 | 20 61 20 66 6c 6f 61 74 |.already| a float|
|000009d0| 2c 20 46 4c 4f 41 54 20 | 73 69 6d 70 6c 79 20 72 |, FLOAT |simply r|
|000009e0| 65 74 75 72 6e 73 20 4e | 55 4d 42 45 52 2e 20 56 |eturns N|UMBER. V|
|000009f0| 65 63 74 6f 72 69 7a 65 | 64 2e 0a 0a 5c 66 64 6f |ectorize|d...\fdo|
|00000a00| 63 69 74 65 6d 7b 28 66 | 6c 6f 6f 72 20 6e 75 6d |citem{(f|loor num|
|00000a10| 62 65 72 29 7d 0a 52 65 | 74 75 72 6e 73 20 74 68 |ber)}.Re|turns th|
|00000a20| 65 20 6c 61 72 67 65 73 | 74 20 69 6e 74 65 67 65 |e larges|t intege|
|00000a30| 72 28 20 6e 6f 74 20 6c | 61 72 67 65 72 20 74 68 |r( not l|arger th|
|00000a40| 61 6e 20 74 68 65 20 4e | 55 4d 42 45 52 2e 20 56 |an the N|UMBER. V|
|00000a50| 65 63 74 6f 72 69 7a 65 | 64 2e 0a 0a 5c 66 64 6f |ectorize|d...\fdo|
|00000a60| 63 69 74 65 6d 7b 28 69 | 6d 61 67 70 61 72 74 20 |citem{(i|magpart |
|00000a70| 6e 75 6d 62 65 72 29 7d | 0a 45 78 74 72 61 63 74 |number)}|.Extract|
|00000a80| 73 20 74 68 65 20 69 6d | 61 67 69 6e 61 72 79 20 |s the im|aginary |
|00000a90| 70 61 72 74 20 6f 66 20 | 4e 55 4d 42 45 52 2e 0a |part of |NUMBER..|
|00000aa0| 0a 5c 66 64 6f 63 69 74 | 65 6d 7b 28 6c 6f 67 20 |.\fdocit|em{(log |
|00000ab0| 6e 75 6d 62 65 72 29 7d | 0a 52 65 74 75 72 6e 73 |number)}|.Returns|
|00000ac0| 20 74 68 65 20 6e 61 74 | 75 72 61 6c 20 6c 6f 67 | the nat|ural log|
|00000ad0| 61 72 69 74 68 6d 28 73 | 29 20 6f 66 20 4e 55 4d |arithm(s|) of NUM|
|00000ae0| 42 45 52 2e 20 56 65 63 | 74 6f 72 69 7a 65 64 2e |BER. Vec|torized.|
|00000af0| 0a 0a 5c 66 64 6f 63 69 | 74 65 6d 7b 28 6c 6f 67 |..\fdoci|tem{(log|
|00000b00| 2d 67 61 6d 6d 61 20 78 | 29 7d 0a 52 65 74 75 72 |-gamma x|)}.Retur|
|00000b10| 6e 73 20 74 68 65 20 6c | 6f 67 20 67 61 6d 6d 61 |ns the l|og gamma|
|00000b20| 20 66 75 6e 63 74 69 6f | 6e 20 6f 66 20 58 2e 20 | functio|n of X. |
|00000b30| 56 65 63 74 6f 72 69 7a | 65 64 2e 0a 0a 5c 66 64 |Vectoriz|ed...\fd|
|00000b40| 6f 63 69 74 65 6d 7b 28 | 6d 61 78 20 6e 75 6d 62 |ocitem{(|max numb|
|00000b50| 65 72 20 5c 26 72 65 73 | 74 20 6d 6f 72 65 2d 6e |er \&res|t more-n|
|00000b60| 75 6d 62 65 72 73 29 7d | 0a 52 65 74 75 72 6e 73 |umbers)}|.Returns|
|00000b70| 20 74 68 65 20 67 72 65 | 61 74 65 73 74 20 6f 66 | the gre|atest of|
|00000b80| 20 69 74 73 20 61 72 67 | 75 6d 65 6e 74 73 2e 20 | its arg|uments. |
|00000b90| 56 65 63 74 6f 72 20 72 | 65 64 75 63 69 6e 67 0a |Vector r|educing.|
|00000ba0| 0a 5c 66 64 6f 63 69 74 | 65 6d 7b 28 6d 69 6e 20 |.\fdocit|em{(min |
|00000bb0| 6e 75 6d 62 65 72 20 5c | 26 72 65 73 74 20 6d 6f |number \|&rest mo|
|00000bc0| 72 65 2d 6e 75 6d 62 65 | 72 73 29 7d 0a 52 65 74 |re-numbe|rs)}.Ret|
|00000bd0| 75 72 6e 73 20 74 68 65 | 20 6c 65 61 73 74 20 6f |urns the| least o|
|00000be0| 66 20 69 74 73 20 61 72 | 67 75 6d 65 6e 74 73 2e |f its ar|guments.|
|00000bf0| 20 56 65 63 74 6f 72 20 | 72 65 64 75 63 69 6e 67 | Vector |reducing|
|00000c00| 0a 0a 5c 66 64 6f 63 69 | 74 65 6d 7b 28 70 68 61 |..\fdoci|tem{(pha|
|00000c10| 73 65 20 6e 75 6d 62 65 | 72 29 7d 0a 52 65 74 75 |se numbe|r)}.Retu|
|00000c20| 72 6e 73 20 74 68 65 20 | 61 6e 67 6c 65 20 70 61 |rns the |angle pa|
|00000c30| 72 74 20 6f 66 20 74 68 | 65 20 70 6f 6c 61 72 20 |rt of th|e polar |
|00000c40| 72 65 70 72 65 73 65 6e | 74 61 74 69 6f 6e 20 6f |represen|tation o|
|00000c50| 66 20 61 20 63 6f 6d 70 | 6c 65 78 20 6e 75 6d 62 |f a comp|lex numb|
|00000c60| 65 72 2e 0a 46 6f 72 20 | 6e 6f 6e 2d 63 6f 6d 70 |er..For |non-comp|
|00000c70| 6c 65 78 20 6e 75 6d 62 | 65 72 73 2c 20 74 68 69 |lex numb|ers, thi|
|00000c80| 73 20 69 73 20 30 2e 0a | 0a 5c 66 64 6f 63 69 74 |s is 0..|.\fdocit|
|00000c90| 65 6d 7b 28 70 6d 61 78 | 20 5c 26 72 65 73 74 20 |em{(pmax| \&rest |
|00000ca0| 69 74 65 6d 73 29 7d 0a | 50 61 72 61 6c 6c 65 6c |items)}.|Parallel|
|00000cb0| 20 6d 61 78 69 6d 75 6d | 20 6f 66 20 49 54 45 4d | maximum| of ITEM|
|00000cc0| 53 2e 20 56 65 63 74 6f | 72 69 7a 65 64 2e 0a 0a |S. Vecto|rized...|
|00000cd0| 5c 66 64 6f 63 69 74 65 | 6d 7b 28 70 6d 69 6e 20 |\fdocite|m{(pmin |
|00000ce0| 5c 26 72 65 73 74 20 69 | 74 65 6d 73 29 7d 0a 50 |\&rest i|tems)}.P|
|00000cf0| 61 72 61 6c 6c 65 6c 20 | 6d 69 6e 69 6d 75 6d 20 |arallel |minimum |
|00000d00| 6f 66 20 49 54 45 4d 53 | 2e 20 56 65 63 74 6f 72 |of ITEMS|. Vector|
|00000d10| 69 7a 65 64 2e 0a 0a 5c | 66 64 6f 63 69 74 65 6d |ized...\|fdocitem|
|00000d20| 7b 28 70 72 6f 64 20 5c | 26 72 65 73 74 20 6e 75 |{(prod \|&rest nu|
|00000d30| 6d 62 65 72 2d 64 61 74 | 61 29 7d 0a 52 65 74 75 |mber-dat|a)}.Retu|
|00000d40| 72 6e 73 20 74 68 65 20 | 70 72 6f 64 75 63 74 20 |rns the |product |
|00000d50| 6f 66 20 61 6c 6c 20 74 | 68 65 20 65 6c 65 6d 65 |of all t|he eleme|
|00000d60| 6e 74 73 20 6f 66 20 69 | 74 73 20 61 72 67 75 6d |nts of i|ts argum|
|00000d70| 65 6e 74 73 2e 20 52 65 | 74 75 72 6e 73 20 31 20 |ents. Re|turns 1 |
|00000d80| 69 66 20 74 68 65 72 65 | 0a 61 72 65 20 6e 6f 20 |if there|.are no |
|00000d90| 61 72 67 75 6d 65 6e 74 | 73 2e 20 56 65 63 74 6f |argument|s. Vecto|
|00000da0| 72 20 72 65 64 75 63 69 | 6e 67 2e 0a 0a 5c 66 64 |r reduci|ng...\fd|
|00000db0| 6f 63 69 74 65 6d 7b 28 | 72 61 6e 64 6f 6d 20 6e |ocitem{(|random n|
|00000dc0| 75 6d 62 65 72 29 7d 0a | 47 65 6e 65 72 61 74 65 |umber)}.|Generate|
|00000dd0| 73 20 61 20 75 6e 69 66 | 6f 72 6d 6c 79 20 64 69 |s a unif|ormly di|
|00000de0| 73 74 72 69 62 75 74 65 | 64 20 70 73 65 75 64 6f |stribute|d pseudo|
|00000df0| 2d 72 61 6e 64 6f 6d 20 | 6e 75 6d 62 65 72 20 62 |-random |number b|
|00000e00| 65 74 77 65 65 6e 20 7a | 65 72 6f 20 28 69 6e 63 |etween z|ero (inc|
|00000e10| 6c 75 73 69 76 65 29 0a | 61 6e 64 20 4e 55 4d 42 |lusive).|and NUMB|
|00000e20| 45 52 20 28 65 78 63 6c | 75 73 69 76 65 29 2e 20 |ER (excl|usive). |
|00000e30| 56 65 63 74 6f 72 69 7a | 65 64 2e 0a 0a 5c 66 64 |Vectoriz|ed...\fd|
|00000e40| 6f 63 69 74 65 6d 7b 28 | 72 65 61 6c 70 61 72 74 |ocitem{(|realpart|
|00000e50| 20 6e 75 6d 62 65 72 29 | 7d 0a 45 78 74 72 61 63 | number)|}.Extrac|
|00000e60| 74 73 20 74 68 65 20 72 | 65 61 6c 20 70 61 72 74 |ts the r|eal part|
|00000e70| 20 6f 66 20 4e 55 4d 42 | 45 52 2e 0a 0a 5c 66 64 | of NUMB|ER...\fd|
|00000e80| 6f 63 69 74 65 6d 7b 28 | 72 65 6d 20 78 20 79 29 |ocitem{(|rem x y)|
|00000e90| 7d 0a 52 65 74 75 72 6e | 73 20 74 68 65 20 72 65 |}.Return|s the re|
|00000ea0| 6d 61 69 6e 64 65 72 20 | 6f 66 20 64 69 76 69 64 |mainder |of divid|
|00000eb0| 69 6e 67 20 78 20 62 79 | 20 79 2e 20 56 65 63 74 |ing x by| y. Vect|
|00000ec0| 6f 72 69 7a 65 64 2e 0a | 0a 5c 66 64 6f 63 69 74 |orized..|.\fdocit|
|00000ed0| 65 6d 7b 28 72 6f 75 6e | 64 20 6e 75 6d 62 65 72 |em{(roun|d number|
|00000ee0| 29 7d 0a 52 6f 75 6e 64 | 73 20 4e 55 4d 42 45 52 |)}.Round|s NUMBER|
|00000ef0| 20 74 6f 20 6e 65 61 72 | 65 73 74 20 69 6e 74 65 | to near|est inte|
|00000f00| 67 65 72 2e 20 56 65 63 | 74 6f 72 69 7a 65 64 2e |ger. Vec|torized.|
|00000f10| 0a 0a 5c 66 64 6f 63 69 | 74 65 6d 7b 28 73 69 6e |..\fdoci|tem{(sin|
|00000f20| 20 72 61 64 69 61 6e 73 | 29 7d 0a 52 65 74 75 72 | radians|)}.Retur|
|00000f30| 6e 73 20 74 68 65 20 73 | 69 6e 65 20 6f 66 20 52 |ns the s|ine of R|
|00000f40| 41 44 49 41 4e 53 2e 20 | 56 65 63 74 6f 72 69 7a |ADIANS. |Vectoriz|
|00000f50| 65 64 2e 0a 0a 5c 66 64 | 6f 63 69 74 65 6d 7b 28 |ed...\fd|ocitem{(|
|00000f60| 73 71 72 74 20 6e 75 6d | 62 65 72 29 7d 0a 52 65 |sqrt num|ber)}.Re|
|00000f70| 74 75 72 6e 73 20 74 68 | 65 20 73 71 75 61 72 65 |turns th|e square|
|00000f80| 20 72 6f 6f 74 20 6f 66 | 20 4e 55 4d 42 45 52 2e | root of| NUMBER.|
|00000f90| 20 56 65 63 74 6f 72 69 | 7a 65 64 2e 0a 0a 5c 66 | Vectori|zed...\f|
|00000fa0| 64 6f 63 69 74 65 6d 7b | 28 73 75 6d 20 5c 26 72 |docitem{|(sum \&r|
|00000fb0| 65 73 74 20 6e 75 6d 62 | 65 72 2d 64 61 74 61 29 |est numb|er-data)|
|00000fc0| 7d 0a 52 65 74 75 72 6e | 73 20 74 68 65 20 73 75 |}.Return|s the su|
|00000fd0| 6d 20 6f 66 20 61 6c 6c | 20 74 68 65 20 65 6c 65 |m of all| the ele|
|00000fe0| 6d 65 6e 74 73 20 6f 66 | 20 69 74 73 20 61 72 67 |ments of| its arg|
|00000ff0| 75 6d 65 6e 74 73 2e 20 | 52 65 74 75 72 6e 73 20 |uments. |Returns |
|00001000| 30 20 69 66 20 74 68 65 | 72 65 0a 61 72 65 20 6e |0 if the|re.are n|
|00001010| 6f 20 61 72 67 75 6d 65 | 6e 74 73 2e 20 56 65 63 |o argume|nts. Vec|
|00001020| 74 6f 72 20 72 65 64 75 | 63 69 6e 67 2e 0a 0a 5c |tor redu|cing...\|
|00001030| 66 64 6f 63 69 74 65 6d | 7b 28 74 61 6e 20 72 61 |fdocitem|{(tan ra|
|00001040| 64 69 61 6e 73 29 7d 0a | 52 65 74 75 72 6e 73 20 |dians)}.|Returns |
|00001050| 74 68 65 20 74 61 6e 67 | 65 6e 74 20 6f 66 20 52 |the tang|ent of R|
|00001060| 41 44 49 41 4e 53 2e 20 | 56 65 63 74 6f 72 69 7a |ADIANS. |Vectoriz|
|00001070| 65 64 2e 0a 0a 5c 66 64 | 6f 63 69 74 65 6d 7b 28 |ed...\fd|ocitem{(|
|00001080| 74 72 75 6e 63 61 74 65 | 20 6e 75 6d 62 65 72 29 |truncate| number)|
|00001090| 7d 0a 52 65 74 75 72 6e | 73 20 72 65 61 6c 20 4e |}.Return|s real N|
|000010a0| 55 4d 42 45 52 20 61 73 | 20 61 6e 20 69 6e 74 65 |UMBER as| an inte|
|000010b0| 67 65 72 2c 20 72 6f 75 | 6e 64 65 64 20 74 6f 77 |ger, rou|nded tow|
|000010c0| 61 72 64 20 30 2e 20 56 | 65 63 74 6f 72 69 7a 65 |ard 0. V|ectorize|
|000010d0| 64 2e 0a 0a 0a 5c 65 6e | 64 7b 6c 69 73 70 64 6f |d....\en|d{lispdo|
|000010e0| 63 7d 0a 0a 5c 73 75 62 | 73 65 63 74 69 6f 6e 7b |c}..\sub|section{|
|000010f0| 43 6f 6e 73 74 72 75 63 | 74 69 6e 67 20 61 6e 64 |Construc|ting and|
|00001100| 20 4d 6f 64 69 66 79 69 | 6e 67 20 43 6f 6d 70 6f | Modifyi|ng Compo|
|00001110| 75 6e 64 20 44 61 74 61 | 20 61 6e 64 20 56 61 72 |und Data| and Var|
|00001120| 69 61 62 6c 65 73 7d 0a | 0a 5c 62 65 67 69 6e 7b |iables}.|.\begin{|
|00001130| 6c 69 73 70 64 6f 63 7d | 0a 5c 6d 64 6f 63 69 74 |lispdoc}|.\mdocit|
|00001140| 65 6d 7b 28 64 65 66 20 | 76 61 72 20 66 6f 72 6d |em{(def |var form|
|00001150| 29 7d 0a 56 41 52 20 69 | 73 20 6e 6f 74 20 65 76 |)}.VAR i|s not ev|
|00001160| 61 6c 75 61 74 65 64 20 | 61 6e 64 20 6d 75 73 74 |aluated |and must|
|00001170| 20 62 65 20 61 20 73 79 | 6d 62 6f 6c 2e 20 20 41 | be a sy|mbol. A|
|00001180| 73 73 69 67 6e 73 20 74 | 68 65 20 76 61 6c 75 65 |ssigns t|he value|
|00001190| 20 6f 66 20 46 4f 52 4d | 20 74 6f 0a 56 41 52 20 | of FORM| to.VAR |
|000011a0| 61 6e 64 20 61 64 64 73 | 20 56 41 52 20 74 6f 20 |and adds| VAR to |
|000011b0| 74 68 65 20 6c 69 73 74 | 20 2a 56 41 52 49 41 42 |the list| *VARIAB|
|000011c0| 4c 45 53 2a 20 6f 66 20 | 64 65 66 27 65 64 20 76 |LES* of |def'ed v|
|000011d0| 61 72 69 61 62 6c 65 73 | 2e 20 52 65 74 75 72 6e |ariables|. Return|
|000011e0| 73 20 56 41 52 2e 0a 49 | 66 20 56 41 52 20 69 73 |s VAR..I|f VAR is|
|000011f0| 20 61 6c 72 65 61 64 79 | 20 62 6f 75 6e 64 20 61 | already| bound a|
|00001200| 6e 64 20 74 68 65 20 67 | 6c 6f 62 61 6c 20 76 61 |nd the g|lobal va|
|00001210| 72 69 61 62 6c 65 20 2a | 41 53 4b 2d 4f 4e 2d 52 |riable *|ASK-ON-R|
|00001220| 45 44 45 46 49 4e 45 2a | 0a 69 73 20 6e 6f 74 20 |EDEFINE*|.is not |
|00001230| 6e 69 6c 20 74 68 65 6e | 20 79 6f 75 20 61 72 65 |nil then| you are|
|00001240| 20 61 73 6b 65 64 20 69 | 66 20 79 6f 75 20 77 61 | asked i|f you wa|
|00001250| 6e 74 20 74 6f 20 72 65 | 64 65 66 69 6e 65 20 74 |nt to re|define t|
|00001260| 68 65 20 76 61 72 69 61 | 62 6c 65 2e 0a 0a 5c 66 |he varia|ble...\f|
|00001270| 64 6f 63 69 74 65 6d 7b | 28 69 73 65 71 20 6e 20 |docitem{|(iseq n |
|00001280| 6d 29 7d 0a 52 65 74 75 | 72 6e 73 20 61 20 6c 69 |m)}.Retu|rns a li|
|00001290| 73 74 20 6f 66 20 63 6f | 6e 73 65 63 75 74 69 76 |st of co|nsecutiv|
|000012a0| 65 20 69 6e 74 65 67 65 | 72 73 20 66 72 6f 6d 20 |e intege|rs from |
|000012b0| 6e 20 74 6f 20 6d 2e 0a | 0a 5c 66 64 6f 63 69 74 |n to m..|.\fdocit|
|000012c0| 65 6d 7b 28 6c 69 73 74 | 20 5c 26 72 65 73 74 20 |em{(list| \&rest |
|000012d0| 61 72 67 73 29 7d 0a 52 | 65 74 75 72 6e 73 20 61 |args)}.R|eturns a|
|000012e0| 20 6c 69 73 74 20 6f 66 | 20 69 74 73 20 61 72 67 | list of| its arg|
|000012f0| 75 6d 65 6e 74 73 0a 0a | 5c 66 64 6f 63 69 74 65 |uments..|\fdocite|
|00001300| 6d 7b 28 72 65 70 65 61 | 74 20 76 61 6c 73 20 74 |m{(repea|t vals t|
|00001310| 69 6d 65 73 29 7d 0a 52 | 65 70 65 61 74 73 20 56 |imes)}.R|epeats V|
|00001320| 41 4c 53 2e 20 49 66 20 | 54 49 4d 45 53 20 69 73 |ALS. If |TIMES is|
|00001330| 20 61 20 6e 75 6d 62 65 | 72 20 61 6e 64 20 56 41 | a numbe|r and VA|
|00001340| 4c 53 20 69 73 20 61 20 | 6e 6f 6e 2d 6e 75 6c 6c |LS is a |non-null|
|00001350| 2c 20 6e 6f 6e 2d 61 72 | 72 61 79 20 61 74 6f 6d |, non-ar|ray atom|
|00001360| 2c 20 61 20 6c 69 73 74 | 0a 6f 66 20 6c 65 6e 67 |, a list|.of leng|
|00001370| 74 68 20 54 49 4d 45 53 | 20 77 69 74 68 20 61 6c |th TIMES| with al|
|00001380| 6c 20 65 6c 65 6d 65 6e | 74 73 20 65 71 20 74 6f |l elemen|ts eq to|
|00001390| 20 56 41 4c 53 20 69 73 | 20 72 65 74 75 72 6e 65 | VALS is| returne|
|000013a0| 64 2e 20 49 66 20 56 41 | 4c 53 20 69 73 20 61 20 |d. If VA|LS is a |
|000013b0| 6c 69 73 74 20 61 6e 64 | 0a 54 49 4d 45 53 20 69 |list and|.TIMES i|
|000013c0| 73 20 61 20 6e 75 6d 62 | 65 72 20 74 68 65 6e 20 |s a numb|er then |
|000013d0| 56 41 4c 53 20 69 73 20 | 61 70 70 65 6e 64 65 64 |VALS is |appended|
|000013e0| 20 54 49 4d 45 53 20 74 | 69 6d 65 73 2e 20 49 66 | TIMES t|imes. If|
|000013f0| 20 54 49 4d 45 53 20 69 | 73 20 61 20 6c 69 73 74 | TIMES i|s a list|
|00001400| 20 6f 66 20 6e 75 6d 62 | 65 72 73 0a 74 68 65 6e | of numb|ers.then|
|00001410| 20 56 41 4c 53 20 6d 75 | 73 74 20 62 65 20 61 20 | VALS mu|st be a |
|00001420| 6c 69 73 74 20 6f 66 20 | 65 71 75 61 6c 20 6c 65 |list of |equal le|
|00001430| 6e 67 74 68 20 61 6e 64 | 20 74 68 65 20 73 69 6d |ngth and| the sim|
|00001440| 70 6c 65 72 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |pler ver|sion of |
|00001450| 72 65 70 65 61 74 20 69 | 73 0a 6d 61 70 70 65 64 |repeat i|s.mapped|
|00001460| 20 64 6f 77 6e 20 74 68 | 65 20 74 77 6f 20 6c 69 | down th|e two li|
|00001470| 73 74 73 2e 0a 0a 5c 66 | 64 6f 63 69 74 65 6d 7b |sts...\f|docitem{|
|00001480| 28 72 73 65 71 20 61 20 | 62 20 6e 75 6d 29 7d 0a |(rseq a |b num)}.|
|00001490| 52 65 74 75 72 6e 73 20 | 61 20 6c 69 73 74 20 6f |Returns |a list o|
|000014a0| 66 20 4e 55 4d 20 65 71 | 75 61 6c 6c 79 20 73 70 |f NUM eq|ually sp|
|000014b0| 61 63 65 64 20 70 6f 69 | 6e 74 73 20 73 74 61 72 |aced poi|nts star|
|000014c0| 74 69 6e 67 20 61 74 20 | 41 20 61 6e 64 20 65 6e |ting at |A and en|
|000014d0| 64 69 6e 67 20 61 74 20 | 42 2e 0a 0a 5c 66 64 6f |ding at |B...\fdo|
|000014e0| 63 69 74 65 6d 7b 28 73 | 65 6c 65 63 74 20 61 20 |citem{(s|elect a |
|000014f0| 5c 26 72 65 73 74 20 69 | 6e 64 69 63 65 73 29 7d |\&rest i|ndices)}|
|00001500| 0a 41 20 63 61 6e 20 62 | 65 20 61 20 6c 69 73 74 |.A can b|e a list|
|00001510| 20 6f 72 20 61 6e 20 61 | 72 72 61 79 2e 20 49 66 | or an a|rray. If|
|00001520| 20 41 20 69 73 20 61 20 | 6c 69 73 74 20 61 6e 64 | A is a |list and|
|00001530| 20 49 4e 44 49 43 45 53 | 20 69 73 20 61 20 73 69 | INDICES| is a si|
|00001540| 6e 67 6c 65 20 6e 75 6d | 62 65 72 0a 74 68 65 6e |ngle num|ber.then|
|00001550| 20 74 68 65 20 61 70 70 | 72 6f 70 72 69 61 74 65 | the app|ropriate|
|00001560| 20 65 6c 65 6d 65 6e 74 | 20 6f 66 20 41 20 69 73 | element| of A is|
|00001570| 20 72 65 74 75 72 6e 65 | 64 2e 20 49 66 20 20 69 | returne|d. If i|
|00001580| 73 20 61 20 6c 69 73 74 | 20 61 6e 64 20 49 4e 44 |s a list| and IND|
|00001590| 49 43 45 53 20 69 73 0a | 61 20 6c 69 73 74 20 6f |ICES is.|a list o|
|000015a0| 66 20 6e 75 6d 62 65 72 | 73 20 74 68 65 6e 20 74 |f number|s then t|
|000015b0| 68 65 20 73 75 62 6c 69 | 73 74 20 6f 66 20 74 68 |he subli|st of th|
|000015c0| 65 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |e corres|ponding |
|000015d0| 65 6c 65 6d 65 6e 74 73 | 20 69 73 20 72 65 74 75 |elements| is retu|
|000015e0| 72 6e 65 64 2e 0a 49 66 | 20 41 20 69 6e 20 61 6e |rned..If| A in an|
|000015f0| 20 61 72 72 61 79 20 74 | 68 65 6e 20 74 68 65 20 | array t|hen the |
|00001600| 6e 75 6d 62 65 72 20 6f | 66 20 49 4e 44 49 43 45 |number o|f INDICE|
|00001610| 53 20 6d 75 73 74 20 6d | 61 74 63 68 20 74 68 65 |S must m|atch the|
|00001620| 20 41 52 52 41 59 2d 52 | 41 4e 4b 20 6f 66 20 41 | ARRAY-R|ANK of A|
|00001630| 2e 0a 49 66 20 65 61 63 | 68 20 69 6e 64 65 78 20 |..If eac|h index |
|00001640| 69 73 20 61 20 6e 75 6d | 62 65 72 20 74 68 65 6e |is a num|ber then|
|00001650| 20 74 68 65 20 61 70 70 | 72 6f 70 72 69 61 74 65 | the app|ropriate|
|00001660| 20 61 72 72 61 79 20 65 | 6c 65 6d 65 6e 74 20 69 | array e|lement i|
|00001670| 73 20 72 65 74 75 72 6e | 65 64 2e 0a 4f 74 68 65 |s return|ed..Othe|
|00001680| 72 77 69 73 65 20 74 68 | 65 20 49 4e 44 49 43 45 |rwise th|e INDICE|
|00001690| 53 20 6d 75 73 74 20 61 | 6c 6c 20 62 65 20 6c 69 |S must a|ll be li|
|000016a0| 73 74 73 20 6f 66 20 6e | 75 6d 62 65 72 73 20 61 |sts of n|umbers a|
|000016b0| 6e 64 20 74 68 65 20 63 | 6f 72 72 65 73 70 6f 6e |nd the c|orrespon|
|000016c0| 64 69 6e 67 0a 73 75 62 | 6d 61 74 72 69 78 20 6f |ding.sub|matrix o|
|000016d0| 66 20 41 20 69 73 20 72 | 65 74 75 72 6e 65 64 2e |f A is r|eturned.|
|000016e0| 20 53 45 4c 45 43 54 20 | 63 61 6e 20 62 65 20 75 | SELECT |can be u|
|000016f0| 73 65 64 20 69 6e 20 73 | 65 74 66 2e 0a 0a 5c 66 |sed in s|etf...\f|
|00001700| 64 6f 63 69 74 65 6d 7b | 28 75 6e 64 65 66 20 73 |docitem{|(undef s|
|00001710| 79 6d 62 6f 6c 29 7d 0a | 49 66 20 53 59 4d 42 4f |ymbol)}.|If SYMBO|
|00001720| 4c 20 69 73 20 61 20 64 | 65 66 69 6e 65 64 20 76 |L is a d|efined v|
|00001730| 61 72 69 61 62 6c 65 20 | 69 74 20 69 73 20 75 6e |ariable |it is un|
|00001740| 62 6f 75 6e 64 20 61 6e | 64 20 72 65 6d 6f 76 65 |bound an|d remove|
|00001750| 64 20 66 72 6f 6d 20 74 | 68 65 20 6c 69 73 74 20 |d from t|he list |
|00001760| 6f 66 0a 64 65 66 69 6e | 65 64 20 76 61 72 69 61 |of.defin|ed varia|
|00001770| 62 6c 65 73 20 61 6e 64 | 20 72 65 74 75 72 6e 73 |bles and| returns|
|00001780| 20 53 59 4d 42 4f 4c 2e | 0a 0a 5c 66 64 6f 63 69 | SYMBOL.|..\fdoci|
|00001790| 74 65 6d 7b 28 76 65 63 | 74 6f 72 20 5c 26 72 65 |tem{(vec|tor \&re|
|000017a0| 73 74 20 69 74 65 6d 73 | 29 7d 0a 52 65 74 75 72 |st items|)}.Retur|
|000017b0| 6e 73 20 61 20 76 65 63 | 74 6f 72 20 77 69 74 68 |ns a vec|tor with|
|000017c0| 20 49 54 45 4d 73 20 61 | 73 20 65 6c 65 6d 65 6e | ITEMs a|s elemen|
|000017d0| 74 73 2e 0a 0a 5c 66 64 | 6f 63 69 74 65 6d 7b 28 |ts...\fd|ocitem{(|
|000017e0| 77 68 69 63 68 20 78 29 | 7d 0a 58 20 69 73 20 61 |which x)|}.X is a|
|000017f0| 6e 20 61 72 72 61 79 20 | 6f 72 20 61 20 6c 69 73 |n array |or a lis|
|00001800| 74 2e 20 52 65 74 75 72 | 6e 73 20 61 20 6c 69 73 |t. Retur|ns a lis|
|00001810| 74 20 6f 66 20 74 68 65 | 20 69 6e 64 69 63 65 73 |t of the| indices|
|00001820| 20 77 68 65 72 65 20 58 | 20 69 73 20 6e 6f 74 20 | where X| is not |
|00001830| 4e 49 4c 2e 0a 0a 0a 5c | 65 6e 64 7b 6c 69 73 70 |NIL....\|end{lisp|
|00001840| 64 6f 63 7d 0a 0a 5c 73 | 75 62 73 65 63 74 69 6f |doc}..\s|ubsectio|
|00001850| 6e 7b 42 61 73 69 63 20 | 53 74 61 74 69 73 74 69 |n{Basic |Statisti|
|00001860| 63 61 6c 20 46 75 6e 63 | 74 69 6f 6e 73 7d 0a 0a |cal Func|tions}..|
|00001870| 5c 6c 61 62 65 6c 7b 41 | 70 70 65 6e 64 69 78 2e |\label{A|ppendix.|
|00001880| 53 74 61 74 69 73 74 69 | 63 61 6c 7d 0a 0a 5c 62 |Statisti|cal}..\b|
|00001890| 65 67 69 6e 7b 6c 69 73 | 70 64 6f 63 7d 0a 5c 66 |egin{lis|pdoc}.\f|
|000018a0| 64 6f 63 69 74 65 6d 7b | 28 62 65 74 61 2d 63 64 |docitem{|(beta-cd|
|000018b0| 66 20 78 20 61 6c 70 68 | 61 20 62 65 74 61 29 7d |f x alph|a beta)}|
|000018c0| 0a 52 65 74 75 72 6e 73 | 20 74 68 65 20 76 61 6c |.Returns| the val|
|000018d0| 75 65 20 6f 66 20 74 68 | 65 20 42 65 74 61 28 41 |ue of th|e Beta(A|
|000018e0| 4c 50 48 41 2c 20 42 45 | 54 41 29 20 64 69 73 74 |LPHA, BE|TA) dist|
|000018f0| 72 69 62 75 74 69 6f 6e | 20 66 75 6e 63 74 69 6f |ribution| functio|
|00001900| 6e 20 61 74 20 58 2e 0a | 56 65 63 74 6f 72 69 7a |n at X..|Vectoriz|
|00001910| 65 64 2e 0a 0a 5c 66 64 | 6f 63 69 74 65 6d 7b 28 |ed...\fd|ocitem{(|
|00001920| 62 65 74 61 2d 64 65 6e | 73 20 78 20 61 6c 70 68 |beta-den|s x alph|
|00001930| 61 20 62 65 74 61 29 7d | 0a 52 65 74 75 72 6e 73 |a beta)}|.Returns|
|00001940| 20 74 68 65 20 64 65 6e | 73 69 74 79 20 61 74 20 | the den|sity at |
|00001950| 58 20 6f 66 20 74 68 65 | 20 42 65 74 61 28 41 4c |X of the| Beta(AL|
|00001960| 50 48 41 2c 20 42 45 54 | 41 29 20 64 69 73 74 72 |PHA, BET|A) distr|
|00001970| 69 62 75 74 69 6f 6e 2e | 20 56 65 63 74 6f 72 69 |ibution.| Vectori|
|00001980| 7a 65 64 2e 0a 0a 5c 66 | 64 6f 63 69 74 65 6d 7b |zed...\f|docitem{|
|00001990| 28 62 65 74 61 2d 71 75 | 61 6e 74 20 70 20 61 6c |(beta-qu|ant p al|
|000019a0| 70 68 61 20 62 65 74 61 | 29 7d 0a 52 65 74 75 72 |pha beta|)}.Retur|
|000019b0| 6e 73 20 74 68 65 20 50 | 2d 74 68 20 71 75 61 6e |ns the P|-th quan|
|000019c0| 74 69 6c 65 20 6f 66 20 | 74 68 65 20 42 65 74 61 |tile of |the Beta|
|000019d0| 28 41 4c 50 48 41 2c 20 | 42 45 54 41 29 20 64 69 |(ALPHA, |BETA) di|
|000019e0| 73 74 72 69 62 75 74 69 | 6f 6e 2e 20 56 65 63 74 |stributi|on. Vect|
|000019f0| 6f 72 69 7a 65 64 2e 0a | 0a 5c 66 64 6f 63 69 74 |orized..|.\fdocit|
|00001a00| 65 6d 7b 28 62 65 74 61 | 2d 72 61 6e 64 20 6e 20 |em{(beta|-rand n |
|00001a10| 61 20 62 29 7d 0a 52 65 | 74 75 72 6e 73 20 61 20 |a b)}.Re|turns a |
|00001a20| 6c 69 73 74 20 6f 66 20 | 4e 20 62 65 74 61 28 41 |list of |N beta(A|
|00001a30| 2c 20 42 29 20 72 61 6e | 64 6f 6d 20 76 61 72 69 |, B) ran|dom vari|
|00001a40| 61 62 6c 65 73 2e 20 56 | 65 63 74 6f 72 69 7a 65 |ables. V|ectorize|
|00001a50| 64 2e 0a 0a 5c 66 64 6f | 63 69 74 65 6d 7b 28 62 |d...\fdo|citem{(b|
|00001a60| 69 6e 6f 6d 69 61 6c 2d | 63 64 66 20 78 20 6e 20 |inomial-|cdf x n |
|00001a70| 70 29 7d 0a 52 65 74 75 | 72 6e 73 20 76 61 6c 75 |p)}.Retu|rns valu|
|00001a80| 65 20 6f 66 20 74 68 65 | 20 42 69 6e 6f 6d 69 61 |e of the| Binomia|
|00001a90| 6c 28 4e 2c 20 50 29 20 | 64 69 73 74 72 69 62 75 |l(N, P) |distribu|
|00001aa0| 74 69 6f 6e 20 66 75 6e | 63 74 69 6f 6e 20 61 74 |tion fun|ction at|
|00001ab0| 20 58 2e 20 56 65 63 74 | 6f 72 69 7a 65 64 2e 0a | X. Vect|orized..|
|00001ac0| 0a 5c 66 64 6f 63 69 74 | 65 6d 7b 28 62 69 6e 6f |.\fdocit|em{(bino|
|00001ad0| 6d 69 61 6c 2d 70 6d 66 | 20 6b 20 6e 20 70 29 7d |mial-pmf| k n p)}|
|00001ae0| 0a 52 65 74 75 72 6e 73 | 20 76 61 6c 75 65 20 6f |.Returns| value o|
|00001af0| 66 20 74 68 65 20 42 69 | 6e 6f 6d 69 61 6c 28 4e |f the Bi|nomial(N|
|00001b00| 2c 20 50 29 20 70 6d 66 | 20 66 75 6e 63 74 69 6f |, P) pmf| functio|
|00001b10| 6e 20 61 74 20 69 6e 74 | 65 67 65 72 20 4b 2e 20 |n at int|eger K. |
|00001b20| 56 65 63 74 6f 72 69 7a | 65 64 2e 0a 0a 5c 66 64 |Vectoriz|ed...\fd|
|00001b30| 6f 63 69 74 65 6d 7b 28 | 62 69 6e 6f 6d 69 61 6c |ocitem{(|binomial|
|00001b40| 2d 71 75 61 6e 74 20 78 | 20 6e 20 70 29 7d 0a 52 |-quant x| n p)}.R|
|00001b50| 65 74 75 72 6e 73 20 78 | 2d 74 68 20 71 75 61 6e |eturns x|-th quan|
|00001b60| 74 69 6c 65 20 28 6c 65 | 66 74 20 63 6f 6e 74 69 |tile (le|ft conti|
|00001b70| 6e 75 6f 75 73 20 69 6e | 76 65 72 73 65 29 20 6f |nuous in|verse) o|
|00001b80| 66 20 42 69 6e 6f 6d 69 | 61 6c 28 4e 2c 20 50 29 |f Binomi|al(N, P)|
|00001b90| 20 63 64 66 2e 0a 56 65 | 63 74 6f 72 69 7a 65 64 | cdf..Ve|ctorized|
|00001ba0| 2e 0a 0a 5c 66 64 6f 63 | 69 74 65 6d 7b 28 62 69 |...\fdoc|item{(bi|
|00001bb0| 6e 6f 6d 69 61 6c 2d 72 | 61 6e 64 20 6b 20 6e 20 |nomial-r|and k n |
|00001bc0| 70 29 7d 0a 52 65 74 75 | 72 6e 73 20 6c 69 73 74 |p)}.Retu|rns list|
|00001bd0| 20 6f 66 20 4b 20 64 72 | 61 77 73 20 66 72 6f 6d | of K dr|aws from|
|00001be0| 20 74 68 65 20 42 69 6e | 6f 6d 69 61 6c 28 4e 2c | the Bin|omial(N,|
|00001bf0| 20 50 29 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e | P) dist|ribution|
|00001c00| 2e 20 56 65 63 74 6f 72 | 69 7a 65 64 2e 0a 0a 5c |. Vector|ized...\|
|00001c10| 66 64 6f 63 69 74 65 6d | 7b 28 63 61 75 63 68 79 |fdocitem|{(cauchy|
|00001c20| 2d 63 64 66 20 78 29 7d | 0a 52 65 74 75 72 6e 73 |-cdf x)}|.Returns|
|00001c30| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 74 68 | the val|ue of th|
|00001c40| 65 20 73 74 61 6e 64 61 | 72 64 20 43 61 75 63 68 |e standa|rd Cauch|
|00001c50| 79 20 64 69 73 74 72 69 | 62 75 74 69 6f 6e 20 66 |y distri|bution f|
|00001c60| 75 6e 63 74 69 6f 6e 20 | 61 74 20 58 2e 0a 56 65 |unction |at X..Ve|
|00001c70| 63 74 6f 72 69 7a 65 64 | 2e 0a 0a 5c 66 64 6f 63 |ctorized|...\fdoc|
|00001c80| 69 74 65 6d 7b 28 63 61 | 75 63 68 79 2d 64 65 6e |item{(ca|uchy-den|
|00001c90| 73 20 78 29 7d 0a 52 65 | 74 75 72 6e 73 20 74 68 |s x)}.Re|turns th|
|00001ca0| 65 20 64 65 6e 73 69 74 | 79 20 61 74 20 58 20 6f |e densit|y at X o|
|00001cb0| 66 20 74 68 65 20 73 74 | 61 6e 64 61 72 64 20 43 |f the st|andard C|
|00001cc0| 61 75 63 68 79 20 64 69 | 73 74 72 69 62 75 74 69 |auchy di|stributi|
|00001cd0| 6f 6e 2e 20 56 65 63 74 | 6f 72 69 7a 65 64 2e 0a |on. Vect|orized..|
|00001ce0| 0a 5c 66 64 6f 63 69 74 | 65 6d 7b 28 63 61 75 63 |.\fdocit|em{(cauc|
|00001cf0| 68 79 2d 71 75 61 6e 74 | 20 70 29 7d 0a 52 65 74 |hy-quant| p)}.Ret|
|00001d00| 75 72 6e 73 20 74 68 65 | 20 50 2d 74 68 20 71 75 |urns the| P-th qu|
|00001d10| 61 6e 74 69 6c 65 28 73 | 29 20 6f 66 20 74 68 65 |antile(s|) of the|
|00001d20| 20 73 74 61 6e 64 61 72 | 64 20 43 61 75 63 68 79 | standar|d Cauchy|
|00001d30| 20 64 69 73 74 72 69 62 | 75 74 69 6f 6e 2e 20 56 | distrib|ution. V|
|00001d40| 65 63 74 6f 72 69 7a 65 | 64 2e 0a 0a 5c 66 64 6f |ectorize|d...\fdo|
|00001d50| 63 69 74 65 6d 7b 28 63 | 61 75 63 68 79 2d 72 61 |citem{(c|auchy-ra|
|00001d60| 6e 64 20 6e 29 7d 0a 52 | 65 74 75 72 6e 73 20 61 |nd n)}.R|eturns a|
|00001d70| 20 6c 69 73 74 20 6f 66 | 20 4e 20 73 74 61 6e 64 | list of| N stand|
|00001d80| 61 72 64 20 43 61 75 63 | 68 79 20 72 61 6e 64 6f |ard Cauc|hy rando|
|00001d90| 6d 20 6e 75 6d 62 65 72 | 73 2e 20 56 65 63 74 6f |m number|s. Vecto|
|00001da0| 72 69 7a 65 64 2e 0a 0a | 5c 66 64 6f 63 69 74 65 |rized...|\fdocite|
|00001db0| 6d 7b 28 63 68 69 73 71 | 2d 63 64 66 20 78 20 64 |m{(chisq|-cdf x d|
|00001dc0| 66 29 7d 0a 52 65 74 75 | 72 6e 73 20 74 68 65 20 |f)}.Retu|rns the |
|00001dd0| 76 61 6c 75 65 20 6f 66 | 20 74 68 65 20 43 68 69 |value of| the Chi|
|00001de0| 2d 53 71 75 61 72 65 28 | 44 46 29 20 64 69 73 74 |-Square(|DF) dist|
|00001df0| 72 69 62 75 74 69 6f 6e | 20 66 75 6e 63 74 69 6f |ribution| functio|
|00001e00| 6e 20 61 74 20 58 2e 20 | 56 65 63 74 6f 72 69 7a |n at X. |Vectoriz|
|00001e10| 65 64 2e 0a 0a 5c 66 64 | 6f 63 69 74 65 6d 7b 28 |ed...\fd|ocitem{(|
|00001e20| 63 68 69 73 71 2d 64 65 | 6e 73 20 78 20 61 6c 70 |chisq-de|ns x alp|
|00001e30| 68 61 29 7d 0a 52 65 74 | 75 72 6e 73 20 74 68 65 |ha)}.Ret|urns the|
|00001e40| 20 64 65 6e 73 69 74 79 | 20 61 74 20 58 20 6f 66 | density| at X of|
|00001e50| 20 74 68 65 20 43 68 69 | 2d 53 71 75 61 72 65 28 | the Chi|-Square(|
|00001e60| 44 46 29 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |DF) dist|ribution|
|00001e70| 2e 20 56 65 63 74 6f 72 | 69 7a 65 64 2e 0a 0a 5c |. Vector|ized...\|
|00001e80| 66 64 6f 63 69 74 65 6d | 7b 28 63 68 69 73 71 2d |fdocitem|{(chisq-|
|00001e90| 71 75 61 6e 74 20 70 20 | 64 66 29 7d 0a 52 65 74 |quant p |df)}.Ret|
|00001ea0| 75 72 6e 73 20 74 68 65 | 20 50 2d 74 68 20 71 75 |urns the| P-th qu|
|00001eb0| 61 6e 74 69 6c 65 20 6f | 66 20 74 68 65 20 43 68 |antile o|f the Ch|
|00001ec0| 69 2d 53 71 75 61 72 65 | 28 44 46 29 20 64 69 73 |i-Square|(DF) dis|
|00001ed0| 74 72 69 62 75 74 69 6f | 6e 2e 20 56 65 63 74 6f |tributio|n. Vecto|
|00001ee0| 72 69 7a 65 64 2e 0a 0a | 5c 66 64 6f 63 69 74 65 |rized...|\fdocite|
|00001ef0| 6d 7b 28 63 68 69 73 71 | 2d 72 61 6e 64 20 6e 20 |m{(chisq|-rand n |
|00001f00| 64 66 29 7d 0a 52 65 74 | 75 72 6e 73 20 61 20 6c |df)}.Ret|urns a l|
|00001f10| 69 73 74 20 6f 66 20 4e | 20 43 68 69 2d 53 71 75 |ist of N| Chi-Squ|
|00001f20| 61 72 65 28 44 46 29 20 | 72 61 6e 64 6f 6d 20 76 |are(DF) |random v|
|00001f30| 61 72 69 61 62 6c 65 73 | 2e 20 56 65 63 74 6f 72 |ariables|. Vector|
|00001f40| 69 7a 65 64 2e 0a 0a 5c | 66 64 6f 63 69 74 65 6d |ized...\|fdocitem|
|00001f50| 7b 28 63 6f 76 61 72 69 | 61 6e 63 65 2d 6d 61 74 |{(covari|ance-mat|
|00001f60| 72 69 78 20 5c 26 72 65 | 73 74 20 61 72 67 73 29 |rix \&re|st args)|
|00001f70| 7d 0a 52 65 74 75 72 6e | 73 20 74 68 65 20 73 61 |}.Return|s the sa|
|00001f80| 6d 70 6c 65 20 63 6f 76 | 61 72 69 61 6e 63 65 20 |mple cov|ariance |
|00001f90| 6d 61 74 72 69 78 20 6f | 66 20 74 68 65 20 64 61 |matrix o|f the da|
|00001fa0| 74 61 20 63 6f 6c 75 6d | 6e 73 20 69 6e 20 41 52 |ta colum|ns in AR|
|00001fb0| 47 53 2e 20 41 52 47 53 | 20 6d 61 79 0a 63 6f 6e |GS. ARGS| may.con|
|00001fc0| 73 69 73 74 20 6f 66 20 | 6c 69 73 74 73 2c 20 76 |sist of |lists, v|
|00001fd0| 65 63 74 6f 72 73 20 6f | 72 20 6d 61 74 72 69 63 |ectors o|r matric|
|00001fe0| 65 73 2e 0a 0a 5c 66 64 | 6f 63 69 74 65 6d 7b 28 |es...\fd|ocitem{(|
|00001ff0| 64 69 66 66 65 72 65 6e | 63 65 20 78 29 7d 0a 52 |differen|ce x)}.R|
|00002000| 65 74 75 72 6e 73 20 64 | 69 66 66 65 72 65 6e 63 |eturns d|ifferenc|
|00002010| 65 73 20 66 6f 72 20 61 | 20 73 65 71 75 65 6e 63 |es for a| sequenc|
|00002020| 65 20 58 2e 0a 0a 5c 66 | 64 6f 63 69 74 65 6d 7b |e X...\f|docitem{|
|00002030| 28 66 2d 63 64 66 20 78 | 20 6e 64 66 20 64 64 66 |(f-cdf x| ndf ddf|
|00002040| 29 7d 0a 52 65 74 75 72 | 6e 73 20 74 68 65 20 76 |)}.Retur|ns the v|
|00002050| 61 6c 75 65 20 6f 66 20 | 74 68 65 20 46 28 4e 44 |alue of |the F(ND|
|00002060| 46 2c 20 44 44 46 29 20 | 64 69 73 74 72 69 62 75 |F, DDF) |distribu|
|00002070| 74 69 6f 6e 20 66 75 6e | 63 74 69 6f 6e 20 61 74 |tion fun|ction at|
|00002080| 20 58 2e 20 56 65 63 74 | 6f 72 69 7a 65 64 2e 0a | X. Vect|orized..|
|00002090| 0a 5c 66 64 6f 63 69 74 | 65 6d 7b 28 66 2d 64 65 |.\fdocit|em{(f-de|
|000020a0| 6e 73 20 78 20 6e 64 66 | 20 64 64 66 29 7d 0a 52 |ns x ndf| ddf)}.R|
|000020b0| 65 74 75 72 6e 73 20 74 | 68 65 20 64 65 6e 73 69 |eturns t|he densi|
|000020c0| 74 79 20 61 74 20 58 20 | 6f 66 20 74 68 65 20 46 |ty at X |of the F|
|000020d0| 28 4e 44 46 2c 20 44 44 | 46 29 20 64 69 73 74 72 |(NDF, DD|F) distr|
|000020e0| 69 62 75 74 69 6f 6e 2e | 20 56 65 63 74 6f 72 69 |ibution.| Vectori|
|000020f0| 7a 65 64 2e 0a 0a 5c 66 | 64 6f 63 69 74 65 6d 7b |zed...\f|docitem{|
|00002100| 28 66 2d 71 75 61 6e 74 | 20 70 20 6e 64 66 20 64 |(f-quant| p ndf d|
|00002110| 64 66 29 7d 0a 52 65 74 | 75 72 6e 73 20 74 68 65 |df)}.Ret|urns the|
|00002120| 20 50 2d 74 68 20 71 75 | 61 6e 74 69 6c 65 20 6f | P-th qu|antile o|
|00002130| 66 20 74 68 65 20 46 28 | 4e 44 46 2c 20 44 44 46 |f the F(|NDF, DDF|
|00002140| 29 20 64 69 73 74 72 69 | 62 75 74 69 6f 6e 2e 20 |) distri|bution. |
|00002150| 56 65 63 74 6f 72 69 7a | 65 64 2e 0a 0a 5c 66 64 |Vectoriz|ed...\fd|
|00002160| 6f 63 69 74 65 6d 7b 28 | 66 2d 72 61 6e 64 20 6e |ocitem{(|f-rand n|
|00002170| 20 64 29 7d 0a 52 65 74 | 75 72 6e 73 20 61 20 6c | d)}.Ret|urns a l|
|00002180| 69 73 74 20 6f 66 20 4e | 20 46 28 4e 44 46 2c 20 |ist of N| F(NDF, |
|00002190| 44 44 46 29 20 72 61 6e | 64 6f 6d 20 76 61 72 69 |DDF) ran|dom vari|
|000021a0| 61 62 6c 65 73 2e 20 56 | 65 63 74 6f 72 69 7a 65 |ables. V|ectorize|
|000021b0| 64 2e 0a 0a 5c 66 64 6f | 63 69 74 65 6d 7b 28 66 |d...\fdo|citem{(f|
|000021c0| 69 76 6e 75 6d 20 6e 75 | 6d 62 65 72 2d 64 61 74 |ivnum nu|mber-dat|
|000021d0| 61 29 7d 0a 52 65 74 75 | 72 6e 73 20 74 68 65 20 |a)}.Retu|rns the |
|000021e0| 66 69 76 65 20 6e 75 6d | 62 65 72 20 73 75 6d 6d |five num|ber summ|
|000021f0| 61 72 79 20 28 6d 69 6e | 2c 20 31 73 74 20 71 75 |ary (min|, 1st qu|
|00002200| 61 72 74 69 6c 65 2c 20 | 6d 65 64 69 6e 61 6e 2c |artile, |medinan,|
|00002210| 20 33 72 64 20 71 75 61 | 72 74 69 6c 65 2c 0a 6d | 3rd qua|rtile,.m|
|00002220| 61 78 29 20 6f 66 20 74 | 68 65 20 65 6c 65 6d 65 |ax) of t|he eleme|
|00002230| 6e 74 73 20 58 2e 0a 0a | 5c 66 64 6f 63 69 74 65 |nts X...|\fdocite|
|00002240| 6d 7b 28 67 61 6d 6d 61 | 2d 63 64 66 20 78 20 61 |m{(gamma|-cdf x a|
|00002250| 6c 70 68 61 29 7d 0a 52 | 65 74 75 72 6e 73 20 74 |lpha)}.R|eturns t|
|00002260| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 74 68 65 20 |he value| of the |
|00002270| 47 61 6d 6d 61 28 61 6c | 70 68 61 2c 20 31 29 20 |Gamma(al|pha, 1) |
|00002280| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 20 66 75 6e |distribu|tion fun|
|00002290| 63 74 69 6f 6e 20 61 74 | 20 58 2e 0a 56 65 63 74 |ction at| X..Vect|
|000022a0| 6f 72 69 7a 65 64 2e 0a | 0a 5c 66 64 6f 63 69 74 |orized..|.\fdocit|
|000022b0| 65 6d 7b 28 67 61 6d 6d | 61 2d 64 65 6e 73 20 78 |em{(gamm|a-dens x|
|000022c0| 20 61 6c 70 68 61 29 7d | 0a 52 65 74 75 72 6e 73 | alpha)}|.Returns|
|000022d0| 20 74 68 65 20 64 65 6e | 73 69 74 79 20 61 74 20 | the den|sity at |
|000022e0| 58 20 6f 66 20 74 68 65 | 20 47 61 6d 6d 61 28 41 |X of the| Gamma(A|
|000022f0| 4c 50 48 41 2c 20 31 29 | 20 64 69 73 74 72 69 62 |LPHA, 1)| distrib|
|00002300| 75 74 69 6f 6e 2e 20 56 | 65 63 74 6f 72 69 7a 65 |ution. V|ectorize|
|00002310| 64 2e 0a 0a 5c 66 64 6f | 63 69 74 65 6d 7b 28 67 |d...\fdo|citem{(g|
|00002320| 61 6d 6d 61 2d 71 75 61 | 6e 74 20 70 20 61 6c 70 |amma-qua|nt p alp|
|00002330| 68 61 29 7d 0a 52 65 74 | 75 72 6e 73 20 74 68 65 |ha)}.Ret|urns the|
|00002340| 20 50 2d 74 68 20 71 75 | 61 6e 74 69 6c 65 20 6f | P-th qu|antile o|
|00002350| 66 20 74 68 65 20 47 61 | 6d 6d 61 28 41 4c 50 48 |f the Ga|mma(ALPH|
|00002360| 41 2c 20 31 29 20 64 69 | 73 74 72 69 62 75 74 69 |A, 1) di|stributi|
|00002370| 6f 6e 2e 20 56 65 63 74 | 6f 72 69 7a 65 64 2e 0a |on. Vect|orized..|
|00002380| 0a 5c 66 64 6f 63 69 74 | 65 6d 7b 28 67 61 6d 6d |.\fdocit|em{(gamm|
|00002390| 61 2d 72 61 6e 64 20 6e | 20 61 29 7d 0a 52 65 74 |a-rand n| a)}.Ret|
|000023a0| 75 72 6e 73 20 61 20 6c | 69 73 74 20 6f 66 20 4e |urns a l|ist of N|
|000023b0| 20 47 61 6d 6d 61 28 41 | 2c 20 31 29 20 72 61 6e | Gamma(A|, 1) ran|
|000023c0| 64 6f 6d 20 76 61 72 69 | 61 62 6c 65 73 2e 20 56 |dom vari|ables. V|
|000023d0| 65 63 74 6f 72 69 7a 65 | 64 2e 0a 0a 5c 66 64 6f |ectorize|d...\fdo|
|000023e0| 63 69 74 65 6d 7b 28 69 | 6e 74 65 72 71 75 61 72 |citem{(i|nterquar|
|000023f0| 74 69 6c 65 2d 72 61 6e | 67 65 20 6e 75 6d 62 65 |tile-ran|ge numbe|
|00002400| 72 2d 64 61 74 61 29 7d | 0a 52 65 74 75 72 6e 73 |r-data)}|.Returns|
|00002410| 20 74 68 65 20 69 6e 74 | 65 72 71 75 61 72 74 69 | the int|erquarti|
|00002420| 6c 65 20 72 61 6e 67 65 | 20 6f 66 20 74 68 65 20 |le range| of the |
|00002430| 65 6c 65 6d 65 6e 74 73 | 20 6f 66 20 58 2e 0a 0a |elements| of X...|
|00002440| 5c 66 64 6f 63 69 74 65 | 6d 7b 28 6d 65 61 6e 20 |\fdocite|m{(mean |
|00002450| 78 29 7d 0a 52 65 74 75 | 72 6e 73 20 74 68 65 20 |x)}.Retu|rns the |
|00002460| 6d 65 61 6e 20 6f 66 20 | 74 68 65 20 65 6c 65 6d |mean of |the elem|
|00002470| 65 6e 74 73 20 78 2e 20 | 56 65 63 74 6f 72 20 72 |ents x. |Vector r|
|00002480| 65 64 75 63 69 6e 67 2e | 0a 0a 5c 66 64 6f 63 69 |educing.|..\fdoci|
|00002490| 74 65 6d 7b 28 6d 65 64 | 69 61 6e 20 78 29 7d 0a |tem{(med|ian x)}.|
|000024a0| 52 65 74 75 72 6e 73 20 | 74 68 65 20 6d 65 64 69 |Returns |the medi|
|000024b0| 61 6e 20 6f 66 20 74 68 | 65 20 65 6c 65 6d 65 6e |an of th|e elemen|
|000024c0| 74 73 20 6f 66 20 58 2e | 0a 0a 5c 66 64 6f 63 69 |ts of X.|..\fdoci|
|000024d0| 74 65 6d 7b 28 6e 6f 72 | 6d 61 6c 2d 63 64 66 20 |tem{(nor|mal-cdf |
|000024e0| 78 29 7d 0a 52 65 74 75 | 72 6e 73 20 74 68 65 20 |x)}.Retu|rns the |
|000024f0| 76 61 6c 75 65 20 6f 66 | 20 74 68 65 20 73 74 61 |value of| the sta|
|00002500| 6e 64 61 72 64 20 6e 6f | 72 6d 61 6c 20 64 69 73 |ndard no|rmal dis|
|00002510| 74 72 69 62 75 74 69 6f | 6e 20 66 75 6e 63 74 69 |tributio|n functi|
|00002520| 6f 6e 20 61 74 20 58 2e | 0a 56 65 63 74 6f 72 69 |on at X.|.Vectori|
|00002530| 7a 65 64 2e 0a 0a 5c 66 | 64 6f 63 69 74 65 6d 7b |zed...\f|docitem{|
|00002540| 28 6e 6f 72 6d 61 6c 2d | 64 65 6e 73 20 78 29 7d |(normal-|dens x)}|
|00002550| 0a 52 65 74 75 72 6e 73 | 20 74 68 65 20 64 65 6e |.Returns| the den|
|00002560| 73 69 74 79 20 61 74 20 | 58 20 6f 66 20 74 68 65 |sity at |X of the|
|00002570| 20 73 74 61 6e 64 61 72 | 64 20 6e 6f 72 6d 61 6c | standar|d normal|
|00002580| 20 64 69 73 74 72 69 62 | 75 74 69 6f 6e 2e 20 56 | distrib|ution. V|
|00002590| 65 63 74 6f 72 69 7a 65 | 64 2e 0a 0a 5c 66 64 6f |ectorize|d...\fdo|
|000025a0| 63 69 74 65 6d 7b 28 6e | 6f 72 6d 61 6c 2d 71 75 |citem{(n|ormal-qu|
|000025b0| 61 6e 74 20 70 29 7d 0a | 52 65 74 75 72 6e 73 20 |ant p)}.|Returns |
|000025c0| 74 68 65 20 50 2d 74 68 | 20 71 75 61 6e 74 69 6c |the P-th| quantil|
|000025d0| 65 20 6f 66 20 74 68 65 | 20 73 74 61 6e 64 61 72 |e of the| standar|
|000025e0| 64 20 6e 6f 72 6d 61 6c | 20 64 69 73 74 72 69 62 |d normal| distrib|
|000025f0| 75 74 69 6f 6e 2e 20 56 | 65 63 74 6f 72 69 7a 65 |ution. V|ectorize|
|00002600| 64 2e 0a 0a 5c 66 64 6f | 63 69 74 65 6d 7b 28 6e |d...\fdo|citem{(n|
|00002610| 6f 72 6d 61 6c 2d 72 61 | 6e 64 20 6e 29 7d 0a 52 |ormal-ra|nd n)}.R|
|00002620| 65 74 75 72 6e 73 20 61 | 20 6c 69 73 74 20 6f 66 |eturns a| list of|
|00002630| 20 4e 20 73 74 61 6e 64 | 61 72 64 20 6e 6f 72 6d | N stand|ard norm|
|00002640| 61 6c 20 72 61 6e 64 6f | 6d 20 6e 75 6d 62 65 72 |al rando|m number|
|00002650| 73 2e 20 56 65 63 74 6f | 72 69 7a 65 64 2e 0a 0a |s. Vecto|rized...|
|00002660| 5c 66 64 6f 63 69 74 65 | 6d 7b 28 6f 72 64 65 72 |\fdocite|m{(order|
|00002670| 20 78 29 7d 0a 52 65 74 | 75 72 6e 73 20 61 20 73 | x)}.Ret|urns a s|
|00002680| 65 71 75 65 6e 63 65 20 | 6f 66 20 74 68 65 20 69 |equence |of the i|
|00002690| 6e 64 69 63 65 73 20 6f | 66 20 65 6c 65 6d 65 6e |ndices o|f elemen|
|000026a0| 74 73 20 69 6e 20 74 68 | 65 20 73 65 71 75 65 6e |ts in th|e sequen|
|000026b0| 63 65 20 6f 66 20 6e 75 | 6d 62 65 72 73 0a 6f 72 |ce of nu|mbers.or|
|000026c0| 20 73 74 72 69 6e 67 73 | 20 58 20 69 6e 20 6f 72 | strings| X in or|
|000026d0| 64 65 72 2e 0a 0a 5c 66 | 64 6f 63 69 74 65 6d 7b |der...\f|docitem{|
|000026e0| 28 70 6f 69 73 73 6f 6e | 2d 63 64 66 20 78 20 6d |(poisson|-cdf x m|
|000026f0| 75 29 7d 0a 52 65 74 75 | 72 6e 73 20 76 61 6c 75 |u)}.Retu|rns valu|
|00002700| 65 20 6f 66 20 74 68 65 | 20 50 6f 69 73 73 6f 6e |e of the| Poisson|
|00002710| 28 4d 55 29 20 64 69 73 | 74 72 69 62 75 74 69 6f |(MU) dis|tributio|
|00002720| 6e 20 66 75 6e 63 74 69 | 6f 6e 20 61 74 20 58 2e |n functi|on at X.|
|00002730| 20 56 65 63 74 6f 72 69 | 7a 65 64 2e 0a 0a 5c 66 | Vectori|zed...\f|
|00002740| 64 6f 63 69 74 65 6d 7b | 28 70 6f 69 73 73 6f 6e |docitem{|(poisson|
|00002750| 2d 70 6d 66 20 6b 20 6d | 75 29 7d 0a 52 65 74 75 |-pmf k m|u)}.Retu|
|00002760| 72 6e 73 20 76 61 6c 75 | 65 20 6f 66 20 74 68 65 |rns valu|e of the|
|00002770| 20 50 6f 69 73 73 6f 6e | 28 4d 55 29 20 70 6d 66 | Poisson|(MU) pmf|
|00002780| 20 66 75 6e 63 74 69 6f | 6e 20 61 74 20 69 6e 74 | functio|n at int|
|00002790| 65 67 65 72 20 4b 2e 20 | 56 65 63 74 6f 72 69 7a |eger K. |Vectoriz|
|000027a0| 65 64 2e 0a 0a 5c 66 64 | 6f 63 69 74 65 6d 7b 28 |ed...\fd|ocitem{(|
|000027b0| 70 6f 69 73 73 6f 6e 2d | 71 75 61 6e 74 20 78 20 |poisson-|quant x |
|000027c0| 6d 75 29 7d 0a 52 65 74 | 75 72 6e 73 20 78 2d 74 |mu)}.Ret|urns x-t|
|000027d0| 68 20 71 75 61 6e 74 69 | 6c 65 20 28 6c 65 66 74 |h quanti|le (left|
|000027e0| 20 63 6f 6e 74 69 6e 75 | 6f 75 73 20 69 6e 76 65 | continu|ous inve|
|000027f0| 72 73 65 29 20 6f 66 20 | 50 6f 69 73 73 6f 6e 28 |rse) of |Poisson(|
|00002800| 4d 55 29 20 63 64 66 2e | 0a 56 65 63 74 6f 72 69 |MU) cdf.|.Vectori|
|00002810| 7a 65 64 2e 0a 0a 5c 66 | 64 6f 63 69 74 65 6d 7b |zed...\f|docitem{|
|00002820| 28 70 6f 69 73 73 6f 6e | 2d 72 61 6e 64 20 6b 20 |(poisson|-rand k |
|00002830| 6d 75 29 7d 0a 52 65 74 | 75 72 6e 73 20 6c 69 73 |mu)}.Ret|urns lis|
|00002840| 74 20 6f 66 20 4b 20 64 | 72 61 77 73 20 66 72 6f |t of K d|raws fro|
|00002850| 6d 20 74 68 65 20 50 6f | 69 73 73 6f 6e 28 4d 55 |m the Po|isson(MU|
|00002860| 29 20 64 69 73 74 72 69 | 62 75 74 69 6f 6e 2e 20 |) distri|bution. |
|00002870| 56 65 63 74 6f 72 69 7a | 65 64 2e 0a 0a 5c 66 64 |Vectoriz|ed...\fd|
|00002880| 6f 63 69 74 65 6d 7b 28 | 71 75 61 6e 74 69 6c 65 |ocitem{(|quantile|
|00002890| 20 78 20 70 29 7d 0a 52 | 65 74 75 72 6e 73 20 74 | x p)}.R|eturns t|
|000028a0| 68 65 20 50 2d 74 68 20 | 71 75 61 6e 74 69 6c 65 |he P-th |quantile|
|000028b0| 28 73 29 20 6f 66 20 73 | 65 71 75 65 6e 63 65 20 |(s) of s|equence |
|000028c0| 58 2e 20 50 20 63 61 6e | 20 62 65 20 61 20 6e 75 |X. P can| be a nu|
|000028d0| 6d 62 65 72 20 6f 72 20 | 61 20 73 65 71 75 65 6e |mber or |a sequen|
|000028e0| 63 65 2e 0a 0a 5c 66 64 | 6f 63 69 74 65 6d 7b 28 |ce...\fd|ocitem{(|
|000028f0| 72 61 6e 6b 20 78 29 7d | 0a 52 65 74 75 72 6e 73 |rank x)}|.Returns|
|00002900| 20 61 20 73 65 71 75 65 | 6e 63 65 20 77 69 74 68 | a seque|nce with|
|00002910| 20 74 68 65 20 65 6c 65 | 6d 65 6e 74 73 20 6f 66 | the ele|ments of|
|00002920| 20 74 68 65 20 6c 69 73 | 74 20 6f 72 20 61 72 72 | the lis|t or arr|
|00002930| 61 79 20 6f 66 20 6e 75 | 6d 62 65 72 73 20 6f 72 |ay of nu|mbers or|
|00002940| 0a 73 74 72 69 6e 67 73 | 20 58 20 72 65 70 6c 61 |.strings| X repla|
|00002950| 63 65 64 20 62 79 20 74 | 68 65 69 72 20 72 61 6e |ced by t|heir ran|
|00002960| 6b 73 2e 0a 0a 5c 66 64 | 6f 63 69 74 65 6d 7b 28 |ks...\fd|ocitem{(|
|00002970| 72 65 61 64 2d 64 61 74 | 61 2d 63 6f 6c 75 6d 6e |read-dat|a-column|
|00002980| 73 20 66 69 6c 65 20 63 | 6f 6c 73 29 7d 0a 52 65 |s file c|ols)}.Re|
|00002990| 61 64 73 20 74 68 65 20 | 64 61 74 61 20 69 6e 20 |ads the |data in |
|000029a0| 46 49 4c 45 20 61 73 20 | 43 4f 4c 53 20 63 6f 6c |FILE as |COLS col|
|000029b0| 75 6d 6e 73 20 61 6e 64 | 20 72 65 74 75 72 6e 73 |umns and| returns|
|000029c0| 20 61 20 6c 69 73 74 20 | 6f 66 20 6c 69 73 74 73 | a list |of lists|
|000029d0| 20 72 65 70 72 65 73 65 | 6e 74 69 6e 67 0a 74 68 | represe|nting.th|
|000029e0| 65 20 63 6f 6c 75 6d 6e | 73 2e 0a 0a 5c 66 64 6f |e column|s...\fdo|
|000029f0| 63 69 74 65 6d 7b 28 72 | 65 61 64 2d 64 61 74 61 |citem{(r|ead-data|
|00002a00| 2d 66 69 6c 65 20 66 69 | 6c 65 29 7d 0a 52 65 74 |-file fi|le)}.Ret|
|00002a10| 75 72 6e 73 20 61 20 6c | 69 73 74 20 6f 66 20 61 |urns a l|ist of a|
|00002a20| 6c 6c 20 6c 69 73 70 20 | 6f 62 6a 65 63 74 73 20 |ll lisp |objects |
|00002a30| 69 6e 20 46 49 4c 45 2e | 20 46 49 4c 45 20 63 61 |in FILE.| FILE ca|
|00002a40| 6e 20 62 65 20 61 20 73 | 74 72 69 6e 67 20 6f 72 |n be a s|tring or|
|00002a50| 20 61 20 73 79 6d 62 6f | 6c 2c 0a 69 6e 20 77 68 | a symbo|l,.in wh|
|00002a60| 69 63 68 20 63 61 73 65 | 20 74 68 65 20 73 79 6d |ich case| the sym|
|00002a70| 62 6f 6c 27 66 20 70 72 | 69 6e 74 20 6e 61 6d 65 |bol'f pr|int name|
|00002a80| 20 69 73 20 75 73 65 64 | 2e 0a 0a 5c 66 64 6f 63 | is used|...\fdoc|
|00002a90| 69 74 65 6d 7b 28 72 65 | 67 72 65 73 73 69 6f 6e |item{(re|gression|
|00002aa0| 2d 6d 6f 64 65 6c 20 78 | 20 79 20 5c 26 6b 65 79 |-model x| y \&key|
|00002ab0| 20 28 69 6e 74 65 72 63 | 65 70 74 20 74 29 20 28 | (interc|ept t) (|
|00002ac0| 70 72 69 6e 74 20 74 29 | 20 28 77 65 69 67 68 74 |print t)| (weight|
|00002ad0| 73 20 6e 69 6c 29 29 7d | 0a 58 20 69 73 20 61 20 |s nil))}|.X is a |
|00002ae0| 6c 69 73 74 20 6f 66 20 | 74 68 65 20 69 6e 64 65 |list of |the inde|
|00002af0| 70 65 6e 64 65 6e 74 20 | 76 61 72 69 61 62 6c 65 |pendent |variable|
|00002b00| 73 20 6f 72 20 74 68 65 | 20 58 20 6d 61 74 72 69 |s or the| X matri|
|00002b10| 78 20 61 6e 64 20 59 20 | 69 73 20 74 68 65 20 0a |x and Y |is the .|
|00002b20| 64 65 70 65 6e 64 65 6e | 74 20 76 61 72 69 61 62 |dependen|t variab|
|00002b30| 6c 65 2e 20 49 4e 54 45 | 52 43 45 50 54 20 69 73 |le. INTE|RCEPT is|
|00002b40| 20 54 20 69 66 20 74 68 | 65 20 6d 6f 64 65 6c 20 | T if th|e model |
|00002b50| 69 6e 63 6c 75 64 65 73 | 20 6e 20 69 6e 74 65 72 |includes| n inter|
|00002b60| 63 65 70 74 20 28 74 68 | 65 0a 64 65 66 61 75 6c |cept (th|e.defaul|
|00002b70| 74 29 20 61 6e 64 20 4e | 49 4c 20 6f 74 68 65 72 |t) and N|IL other|
|00002b80| 77 69 73 65 2e 20 49 66 | 20 50 52 49 4e 54 20 69 |wise. If| PRINT i|
|00002b90| 73 20 6e 6f 74 20 4e 49 | 4c 20 70 72 69 6e 74 73 |s not NI|L prints|
|00002ba0| 20 73 75 6d 6d 61 72 79 | 20 69 6e 66 6f 72 6d 61 | summary| informa|
|00002bb0| 74 69 6f 6e 0a 66 6f 72 | 20 74 68 65 20 72 65 67 |tion.for| the reg|
|00002bc0| 72 65 73 73 69 6f 6e 2e | 20 49 66 20 57 45 49 47 |ression.| If WEIG|
|00002bd0| 48 54 53 20 61 72 65 20 | 73 75 70 70 6c 69 65 64 |HTS are |supplied|
|00002be0| 20 69 74 20 73 68 6f 75 | 6c 64 20 62 65 20 61 20 | it shou|ld be a |
|00002bf0| 73 65 71 75 65 6e 63 65 | 20 74 68 65 20 73 61 6d |sequence| the sam|
|00002c00| 65 0a 6c 65 6e 67 74 68 | 20 61 73 20 79 3b 20 65 |e.length| as y; e|
|00002c10| 72 72 6f 72 20 76 61 72 | 69 61 6e 63 65 73 20 61 |rror var|iances a|
|00002c20| 72 65 20 61 73 73 75 6d | 65 64 20 74 6f 20 62 65 |re assum|ed to be|
|00002c30| 20 69 6e 76 65 72 73 65 | 6c 79 20 70 72 6f 70 6f | inverse|ly propo|
|00002c40| 72 74 69 6f 6e 61 6c 20 | 74 6f 0a 57 45 49 47 48 |rtional |to.WEIGH|
|00002c50| 54 53 2e 20 52 65 74 75 | 72 6e 73 20 61 20 72 65 |TS. Retu|rns a re|
|00002c60| 67 72 65 73 73 69 6f 6e | 20 6d 6f 64 65 6c 20 6f |gression| model o|
|00002c70| 62 6a 65 63 74 2e 20 54 | 6f 20 65 78 61 6d 69 6e |bject. T|o examin|
|00002c80| 65 20 74 68 65 20 6d 6f | 64 65 6c 0a 66 75 72 74 |e the mo|del.furt|
|00002c90| 68 65 72 20 61 73 73 69 | 67 6e 20 74 68 65 20 72 |her assi|gn the r|
|00002ca0| 65 73 75 6c 74 20 74 6f | 20 61 20 76 61 72 69 61 |esult to| a varia|
|00002cb0| 62 6c 65 20 61 6e 64 20 | 73 65 6e 64 20 69 74 20 |ble and |send it |
|00002cc0| 6d 65 73 73 61 67 65 73 | 2e 0a 0a 5c 66 64 6f 63 |messages|...\fdoc|
|00002cd0| 69 74 65 6d 7b 28 73 6f | 72 74 2d 64 61 74 61 20 |item{(so|rt-data |
|00002ce0| 73 65 71 75 65 6e 63 65 | 29 7d 0a 52 65 74 75 72 |sequence|)}.Retur|
|00002cf0| 6e 73 20 61 20 73 65 71 | 75 65 6e 63 65 20 77 69 |ns a seq|uence wi|
|00002d00| 74 68 20 74 68 65 20 6e | 75 6d 62 65 72 73 20 6f |th the n|umbers o|
|00002d10| 72 20 73 74 72 69 6e 67 | 73 20 69 6e 20 74 68 65 |r string|s in the|
|00002d20| 20 73 65 71 75 65 6e 63 | 65 20 58 20 69 6e 20 6f | sequenc|e X in o|
|00002d30| 72 64 65 72 2e 0a 0a 5c | 66 64 6f 63 69 74 65 6d |rder...\|fdocitem|
|00002d40| 7b 28 73 74 61 6e 64 61 | 72 64 2d 64 65 76 69 61 |{(standa|rd-devia|
|00002d50| 74 69 6f 6e 20 78 29 7d | 0a 52 65 74 75 72 6e 73 |tion x)}|.Returns|
|00002d60| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 64 65 | the sta|ndard de|
|00002d70| 76 69 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 65 |viation |of the e|
|00002d80| 6c 65 6d 65 6e 74 73 20 | 78 2e 20 56 65 63 74 6f |lements |x. Vecto|
|00002d90| 72 20 72 65 64 75 63 69 | 6e 67 2e 0a 0a 5c 66 64 |r reduci|ng...\fd|
|00002da0| 6f 63 69 74 65 6d 7b 28 | 74 2d 63 64 66 20 78 20 |ocitem{(|t-cdf x |
|00002db0| 64 66 29 7d 0a 52 65 74 | 75 72 6e 73 20 74 68 65 |df)}.Ret|urns the|
|00002dc0| 20 76 61 6c 75 65 20 6f | 66 20 74 68 65 20 54 28 | value o|f the T(|
|00002dd0| 44 46 29 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |DF) dist|ribution|
|00002de0| 20 66 75 6e 63 74 69 6f | 6e 20 61 74 20 58 2e 20 | functio|n at X. |
|00002df0| 56 65 63 74 6f 72 69 7a | 65 64 2e 0a 0a 5c 66 64 |Vectoriz|ed...\fd|
|00002e00| 6f 63 69 74 65 6d 7b 28 | 74 2d 64 65 6e 73 20 78 |ocitem{(|t-dens x|
|00002e10| 20 61 6c 70 68 61 29 7d | 0a 52 65 74 75 72 6e 73 | alpha)}|.Returns|
|00002e20| 20 74 68 65 20 64 65 6e | 73 69 74 79 20 61 74 20 | the den|sity at |
|00002e30| 58 20 6f 66 20 74 68 65 | 20 54 28 44 46 29 20 64 |X of the| T(DF) d|
|00002e40| 69 73 74 72 69 62 75 74 | 69 6f 6e 2e 20 56 65 63 |istribut|ion. Vec|
|00002e50| 74 6f 72 69 7a 65 64 2e | 0a 0a 5c 66 64 6f 63 69 |torized.|..\fdoci|
|00002e60| 74 65 6d 7b 28 74 2d 71 | 75 61 6e 74 20 70 20 64 |tem{(t-q|uant p d|
|00002e70| 66 29 7d 0a 52 65 74 75 | 72 6e 73 20 74 68 65 20 |f)}.Retu|rns the |
|00002e80| 50 2d 74 68 20 71 75 61 | 6e 74 69 6c 65 20 6f 66 |P-th qua|ntile of|
|00002e90| 20 74 68 65 20 54 28 44 | 46 29 20 64 69 73 74 72 | the T(D|F) distr|
|00002ea0| 69 62 75 74 69 6f 6e 2e | 20 56 65 63 74 6f 72 69 |ibution.| Vectori|
|00002eb0| 7a 65 64 2e 0a 0a 5c 66 | 64 6f 63 69 74 65 6d 7b |zed...\f|docitem{|
|00002ec0| 28 74 2d 72 61 6e 64 20 | 6e 20 64 29 7d 0a 52 65 |(t-rand |n d)}.Re|
|00002ed0| 74 75 72 6e 73 20 61 20 | 6c 69 73 74 20 6f 66 20 |turns a |list of |
|00002ee0| 4e 20 54 28 44 46 29 20 | 72 61 6e 64 6f 6d 20 76 |N T(DF) |random v|
|00002ef0| 61 72 69 61 62 6c 65 73 | 2e 20 56 65 63 74 6f 72 |ariables|. Vector|
|00002f00| 69 7a 65 64 2e 0a 0a 5c | 66 64 6f 63 69 74 65 6d |ized...\|fdocitem|
|00002f10| 7b 28 75 6e 69 66 6f 72 | 6d 2d 72 61 6e 64 20 6e |{(unifor|m-rand n|
|00002f20| 29 7d 0a 52 65 74 75 72 | 6e 73 20 61 20 6c 69 73 |)}.Retur|ns a lis|
|00002f30| 74 20 6f 66 20 4e 20 75 | 6e 69 66 6f 72 6d 20 72 |t of N u|niform r|
|00002f40| 61 6e 64 6f 6d 20 76 61 | 72 69 61 62 6c 65 73 20 |andom va|riables |
|00002f50| 66 72 6f 6d 20 74 68 65 | 20 72 61 6e 67 65 20 28 |from the| range (|
|00002f60| 30 2c 20 31 29 2e 0a 56 | 65 63 74 6f 72 69 7a 65 |0, 1)..V|ectorize|
|00002f70| 64 2e 0a 0a 0a 5c 65 6e | 64 7b 6c 69 73 70 64 6f |d....\en|d{lispdo|
|00002f80| 63 7d 0a 0a 5c 73 75 62 | 73 65 63 74 69 6f 6e 7b |c}..\sub|section{|
|00002f90| 50 6c 6f 74 74 69 6e 67 | 20 46 75 6e 63 74 69 6f |Plotting| Functio|
|00002fa0| 6e 73 7d 0a 0a 5c 62 65 | 67 69 6e 7b 6c 69 73 70 |ns}..\be|gin{lisp|
|00002fb0| 64 6f 63 7d 0a 5c 66 64 | 6f 63 69 74 65 6d 7b 28 |doc}.\fd|ocitem{(|
|00002fc0| 62 6f 78 70 6c 6f 74 20 | 64 61 74 61 20 5c 26 6b |boxplot |data \&k|
|00002fd0| 65 79 20 28 74 69 74 6c | 65 20 22 42 6f 78 20 50 |ey (titl|e "Box P|
|00002fe0| 6c 6f 74 22 29 29 7d 0a | 44 41 54 41 20 69 73 20 |lot"))}.|DATA is |
|00002ff0| 61 20 73 65 71 75 65 6e | 63 65 2c 20 61 20 6c 69 |a sequen|ce, a li|
|00003000| 73 74 20 6f 66 20 73 65 | 71 75 65 6e 63 65 73 20 |st of se|quences |
|00003010| 6f 72 20 61 20 6d 61 74 | 72 69 78 2e 20 4d 61 6b |or a mat|rix. Mak|
|00003020| 65 73 20 61 20 62 6f 78 | 70 6c 6f 74 20 6f 66 20 |es a box|plot of |
|00003030| 74 68 65 0a 73 65 71 75 | 65 6e 63 65 20 6f 72 20 |the.sequ|ence or |
|00003040| 61 20 70 61 72 61 6c 6c | 65 6c 20 62 6f 78 20 70 |a parall|el box p|
|00003050| 6c 6f 74 20 6f 66 20 74 | 68 65 20 73 65 71 75 65 |lot of t|he seque|
|00003060| 6e 63 65 73 20 69 6e 20 | 74 68 65 20 6c 69 73 74 |nces in |the list|
|00003070| 20 6f 72 20 74 68 65 20 | 63 6f 6c 75 6d 6e 73 0a | or the |columns.|
|00003080| 6f 66 20 74 68 65 20 6d | 61 74 72 69 78 2e 0a 0a |of the m|atrix...|
|00003090| 5c 66 64 6f 63 69 74 65 | 6d 7b 28 62 6f 78 70 6c |\fdocite|m{(boxpl|
|000030a0| 6f 74 2d 78 20 78 20 64 | 61 74 61 20 5c 26 6b 65 |ot-x x d|ata \&ke|
|000030b0| 79 20 28 74 69 74 6c 65 | 20 22 42 6f 78 20 50 6c |y (title| "Box Pl|
|000030c0| 6f 74 22 29 29 7d 0a 44 | 41 54 41 20 69 73 20 61 |ot"))}.D|ATA is a|
|000030d0| 20 6c 69 73 74 20 6f 66 | 20 73 65 71 75 65 6e 63 | list of| sequenc|
|000030e0| 65 73 20 6f 72 20 61 20 | 6d 61 74 72 69 78 2e 20 |es or a |matrix. |
|000030f0| 58 20 69 73 20 61 20 73 | 65 71 75 65 6e 63 65 20 |X is a s|equence |
|00003100| 77 69 74 68 20 61 73 20 | 6d 61 6e 79 0a 65 6c 65 |with as |many.ele|
|00003110| 6d 65 6e 74 73 20 61 73 | 20 44 41 54 41 20 68 61 |ments as| DATA ha|
|00003120| 73 20 65 6c 65 6d 65 6e | 74 73 20 6f 72 20 63 6f |s elemen|ts or co|
|00003130| 6c 75 6d 6e 73 2e 20 4d | 61 6b 65 73 20 61 20 70 |lumns. M|akes a p|
|00003140| 61 72 61 6c 6c 65 6c 20 | 62 6f 78 20 70 6c 6f 74 |arallel |box plot|
|00003150| 0a 6f 66 20 74 68 65 20 | 73 65 71 75 65 6e 63 65 |.of the |sequence|
|00003160| 73 20 69 6e 20 74 68 65 | 20 6c 69 73 74 20 6f 72 |s in the| list or|
|00003170| 20 74 68 65 20 63 6f 6c | 75 6d 6e 73 20 6f 66 20 | the col|umns of |
|00003180| 74 68 65 20 6d 61 74 72 | 69 78 20 76 73 20 58 2e |the matr|ix vs X.|
|00003190| 0a 0a 5c 66 64 6f 63 69 | 74 65 6d 7b 28 63 6c 6f |..\fdoci|tem{(clo|
|000031a0| 73 65 2d 61 6c 6c 2d 70 | 6c 6f 74 73 29 7d 0a 43 |se-all-p|lots)}.C|
|000031b0| 6c 6f 73 65 20 61 6c 6c | 20 70 6c 6f 74 20 77 69 |lose all| plot wi|
|000031c0| 6e 64 6f 73 2e 0a 0a 5c | 66 64 6f 63 69 74 65 6d |ndos...\|fdocitem|
|000031d0| 7b 28 68 69 73 74 6f 67 | 72 61 6d 20 64 61 74 61 |{(histog|ram data|
|000031e0| 20 5c 26 6b 65 79 20 28 | 74 69 74 6c 65 20 22 48 | \&key (|title "H|
|000031f0| 69 73 74 6f 67 72 61 6d | 22 29 29 7d 0a 4f 70 65 |istogram|"))}.Ope|
|00003200| 6e 73 20 61 20 77 69 6e | 64 6f 77 20 77 69 74 68 |ns a win|dow with|
|00003210| 20 61 20 68 69 73 74 6f | 67 72 61 6d 20 6f 66 20 | a histo|gram of |
|00003220| 44 41 54 41 2e 20 54 49 | 54 4c 45 20 69 73 20 74 |DATA. TI|TLE is t|
|00003230| 68 65 20 77 69 6e 64 6f | 77 20 74 69 74 6c 65 2e |he windo|w title.|
|00003240| 20 54 68 65 20 6e 75 6d | 62 65 72 0a 6f 66 20 62 | The num|ber.of b|
|00003250| 69 6e 73 20 75 73 65 64 | 20 63 61 6e 20 62 65 20 |ins used| can be |
|00003260| 61 64 6a 75 73 74 65 64 | 20 75 73 69 6e 67 20 74 |adjusted| using t|
|00003270| 68 65 20 68 69 73 74 6f | 67 72 61 6d 20 6d 65 6e |he histo|gram men|
|00003280| 75 2e 20 54 68 65 20 68 | 69 73 74 6f 67 72 61 6d |u. The h|istogram|
|00003290| 20 63 61 6e 20 62 65 0a | 6c 69 6e 6b 65 64 20 74 | can be.|linked t|
|000032a0| 6f 20 6f 74 68 65 72 20 | 70 6c 6f 74 73 20 77 69 |o other |plots wi|
|000032b0| 74 68 20 74 68 65 20 6c | 69 6e 6b 2d 76 69 65 77 |th the l|ink-view|
|000032c0| 73 20 63 6f 6d 6d 61 6e | 64 2e 20 52 65 74 75 72 |s comman|d. Retur|
|000032d0| 6e 73 20 61 20 70 6c 6f | 74 20 6f 62 6a 65 63 74 |ns a plo|t object|
|000032e0| 2e 0a 0a 5c 66 64 6f 63 | 69 74 65 6d 7b 28 6c 69 |...\fdoc|item{(li|
|000032f0| 6e 6b 2d 76 69 65 77 73 | 20 5c 26 72 65 73 74 20 |nk-views| \&rest |
|00003300| 70 6c 6f 74 73 29 7d 0a | 4c 69 6e 6b 73 20 74 68 |plots)}.|Links th|
|00003310| 65 20 61 72 67 75 6d 65 | 6e 74 20 70 6c 6f 74 73 |e argume|nt plots|
|00003320| 3a 20 61 6e 79 20 63 68 | 61 6e 67 65 20 69 6e 20 |: any ch|ange in |
|00003330| 68 69 6c 69 74 69 6e 67 | 20 6f 72 20 76 69 73 69 |hiliting| or visi|
|00003340| 62 69 6c 69 74 79 20 6f | 66 20 70 6f 69 6e 74 73 |bility o|f points|
|00003350| 20 69 6e 0a 74 68 65 20 | 63 75 72 72 65 6e 74 20 | in.the |current |
|00003360| 70 6c 6f 74 20 69 73 20 | 70 72 6f 70 61 67 61 74 |plot is |propagat|
|00003370| 65 64 20 74 6f 20 74 68 | 65 20 6f 74 68 65 72 20 |ed to th|e other |
|00003380| 70 6c 6f 74 73 2e 0a 0a | 5c 66 64 6f 63 69 74 65 |plots...|\fdocite|
|00003390| 6d 7b 28 6e 61 6d 65 2d | 6c 69 73 74 20 6e 61 6d |m{(name-|list nam|
|000033a0| 65 73 20 5c 26 6b 65 79 | 20 28 74 69 74 6c 65 20 |es \&key| (title |
|000033b0| 22 4e 61 6d 65 20 4c 69 | 73 74 22 29 29 7d 0a 4e |"Name Li|st"))}.N|
|000033c0| 41 4d 45 53 20 69 73 20 | 61 20 6e 75 6d 62 65 72 |AMES is |a number|
|000033d0| 20 6f 72 20 61 20 6c 69 | 73 74 20 6f 66 20 63 68 | or a li|st of ch|
|000033e0| 61 72 61 63 74 65 72 20 | 73 74 72 69 6e 67 73 2e |aracter |strings.|
|000033f0| 20 4f 70 65 6e 73 20 61 | 20 77 69 6e 64 6f 77 20 | Opens a| window |
|00003400| 77 69 74 68 20 61 20 6c | 69 73 74 0a 6f 66 20 74 |with a l|ist.of t|
|00003410| 68 65 20 73 75 70 70 6c | 69 65 64 20 63 68 61 72 |he suppl|ied char|
|00003420| 61 63 74 65 72 20 73 74 | 72 69 6e 67 73 20 6f 72 |acter st|rings or|
|00003430| 20 65 6e 74 72 69 65 73 | 20 6e 75 6d 62 65 72 65 | entries| numbere|
|00003440| 64 20 66 72 6f 6d 20 30 | 20 74 6f 20 4e 41 4d 45 |d from 0| to NAME|
|00003450| 53 20 2d 20 31 2e 0a 54 | 68 69 73 20 64 69 73 70 |S - 1..T|his disp|
|00003460| 6c 61 79 20 63 61 6e 20 | 62 65 20 6c 69 6e 6b 65 |lay can |be linke|
|00003470| 64 20 74 6f 20 70 6c 6f | 74 73 20 77 69 74 68 20 |d to plo|ts with |
|00003480| 74 68 65 20 6c 69 6e 6b | 2d 76 69 65 77 73 20 66 |the link|-views f|
|00003490| 75 6e 63 74 69 6f 6e 2e | 20 52 65 74 75 72 6e 73 |unction.| Returns|
|000034a0| 20 61 0a 70 6c 6f 74 20 | 6f 62 6a 65 63 74 2e 0a | a.plot |object..|
|000034b0| 0a 5c 66 64 6f 63 69 74 | 65 6d 7b 28 70 6c 6f 74 |.\fdocit|em{(plot|
|000034c0| 2d 66 75 6e 63 74 69 6f | 6e 20 66 20 78 6d 69 6e |-functio|n f xmin|
|000034d0| 20 78 6d 61 78 20 5c 26 | 6f 70 74 69 6f 6e 61 6c | xmax \&|optional|
|000034e0| 20 28 6e 75 6d 2d 70 6f | 69 6e 74 73 20 35 30 29 | (num-po|ints 50)|
|000034f0| 29 7d 0a 50 6c 6f 74 73 | 20 66 75 6e 63 74 69 6f |)}.Plots| functio|
|00003500| 6e 20 46 20 6f 66 20 6f | 6e 65 20 72 65 61 6c 20 |n F of o|ne real |
|00003510| 76 61 72 69 61 62 6c 65 | 20 6f 76 65 72 20 74 68 |variable| over th|
|00003520| 65 20 72 61 6e 67 65 20 | 62 65 74 77 65 65 6e 20 |e range |between |
|00003530| 78 6d 69 6e 20 61 6e 64 | 20 78 6d 61 78 2e 0a 54 |xmin and| xmax..T|
|00003540| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 69 73 20 65 |he funct|ion is e|
|00003550| 76 61 6c 75 61 74 65 64 | 20 61 74 20 4e 55 4d 2d |valuated| at NUM-|
|00003560| 50 4f 49 4e 54 53 20 70 | 6f 69 6e 74 73 2e 0a 0a |POINTS p|oints...|
|00003570| 5c 66 64 6f 63 69 74 65 | 6d 7b 28 70 6c 6f 74 2d |\fdocite|m{(plot-|
|00003580| 6c 69 6e 65 73 20 78 20 | 79 20 5c 26 6b 65 79 20 |lines x |y \&key |
|00003590| 28 74 69 74 6c 65 20 22 | 4c 69 6e 65 20 50 6c 6f |(title "|Line Plo|
|000035a0| 74 22 29 20 76 61 72 69 | 61 62 6c 65 2d 6c 61 62 |t") vari|able-lab|
|000035b0| 65 6c 73 29 7d 0a 4f 70 | 65 6e 73 20 61 20 77 69 |els)}.Op|ens a wi|
|000035c0| 6e 64 6f 77 20 77 69 74 | 68 20 61 20 63 6f 6e 6e |ndow wit|h a conn|
|000035d0| 65 63 74 65 64 20 6c 69 | 6e 65 20 70 6c 6f 74 20 |ected li|ne plot |
|000035e0| 6f 66 20 58 20 76 73 20 | 59 2c 20 77 68 65 72 65 |of X vs |Y, where|
|000035f0| 20 58 20 61 6e 64 20 59 | 20 61 72 65 0a 63 6f 6d | X and Y| are.com|
|00003600| 70 6f 75 6e 64 20 6e 75 | 6d 62 65 72 2d 64 61 74 |pound nu|mber-dat|
|00003610| 61 2e 20 56 41 52 49 41 | 42 4c 45 2d 4c 41 42 45 |a. VARIA|BLE-LABE|
|00003620| 4c 53 2c 20 69 66 20 73 | 75 70 70 6c 69 65 64 2c |LS, if s|upplied,|
|00003630| 20 73 68 6f 75 6c 64 20 | 62 65 20 6c 69 73 74 73 | should |be lists|
|00003640| 20 6f 66 0a 63 68 61 72 | 61 63 74 65 72 20 73 74 | of.char|acter st|
|00003650| 72 69 6e 67 73 2e 20 54 | 49 54 4c 45 20 69 73 20 |rings. T|ITLE is |
|00003660| 74 68 65 20 77 69 6e 64 | 6f 77 20 74 69 74 6c 65 |the wind|ow title|
|00003670| 2e 20 54 68 65 20 70 6c | 6f 74 20 63 61 6e 20 62 |. The pl|ot can b|
|00003680| 65 20 6c 69 6e 6b 65 64 | 20 74 6f 0a 6f 74 68 65 |e linked| to.othe|
|00003690| 72 20 70 6c 6f 74 73 20 | 77 69 74 68 20 74 68 65 |r plots |with the|
|000036a0| 20 6c 69 6e 6b 2d 76 69 | 65 77 73 20 63 6f 6d 6d | link-vi|ews comm|
|000036b0| 61 6e 64 2e 20 52 65 74 | 75 72 6e 73 20 61 20 70 |and. Ret|urns a p|
|000036c0| 6c 6f 74 20 6f 62 6a 65 | 63 74 2e 0a 0a 5c 66 64 |lot obje|ct...\fd|
|000036d0| 6f 63 69 74 65 6d 7b 28 | 70 6c 6f 74 2d 70 6f 69 |ocitem{(|plot-poi|
|000036e0| 6e 74 73 20 78 20 79 20 | 5c 26 6b 65 79 20 28 74 |nts x y |\&key (t|
|000036f0| 69 74 6c 65 20 22 53 63 | 61 74 74 65 72 20 50 6c |itle "Sc|atter Pl|
|00003700| 6f 74 22 29 20 76 61 72 | 69 61 62 6c 65 2d 6c 61 |ot") var|iable-la|
|00003710| 62 65 6c 73 20 70 6f 69 | 6e 74 2d 6c 61 62 65 6c |bels poi|nt-label|
|00003720| 73 29 7d 0a 4f 70 65 6e | 73 20 61 20 77 69 6e 64 |s)}.Open|s a wind|
|00003730| 6f 77 20 77 69 74 68 20 | 61 20 73 63 61 74 74 65 |ow with |a scatte|
|00003740| 72 20 70 6c 6f 74 20 6f | 66 20 58 20 76 73 20 59 |r plot o|f X vs Y|
|00003750| 2c 20 77 68 65 72 65 20 | 58 20 61 6e 64 20 59 20 |, where |X and Y |
|00003760| 61 72 65 20 63 6f 6d 70 | 6f 75 6e 64 0a 6e 75 6d |are comp|ound.num|
|00003770| 62 65 72 2d 64 61 74 61 | 2e 20 56 41 52 49 41 42 |ber-data|. VARIAB|
|00003780| 4c 45 2d 4c 41 42 45 4c | 53 20 61 6e 64 20 50 4f |LE-LABEL|S and PO|
|00003790| 49 4e 54 2d 4c 41 42 45 | 4c 53 2c 20 69 66 20 73 |INT-LABE|LS, if s|
|000037a0| 75 70 70 6c 69 65 64 2c | 20 73 68 6f 75 6c 64 20 |upplied,| should |
|000037b0| 62 65 20 6c 69 73 74 73 | 20 6f 66 0a 63 68 61 72 |be lists| of.char|
|000037c0| 61 63 74 65 72 20 73 74 | 72 69 6e 67 73 2e 20 54 |acter st|rings. T|
|000037d0| 49 54 4c 45 20 69 73 20 | 74 68 65 20 77 69 6e 64 |ITLE is |the wind|
|000037e0| 6f 77 20 74 69 74 6c 65 | 2e 20 54 68 65 20 70 6c |ow title|. The pl|
|000037f0| 6f 74 20 63 61 6e 20 62 | 65 20 6c 69 6e 6b 65 64 |ot can b|e linked|
|00003800| 20 74 6f 0a 6f 74 68 65 | 72 20 70 6c 6f 74 73 20 | to.othe|r plots |
|00003810| 77 69 74 68 20 74 68 65 | 20 6c 69 6e 6b 2d 76 69 |with the| link-vi|
|00003820| 65 77 73 20 63 6f 6d 6d | 61 6e 64 2e 20 52 65 74 |ews comm|and. Ret|
|00003830| 75 72 6e 73 20 61 20 70 | 6c 6f 74 20 6f 62 6a 65 |urns a p|lot obje|
|00003840| 63 74 2e 0a 0a 5c 66 64 | 6f 63 69 74 65 6d 7b 28 |ct...\fd|ocitem{(|
|00003850| 70 72 6f 62 61 62 69 6c | 69 74 79 2d 70 6c 6f 74 |probabil|ity-plot|
|00003860| 20 64 61 74 61 20 5c 26 | 6b 65 79 20 28 64 69 73 | data \&|key (dis|
|00003870| 74 72 69 62 75 74 69 6f | 6e 2d 66 75 6e 63 74 69 |tributio|n-functi|
|00003880| 6f 6e 20 28 66 75 6e 63 | 74 69 6f 6e 20 6e 6f 72 |on (func|tion nor|
|00003890| 6d 61 6c 2d 63 64 66 29 | 29 20 28 74 69 74 6c 65 |mal-cdf)|) (title|
|000038a0| 20 22 50 72 6f 62 61 62 | 69 6c 69 74 79 20 50 6c | "Probab|ility Pl|
|000038b0| 6f 74 22 29 20 70 6f 69 | 6e 74 2d 6c 61 62 65 6c |ot") poi|nt-label|
|000038c0| 73 29 7d 0a 4e 6f 20 64 | 6f 63 75 6d 65 6e 74 61 |s)}.No d|ocumenta|
|000038d0| 74 69 6f 6e 20 61 76 61 | 69 6c 61 62 6c 65 20 79 |tion ava|ilable y|
|000038e0| 65 74 2e 0a 0a 5c 66 64 | 6f 63 69 74 65 6d 7b 28 |et...\fd|ocitem{(|
|000038f0| 71 75 61 6e 74 69 6c 65 | 2d 70 6c 6f 74 20 64 61 |quantile|-plot da|
|00003900| 74 61 20 5c 26 6b 65 79 | 20 28 71 75 61 6e 74 69 |ta \&key| (quanti|
|00003910| 6c 65 2d 66 75 6e 63 74 | 69 6f 6e 20 28 66 75 6e |le-funct|ion (fun|
|00003920| 63 74 69 6f 6e 20 6e 6f | 72 6d 61 6c 2d 71 75 61 |ction no|rmal-qua|
|00003930| 6e 74 29 29 20 28 74 69 | 74 6c 65 20 22 51 75 61 |nt)) (ti|tle "Qua|
|00003940| 6e 74 69 6c 65 20 50 6c | 6f 74 22 29 20 70 6f 69 |ntile Pl|ot") poi|
|00003950| 6e 74 2d 6c 61 62 65 6c | 73 29 7d 0a 4e 6f 20 64 |nt-label|s)}.No d|
|00003960| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 61 76 61 |ocumenta|tion ava|
|00003970| 69 6c 61 62 6c 65 20 79 | 65 74 2e 0a 0a 5c 66 64 |ilable y|et...\fd|
|00003980| 6f 63 69 74 65 6d 7b 28 | 73 63 61 74 74 65 72 70 |ocitem{(|scatterp|
|00003990| 6c 6f 74 2d 6d 61 74 72 | 69 78 20 64 61 74 61 20 |lot-matr|ix data |
|000039a0| 5c 26 6b 65 79 20 28 74 | 69 74 6c 65 20 22 53 70 |\&key (t|itle "Sp|
|000039b0| 69 6e 6e 69 6e 67 20 50 | 6c 6f 74 22 29 20 76 61 |inning P|lot") va|
|000039c0| 72 69 61 62 6c 65 2d 6c | 61 62 65 6c 73 20 70 6f |riable-l|abels po|
|000039d0| 69 6e 74 2d 6c 61 62 65 | 6c 73 20 28 73 63 61 6c |int-labe|ls (scal|
|000039e0| 65 20 74 29 29 7d 0a 44 | 41 54 41 20 69 73 20 61 |e t))}.D|ATA is a|
|000039f0| 20 6c 69 73 74 20 6f 66 | 20 74 77 6f 20 6f 72 20 | list of| two or |
|00003a00| 6d 6f 72 65 20 63 6f 6d | 70 6f 75 6e 64 20 6e 75 |more com|pound nu|
|00003a10| 6d 62 65 72 2d 64 61 74 | 61 20 6f 62 6a 65 63 74 |mber-dat|a object|
|00003a20| 73 20 6f 66 20 65 71 75 | 61 6c 20 6c 65 6e 67 74 |s of equ|al lengt|
|00003a30| 68 2e 0a 4f 70 65 6e 73 | 20 61 20 77 69 6e 64 6f |h..Opens| a windo|
|00003a40| 77 20 77 69 74 68 20 61 | 20 62 72 75 73 68 61 62 |w with a| brushab|
|00003a50| 6c 65 20 73 63 61 74 74 | 65 72 20 70 6c 6f 74 20 |le scatt|er plot |
|00003a60| 6d 61 74 72 69 78 20 6f | 66 20 74 68 65 20 65 6c |matrix o|f the el|
|00003a70| 65 6d 65 6e 74 73 20 6f | 66 20 44 41 54 41 2e 0a |ements o|f DATA..|
|00003a80| 56 41 52 49 41 42 4c 45 | 2d 4c 41 42 45 4c 53 20 |VARIABLE|-LABELS |
|00003a90| 61 6e 64 20 50 4f 49 4e | 54 2d 4c 41 42 45 4c 53 |and POIN|T-LABELS|
|00003aa0| 2c 20 69 66 20 73 75 70 | 70 6c 69 65 64 2c 20 73 |, if sup|plied, s|
|00003ab0| 68 6f 75 6c 64 20 62 65 | 20 6c 69 73 74 73 20 6f |hould be| lists o|
|00003ac0| 66 20 63 68 61 72 61 63 | 74 65 72 20 73 74 72 69 |f charac|ter stri|
|00003ad0| 6e 67 73 2e 0a 54 49 54 | 4c 45 20 69 73 20 74 68 |ngs..TIT|LE is th|
|00003ae0| 65 20 77 69 6e 64 6f 77 | 20 74 69 74 6c 65 2e 20 |e window| title. |
|00003af0| 49 66 20 73 63 61 6c 65 | 20 69 73 20 4e 49 4c 20 |If scale| is NIL |
|00003b00| 64 61 74 61 20 61 72 65 | 20 61 73 73 75 6d 65 64 |data are| assumed|
|00003b10| 20 74 6f 20 62 65 20 62 | 65 74 77 65 65 6e 20 2d | to be b|etween -|
|00003b20| 31 0a 61 6e 64 20 31 2e | 54 68 65 20 70 6c 6f 74 |1.and 1.|The plot|
|00003b30| 20 63 61 6e 20 62 65 20 | 6c 69 6e 6b 65 64 20 74 | can be |linked t|
|00003b40| 6f 20 6f 74 68 65 72 20 | 70 6c 6f 74 73 20 77 69 |o other |plots wi|
|00003b50| 74 68 20 74 68 65 20 6c | 69 6e 6b 2d 76 69 65 77 |th the l|ink-view|
|00003b60| 73 20 63 6f 6d 6d 61 6e | 64 2e 0a 52 65 74 75 72 |s comman|d..Retur|
|00003b70| 6e 73 20 61 20 70 6c 6f | 74 20 6f 62 6a 65 63 74 |ns a plo|t object|
|00003b80| 2e 0a 0a 5c 66 64 6f 63 | 69 74 65 6d 7b 28 73 70 |...\fdoc|item{(sp|
|00003b90| 69 6e 2d 66 75 6e 63 74 | 69 6f 6e 20 66 20 78 6d |in-funct|ion f xm|
|00003ba0| 69 6e 20 78 6d 61 78 20 | 79 6d 69 6e 20 79 6d 61 |in xmax |ymin yma|
|00003bb0| 78 20 5c 26 6f 70 74 69 | 6f 6e 61 6c 20 28 6e 75 |x \&opti|onal (nu|
|00003bc0| 6d 2d 70 6f 69 6e 74 73 | 20 36 29 29 7d 0a 52 6f |m-points| 6))}.Ro|
|00003bd0| 74 61 74 61 62 6c 65 20 | 70 6c 6f 74 20 6f 66 20 |tatable |plot of |
|00003be0| 66 75 6e 63 74 69 6f 6e | 20 46 20 6f 66 20 74 77 |function| F of tw|
|00003bf0| 6f 20 72 65 61 6c 20 76 | 61 72 69 61 62 6c 65 73 |o real v|ariables|
|00003c00| 20 6f 76 65 72 20 74 68 | 65 20 72 61 6e 67 65 0a | over th|e range.|
|00003c10| 62 65 74 77 65 65 6e 20 | 5b 78 6d 69 6e 2c 20 78 |between |[xmin, x|
|00003c20| 6d 61 78 5d 20 78 20 5b | 79 6d 69 6e 2c 20 79 6d |max] x [|ymin, ym|
|00003c30| 61 78 5d 2e 20 54 68 65 | 20 66 75 6e 63 74 69 6f |ax]. The| functio|
|00003c40| 6e 20 69 73 20 65 76 61 | 6c 75 61 74 65 64 20 61 |n is eva|luated a|
|00003c50| 74 0a 4e 55 4d 2d 50 4f | 49 4e 54 53 20 70 6f 69 |t.NUM-PO|INTS poi|
|00003c60| 6e 74 73 2e 0a 0a 5c 66 | 64 6f 63 69 74 65 6d 7b |nts...\f|docitem{|
|00003c70| 28 73 70 69 6e 2d 70 6c | 6f 74 20 64 61 74 61 20 |(spin-pl|ot data |
|00003c80| 5c 26 6b 65 79 20 28 74 | 69 74 6c 65 20 22 53 70 |\&key (t|itle "Sp|
|00003c90| 69 6e 6e 69 6e 67 20 50 | 6c 6f 74 22 29 20 76 61 |inning P|lot") va|
|00003ca0| 72 69 61 62 6c 65 2d 6c | 61 62 65 6c 73 20 70 6f |riable-l|abels po|
|00003cb0| 69 6e 74 2d 6c 61 62 65 | 6c 73 20 28 73 63 61 6c |int-labe|ls (scal|
|00003cc0| 65 20 74 29 29 7d 0a 44 | 41 54 41 20 69 73 20 61 |e t))}.D|ATA is a|
|00003cd0| 20 6c 69 73 74 20 6f 66 | 20 74 68 72 65 65 20 63 | list of| three c|
|00003ce0| 6f 6d 70 6f 75 6e 64 20 | 6e 75 6d 62 65 72 2d 64 |ompound |number-d|
|00003cf0| 61 74 61 20 6f 62 6a 65 | 63 74 73 20 6f 66 20 65 |ata obje|cts of e|
|00003d00| 71 75 61 6c 20 6c 65 6e | 67 74 68 2e 20 4f 70 65 |qual len|gth. Ope|
|00003d10| 6e 73 0a 61 20 77 69 6e | 64 6f 77 20 77 69 74 68 |ns.a win|dow with|
|00003d20| 20 61 20 72 6f 74 61 74 | 69 6e 67 20 70 6c 6f 74 | a rotat|ing plot|
|00003d30| 20 6f 66 20 74 68 65 20 | 74 68 72 65 65 20 65 6c | of the |three el|
|00003d40| 65 6d 65 6e 74 73 20 6f | 66 20 44 41 54 41 2e 20 |ements o|f DATA. |
|00003d50| 56 41 52 49 41 42 4c 45 | 2d 4c 41 42 45 4c 53 0a |VARIABLE|-LABELS.|
|00003d60| 61 6e 64 20 50 4f 49 4e | 54 2d 4c 41 42 45 4c 53 |and POIN|T-LABELS|
|00003d70| 2c 20 69 66 20 73 75 70 | 70 6c 69 65 64 2c 20 73 |, if sup|plied, s|
|00003d80| 68 6f 75 6c 64 20 62 65 | 20 6c 69 73 74 73 20 6f |hould be| lists o|
|00003d90| 66 20 63 68 61 72 61 63 | 74 65 72 20 73 74 72 69 |f charac|ter stri|
|00003da0| 6e 67 73 2e 20 54 49 54 | 4c 45 0a 69 73 20 74 68 |ngs. TIT|LE.is th|
|00003db0| 65 20 77 69 6e 64 6f 77 | 20 74 69 74 6c 65 2e 20 |e window| title. |
|00003dc0| 49 66 20 73 63 61 6c 65 | 20 69 73 20 4e 49 4c 20 |If scale| is NIL |
|00003dd0| 64 61 74 61 20 61 72 65 | 20 61 73 73 75 6d 65 64 |data are| assumed|
|00003de0| 20 74 6f 20 62 65 20 62 | 65 74 77 65 65 6e 20 2d | to be b|etween -|
|00003df0| 31 20 61 6e 64 20 31 2e | 0a 54 68 65 20 70 6c 6f |1 and 1.|.The plo|
|00003e00| 74 20 63 61 6e 20 62 65 | 20 6c 69 6e 6b 65 64 20 |t can be| linked |
|00003e10| 74 6f 20 6f 74 68 65 72 | 20 70 6c 6f 74 73 20 77 |to other| plots w|
|00003e20| 69 74 68 20 74 68 65 20 | 6c 69 6e 6b 2d 76 69 65 |ith the |link-vie|
|00003e30| 77 73 20 63 6f 6d 6d 61 | 6e 64 2e 20 52 65 74 75 |ws comma|nd. Retu|
|00003e40| 72 6e 73 0a 61 20 70 6c | 6f 74 20 6f 62 6a 65 63 |rns.a pl|ot objec|
|00003e50| 74 2e 0a 0a 5c 66 64 6f | 63 69 74 65 6d 7b 28 75 |t...\fdo|citem{(u|
|00003e60| 6e 6c 69 6e 6b 2d 76 69 | 65 77 73 20 5c 26 72 65 |nlink-vi|ews \&re|
|00003e70| 73 74 20 70 6c 6f 74 73 | 29 7d 0a 52 65 6d 6f 76 |st plots|)}.Remov|
|00003e80| 65 73 20 6c 69 6e 6b 73 | 20 74 6f 20 69 74 73 20 |es links| to its |
|00003e90| 61 72 67 75 6d 65 6e 74 | 73 2e 20 57 69 74 68 20 |argument|s. With |
|00003ea0| 6e 6f 20 61 72 67 75 6d | 65 6e 74 73 20 72 65 6d |no argum|ents rem|
|00003eb0| 6f 76 65 73 20 61 6c 6c | 20 6c 69 6e 6b 73 2e 0a |oves all| links..|
|00003ec0| 0a 0a 5c 65 6e 64 7b 6c | 69 73 70 64 6f 63 7d 0a |..\end{l|ispdoc}.|
|00003ed0| 0a 5c 73 75 62 73 65 63 | 74 69 6f 6e 7b 4f 62 6a |.\subsec|tion{Obj|
|00003ee0| 65 63 74 20 4d 65 74 68 | 6f 64 73 7d 0a 0a 5c 73 |ect Meth|ods}..\s|
|00003ef0| 75 62 73 75 62 73 65 63 | 74 69 6f 6e 7b 52 65 67 |ubsubsec|tion{Reg|
|00003f00| 72 65 73 73 69 6f 6e 20 | 4d 65 74 68 6f 64 73 7d |ression |Methods}|
|00003f10| 0a 0a 5c 62 65 67 69 6e | 7b 6c 69 73 70 64 6f 63 |..\begin|{lispdoc|
|00003f20| 7d 0a 5c 6f 64 6f 63 69 | 74 65 6d 7b 3a 62 61 73 |}.\odoci|tem{:bas|
|00003f30| 69 73 20 7d 0a 52 65 74 | 75 72 6e 73 20 74 68 65 |is }.Ret|urns the|
|00003f40| 20 69 6e 64 69 63 65 73 | 20 6f 66 20 74 68 65 20 | indices| of the |
|00003f50| 76 61 72 69 61 62 6c 65 | 73 20 75 73 65 64 20 69 |variable|s used i|
|00003f60| 6e 20 66 69 74 74 69 6e | 67 20 74 68 65 20 6d 6f |n fittin|g the mo|
|00003f70| 64 65 6c 2e 0a 0a 5c 6f | 64 6f 63 69 74 65 6d 7b |del...\o|docitem{|
|00003f80| 3a 63 6f 65 66 2d 65 73 | 74 69 6d 61 74 65 73 20 |:coef-es|timates |
|00003f90| 7d 0a 52 65 74 75 72 6e | 73 20 74 68 65 20 4f 4c |}.Return|s the OL|
|00003fa0| 53 20 28 6f 72 64 69 6e | 61 72 79 20 6c 65 61 73 |S (ordin|ary leas|
|00003fb0| 74 20 73 71 75 61 72 65 | 73 29 20 65 73 74 69 6d |t square|s) estim|
|00003fc0| 61 74 65 73 20 6f 66 20 | 74 68 65 20 72 65 67 72 |ates of |the regr|
|00003fd0| 65 73 73 69 6f 6e 0a 63 | 6f 65 66 66 69 63 69 65 |ession.c|oefficie|
|00003fe0| 6e 74 73 2e 20 45 6e 74 | 72 69 65 73 20 62 65 79 |nts. Ent|ries bey|
|00003ff0| 6f 6e 64 20 74 68 65 20 | 69 6e 74 65 72 63 65 70 |ond the |intercep|
|00004000| 74 20 63 6f 72 72 65 73 | 70 6f 6e 64 20 74 6f 20 |t corres|pond to |
|00004010| 65 6e 74 72 69 65 73 20 | 69 6e 20 62 61 73 69 73 |entries |in basis|
|00004020| 2e 0a 0a 5c 6f 64 6f 63 | 69 74 65 6d 7b 3a 63 6f |...\odoc|item{:co|
|00004030| 65 66 2d 73 74 61 6e 64 | 61 72 64 2d 65 72 72 6f |ef-stand|ard-erro|
|00004040| 72 73 20 7d 0a 52 65 74 | 75 72 6e 73 20 65 73 74 |rs }.Ret|urns est|
|00004050| 69 6d 61 74 65 64 20 73 | 74 61 6e 64 61 72 64 20 |imated s|tandard |
|00004060| 65 72 72 6f 72 73 20 6f | 66 20 63 6f 65 66 66 69 |errors o|f coeffi|
|00004070| 63 69 65 6e 74 73 2e 20 | 45 6e 74 72 69 65 73 20 |cients. |Entries |
|00004080| 62 65 79 6f 6e 64 20 74 | 68 65 0a 69 6e 74 65 72 |beyond t|he.inter|
|00004090| 63 65 70 74 20 63 6f 72 | 72 65 73 70 6f 6e 64 20 |cept cor|respond |
|000040a0| 74 6f 20 65 6e 74 72 69 | 65 73 20 69 6e 20 62 61 |to entri|es in ba|
|000040b0| 73 69 73 2e 0a 0a 5c 6f | 64 6f 63 69 74 65 6d 7b |sis...\o|docitem{|
|000040c0| 3a 64 66 20 7d 0a 52 65 | 74 75 72 6e 73 20 74 68 |:df }.Re|turns th|
|000040d0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 64 65 67 72 |e number| of degr|
|000040e0| 65 65 73 20 6f 66 20 66 | 72 65 65 64 6f 6d 20 69 |ees of f|reedom i|
|000040f0| 6e 20 74 68 65 20 6d 6f | 64 65 6c 2e 0a 0a 5c 6f |n the mo|del...\o|
|00004100| 64 6f 63 69 74 65 6d 7b | 3a 64 69 73 70 6c 61 79 |docitem{|:display|
|00004110| 20 7d 0a 50 72 69 6e 74 | 73 20 74 68 65 20 6c 65 | }.Print|s the le|
|00004120| 61 73 74 20 73 71 75 61 | 72 65 73 20 72 65 67 72 |ast squa|res regr|
|00004130| 65 73 73 69 6f 6e 20 73 | 75 6d 6d 61 72 79 2e 20 |ession s|ummary. |
|00004140| 56 61 72 69 61 62 6c 65 | 73 20 6e 6f 74 20 75 73 |Variable|s not us|
|00004150| 65 64 20 69 6e 20 74 68 | 65 20 66 69 74 0a 61 72 |ed in th|e fit.ar|
|00004160| 65 20 6d 61 72 6b 65 64 | 20 61 73 20 61 6c 69 61 |e marked| as alia|
|00004170| 73 65 64 2e 0a 0a 5c 6f | 64 6f 63 69 74 65 6d 7b |sed...\o|docitem{|
|00004180| 3a 66 69 74 2d 76 61 6c | 75 65 73 20 7d 0a 52 65 |:fit-val|ues }.Re|
|00004190| 74 75 72 6e 73 20 74 68 | 65 20 66 69 74 74 65 64 |turns th|e fitted|
|000041a0| 20 76 61 6c 75 65 73 20 | 66 6f 72 20 74 68 65 20 | values |for the |
|000041b0| 6d 6f 64 65 6c 2e 0a 0a | 5c 6f 64 6f 63 69 74 65 |model...|\odocite|
|000041c0| 6d 7b 3a 69 6e 74 65 72 | 63 65 70 74 20 5c 26 6f |m{:inter|cept \&o|
|000041d0| 70 74 69 6f 6e 61 6c 20 | 6e 65 77 2d 69 6e 74 65 |ptional |new-inte|
|000041e0| 72 63 65 70 74 20 7d 0a | 57 69 74 68 20 6e 6f 20 |rcept }.|With no |
|000041f0| 61 72 67 75 6d 65 6e 74 | 20 72 65 74 75 72 6e 73 |argument| returns|
|00004200| 20 54 20 69 66 20 74 68 | 65 20 6d 6f 64 65 6c 20 | T if th|e model |
|00004210| 69 6e 63 6c 75 64 65 73 | 20 61 6e 20 69 6e 74 65 |includes| an inte|
|00004220| 72 63 65 70 74 20 74 65 | 72 6d 2c 20 6e 69 6c 20 |rcept te|rm, nil |
|00004230| 69 66 0a 6e 6f 74 2e 20 | 57 69 74 68 20 61 6e 20 |if.not. |With an |
|00004240| 61 72 67 75 6d 65 6e 74 | 20 4e 45 57 2d 49 4e 54 |argument| NEW-INT|
|00004250| 45 52 43 45 50 54 20 74 | 68 65 20 6d 6f 64 65 6c |ERCEPT t|he model|
|00004260| 20 69 73 20 63 68 61 6e | 67 65 64 20 74 6f 20 69 | is chan|ged to i|
|00004270| 6e 63 6c 75 64 65 20 6f | 72 20 65 78 63 6c 75 64 |nclude o|r exclud|
|00004280| 65 0a 61 6e 20 69 6e 74 | 65 72 63 65 70 74 2c 20 |e.an int|ercept, |
|00004290| 61 63 63 6f 72 64 69 6e | 67 20 74 6f 20 74 68 65 |accordin|g to the|
|000042a0| 20 76 61 6c 75 65 20 6f | 66 20 4e 45 57 2d 49 4e | value o|f NEW-IN|
|000042b0| 54 45 52 43 45 50 54 2c | 20 61 6e 64 20 65 73 74 |TERCEPT,| and est|
|000042c0| 69 6d 61 74 65 73 20 61 | 72 65 0a 72 65 63 6f 6d |imates a|re.recom|
|000042d0| 70 75 74 65 64 2e 0a 0a | 5c 6f 64 6f 63 69 74 65 |puted...|\odocite|
|000042e0| 6d 7b 3a 6c 65 76 65 72 | 61 67 65 73 20 7d 0a 52 |m{:lever|ages }.R|
|000042f0| 65 74 75 72 6e 73 20 74 | 68 65 20 64 69 61 67 6f |eturns t|he diago|
|00004300| 6e 61 6c 20 65 6c 65 6d | 65 6e 74 73 20 6f 66 20 |nal elem|ents of |
|00004310| 74 68 65 20 68 61 74 20 | 6d 61 74 72 69 78 2e 0a |the hat |matrix..|
|00004320| 0a 5c 6f 64 6f 63 69 74 | 65 6d 7b 3a 6e 75 6d 2d |.\odocit|em{:num-|
|00004330| 63 61 73 65 73 20 7d 0a | 52 65 74 75 72 6e 73 20 |cases }.|Returns |
|00004340| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 63 61 |the numb|er of ca|
|00004350| 73 65 73 20 69 6e 20 74 | 68 65 20 6d 6f 64 65 6c |ses in t|he model|
|00004360| 2e 0a 0a 5c 6f 64 6f 63 | 69 74 65 6d 7b 3a 6e 75 |...\odoc|item{:nu|
|00004370| 6d 2d 63 6f 65 66 73 20 | 7d 0a 52 65 74 75 72 6e |m-coefs |}.Return|
|00004380| 73 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |s the nu|mber of |
|00004390| 63 6f 65 66 66 69 63 69 | 65 6e 74 73 20 69 6e 20 |coeffici|ents in |
|000043a0| 74 68 65 20 66 69 74 20 | 6d 6f 64 65 6c 20 28 69 |the fit |model (i|
|000043b0| 6e 63 6c 75 64 69 6e 67 | 20 74 68 65 0a 69 6e 74 |ncluding| the.int|
|000043c0| 65 72 63 65 70 74 20 69 | 66 20 74 68 65 20 6d 6f |ercept i|f the mo|
|000043d0| 64 65 6c 20 69 6e 63 6c | 75 64 65 73 20 6f 6e 65 |del incl|udes one|
|000043e0| 29 2e 0a 0a 5c 6f 64 6f | 63 69 74 65 6d 7b 3a 70 |)...\odo|citem{:p|
|000043f0| 6c 6f 74 2d 62 61 79 65 | 73 2d 72 65 73 69 64 75 |lot-baye|s-residu|
|00004400| 61 6c 73 20 5c 26 6f 70 | 74 69 6f 6e 61 6c 20 78 |als \&op|tional x|
|00004410| 2d 76 61 6c 75 65 73 20 | 7d 0a 4f 70 65 6e 73 20 |-values |}.Opens |
|00004420| 61 20 77 69 6e 64 6f 77 | 20 77 69 74 68 20 61 20 |a window| with a |
|00004430| 70 6c 6f 74 20 6f 66 20 | 74 68 65 20 73 74 61 6e |plot of |the stan|
|00004440| 64 61 72 64 69 7a 65 64 | 20 72 65 73 69 64 75 61 |dardized| residua|
|00004450| 6c 73 20 61 6e 64 20 74 | 77 6f 20 73 74 61 6e 64 |ls and t|wo stand|
|00004460| 61 72 64 0a 65 72 72 6f | 72 20 62 61 72 73 20 66 |ard.erro|r bars f|
|00004470| 6f 72 20 74 68 65 20 70 | 6f 73 74 65 72 69 6f 72 |or the p|osterior|
|00004480| 20 64 69 73 74 72 69 62 | 75 74 69 6f 6e 20 6f 66 | distrib|ution of|
|00004490| 20 74 68 65 20 61 63 74 | 75 61 6c 20 64 65 76 69 | the act|ual devi|
|000044a0| 61 74 69 6f 6e 73 20 66 | 72 6f 6d 20 74 68 65 0a |ations f|rom the.|
|000044b0| 6c 69 6e 65 2e 20 53 65 | 65 20 43 68 61 6c 6f 6e |line. Se|e Chalon|
|000044c0| 65 72 20 61 6e 64 20 42 | 72 61 6e 74 2e 20 49 66 |er and B|rant. If|
|000044d0| 20 58 2d 56 41 4c 55 45 | 53 20 61 72 65 20 6e 6f | X-VALUE|S are no|
|000044e0| 74 20 73 75 70 70 6c 69 | 65 64 20 20 74 68 65 20 |t suppli|ed the |
|000044f0| 66 69 74 74 65 64 20 76 | 61 6c 75 65 73 0a 61 72 |fitted v|alues.ar|
|00004500| 65 20 75 73 65 64 2e 20 | 54 68 65 20 70 6c 6f 74 |e used. |The plot|
|00004510| 20 63 61 6e 20 62 65 20 | 6c 69 6e 6b 65 64 20 74 | can be |linked t|
|00004520| 6f 20 6f 74 68 65 72 20 | 70 6c 6f 74 73 20 77 69 |o other |plots wi|
|00004530| 74 68 20 74 68 65 20 6c | 69 6e 6b 2d 76 69 65 77 |th the l|ink-view|
|00004540| 73 20 66 75 6e 63 74 69 | 6f 6e 2e 0a 52 65 74 75 |s functi|on..Retu|
|00004550| 72 6e 73 20 61 20 70 6c | 6f 74 20 6f 62 6a 65 63 |rns a pl|ot objec|
|00004560| 74 2e 0a 0a 5c 6f 64 6f | 63 69 74 65 6d 7b 3a 70 |t...\odo|citem{:p|
|00004570| 6c 6f 74 2d 72 65 73 69 | 64 75 61 6c 73 20 5c 26 |lot-resi|duals \&|
|00004580| 6f 70 74 69 6f 6e 61 6c | 20 78 2d 76 61 6c 75 65 |optional| x-value|
|00004590| 73 20 7d 0a 4f 70 65 6e | 73 20 61 20 77 69 6e 64 |s }.Open|s a wind|
|000045a0| 6f 77 20 77 69 74 68 20 | 61 20 70 6c 6f 74 20 6f |ow with |a plot o|
|000045b0| 66 20 74 68 65 20 72 65 | 73 69 64 75 61 6c 73 2e |f the re|siduals.|
|000045c0| 20 49 66 20 58 2d 56 41 | 4c 55 45 53 20 61 72 65 | If X-VA|LUES are|
|000045d0| 20 6e 6f 74 20 73 75 70 | 70 6c 69 65 64 20 0a 74 | not sup|plied .t|
|000045e0| 68 65 20 66 69 74 74 65 | 64 20 76 61 6c 75 65 73 |he fitte|d values|
|000045f0| 20 61 72 65 20 75 73 65 | 64 2e 20 54 68 65 20 70 | are use|d. The p|
|00004600| 6c 6f 74 20 63 61 6e 20 | 62 65 20 6c 69 6e 6b 65 |lot can |be linke|
|00004610| 64 20 74 6f 20 6f 74 68 | 65 72 20 70 6c 6f 74 73 |d to oth|er plots|
|00004620| 20 77 69 74 68 20 74 68 | 65 20 0a 6c 69 6e 6b 2d | with th|e .link-|
|00004630| 76 69 65 77 73 20 66 75 | 6e 63 74 69 6f 6e 2e 20 |views fu|nction. |
|00004640| 52 65 74 75 72 6e 73 20 | 61 20 70 6c 6f 74 20 6f |Returns |a plot o|
|00004650| 62 6a 65 63 74 2e 0a 0a | 5c 6f 64 6f 63 69 74 65 |bject...|\odocite|
|00004660| 6d 7b 3a 72 2d 73 71 75 | 61 72 65 64 20 7d 0a 52 |m{:r-squ|ared }.R|
|00004670| 65 74 75 72 6e 73 20 74 | 68 65 20 73 61 6d 70 6c |eturns t|he sampl|
|00004680| 65 20 73 71 75 61 72 65 | 64 20 6d 75 6c 74 69 70 |e square|d multip|
|00004690| 6c 65 20 63 6f 72 72 65 | 6c 61 74 69 6f 6e 20 63 |le corre|lation c|
|000046a0| 6f 65 66 66 69 63 69 65 | 6e 74 2c 20 52 20 73 71 |oefficie|nt, R sq|
|000046b0| 75 61 72 65 64 2c 20 66 | 6f 72 0a 74 68 65 20 72 |uared, f|or.the r|
|000046c0| 65 67 72 65 73 73 69 6f | 6e 2e 0a 0a 5c 6f 64 6f |egressio|n...\odo|
|000046d0| 63 69 74 65 6d 7b 3a 72 | 65 73 69 64 75 61 6c 73 |citem{:r|esiduals|
|000046e0| 20 7d 0a 52 65 74 75 72 | 6e 73 20 74 68 65 20 72 | }.Retur|ns the r|
|000046f0| 61 77 20 72 65 73 69 64 | 75 61 6c 73 20 66 6f 72 |aw resid|uals for|
|00004700| 20 61 20 6d 6f 64 65 6c | 20 77 69 74 68 6f 75 74 | a model| without|
|00004710| 20 77 65 69 67 68 74 73 | 2e 20 49 66 20 74 68 65 | weights|. If the|
|00004720| 20 6d 6f 64 65 6c 0a 69 | 6e 63 6c 75 64 65 73 20 | model.i|ncludes |
|00004730| 77 65 69 67 68 74 73 20 | 74 68 65 20 72 61 77 20 |weights |the raw |
|00004740| 72 65 73 69 64 75 61 6c | 73 20 74 69 6d 65 73 20 |residual|s times |
|00004750| 74 68 65 20 73 71 75 61 | 72 65 20 72 6f 6f 74 73 |the squa|re roots|
|00004760| 20 6f 66 20 74 68 65 20 | 77 65 69 67 68 74 73 0a | of the |weights.|
|00004770| 61 72 65 20 72 65 74 75 | 72 6e 65 64 2e 0a 0a 5c |are retu|rned...\|
|00004780| 6f 64 6f 63 69 74 65 6d | 7b 3a 73 69 67 6d 61 2d |odocitem|{:sigma-|
|00004790| 68 61 74 20 7d 0a 52 65 | 74 75 72 6e 73 20 74 68 |hat }.Re|turns th|
|000047a0| 65 20 65 73 74 69 6d 61 | 74 65 64 20 73 74 61 6e |e estima|ted stan|
|000047b0| 64 61 72 64 20 64 65 76 | 69 61 74 69 6f 6e 20 6f |dard dev|iation o|
|000047c0| 66 20 74 68 65 20 64 65 | 76 69 61 74 69 6f 6e 73 |f the de|viations|
|000047d0| 20 61 62 6f 75 74 20 74 | 68 65 20 0a 72 65 67 72 | about t|he .regr|
|000047e0| 65 73 73 69 6f 6e 20 6c | 69 6e 65 2e 0a 0a 5c 6f |ession l|ine...\o|
|000047f0| 64 6f 63 69 74 65 6d 7b | 3a 73 75 6d 2d 6f 66 2d |docitem{|:sum-of-|
|00004800| 73 71 75 61 72 65 73 20 | 7d 0a 52 65 74 75 72 6e |squares |}.Return|
|00004810| 73 20 74 68 65 20 65 72 | 72 6f 72 20 73 75 6d 20 |s the er|ror sum |
|00004820| 6f 66 20 73 71 75 61 72 | 65 73 20 66 6f 72 20 74 |of squar|es for t|
|00004830| 68 65 20 6d 6f 64 65 6c | 2e 0a 0a 5c 6f 64 6f 63 |he model|...\odoc|
|00004840| 69 74 65 6d 7b 3a 77 65 | 69 67 68 74 73 20 5c 26 |item{:we|ights \&|
|00004850| 6f 70 74 69 6f 6e 61 6c | 20 6e 65 77 2d 77 20 7d |optional| new-w }|
|00004860| 0a 57 69 74 68 20 6e 6f | 20 61 72 67 75 6d 65 6e |.With no| argumen|
|00004870| 74 20 72 65 74 75 72 6e | 73 20 74 68 65 20 77 65 |t return|s the we|
|00004880| 69 67 68 74 20 73 65 71 | 75 65 6e 63 65 20 61 73 |ight seq|uence as|
|00004890| 20 73 75 70 70 6c 69 65 | 64 20 74 6f 20 6d 3b 20 | supplie|d to m; |
|000048a0| 4e 49 4c 20 6d 65 61 6e | 73 0a 61 6e 73 20 75 6e |NIL mean|s.ans un|
|000048b0| 77 65 69 67 68 74 65 64 | 20 6d 6f 64 65 6c 2e 20 |weighted| model. |
|000048c0| 4e 45 57 2d 57 20 73 65 | 74 73 20 74 68 65 20 77 |NEW-W se|ts the w|
|000048d0| 65 69 67 68 74 73 20 73 | 65 71 75 65 6e 63 65 20 |eights s|equence |
|000048e0| 74 6f 20 4e 45 57 2d 57 | 20 61 6e 64 0a 72 65 63 |to NEW-W| and.rec|
|000048f0| 6f 6d 70 75 74 65 73 20 | 74 68 65 20 65 73 74 69 |omputes |the esti|
|00004900| 6d 61 74 65 73 2e 0a 0a | 5c 6f 64 6f 63 69 74 65 |mates...|\odocite|
|00004910| 6d 7b 3a 78 2d 6d 61 74 | 72 69 78 20 7d 0a 52 65 |m{:x-mat|rix }.Re|
|00004920| 74 75 72 6e 73 20 74 68 | 65 20 58 20 6d 61 74 72 |turns th|e X matr|
|00004930| 69 78 20 66 6f 72 20 74 | 68 65 20 6d 6f 64 65 6c |ix for t|he model|
|00004940| 2c 20 69 6e 63 6c 75 64 | 69 6e 67 20 61 20 63 6f |, includ|ing a co|
|00004950| 6c 75 6d 6e 20 6f 66 20 | 31 27 73 2c 20 69 66 0a |lumn of |1's, if.|
|00004960| 61 70 70 72 6f 70 72 69 | 61 74 65 2e 20 43 6f 6c |appropri|ate. Col|
|00004970| 75 6d 6e 73 20 6f 66 20 | 58 20 6d 61 74 72 69 78 |umns of |X matrix|
|00004980| 20 63 6f 72 72 65 73 70 | 6f 6e 64 20 74 6f 20 65 | corresp|ond to e|
|00004990| 6e 74 72 69 65 73 20 69 | 6e 20 62 61 73 69 73 2e |ntries i|n basis.|
|000049a0| 0a 0a 5c 6f 64 6f 63 69 | 74 65 6d 7b 3a 78 74 78 |..\odoci|tem{:xtx|
|000049b0| 69 6e 76 20 7d 0a 52 65 | 74 75 72 6e 73 20 28 69 |inv }.Re|turns (i|
|000049c0| 6e 76 65 72 73 65 20 28 | 6d 61 74 6d 75 6c 74 20 |nverse (|matmult |
|000049d0| 28 74 72 61 6e 73 70 6f | 73 65 20 28 73 65 6e 64 |(transpo|se (send|
|000049e0| 20 73 65 6c 66 20 3a 78 | 2d 6d 61 74 72 69 78 29 | self :x|-matrix)|
|000049f0| 29 20 28 73 65 6e 64 20 | 73 65 6c 66 20 3a 78 2d |) (send |self :x-|
|00004a00| 6d 61 74 72 69 78 29 29 | 29 2e 0a 0a 0a 5c 65 6e |matrix))|)....\en|
|00004a10| 64 7b 6c 69 73 70 64 6f | 63 7d 0a 0a 5c 73 75 62 |d{lispdo|c}..\sub|
|00004a20| 73 75 62 73 65 63 74 69 | 6f 6e 7b 47 65 6e 65 72 |subsecti|on{Gener|
|00004a30| 61 6c 20 50 6c 6f 74 20 | 4d 65 74 68 6f 64 73 7d |al Plot |Methods}|
|00004a40| 0a 0a 5c 62 65 67 69 6e | 7b 6c 69 73 70 64 6f 63 |..\begin|{lispdoc|
|00004a50| 7d 0a 5c 6f 64 6f 63 69 | 74 65 6d 7b 3a 61 64 64 |}.\odoci|tem{:add|
|00004a60| 2d 6c 69 6e 65 73 20 6c | 69 6e 65 73 20 5c 26 6b |-lines l|ines \&k|
|00004a70| 65 79 20 74 79 70 65 20 | 28 64 72 61 77 20 74 29 |ey type |(draw t)|
|00004a80| 20 7d 0a 41 64 64 73 20 | 6c 69 6e 65 73 20 74 6f | }.Adds |lines to|
|00004a90| 20 70 6c 6f 74 2e 20 4c | 49 4e 45 53 20 69 73 20 | plot. L|INES is |
|00004aa0| 61 20 6c 69 73 74 20 6f | 66 20 73 65 71 75 65 6e |a list o|f sequen|
|00004ab0| 63 65 73 2c 20 74 68 65 | 20 63 6f 6f 72 64 69 6e |ces, the| coordin|
|00004ac0| 61 74 65 73 20 6f 66 20 | 74 68 65 20 6c 69 6e 65 |ates of |the line|
|00004ad0| 20 73 74 61 72 74 73 2e | 0a 54 59 50 45 20 69 73 | starts.|.TYPE is|
|00004ae0| 20 6e 6f 72 6d 61 6c 20 | 6f 72 20 64 61 73 68 65 | normal |or dashe|
|00004af0| 64 2e 20 49 66 20 44 52 | 41 57 20 69 73 20 74 72 |d. If DR|AW is tr|
|00004b00| 75 65 20 74 68 65 20 6e | 65 77 20 6c 69 6e 65 73 |ue the n|ew lines|
|00004b10| 20 61 72 65 20 61 64 64 | 65 64 20 74 6f 20 74 68 | are add|ed to th|
|00004b20| 65 20 73 63 72 65 65 6e | 2e 0a 0a 5c 6f 64 6f 63 |e screen|...\odoc|
|00004b30| 69 74 65 6d 7b 3a 61 64 | 64 2d 70 6f 69 6e 74 73 |item{:ad|d-points|
|00004b40| 20 70 6f 69 6e 74 73 20 | 5c 26 6b 65 79 20 70 6f | points |\&key po|
|00004b50| 69 6e 74 2d 6c 61 62 65 | 6c 73 20 28 64 72 61 77 |int-labe|ls (draw|
|00004b60| 20 74 29 20 7d 0a 41 64 | 64 73 20 70 6f 69 6e 74 | t) }.Ad|ds point|
|00004b70| 73 20 74 6f 20 70 6c 6f | 74 2e 20 50 4f 49 4e 54 |s to plo|t. POINT|
|00004b80| 53 20 69 73 20 61 20 6c | 69 73 74 20 6f 66 20 73 |S is a l|ist of s|
|00004b90| 65 71 75 65 6e 63 65 73 | 2c 20 50 4f 49 4e 54 2d |equences|, POINT-|
|00004ba0| 4c 41 42 45 4c 53 20 61 | 20 6c 69 73 74 20 6f 66 |LABELS a| list of|
|00004bb0| 0a 73 74 72 69 6e 67 73 | 2e 20 49 66 20 44 52 41 |.strings|. If DRA|
|00004bc0| 57 20 69 73 20 74 72 75 | 65 20 74 68 65 20 6e 65 |W is tru|e the ne|
|00004bd0| 77 20 70 6f 69 6e 74 73 | 20 61 72 65 20 61 64 64 |w points| are add|
|00004be0| 65 64 20 74 6f 20 74 68 | 65 20 73 63 72 65 65 6e |ed to th|e screen|
|00004bf0| 2e 0a 0a 5c 6f 64 6f 63 | 69 74 65 6d 7b 3a 61 64 |...\odoc|item{:ad|
|00004c00| 6a 75 73 74 2d 74 6f 2d | 64 61 74 61 20 5c 26 6b |just-to-|data \&k|
|00004c10| 65 79 20 28 64 72 61 77 | 20 74 29 20 7d 0a 53 65 |ey (draw| t) }.Se|
|00004c20| 74 73 20 72 61 6e 67 65 | 73 20 74 6f 20 74 68 65 |ts range|s to the|
|00004c30| 20 61 63 74 75 61 6c 20 | 72 61 6e 67 65 20 6f 66 | actual |range of|
|00004c40| 20 76 61 72 69 61 62 6c | 65 73 20 69 6e 20 74 68 | variabl|es in th|
|00004c50| 65 20 6f 72 69 67 69 6e | 61 6c 20 63 6f 6f 72 64 |e origin|al coord|
|00004c60| 69 6e 61 74 65 0a 73 79 | 73 74 65 6d 2e 20 49 66 |inate.sy|stem. If|
|00004c70| 20 44 52 41 57 20 69 73 | 20 74 72 75 65 20 73 65 | DRAW is| true se|
|00004c80| 6e 64 73 20 3a 52 45 53 | 49 5a 45 20 61 6e 64 20 |nds :RES|IZE and |
|00004c90| 3a 52 45 44 52 41 57 20 | 6d 65 73 73 61 67 65 73 |:REDRAW |messages|
|00004ca0| 2e 0a 0a 5c 6f 64 6f 63 | 69 74 65 6d 7b 3a 61 6c |...\odoc|item{:al|
|00004cb0| 6c 2d 70 6f 69 6e 74 73 | 2d 73 68 6f 77 69 6e 67 |l-points|-showing|
|00004cc0| 2d 70 20 7d 0a 4e 6f 20 | 64 6f 63 75 6d 65 6e 74 |-p }.No |document|
|00004cd0| 61 74 69 6f 6e 20 61 76 | 61 69 6c 61 62 6c 65 20 |ation av|ailable |
|00004ce0| 79 65 74 2e 0a 0a 5c 6f | 64 6f 63 69 74 65 6d 7b |yet...\o|docitem{|
|00004cf0| 3a 61 6c 6c 2d 70 6f 69 | 6e 74 73 2d 75 6e 6d 61 |:all-poi|nts-unma|
|00004d00| 73 6b 65 64 2d 70 20 7d | 0a 4e 6f 20 64 6f 63 75 |sked-p }|.No docu|
|00004d10| 6d 65 6e 74 61 74 69 6f | 6e 20 61 76 61 69 6c 61 |mentatio|n availa|
|00004d20| 62 6c 65 20 79 65 74 2e | 0a 0a 5c 6f 64 6f 63 69 |ble yet.|..\odoci|
|00004d30| 74 65 6d 7b 3a 61 6e 79 | 2d 70 6f 69 6e 74 73 2d |tem{:any|-points-|
|00004d40| 73 65 6c 65 63 74 65 64 | 2d 70 20 7d 0a 4e 6f 20 |selected|-p }.No |
|00004d50| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 20 61 76 |document|ation av|
|00004d60| 61 69 6c 61 62 6c 65 20 | 79 65 74 2e 0a 0a 5c 6f |ailable |yet...\o|
|00004d70| 64 6f 63 69 74 65 6d 7b | 3a 61 70 70 6c 79 2d 74 |docitem{|:apply-t|
|00004d80| 72 61 6e 73 66 6f 72 6d | 61 74 69 6f 6e 20 61 20 |ransform|ation a |
|00004d90| 5c 26 6b 65 79 20 64 72 | 61 77 20 7d 0a 41 70 70 |\&key dr|aw }.App|
|00004da0| 6c 69 65 73 20 6d 61 74 | 72 69 78 20 41 20 74 6f |lies mat|rix A to|
|00004db0| 20 63 75 72 72 65 6e 74 | 20 74 72 61 6e 73 66 6f | current| transfo|
|00004dc0| 72 6d 61 74 69 6f 6e 2e | 20 49 66 20 64 72 61 77 |rmation.| If draw|
|00004dd0| 20 69 73 20 74 72 75 65 | 20 74 68 65 20 3a 52 45 | is true| the :RE|
|00004de0| 44 52 41 57 2d 43 4f 4e | 54 45 4e 54 0a 6d 65 73 |DRAW-CON|TENT.mes|
|00004df0| 73 61 67 65 20 69 73 20 | 73 65 6e 74 2e 0a 0a 5c |sage is |sent...\|
|00004e00| 6f 64 6f 63 69 74 65 6d | 7b 3a 63 6c 65 61 72 20 |odocitem|{:clear |
|00004e10| 5c 26 6f 70 74 69 6f 6e | 61 6c 20 28 64 72 61 77 |\&option|al (draw|
|00004e20| 20 74 29 20 7d 0a 43 6c | 65 61 72 73 20 74 68 65 | t) }.Cl|ears the|
|00004e30| 20 70 6c 6f 74 20 64 61 | 74 61 2e 20 49 66 20 44 | plot da|ta. If D|
|00004e40| 52 41 57 20 69 73 20 6e | 69 6c 20 74 68 65 20 70 |RAW is n|il the p|
|00004e50| 6c 6f 74 20 69 73 20 72 | 65 64 72 61 77 6e 3b 20 |lot is r|edrawn; |
|00004e60| 6f 74 68 65 72 77 69 73 | 65 20 69 74 73 0a 63 75 |otherwis|e its.cu|
|00004e70| 72 72 65 6e 74 20 73 63 | 72 65 65 6e 20 69 6d 61 |rrent sc|reen ima|
|00004e80| 67 65 20 72 65 6d 61 69 | 6e 73 20 75 6e 63 68 61 |ge remai|ns uncha|
|00004e90| 6e 67 65 64 2e 0a 0a 5c | 6f 64 6f 63 69 74 65 6d |nged...\|odocitem|
|00004ea0| 7b 3a 63 6c 65 61 72 2d | 6c 69 6e 65 73 20 5c 26 |{:clear-|lines \&|
|00004eb0| 6b 65 79 20 28 64 72 61 | 77 20 74 29 20 7d 0a 52 |key (dra|w t) }.R|
|00004ec0| 65 6d 6f 76 65 73 20 61 | 6c 6c 20 6c 69 6e 65 73 |emoves a|ll lines|
|00004ed0| 20 66 72 6f 6d 20 74 68 | 65 20 70 6c 6f 74 2e 20 | from th|e plot. |
|00004ee0| 49 66 20 44 52 41 57 20 | 69 73 20 74 72 75 65 20 |If DRAW |is true |
|00004ef0| 74 68 65 20 3a 52 45 44 | 52 41 57 2d 43 4f 4e 54 |the :RED|RAW-CONT|
|00004f00| 45 4e 54 0a 6d 65 73 73 | 61 67 65 20 69 73 20 73 |ENT.mess|age is s|
|00004f10| 65 6e 74 2e 0a 0a 5c 6f | 64 6f 63 69 74 65 6d 7b |ent...\o|docitem{|
|00004f20| 3a 63 6c 65 61 72 2d 70 | 6f 69 6e 74 73 20 5c 26 |:clear-p|oints \&|
|00004f30| 6b 65 79 20 28 64 72 61 | 77 20 74 29 20 7d 0a 52 |key (dra|w t) }.R|
|00004f40| 65 6d 6f 76 65 73 20 61 | 6c 6c 20 70 6f 69 6e 74 |emoves a|ll point|
|00004f50| 73 20 66 72 6f 6d 20 74 | 68 65 20 70 6c 6f 74 2e |s from t|he plot.|
|00004f60| 20 49 66 20 44 52 41 57 | 20 69 73 20 74 72 75 65 | If DRAW| is true|
|00004f70| 20 74 68 65 20 3a 52 45 | 44 52 41 57 2d 43 4f 4e | the :RE|DRAW-CON|
|00004f80| 54 45 4e 54 0a 6d 65 73 | 73 61 67 65 20 69 73 20 |TENT.mes|sage is |
|00004f90| 73 65 6e 74 2e 0a 0a 5c | 6f 64 6f 63 69 74 65 6d |sent...\|odocitem|
|00004fa0| 7b 3a 63 6c 65 61 72 2d | 73 74 72 69 6e 67 73 20 |{:clear-|strings |
|00004fb0| 5c 26 6b 65 79 20 28 64 | 72 61 77 20 74 29 20 7d |\&key (d|raw t) }|
|00004fc0| 0a 52 65 6d 6f 76 65 73 | 20 61 6c 6c 20 73 74 72 |.Removes| all str|
|00004fd0| 69 6e 67 73 20 66 72 6f | 6d 20 74 68 65 20 70 6c |ings fro|m the pl|
|00004fe0| 6f 74 2e 20 49 66 20 44 | 52 41 57 20 69 73 20 74 |ot. If D|RAW is t|
|00004ff0| 72 75 65 20 74 68 65 20 | 3a 52 45 44 52 41 57 2d |rue the |:REDRAW-|
|00005000| 43 4f 4e 54 45 4e 54 0a | 6d 65 73 73 61 67 65 20 |CONTENT.|message |
|00005010| 69 73 20 73 65 6e 74 2e | 0a 0a 5c 6f 64 6f 63 69 |is sent.|..\odoci|
|00005020| 74 65 6d 7b 3a 63 6f 6e | 74 65 6e 74 2d 76 61 72 |tem{:con|tent-var|
|00005030| 69 61 62 6c 65 73 20 5c | 26 6f 70 74 69 6f 6e 61 |iables \|&optiona|
|00005040| 6c 20 78 76 61 72 20 79 | 76 61 72 20 7d 0a 53 65 |l xvar y|var }.Se|
|00005050| 74 73 20 6f 72 20 72 65 | 74 72 69 65 76 65 73 20 |ts or re|trieves |
|00005060| 74 68 65 20 69 6e 64 69 | 63 65 73 20 6f 66 20 74 |the indi|ces of t|
|00005070| 68 65 20 63 75 72 72 65 | 6e 74 20 63 6f 6e 74 65 |he curre|nt conte|
|00005080| 6e 74 20 76 61 72 69 61 | 62 6c 65 73 2e 0a 0a 0a |nt varia|bles....|
|00005090| 25 2a 2a 2a 2a 2a 28 47 | 52 41 50 48 2d 50 52 4f |%*****(G|RAPH-PRO|
|000050a0| 54 4f 20 4f 42 4a 45 43 | 54 20 3a 44 4f 2d 42 55 |TO OBJEC|T :DO-BU|
|000050b0| 54 54 4f 4e 2d 44 4f 57 | 4e 29 0a 0a 0a 25 2a 2a |TTON-DOW|N)...%**|
|000050c0| 2a 2a 2a 28 47 52 41 50 | 48 2d 50 52 4f 54 4f 20 |***(GRAP|H-PROTO |
|000050d0| 4f 42 4a 45 43 54 20 3a | 44 4f 2d 49 44 4c 45 29 |OBJECT :|DO-IDLE)|
|000050e0| 0a 0a 5c 6f 64 6f 63 69 | 74 65 6d 7b 3a 64 6f 2d |..\odoci|tem{:do-|
|000050f0| 6d 6f 75 73 65 20 78 20 | 79 20 74 79 70 65 20 65 |mouse x |y type e|
|00005100| 78 74 65 6e 64 20 6f 70 | 74 69 6f 6e 20 7d 0a 53 |xtend op|tion }.S|
|00005110| 65 6c 65 63 74 73 20 6f | 72 20 62 72 75 73 68 65 |elects o|r brushe|
|00005120| 73 20 70 6c 6f 74 2c 20 | 64 65 70 65 6e 64 69 6e |s plot, |dependin|
|00005130| 67 20 6f 6e 20 6d 6f 75 | 73 65 20 6d 6f 64 65 2e |g on mou|se mode.|
|00005140| 0a 0a 5c 6f 64 6f 63 69 | 74 65 6d 7b 3a 64 72 61 |..\odoci|tem{:dra|
|00005150| 67 2d 67 72 65 79 2d 72 | 65 63 74 20 78 20 79 20 |g-grey-r|ect x y |
|00005160| 77 69 64 74 68 20 68 65 | 69 67 68 74 20 7d 0a 44 |width he|ight }.D|
|00005170| 72 61 67 73 20 67 72 65 | 79 20 72 65 63 74 61 6e |rags gre|y rectan|
|00005180| 67 6c 65 20 73 74 61 72 | 74 69 6e 67 20 61 74 20 |gle star|ting at |
|00005190| 28 4c 49 53 54 20 28 2d | 20 58 20 57 49 44 54 48 |(LIST (-| X WIDTH|
|000051a0| 29 20 28 2d 20 59 20 48 | 45 49 47 48 54 29 20 57 |) (- Y H|EIGHT) W|
|000051b0| 49 44 54 48 20 48 45 49 | 47 48 54 29 0a 77 68 69 |IDTH HEI|GHT).whi|
|000051c0| 6c 65 20 6d 6f 75 73 65 | 20 62 75 74 74 6f 6e 20 |le mouse| button |
|000051d0| 69 73 20 64 6f 77 6e 2e | 20 52 65 74 75 72 6e 73 |is down.| Returns|
|000051e0| 20 74 68 65 20 66 69 6e | 61 6c 20 72 65 63 74 61 | the fin|al recta|
|000051f0| 6e 67 6c 65 2e 20 53 68 | 6f 75 6c 64 20 62 65 20 |ngle. Sh|ould be |
|00005200| 63 61 6c 6c 65 64 20 77 | 68 65 6e 0a 74 68 65 20 |called w|hen.the |
|00005210| 6d 6f 75 73 65 20 69 73 | 20 64 6f 77 6e 2e 0a 0a |mouse is| down...|
|00005220| 0a 25 2a 2a 2a 2a 2a 28 | 47 52 41 50 48 2d 50 52 |.%*****(|GRAPH-PR|
|00005230| 4f 54 4f 20 4f 42 4a 45 | 43 54 20 3a 44 52 41 47 |OTO OBJE|CT :DRAG|
|00005240| 2d 50 4f 49 4e 54 29 0a | 0a 5c 6f 64 6f 63 69 74 |-POINT).|.\odocit|
|00005250| 65 6d 7b 3a 65 72 61 73 | 65 2d 73 65 6c 65 63 74 |em{:eras|e-select|
|00005260| 69 6f 6e 20 7d 0a 53 65 | 74 73 20 73 65 6c 65 63 |ion }.Se|ts selec|
|00005270| 74 65 64 20 70 6f 69 6e | 74 73 20 73 74 61 74 65 |ted poin|ts state|
|00005280| 73 20 74 6f 20 69 6e 76 | 69 73 69 62 6c 65 20 61 |s to inv|isible a|
|00005290| 6e 64 20 73 65 6e 64 73 | 20 3a 41 44 4a 55 53 54 |nd sends| :ADJUST|
|000052a0| 2d 50 4f 49 4e 54 2d 53 | 43 52 45 45 4e 2d 53 54 |-POINT-S|CREEN-ST|
|000052b0| 41 54 45 53 20 6d 65 73 | 73 61 67 65 2e 0a 0a 5c |ATES mes|sage...\|
|000052c0| 6f 64 6f 63 69 74 65 6d | 7b 3a 66 69 78 65 64 2d |odocitem|{:fixed-|
|000052d0| 61 73 70 65 63 74 20 5c | 26 6f 70 74 69 6f 6e 61 |aspect \|&optiona|
|000052e0| 6c 20 66 69 78 65 64 20 | 7d 0a 53 65 74 73 20 6f |l fixed |}.Sets o|
|000052f0| 72 20 72 65 74 72 69 65 | 76 65 73 20 63 75 72 72 |r retrie|ves curr|
|00005300| 65 6e 74 20 73 69 7a 65 | 20 61 64 6a 75 73 74 6d |ent size| adjustm|
|00005310| 65 6e 74 20 6f 70 74 69 | 6f 6e 20 28 74 72 75 65 |ent opti|on (true|
|00005320| 20 6f 72 20 4e 49 4c 29 | 2e 0a 0a 5c 6f 64 6f 63 | or NIL)|...\odoc|
|00005330| 69 74 65 6d 7b 3a 66 72 | 61 6d 65 2d 6c 6f 63 61 |item{:fr|ame-loca|
|00005340| 74 69 6f 6e 20 5c 26 6f | 70 74 69 6f 6e 61 6c 20 |tion \&o|ptional |
|00005350| 6c 65 66 74 20 74 6f 70 | 20 7d 0a 4d 6f 76 65 73 |left top| }.Moves|
|00005360| 20 77 69 6e 64 6f 77 20 | 66 72 61 6d 65 20 74 6f | window |frame to|
|00005370| 20 28 4c 45 46 54 20 54 | 4f 50 29 20 69 66 20 73 | (LEFT T|OP) if s|
|00005380| 75 70 70 6c 69 65 64 2e | 20 52 65 74 75 72 6e 73 |upplied.| Returns|
|00005390| 20 6c 69 73 74 20 6f 66 | 20 0a 63 75 72 72 65 6e | list of| .curren|
|000053a0| 74 20 6c 65 66 74 2c 20 | 74 6f 70 2e 20 41 64 6a |t left, |top. Adj|
|000053b0| 75 73 74 73 20 66 6f 72 | 20 74 68 65 20 6d 65 6e |usts for| the men|
|000053c0| 75 20 62 61 72 2e 0a 0a | 5c 6f 64 6f 63 69 74 65 |u bar...|\odocite|
|000053d0| 6d 7b 3a 66 72 61 6d 65 | 2d 73 69 7a 65 20 5c 26 |m{:frame|-size \&|
|000053e0| 6f 70 74 69 6f 6e 61 6c | 20 77 69 64 74 68 20 68 |optional| width h|
|000053f0| 65 69 67 68 74 20 7d 0a | 53 65 74 73 20 77 69 6e |eight }.|Sets win|
|00005400| 64 6f 77 20 66 72 61 6d | 65 20 77 69 64 74 68 20 |dow fram|e width |
|00005410| 61 6e 64 20 73 69 7a 65 | 20 74 6f 20 57 49 44 54 |and size| to WIDT|
|00005420| 48 20 61 6e 64 20 53 49 | 5a 45 20 69 66 20 73 75 |H and SI|ZE if su|
|00005430| 70 70 6c 69 65 64 2e 20 | 0a 52 65 74 75 72 6e 73 |pplied. |.Returns|
|00005440| 20 6c 69 73 74 20 6f 66 | 20 63 75 72 72 65 6e 74 | list of| current|
|00005450| 20 57 49 44 54 48 20 61 | 6e 64 20 48 45 49 47 48 | WIDTH a|nd HEIGH|
|00005460| 54 2e 20 41 64 6a 75 73 | 74 73 20 66 6f 72 20 74 |T. Adjus|ts for t|
|00005470| 68 65 20 6d 65 6e 75 20 | 62 61 72 2e 0a 0a 5c 6f |he menu |bar...\o|
|00005480| 64 6f 63 69 74 65 6d 7b | 3a 69 64 6c 65 2d 6f 6e |docitem{|:idle-on|
|00005490| 20 5c 26 6f 70 74 69 6f | 6e 61 6c 20 6f 6e 20 7d | \&optio|nal on }|
|000054a0| 0a 53 65 74 73 20 6f 72 | 20 72 65 74 75 72 6e 73 |.Sets or| returns|
|000054b0| 20 69 64 6c 69 6e 67 20 | 73 74 61 74 65 2e 20 4f | idling |state. O|
|000054c0| 6e 20 6d 65 61 6e 73 20 | 3a 64 6f 2d 69 64 6c 65 |n means |:do-idle|
|000054d0| 20 6d 65 74 68 6f 64 20 | 69 73 20 73 65 6e 74 20 | method |is sent |
|000054e0| 65 61 63 68 20 70 61 73 | 73 20 74 68 72 6f 75 67 |each pas|s throug|
|000054f0| 68 0a 74 68 65 20 65 76 | 65 6e 74 20 6c 6f 6f 70 |h.the ev|ent loop|
|00005500| 2e 0a 0a 5c 6f 64 6f 63 | 69 74 65 6d 7b 3a 6c 69 |...\odoc|item{:li|
|00005510| 6e 6b 65 64 20 5c 26 6f | 70 74 69 6f 6e 61 6c 20 |nked \&o|ptional |
|00005520| 6f 6e 20 7d 0a 53 65 74 | 73 20 6f 72 20 72 65 74 |on }.Set|s or ret|
|00005530| 72 69 65 76 65 73 20 70 | 6c 6f 74 27 73 20 6c 69 |rieves p|lot's li|
|00005540| 6e 6b 69 6e 67 20 73 74 | 61 74 65 2e 0a 0a 5c 6f |nking st|ate...\o|
|00005550| 64 6f 63 69 74 65 6d 7b | 3a 6e 75 6d 2d 6c 69 6e |docitem{|:num-lin|
|00005560| 65 73 20 7d 0a 52 65 74 | 75 72 6e 73 20 74 68 65 |es }.Ret|urns the|
|00005570| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6c 69 6e 65 20 | number |of line |
|00005580| 73 74 61 72 74 73 20 69 | 6e 20 74 68 65 20 70 6c |starts i|n the pl|
|00005590| 6f 74 2e 0a 0a 5c 6f 64 | 6f 63 69 74 65 6d 7b 3a |ot...\od|ocitem{:|
|000055a0| 6e 75 6d 2d 70 6f 69 6e | 74 73 20 7d 0a 52 65 74 |num-poin|ts }.Ret|
|000055b0| 75 72 6e 73 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |urns the| number |
|000055c0| 6f 66 20 70 6f 69 6e 74 | 73 20 69 6e 20 74 68 65 |of point|s in the|
|000055d0| 20 70 6c 6f 74 2e 0a 0a | 5c 6f 64 6f 63 69 74 65 | plot...|\odocite|
|000055e0| 6d 7b 3a 6e 75 6d 2d 73 | 74 72 69 6e 67 73 20 7d |m{:num-s|trings }|
|000055f0| 0a 52 65 74 75 72 6e 73 | 20 74 68 65 20 6e 75 6d |.Returns| the num|
|00005600| 62 65 72 20 6f 66 20 73 | 74 72 69 6e 67 73 20 69 |ber of s|trings i|
|00005610| 6e 20 74 68 65 20 70 6c | 6f 74 2e 0a 0a 5c 6f 64 |n the pl|ot...\od|
|00005620| 6f 63 69 74 65 6d 7b 3a | 6e 75 6d 2d 76 61 72 69 |ocitem{:|num-vari|
|00005630| 61 62 6c 65 73 20 7d 0a | 52 65 74 75 72 6e 73 20 |ables }.|Returns |
|00005640| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 76 61 |the numb|er of va|
|00005650| 72 69 61 62 6c 65 73 20 | 69 6e 20 74 68 65 20 70 |riables |in the p|
|00005660| 6c 6f 74 2e 0a 0a 5c 6f | 64 6f 63 69 74 65 6d 7b |lot...\o|docitem{|
|00005670| 3a 70 6f 69 6e 74 2d 63 | 6f 6f 72 64 69 6e 61 74 |:point-c|oordinat|
|00005680| 65 20 76 61 72 20 70 6f | 69 6e 74 20 5c 26 6f 70 |e var po|int \&op|
|00005690| 74 69 6f 6e 61 6c 20 76 | 61 6c 75 65 20 7d 0a 53 |tional v|alue }.S|
|000056a0| 65 74 73 20 6f 72 20 72 | 65 74 72 69 65 76 65 73 |ets or r|etrieves|
|000056b0| 20 63 6f 6f 72 64 69 6e | 61 74 65 20 66 6f 72 20 | coordin|ate for |
|000056c0| 76 61 72 69 61 62 6c 65 | 20 56 41 52 20 61 6e 64 |variable| VAR and|
|000056d0| 20 70 6f 69 6e 74 20 50 | 4f 49 4e 54 20 69 6e 20 | point P|OINT in |
|000056e0| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 0a 63 6f 6f |the orig|inal.coo|
|000056f0| 72 64 69 6e 61 74 65 20 | 73 79 73 74 65 6d 2e 20 |rdinate |system. |
|00005700| 56 65 63 74 6f 72 69 7a | 65 64 2e 0a 0a 5c 6f 64 |Vectoriz|ed...\od|
|00005710| 6f 63 69 74 65 6d 7b 3a | 70 6f 69 6e 74 2d 68 69 |ocitem{:|point-hi|
|00005720| 6c 69 74 65 64 20 70 6f | 69 6e 74 20 5c 26 6f 70 |lited po|int \&op|
|00005730| 74 69 6f 6e 61 6c 20 68 | 69 6c 69 74 65 64 20 7d |tional h|ilited }|
|00005740| 0a 53 65 74 73 20 6f 72 | 20 72 65 74 75 72 6e 73 |.Sets or| returns|
|00005750| 20 68 69 67 68 6c 69 67 | 68 74 69 6e 67 20 73 74 | highlig|hting st|
|00005760| 61 74 75 73 20 28 74 72 | 75 65 20 6f 72 20 4e 49 |atus (tr|ue or NI|
|00005770| 4c 29 20 6f 66 20 50 4f | 49 4e 54 2e 20 53 65 6e |L) of PO|INT. Sen|
|00005780| 64 73 20 0a 3a 41 44 4a | 55 53 54 2d 50 4f 49 4e |ds .:ADJ|UST-POIN|
|00005790| 54 2d 53 43 52 45 45 4e | 2d 53 54 41 54 45 53 20 |T-SCREEN|-STATES |
|000057a0| 6d 65 73 73 61 67 65 20 | 69 66 20 73 74 61 74 65 |message |if state|
|000057b0| 73 20 61 72 65 20 73 65 | 74 2e 20 56 65 63 74 6f |s are se|t. Vecto|
|000057c0| 72 69 7a 65 64 2e 0a 0a | 5c 6f 64 6f 63 69 74 65 |rized...|\odocite|
|000057d0| 6d 7b 3a 70 6f 69 6e 74 | 2d 6c 61 62 65 6c 20 70 |m{:point|-label p|
|000057e0| 6f 69 6e 74 20 5c 26 6f | 70 74 69 6f 6e 61 6c 20 |oint \&o|ptional |
|000057f0| 6c 61 62 65 6c 20 7d 0a | 53 65 74 73 20 6f 72 20 |label }.|Sets or |
|00005800| 72 65 74 72 69 65 76 65 | 73 20 6c 61 62 65 6c 20 |retrieve|s label |
|00005810| 6f 66 20 70 6f 69 6e 74 | 20 50 4f 49 4e 54 2e 20 |of point| POINT. |
|00005820| 56 65 63 74 6f 72 69 7a | 65 64 2e 0a 0a 5c 6f 64 |Vectoriz|ed...\od|
|00005830| 6f 63 69 74 65 6d 7b 3a | 70 6f 69 6e 74 2d 73 65 |ocitem{:|point-se|
|00005840| 6c 65 63 74 65 64 20 70 | 6f 69 6e 74 20 5c 26 6f |lected p|oint \&o|
|00005850| 70 74 69 6f 6e 61 6c 20 | 73 65 6c 65 63 74 65 64 |ptional |selected|
|00005860| 20 7d 0a 53 65 74 73 20 | 6f 72 20 72 65 74 75 72 | }.Sets |or retur|
|00005870| 6e 73 20 73 65 6c 65 63 | 74 69 6f 6e 20 73 74 61 |ns selec|tion sta|
|00005880| 74 75 73 20 28 74 72 75 | 65 20 6f 72 20 4e 49 4c |tus (tru|e or NIL|
|00005890| 29 20 6f 66 20 50 4f 49 | 4e 54 2e 20 53 65 6e 64 |) of POI|NT. Send|
|000058a0| 73 20 0a 3a 41 44 4a 55 | 53 54 2d 50 4f 49 4e 54 |s .:ADJU|ST-POINT|
|000058b0| 2d 53 43 52 45 45 4e 2d | 53 54 41 54 45 53 20 6d |-SCREEN-|STATES m|
|000058c0| 65 73 73 61 67 65 20 69 | 66 20 73 74 61 74 65 73 |essage i|f states|
|000058d0| 20 61 72 65 20 73 65 74 | 2e 20 56 65 63 74 6f 72 | are set|. Vector|
|000058e0| 69 7a 65 64 2e 0a 0a 5c | 6f 64 6f 63 69 74 65 6d |ized...\|odocitem|
|000058f0| 7b 3a 70 6f 69 6e 74 2d | 73 68 6f 77 69 6e 67 20 |{:point-|showing |
|00005900| 70 6f 69 6e 74 20 5c 26 | 6f 70 74 69 6f 6e 61 6c |point \&|optional|
|00005910| 20 73 65 6c 65 63 74 65 | 64 20 7d 0a 53 65 74 73 | selecte|d }.Sets|
|00005920| 20 6f 72 20 72 65 74 75 | 72 6e 73 20 76 69 73 69 | or retu|rns visi|
|00005930| 62 69 6c 69 74 79 20 73 | 74 61 74 75 73 20 28 74 |bility s|tatus (t|
|00005940| 72 75 65 20 6f 72 20 4e | 49 4c 29 20 6f 66 20 50 |rue or N|IL) of P|
|00005950| 4f 49 4e 54 2e 20 53 65 | 6e 64 73 20 0a 3a 41 44 |OINT. Se|nds .:AD|
|00005960| 4a 55 53 54 2d 50 4f 49 | 4e 54 2d 53 43 52 45 45 |JUST-POI|NT-SCREE|
|00005970| 4e 2d 53 54 41 54 45 53 | 20 6d 65 73 73 61 67 65 |N-STATES| message|
|00005980| 20 69 66 20 73 74 61 74 | 65 73 20 61 72 65 20 73 | if stat|es are s|
|00005990| 65 74 2e 20 56 65 63 74 | 6f 72 69 7a 65 64 2e 0a |et. Vect|orized..|
|000059a0| 0a 5c 6f 64 6f 63 69 74 | 65 6d 7b 3a 70 6f 69 6e |.\odocit|em{:poin|
|000059b0| 74 2d 73 79 6d 62 6f 6c | 20 70 6f 69 6e 74 20 5c |t-symbol| point \|
|000059c0| 26 6f 70 74 69 6f 6e 61 | 6c 20 73 79 6d 62 6f 6c |&optiona|l symbol|
|000059d0| 20 7d 0a 53 65 74 73 20 | 6f 72 20 72 65 74 72 69 | }.Sets |or retri|
|000059e0| 65 76 65 73 20 73 79 6d | 62 6f 6c 20 6f 66 20 70 |eves sym|bol of p|
|000059f0| 6f 69 6e 74 20 50 4f 49 | 4e 54 2e 20 56 65 63 74 |oint POI|NT. Vect|
|00005a00| 6f 72 69 7a 65 64 2e 0a | 0a 5c 6f 64 6f 63 69 74 |orized..|.\odocit|
|00005a10| 65 6d 7b 3a 72 61 6e 67 | 65 20 69 6e 64 65 78 20 |em{:rang|e index |
|00005a20| 5c 26 6f 70 74 69 6f 6e | 61 6c 20 6c 6f 77 20 68 |\&option|al low h|
|00005a30| 69 67 68 20 7d 0a 53 65 | 74 73 20 6f 72 20 72 65 |igh }.Se|ts or re|
|00005a40| 74 72 69 65 76 65 73 20 | 76 61 72 69 61 62 6c 65 |trieves |variable|
|00005a50| 27 73 20 6f 72 69 67 69 | 6e 61 6c 20 63 6f 6f 72 |'s origi|nal coor|
|00005a60| 64 69 6e 61 74 65 20 72 | 61 6e 67 65 2e 20 56 65 |dinate r|ange. Ve|
|00005a70| 63 74 6f 72 69 7a 65 64 | 2e 0a 0a 5c 6f 64 6f 63 |ctorized|...\odoc|
|00005a80| 69 74 65 6d 7b 3a 72 65 | 61 6c 2d 74 6f 2d 73 63 |item{:re|al-to-sc|
|00005a90| 72 65 65 6e 20 78 20 79 | 20 7d 0a 52 65 74 75 72 |reen x y| }.Retur|
|00005aa0| 6e 73 20 6c 69 73 74 20 | 6f 66 20 73 63 72 65 65 |ns list |of scree|
|00005ab0| 6e 20 63 6f 6f 72 64 69 | 6e 61 74 65 73 20 6f 66 |n coordi|nates of|
|00005ac0| 20 70 6f 69 6e 74 20 28 | 58 2c 20 59 29 2c 20 69 | point (|X, Y), i|
|00005ad0| 6e 20 74 68 65 20 6f 72 | 69 67 69 6e 61 6c 20 63 |n the or|iginal c|
|00005ae0| 6f 6f 72 64 69 6e 61 74 | 65 20 73 79 73 74 65 6d |oordinat|e system|
|00005af0| 2c 0a 62 61 73 65 64 20 | 6f 6e 20 63 75 72 72 65 |,.based |on curre|
|00005b00| 6e 74 20 63 6f 6e 74 65 | 6e 74 20 76 61 72 69 61 |nt conte|nt varia|
|00005b10| 62 6c 65 73 2e 0a 0a 5c | 6f 64 6f 63 69 74 65 6d |bles...\|odocitem|
|00005b20| 7b 3a 72 65 64 72 61 77 | 20 7d 0a 52 65 64 72 61 |{:redraw| }.Redra|
|00005b30| 77 73 20 65 6e 74 69 72 | 65 20 70 6c 6f 74 2e 0a |ws entir|e plot..|
|00005b40| 0a 5c 6f 64 6f 63 69 74 | 65 6d 7b 3a 72 65 64 72 |.\odocit|em{:redr|
|00005b50| 61 77 2d 63 6f 6e 74 65 | 6e 74 20 7d 0a 52 65 64 |aw-conte|nt }.Red|
|00005b60| 72 61 77 73 20 70 6c 6f | 74 27 73 20 63 6f 6e 74 |raws plo|t's cont|
|00005b70| 65 6e 74 2e 0a 0a 5c 6f | 64 6f 63 69 74 65 6d 7b |ent...\o|docitem{|
|00005b80| 3a 72 6f 74 61 74 65 2d | 32 20 76 61 72 31 20 76 |:rotate-|2 var1 v|
|00005b90| 61 72 32 20 61 6e 67 6c | 65 20 5c 26 6b 65 79 20 |ar2 angl|e \&key |
|00005ba0| 28 64 72 61 77 20 74 29 | 20 7d 0a 52 6f 74 61 74 |(draw t)| }.Rotat|
|00005bb0| 65 73 20 69 6e 74 20 74 | 68 65 20 70 6c 61 6e 65 |es int t|he plane|
|00005bc0| 20 6f 66 20 76 61 72 69 | 61 62 6c 65 73 20 77 69 | of vari|ables wi|
|00005bd0| 74 68 20 69 6e 64 69 63 | 65 73 20 56 41 52 31 20 |th indic|es VAR1 |
|00005be0| 61 6e 64 20 56 41 52 32 | 20 62 79 20 41 4e 47 4c |and VAR2| by ANGL|
|00005bf0| 45 2c 20 69 6e 0a 72 61 | 64 69 61 6e 73 2e 20 73 |E, in.ra|dians. s|
|00005c00| 65 6e 64 73 20 74 68 65 | 20 3a 52 45 44 52 41 57 |ends the| :REDRAW|
|00005c10| 2d 43 4f 4e 54 45 4e 54 | 20 6d 65 73 73 61 67 65 |-CONTENT| message|
|00005c20| 20 69 66 20 44 52 57 41 | 20 69 73 20 74 72 75 65 | if DRWA| is true|
|00005c30| 2e 0a 0a 5c 6f 64 6f 63 | 69 74 65 6d 7b 3a 73 63 |...\odoc|item{:sc|
|00005c40| 61 6c 65 2d 74 6f 2d 72 | 61 6e 67 65 20 76 61 72 |ale-to-r|ange var|
|00005c50| 20 6c 6f 77 20 68 69 67 | 68 20 5c 26 6b 65 79 20 | low hig|h \&key |
|00005c60| 28 64 72 61 77 20 74 29 | 20 7d 0a 53 63 61 6c 65 |(draw t)| }.Scale|
|00005c70| 73 20 61 6e 64 20 73 68 | 69 66 74 73 20 64 61 74 |s and sh|ifts dat|
|00005c80| 61 20 74 6f 20 6d 61 70 | 20 76 69 73 69 62 6c 65 |a to map| visible|
|00005c90| 20 72 61 6e 67 65 20 69 | 6e 74 6f 20 73 70 65 63 | range i|nto spec|
|00005ca0| 69 66 69 65 64 20 72 61 | 6e 67 65 2e 20 53 65 6e |ified ra|nge. Sen|
|00005cb0| 64 73 0a 3a 52 45 53 49 | 5a 45 20 61 6e 64 20 3a |ds.:RESI|ZE and :|
|00005cc0| 52 45 44 52 41 57 20 6d | 65 73 73 61 67 65 73 20 |REDRAW m|essages |
|00005cd0| 69 66 20 44 52 41 57 20 | 69 73 20 74 72 75 65 2e |if DRAW |is true.|
|00005ce0| 0a 0a 5c 6f 64 6f 63 69 | 74 65 6d 7b 3a 73 63 61 |..\odoci|tem{:sca|
|00005cf0| 6c 65 64 2d 72 61 6e 67 | 65 20 69 6e 64 65 78 20 |led-rang|e index |
|00005d00| 5c 26 6f 70 74 69 6f 6e | 61 6c 20 6c 6f 77 20 68 |\&option|al low h|
|00005d10| 69 67 68 20 7d 0a 53 65 | 74 73 20 6f 72 20 72 65 |igh }.Se|ts or re|
|00005d20| 74 72 69 65 76 65 73 20 | 76 61 72 69 61 62 6c 65 |trieves |variable|
|00005d30| 27 73 20 74 72 61 6e 73 | 66 6f 72 6d 65 64 20 63 |'s trans|formed c|
|00005d40| 6f 6f 72 64 69 6e 61 74 | 65 20 72 61 6e 67 65 2e |oordinat|e range.|
|00005d50| 20 56 65 63 74 6f 72 69 | 7a 65 64 2e 0a 0a 5c 6f | Vectori|zed...\o|
|00005d60| 64 6f 63 69 74 65 6d 7b | 3a 73 63 72 65 65 6e 2d |docitem{|:screen-|
|00005d70| 74 6f 2d 72 65 61 6c 20 | 78 20 79 20 7d 0a 52 65 |to-real |x y }.Re|
|00005d80| 74 75 72 6e 73 20 6c 69 | 73 74 20 6f 66 20 72 65 |turns li|st of re|
|00005d90| 61 6c 20 63 6f 6f 72 64 | 69 6e 61 74 65 73 2c 20 |al coord|inates, |
|00005da0| 69 6e 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |in the o|riginal |
|00005db0| 63 6f 6f 72 64 69 6e 61 | 74 65 20 73 79 73 74 65 |coordina|te syste|
|00005dc0| 6d 2c 20 6f 66 0a 73 63 | 72 65 65 6e 20 70 6f 69 |m, of.sc|reen poi|
|00005dd0| 6e 74 20 28 58 2c 20 59 | 29 2c 20 62 61 73 65 64 |nt (X, Y|), based|
|00005de0| 20 6f 6e 20 63 75 72 72 | 65 6e 74 20 63 6f 6e 74 | on curr|ent cont|
|00005df0| 65 6e 74 20 76 61 72 69 | 61 62 6c 65 73 2e 0a 0a |ent vari|ables...|
|00005e00| 5c 6f 64 6f 63 69 74 65 | 6d 7b 3a 73 65 6c 65 63 |\odocite|m{:selec|
|00005e10| 74 69 6f 6e 20 7d 0a 52 | 65 74 75 72 6e 20 69 6e |tion }.R|eturn in|
|00005e20| 64 69 63 65 73 20 6f 66 | 20 63 75 72 72 65 6e 74 |dices of| current|
|00005e30| 20 73 65 6c 65 63 74 69 | 6f 6e 2e 0a 0a 5c 6f 64 | selecti|on...\od|
|00005e40| 6f 63 69 74 65 6d 7b 3a | 73 68 6f 77 2d 61 6c 6c |ocitem{:|show-all|
|00005e50| 2d 70 6f 69 6e 74 73 20 | 7d 0a 53 65 74 73 20 61 |-points |}.Sets a|
|00005e60| 6c 6c 20 70 6f 69 6e 74 | 20 73 74 61 74 65 73 20 |ll point| states |
|00005e70| 74 6f 20 6e 6f 72 6d 61 | 6c 20 61 6e 64 20 73 65 |to norma|l and se|
|00005e80| 6e 64 73 20 3a 41 44 4a | 55 53 54 2d 50 4f 49 4e |nds :ADJ|UST-POIN|
|00005e90| 54 2d 53 43 52 45 45 4e | 2d 53 54 41 54 45 53 20 |T-SCREEN|-STATES |
|00005ea0| 6d 65 73 73 61 67 65 20 | 0a 0a 5c 6f 64 6f 63 69 |message |..\odoci|
|00005eb0| 74 65 6d 7b 3a 73 68 6f | 77 69 6e 67 2d 6c 61 62 |tem{:sho|wing-lab|
|00005ec0| 65 6c 73 20 5c 26 6f 70 | 74 69 6f 6e 61 6c 20 73 |els \&op|tional s|
|00005ed0| 68 6f 77 69 6e 67 20 7d | 0a 53 65 74 73 20 6f 72 |howing }|.Sets or|
|00005ee0| 20 72 65 74 72 69 65 76 | 65 73 20 63 75 72 72 65 | retriev|es curre|
|00005ef0| 6e 74 20 6c 61 62 65 6c | 69 6e 67 20 73 74 61 74 |nt label|ing stat|
|00005f00| 65 20 28 74 72 75 65 20 | 6f 72 20 4e 49 4c 29 2e |e (true |or NIL).|
|00005f10| 0a 0a 5c 6f 64 6f 63 69 | 74 65 6d 7b 3a 74 69 74 |..\odoci|tem{:tit|
|00005f20| 6c 65 20 5c 26 6f 70 74 | 69 6f 6e 61 6c 20 73 74 |le \&opt|ional st|
|00005f30| 72 69 6e 67 20 7d 0a 53 | 65 74 73 20 6f 72 20 72 |ring }.S|ets or r|
|00005f40| 65 74 72 69 65 76 65 73 | 20 77 69 6e 64 6f 77 20 |etrieves| window |
|00005f50| 74 69 74 6c 65 2e 0a 0a | 5c 6f 64 6f 63 69 74 65 |title...|\odocite|
|00005f60| 6d 7b 3a 74 72 61 6e 73 | 66 6f 72 6d 61 74 69 6f |m{:trans|formatio|
|00005f70| 6e 20 5c 26 6f 70 74 69 | 6f 6e 61 6c 20 61 20 5c |n \&opti|onal a \|
|00005f80| 26 6b 65 79 20 28 64 72 | 61 77 20 74 29 20 7d 0a |&key (dr|aw t) }.|
|00005f90| 53 65 74 73 20 6f 72 20 | 72 65 74 72 69 65 76 65 |Sets or |retrieve|
|00005fa0| 73 20 74 72 61 6e 73 66 | 6f 72 6d 61 74 69 6f 6e |s transf|ormation|
|00005fb0| 2e 20 41 20 73 68 6f 75 | 6c 64 20 62 65 20 61 20 |. A shou|ld be a |
|00005fc0| 6d 61 74 72 69 78 20 6f | 72 20 4e 49 4c 2e 20 49 |matrix o|r NIL. I|
|00005fd0| 66 20 64 72 61 77 20 69 | 73 20 74 72 75 65 0a 74 |f draw i|s true.t|
|00005fe0| 68 65 20 3a 52 45 44 52 | 41 57 2d 43 4f 4e 54 45 |he :REDR|AW-CONTE|
|00005ff0| 4e 54 20 6d 65 73 73 61 | 67 65 20 69 73 20 73 65 |NT messa|ge is se|
|00006000| 6e 74 2e 0a 0a 5c 6f 64 | 6f 63 69 74 65 6d 7b 3a |nt...\od|ocitem{:|
|00006010| 75 6e 73 65 6c 65 63 74 | 2d 61 6c 6c 2d 70 6f 69 |unselect|-all-poi|
|00006020| 6e 74 73 20 5c 26 6b 65 | 79 20 28 64 72 61 77 20 |nts \&ke|y (draw |
|00006030| 74 29 20 7d 0a 55 6e 73 | 65 6c 65 63 74 73 20 61 |t) }.Uns|elects a|
|00006040| 6c 6c 20 70 6f 69 6e 74 | 73 2e 20 53 65 6e 64 73 |ll point|s. Sends|
|00006050| 20 3a 41 44 4a 55 53 54 | 2d 50 4f 49 4e 54 2d 53 | :ADJUST|-POINT-S|
|00006060| 43 52 45 45 4e 2d 53 54 | 41 54 45 53 20 6d 65 73 |CREEN-ST|ATES mes|
|00006070| 73 61 67 65 20 69 66 20 | 44 52 41 57 20 69 73 20 |sage if |DRAW is |
|00006080| 74 72 75 65 2e 0a 0a 0a | 25 2a 2a 2a 2a 2a 28 47 |true....|%*****(G|
|00006090| 52 41 50 48 2d 50 52 4f | 54 4f 20 4f 42 4a 45 43 |RAPH-PRO|TO OBJEC|
|000060a0| 54 20 3a 55 4e 53 48 4f | 57 2d 41 4c 4c 2d 50 4f |T :UNSHO|W-ALL-PO|
|000060b0| 49 4e 54 53 29 0a 0a 5c | 6f 64 6f 63 69 74 65 6d |INTS)..\|odocitem|
|000060c0| 7b 3a 76 61 72 69 61 62 | 6c 65 2d 6c 61 62 65 6c |{:variab|le-label|
|000060d0| 20 76 61 72 20 5c 26 6f | 70 74 69 6f 6e 61 6c 20 | var \&o|ptional |
|000060e0| 6c 61 62 65 6c 20 7d 0a | 53 65 74 73 20 6f 72 20 |label }.|Sets or |
|000060f0| 72 65 74 75 72 6e 73 20 | 6c 61 62 65 6c 20 66 6f |returns |label fo|
|00006100| 72 20 76 61 72 69 61 62 | 6c 65 20 77 69 74 68 20 |r variab|le with |
|00006110| 69 6e 64 65 78 20 56 41 | 52 2e 20 56 65 63 74 6f |index VA|R. Vecto|
|00006120| 72 69 7a 65 64 2e 0a 0a | 5c 6f 64 6f 63 69 74 65 |rized...|\odocite|
|00006130| 6d 7b 3a 76 69 73 69 62 | 6c 65 2d 72 61 6e 67 65 |m{:visib|le-range|
|00006140| 20 76 61 72 20 7d 0a 52 | 65 74 75 72 6e 73 20 6c | var }.R|eturns l|
|00006150| 69 73 74 20 6f 66 20 6d | 69 6e 20 61 6e 64 20 6d |ist of m|in and m|
|00006160| 61 78 20 6f 66 20 76 61 | 72 69 61 62 6c 65 20 56 |ax of va|riable V|
|00006170| 41 52 20 6f 76 65 72 20 | 76 69 73 69 62 6c 65 2c |AR over |visible,|
|00006180| 20 75 6e 6d 61 73 6b 65 | 64 20 70 6f 69 6e 74 73 | unmaske|d points|
|00006190| 2c 0a 6c 69 6e 65 73 20 | 61 6e 64 20 73 74 72 69 |,.lines |and stri|
|000061a0| 6e 67 73 2e 20 56 65 63 | 74 6f 72 69 7a 65 64 2e |ngs. Vec|torized.|
|000061b0| 0a 0a 5c 6f 64 6f 63 69 | 74 65 6d 7b 3a 77 68 69 |..\odoci|tem{:whi|
|000061c0| 6c 65 2d 62 75 74 74 6f | 6e 2d 64 6f 77 6e 20 66 |le-butto|n-down f|
|000061d0| 63 6e 20 5c 26 6f 70 74 | 69 6f 6e 61 6c 20 28 6d |cn \&opt|ional (m|
|000061e0| 6f 74 69 6f 6e 2d 6f 6e | 6c 79 20 74 29 20 7d 0a |otion-on|ly t) }.|
|000061f0| 43 61 6c 6c 73 20 66 63 | 6e 20 72 65 70 65 61 74 |Calls fc|n repeat|
|00006200| 65 64 6c 79 20 77 68 69 | 6c 65 20 6d 6f 75 73 65 |edly whi|le mouse|
|00006210| 20 62 75 74 74 6f 6e 20 | 69 73 20 64 6f 77 6e 2e | button |is down.|
|00006220| 20 46 43 4e 20 73 68 6f | 75 6c 64 20 74 61 6b 65 | FCN sho|uld take|
|00006230| 20 74 77 6f 20 61 72 67 | 75 6d 65 6e 74 73 2c 0a | two arg|uments,.|
|00006240| 74 68 65 20 63 75 72 72 | 65 6e 74 20 78 20 61 6e |the curr|ent x an|
|00006250| 64 20 79 20 63 6f 6f 72 | 64 69 6e 61 74 65 73 20 |d y coor|dinates |
|00006260| 6f 66 20 74 68 65 20 6d | 6f 75 73 65 2e 20 52 65 |of the m|ouse. Re|
|00006270| 74 75 72 6e 73 20 4e 49 | 4c 2e 20 53 68 6f 75 6c |turns NI|L. Shoul|
|00006280| 64 20 62 65 20 63 61 6c | 6c 65 64 0a 77 68 65 6e |d be cal|led.when|
|00006290| 20 62 75 74 74 6f 6e 20 | 69 73 20 61 6c 72 65 61 | button |is alrea|
|000062a0| 64 79 20 64 6f 77 6e 2e | 0a 0a 5c 6f 64 6f 63 69 |dy down.|..\odoci|
|000062b0| 74 65 6d 7b 3a 78 2d 61 | 78 69 73 20 5c 26 6f 70 |tem{:x-a|xis \&op|
|000062c0| 74 69 6f 6e 61 6c 20 73 | 68 6f 77 69 6e 67 20 6c |tional s|howing l|
|000062d0| 61 62 65 6c 65 64 20 74 | 69 63 6b 73 20 7d 0a 53 |abeled t|icks }.S|
|000062e0| 65 74 73 20 6f 72 20 72 | 65 74 72 69 65 76 65 73 |ets or r|etrieves|
|000062f0| 20 63 75 72 72 65 6e 74 | 20 61 63 69 73 20 6c 61 | current| acis la|
|00006300| 62 65 6c 20 73 74 61 74 | 65 2e 20 53 48 4f 57 49 |bel stat|e. SHOWI|
|00006310| 4e 47 20 61 6e 64 20 4c | 41 42 45 4c 45 44 20 73 |NG and L|ABELED s|
|00006320| 68 6f 75 6c 64 20 62 65 | 0a 74 72 75 65 20 6f 72 |hould be|.true or|
|00006330| 20 4e 49 4c 3b 20 54 49 | 43 4b 53 20 73 68 6f 75 | NIL; TI|CKS shou|
|00006340| 6c 64 20 62 65 20 61 20 | 6e 75 6d 62 65 72 2e 20 |ld be a |number. |
|00006350| 41 6c 6c 20 74 68 72 65 | 65 20 73 68 6f 75 6c 64 |All thre|e should|
|00006360| 20 62 65 20 73 75 70 70 | 6c 69 65 64 20 66 6f 72 | be supp|lied for|
|00006370| 20 73 65 74 74 69 6e 67 | 0a 61 20 6e 65 77 20 73 | setting|.a new s|
|00006380| 74 61 74 65 2e 20 41 20 | 6c 69 73 74 20 6f 66 20 |tate. A |list of |
|00006390| 74 68 65 20 74 68 72 65 | 65 20 70 72 6f 70 65 72 |the thre|e proper|
|000063a0| 74 69 65 73 20 69 73 20 | 72 65 74 75 72 6e 65 64 |ties is |returned|
|000063b0| 2e 0a 0a 5c 6f 64 6f 63 | 69 74 65 6d 7b 3a 79 2d |...\odoc|item{:y-|
|000063c0| 61 78 69 73 20 5c 26 6f | 70 74 69 6f 6e 61 6c 20 |axis \&o|ptional |
|000063d0| 73 68 6f 77 69 6e 67 20 | 6c 61 62 65 6c 65 64 20 |showing |labeled |
|000063e0| 74 69 63 6b 73 20 7d 0a | 53 65 74 73 20 6f 72 20 |ticks }.|Sets or |
|000063f0| 72 65 74 72 69 65 76 65 | 73 20 63 75 72 72 65 6e |retrieve|s curren|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.