home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / fish / applications / xlispstat / man.lzh / Manual / Mac / techreport.tex < prev   
LaTeX Document  |  1990-10-12  |  124.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
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| 5c 64 6f 63 75 6d 65 6e | 74 73 74 79 6c 65 5b 74 |\documen|tstyle[t|
|00000010| 69 74 6c 65 70 61 67 65 | 5d 7b 61 72 74 69 63 6c |itlepage|]{articl|
|00000020| 65 7d 0a 0a 5c 6e 65 77 | 63 6f 6d 6d 61 6e 64 7b |e}..\new|command{|
|00000030| 5c 6d 61 63 62 6f 6c 64 | 7d 5b 31 5d 7b 7b 5c 62 |\macbold|}[1]{{\b|
|00000040| 66 20 23 31 7d 7d 0a 5c | 6e 65 77 63 6f 6d 6d 61 |f #1}}.\|newcomma|
|00000050| 6e 64 7b 5c 4e 49 4c 7d | 7b 7b 5c 74 74 20 4e 49 |nd{\NIL}|{{\tt NI|
|00000060| 4c 7d 7d 0a 5c 6e 65 77 | 63 6f 6d 6d 61 6e 64 7b |L}}.\new|command{|
|00000070| 5c 50 52 4f 4d 50 54 7d | 7b 5c 76 65 72 62 2b 3e |\PROMPT}|{\verb+>|
|00000080| 2b 7d 0a 5c 6e 65 77 63 | 6f 6d 6d 61 6e 64 7b 5c |+}.\newc|ommand{\|
|00000090| 43 4f 4d 4d 41 4e 44 7d | 5b 31 5d 7b 43 4f 4d 4d |COMMAND}|[1]{COMM|
|000000a0| 41 4e 44 2d 23 31 7d 0a | 0a 5c 6e 65 77 65 6e 76 |AND-#1}.|.\newenv|
|000000b0| 69 72 6f 6e 6d 65 6e 74 | 7b 6c 69 73 70 64 6f 63 |ironment|{lispdoc|
|000000c0| 7d 25 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |}%. | |
|000000d0| 20 20 7b 5c 62 65 67 69 | 6e 7b 6c 69 73 74 7d 7b | {\begi|n{list}{|
|000000e0| 7d 7b 5c 73 65 74 6c 65 | 6e 67 74 68 7b 5c 6c 65 |}{\setle|ngth{\le|
|000000f0| 66 74 6d 61 72 67 69 6e | 7d 7b 30 20 69 6e 7d 7d |ftmargin|}{0 in}}|
|00000100| 7d 25 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |}%. | |
|00000110| 20 20 7b 5c 65 6e 64 7b | 6c 69 73 74 7d 7d 0a 5c | {\end{|list}}.\|
|00000120| 6e 65 77 63 6f 6d 6d 61 | 6e 64 7b 5c 64 6f 63 69 |newcomma|nd{\doci|
|00000130| 74 65 6d 7d 5b 32 5d 7b | 5c 69 74 65 6d 20 23 31 |tem}[2]{|\item #1|
|00000140| 20 5c 68 66 69 6c 6c 20 | 5b 23 32 5d 5c 5c 7d 0a | \hfill |[#2]\\}.|
|00000150| 5c 6e 65 77 63 6f 6d 6d | 61 6e 64 7b 5c 66 64 6f |\newcomm|and{\fdo|
|00000160| 63 69 74 65 6d 7d 5b 31 | 5d 7b 5c 64 6f 63 69 74 |citem}[1|]{\docit|
|00000170| 65 6d 7b 23 31 7d 7b 46 | 75 6e 63 74 69 6f 6e 7d |em{#1}{F|unction}|
|00000180| 5c 69 6e 64 65 78 7b 23 | 31 7d 7d 0a 5c 6e 65 77 |\index{#|1}}.\new|
|00000190| 63 6f 6d 6d 61 6e 64 7b | 5c 6d 64 6f 63 69 74 65 |command{|\mdocite|
|000001a0| 6d 7d 5b 31 5d 7b 5c 64 | 6f 63 69 74 65 6d 7b 23 |m}[1]{\d|ocitem{#|
|000001b0| 31 7d 7b 4d 61 63 72 6f | 7d 5c 69 6e 64 65 78 7b |1}{Macro|}\index{|
|000001c0| 23 31 7d 7d 0a 5c 6e 65 | 77 63 6f 6d 6d 61 6e 64 |#1}}.\ne|wcommand|
|000001d0| 7b 5c 6f 64 6f 63 69 74 | 65 6d 7d 5b 31 5d 7b 5c |{\odocit|em}[1]{\|
|000001e0| 64 6f 63 69 74 65 6d 7b | 23 31 7d 7b 4f 62 6a 65 |docitem{|#1}{Obje|
|000001f0| 63 74 20 4d 65 74 68 6f | 64 7d 5c 69 6e 64 65 78 |ct Metho|d}\index|
|00000200| 7b 6d 65 73 73 61 67 65 | 73 3a 23 31 7d 7d 0a 0a |{message|s:#1}}..|
|00000210| 25 20 54 68 69 73 20 63 | 6f 6d 6d 61 6e 64 20 65 |% This c|ommand e|
|00000220| 6e 61 62 6c 65 73 20 68 | 79 70 68 65 6e 61 74 69 |nables h|yphenati|
|00000230| 6f 6e 20 69 66 20 5c 74 | 74 20 6d 6f 64 65 20 62 |on if \t|t mode b|
|00000240| 79 20 63 68 61 6e 67 65 | 64 20 5c 68 79 70 68 65 |y change|d \hyphe|
|00000250| 6e 63 68 61 72 61 63 74 | 65 72 0a 25 20 69 6e 20 |ncharact|er.% in |
|00000260| 74 68 65 20 31 30 20 70 | 6f 69 6e 74 20 74 79 70 |the 10 p|oint typ|
|00000270| 65 77 72 69 74 65 72 20 | 66 6f 6e 74 2e 20 54 6f |ewriter |font. To|
|00000280| 20 77 6f 72 6b 20 69 6e | 20 6f 74 68 65 72 20 70 | work in| other p|
|00000290| 6f 69 6e 74 20 73 69 7a | 65 73 20 69 74 20 77 6f |oint siz|es it wo|
|000002a0| 75 6c 64 0a 25 20 68 61 | 76 65 20 74 6f 20 62 65 |uld.% ha|ve to be|
|000002b0| 20 72 65 64 65 66 69 6e | 65 64 2e 20 49 74 20 6d | redefin|ed. It m|
|000002c0| 61 79 20 62 65 20 42 61 | 74 6f 72 20 74 6f 20 6a |ay be Ba|tor to j|
|000002d0| 75 73 74 20 6d 61 6b 65 | 20 74 68 65 20 63 68 61 |ust make| the cha|
|000002e0| 6e 67 65 20 67 6c 6f 62 | 61 6c 6c 79 20 0a 25 20 |nge glob|ally .% |
|000002f0| 61 6e 64 20 68 61 76 65 | 20 69 74 20 61 70 70 6c |and have| it appl|
|00000300| 79 20 74 6f 20 61 6e 79 | 74 68 69 6e 67 20 74 68 |y to any|thing th|
|00000310| 61 74 20 69 73 20 73 65 | 74 20 69 6e 20 5c 74 74 |at is se|t in \tt|
|00000320| 20 6d 6f 64 65 0a 5c 6e | 65 77 63 6f 6d 6d 61 6e | mode.\n|ewcomman|
|00000330| 64 7b 5c 64 63 6f 64 65 | 7d 5b 31 5d 7b 7b 5c 74 |d{\dcode|}[1]{{\t|
|00000340| 74 20 5c 68 79 70 68 65 | 6e 63 68 61 72 5c 74 65 |t \hyphe|nchar\te|
|00000350| 6e 74 74 3d 22 32 44 20 | 23 31 5c 68 79 70 68 65 |ntt="2D |#1\hyphe|
|00000360| 6e 63 68 61 72 5c 74 65 | 6e 74 74 3d 2d 31 7d 7d |nchar\te|ntt=-1}}|
|00000370| 0a 0a 5c 6e 65 77 63 6f | 6d 6d 61 6e 64 7b 5c 6e |..\newco|mmand{\n|
|00000380| 63 61 70 74 69 6f 6e 7d | 5b 32 5d 7b 5c 70 61 72 |caption}|[2]{\par|
|00000390| 62 6f 78 5b 74 5d 7b 33 | 2e 38 69 6e 7d 7b 5c 63 |box[t]{3|.8in}{\c|
|000003a0| 61 70 74 69 6f 6e 7b 23 | 31 7d 5c 6c 61 62 65 6c |aption{#|1}\label|
|000003b0| 7b 23 32 7d 7d 7d 0a 5c | 6e 65 77 63 6f 6d 6d 61 |{#2}}}.\|newcomma|
|000003c0| 6e 64 7b 5c 77 63 61 70 | 74 69 6f 6e 7d 5b 32 5d |nd{\wcap|tion}[2]|
|000003d0| 7b 5c 63 61 70 74 69 6f | 6e 7b 23 31 7d 5c 6c 61 |{\captio|n{#1}\la|
|000003e0| 62 65 6c 7b 23 32 7d 7d | 0a 0a 5c 64 65 66 5c 64 |bel{#2}}|..\def\d|
|000003f0| 69 73 70 6c 61 79 63 6f | 64 65 7b 5c 74 72 69 76 |isplayco|de{\triv|
|00000400| 6c 69 73 74 20 5c 74 74 | 20 5c 69 74 65 6d 5b 5d |list \tt| \item[]|
|00000410| 7d 0a 0a 5c 73 65 74 6c | 65 6e 67 74 68 7b 5c 74 |}..\setl|ength{\t|
|00000420| 65 78 74 77 69 64 74 68 | 7d 7b 36 69 6e 7d 0a 5c |extwidth|}{6in}.\|
|00000430| 73 65 74 6c 65 6e 67 74 | 68 7b 5c 74 65 78 74 68 |setlengt|h{\texth|
|00000440| 65 69 67 68 74 7d 7b 38 | 2e 35 69 6e 7d 0a 5c 73 |eight}{8|.5in}.\s|
|00000450| 65 74 6c 65 6e 67 74 68 | 7b 5c 74 6f 70 6d 61 72 |etlength|{\topmar|
|00000460| 67 69 6e 7d 7b 2d 30 2e | 32 35 69 6e 7d 0a 5c 73 |gin}{-0.|25in}.\s|
|00000470| 65 74 6c 65 6e 67 74 68 | 7b 5c 6f 64 64 73 69 64 |etlength|{\oddsid|
|00000480| 65 6d 61 72 67 69 6e 7d | 7b 30 2e 32 35 69 6e 7d |emargin}|{0.25in}|
|00000490| 0a 5c 73 65 74 6c 65 6e | 67 74 68 7b 5c 65 76 65 |.\setlen|gth{\eve|
|000004a0| 6e 73 69 64 65 6d 61 72 | 67 69 6e 7d 7b 30 2e 32 |nsidemar|gin}{0.2|
|000004b0| 35 69 6e 7d 0a 0a 5c 74 | 69 74 6c 65 7b 0a 58 4c |5in}..\t|itle{.XL|
|000004c0| 49 53 50 2d 53 54 41 54 | 5c 5c 20 0a 41 20 53 74 |ISP-STAT|\\ .A St|
|000004d0| 61 74 69 73 74 69 63 61 | 6c 20 45 6e 76 69 72 6f |atistica|l Enviro|
|000004e0| 6e 6d 65 6e 74 20 42 61 | 73 65 64 20 6f 6e 20 5c |nment Ba|sed on \|
|000004f0| 5c 20 0a 74 68 65 20 58 | 4c 49 53 50 20 4c 61 6e |\ .the X|LISP Lan|
|00000500| 67 75 61 67 65 5c 5c 0a | 7b 5c 6c 61 72 67 65 20 |guage\\.|{\large |
|00000510| 28 42 65 74 61 20 54 65 | 73 74 20 56 65 72 73 69 |(Beta Te|st Versi|
|00000520| 6f 6e 20 32 2e 30 29 7d | 7d 0a 0a 5c 61 75 74 68 |on 2.0)}|}..\auth|
|00000530| 6f 72 7b 0a 4c 75 6b 65 | 20 54 69 65 72 6e 65 79 |or{.Luke| Tierney|
|00000540| 5c 5c 20 0a 53 63 68 6f | 6f 6c 20 6f 66 20 53 74 |\\ .Scho|ol of St|
|00000550| 61 74 69 73 74 69 63 73 | 20 5c 5c 20 0a 55 6e 69 |atistics| \\ .Uni|
|00000560| 76 65 72 73 69 74 79 20 | 6f 66 20 4d 69 6e 6e 65 |versity |of Minne|
|00000570| 73 6f 74 61 7d 0a 0a 25 | 58 4c 49 53 50 2d 53 54 |sota}..%|XLISP-ST|
|00000580| 41 54 20 56 65 72 73 69 | 6f 6e 20 32 2e 30 20 62 |AT Versi|on 2.0 b|
|00000590| 65 74 61 0a 5c 6d 61 6b | 65 69 6e 64 65 78 0a 5c |eta.\mak|eindex.\|
|000005a0| 62 65 67 69 6e 7b 64 6f | 63 75 6d 65 6e 74 7d 0a |begin{do|cument}.|
|000005b0| 5c 6d 61 6b 65 74 69 74 | 6c 65 0a 5c 74 61 62 6c |\maketit|le.\tabl|
|000005c0| 65 6f 66 63 6f 6e 74 65 | 6e 74 73 0a 0a 5c 6e 65 |eofconte|nts..\ne|
|000005d0| 77 70 61 67 65 0a 5c 73 | 65 63 74 69 6f 6e 2a 7b |wpage.\s|ection*{|
|000005e0| 50 72 65 66 61 63 65 7d | 0a 58 4c 49 53 50 2d 53 |Preface}|.XLISP-S|
|000005f0| 54 41 54 20 69 73 20 61 | 20 73 74 61 74 69 73 74 |TAT is a| statist|
|00000600| 69 63 61 6c 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |ical env|ironment|
|00000610| 20 62 75 69 6c 74 20 6f | 6e 20 74 6f 70 20 6f 66 | built o|n top of|
|00000620| 20 74 68 65 20 58 4c 49 | 53 50 0a 70 72 6f 67 72 | the XLI|SP.progr|
|00000630| 61 6d 6d 69 6e 67 20 6c | 61 6e 67 75 61 67 65 2e |amming l|anguage.|
|00000640| 20 54 68 69 73 20 64 6f | 63 75 6d 65 6e 74 20 69 | This do|cument i|
|00000650| 73 20 69 6e 74 65 6e 64 | 65 64 20 74 6f 20 62 65 |s intend|ed to be|
|00000660| 20 61 20 74 75 74 6f 72 | 69 61 6c 0a 69 6e 74 72 | a tutor|ial.intr|
|00000670| 6f 64 75 63 74 69 6f 6e | 20 74 6f 20 74 68 65 20 |oduction| to the |
|00000680| 62 61 73 69 63 73 20 6f | 66 20 58 4c 49 53 50 2d |basics o|f XLISP-|
|00000690| 53 54 41 54 2e 20 54 68 | 65 20 66 69 72 73 74 20 |STAT. Th|e first |
|000006a0| 74 68 72 65 65 20 73 65 | 63 74 69 6f 6e 73 0a 63 |three se|ctions.c|
|000006b0| 6f 6e 74 61 69 6e 20 74 | 68 65 20 69 6e 66 6f 72 |ontain t|he infor|
|000006c0| 6d 61 74 69 6f 6e 20 79 | 6f 75 20 77 69 6c 6c 20 |mation y|ou will |
|000006d0| 6e 65 65 64 20 74 6f 20 | 64 6f 20 65 6c 65 6d 65 |need to |do eleme|
|000006e0| 6e 74 61 72 79 20 73 74 | 61 74 69 73 74 69 63 61 |ntary st|atistica|
|000006f0| 6c 0a 63 61 6c 63 75 6c | 61 74 69 6f 6e 73 20 61 |l.calcul|ations a|
|00000700| 6e 64 20 70 6c 6f 74 74 | 69 6e 67 2e 20 54 68 65 |nd plott|ing. The|
|00000710| 20 66 6f 75 72 74 68 20 | 73 65 63 74 69 6f 6e 20 | fourth |section |
|00000720| 69 6e 74 72 6f 64 75 63 | 65 73 20 73 6f 6d 65 0a |introduc|es some.|
|00000730| 61 64 64 69 74 69 6f 6e | 61 6c 20 6d 65 74 68 6f |addition|al metho|
|00000740| 64 73 20 66 6f 72 20 67 | 65 6e 65 72 61 74 69 6e |ds for g|eneratin|
|00000750| 67 20 61 6e 64 20 6d 6f | 64 69 66 79 69 6e 67 20 |g and mo|difying |
|00000760| 64 61 74 61 2e 20 54 68 | 65 20 66 69 66 74 68 0a |data. Th|e fifth.|
|00000770| 73 65 63 74 69 6f 6e 20 | 64 65 73 63 72 69 62 65 |section |describe|
|00000780| 73 20 73 6f 6d 65 20 61 | 64 64 69 74 69 6f 6e 61 |s some a|dditiona|
|00000790| 6c 20 66 65 61 74 75 72 | 65 73 20 6f 66 20 74 68 |l featur|es of th|
|000007a0| 65 20 75 73 65 72 20 69 | 6e 74 65 72 66 61 63 65 |e user i|nterface|
|000007b0| 20 74 68 61 74 0a 6d 61 | 79 20 62 65 20 68 65 6c | that.ma|y be hel|
|000007c0| 70 66 75 6c 2e 20 20 54 | 68 65 20 72 65 6d 61 69 |pful. T|he remai|
|000007d0| 6e 69 6e 67 20 73 65 63 | 74 69 6f 6e 73 20 64 65 |ning sec|tions de|
|000007e0| 61 6c 20 77 69 74 68 20 | 6d 6f 72 65 20 61 64 76 |al with |more adv|
|000007f0| 61 6e 63 65 64 0a 74 6f | 70 69 63 73 2c 20 73 75 |anced.to|pics, su|
|00000800| 63 68 20 61 73 20 69 6e | 74 65 72 61 63 74 69 76 |ch as in|teractiv|
|00000810| 65 20 70 6c 6f 74 73 2c | 20 72 65 67 72 65 73 73 |e plots,| regress|
|00000820| 69 6f 6e 20 6d 6f 64 65 | 6c 73 2c 20 61 6e 64 0a |ion mode|ls, and.|
|00000830| 77 72 69 74 69 6e 67 20 | 79 6f 75 72 20 6f 77 6e |writing |your own|
|00000840| 20 66 75 6e 63 74 69 6f | 6e 73 2e 20 20 41 6c 6c | functio|ns. All|
|00000850| 20 73 65 63 74 69 6f 6e | 73 20 61 72 65 20 6f 72 | section|s are or|
|00000860| 67 61 6e 69 7a 65 64 20 | 61 72 6f 75 6e 64 0a 65 |ganized |around.e|
|00000870| 78 61 6d 70 6c 65 73 2c | 20 61 6e 64 20 6d 6f 73 |xamples,| and mos|
|00000880| 74 20 63 6f 6e 74 61 69 | 6e 20 73 6f 6d 65 20 73 |t contai|n some s|
|00000890| 75 67 67 65 73 74 65 64 | 20 65 78 65 72 63 69 73 |uggested| exercis|
|000008a0| 65 73 20 66 6f 72 20 74 | 68 65 20 72 65 61 64 65 |es for t|he reade|
|000008b0| 72 2e 0a 0a 54 68 69 73 | 20 64 6f 63 75 6d 65 6e |r...This| documen|
|000008c0| 74 20 69 73 20 6e 6f 74 | 20 69 6e 74 65 6e 64 65 |t is not| intende|
|000008d0| 64 20 74 6f 20 62 65 20 | 61 20 63 6f 6d 70 6c 65 |d to be |a comple|
|000008e0| 74 65 20 6d 61 6e 75 61 | 6c 2e 20 48 6f 77 65 76 |te manua|l. Howev|
|000008f0| 65 72 2c 0a 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |er,.docu|mentatio|
|00000900| 6e 20 66 6f 72 20 6f 66 | 20 6d 61 6e 79 20 6f 66 |n for of| many of|
|00000910| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 73 20 61 76 | the com|mands av|
|00000920| 61 69 6c 61 62 6c 65 20 | 69 73 20 67 69 76 65 6e |ailable |is given|
|00000930| 20 69 6e 20 74 68 65 0a | 61 70 70 65 6e 64 69 78 | in the.|appendix|
|00000940| 2e 20 42 72 69 65 66 20 | 68 65 6c 70 20 6d 65 73 |. Brief |help mes|
|00000950| 73 61 67 65 73 20 66 6f | 72 20 74 68 65 73 65 20 |sages fo|r these |
|00000960| 61 6e 64 20 6f 74 68 65 | 72 20 63 6f 6d 6d 61 6e |and othe|r comman|
|00000970| 64 73 20 61 72 65 20 61 | 76 61 69 6c 61 62 6c 65 |ds are a|vailable|
|00000980| 0a 74 68 72 6f 75 67 68 | 20 74 68 65 20 69 6e 74 |.through| the int|
|00000990| 65 72 61 63 74 69 76 65 | 20 68 65 6c 70 20 66 61 |eractive| help fa|
|000009a0| 63 69 6c 69 74 79 20 64 | 65 73 63 72 69 62 65 64 |cility d|escribed|
|000009b0| 20 69 6e 20 53 65 63 74 | 69 6f 6e 0a 5c 72 65 66 | in Sect|ion.\ref|
|000009c0| 7b 53 68 6f 72 74 63 75 | 74 73 2e 48 65 6c 70 7d |{Shortcu|ts.Help}|
|000009d0| 20 62 65 6c 6f 77 2e 0a | 0a 58 4c 49 53 50 20 69 | below..|.XLISP i|
|000009e0| 74 73 65 6c 66 20 69 73 | 20 61 20 68 69 67 68 20 |tself is| a high |
|000009f0| 6c 65 76 65 6c 20 70 72 | 6f 67 72 61 6d 6d 69 6e |level pr|ogrammin|
|00000a00| 67 20 6c 61 6e 67 75 61 | 67 65 20 64 65 76 65 6c |g langua|ge devel|
|00000a10| 6f 70 65 64 20 62 79 20 | 44 61 76 69 64 0a 42 65 |oped by |David.Be|
|00000a20| 74 7a 20 61 6e 64 20 70 | 6c 61 63 65 64 20 69 6e |tz and p|laced in|
|00000a30| 20 74 68 65 20 70 75 62 | 6c 69 63 20 64 6f 6d 61 | the pub|lic doma|
|00000a40| 69 6e 2e 20 49 74 20 69 | 73 20 61 20 64 69 61 6c |in. It i|s a dial|
|00000a50| 65 63 74 20 6f 66 20 4c | 69 73 70 2c 20 6d 6f 73 |ect of L|isp, mos|
|00000a60| 74 0a 63 6c 6f 73 65 6c | 79 20 72 65 6c 61 74 65 |t.closel|y relate|
|00000a70| 64 20 74 6f 20 74 68 65 | 20 43 6f 6d 6d 6f 6e 20 |d to the| Common |
|00000a80| 4c 69 73 70 20 64 69 61 | 6c 65 63 74 2e 20 58 4c |Lisp dia|lect. XL|
|00000a90| 49 53 50 20 61 6c 73 6f | 20 63 6f 6e 74 61 69 6e |ISP also| contain|
|00000aa0| 73 20 73 6f 6d 65 0a 65 | 78 74 65 6e 73 69 6f 6e |s some.e|xtension|
|00000ab0| 73 20 74 6f 20 4c 69 73 | 70 20 74 6f 20 73 75 70 |s to Lis|p to sup|
|00000ac0| 70 6f 72 74 20 6f 62 6a | 65 63 74 20 6f 72 69 65 |port obj|ect orie|
|00000ad0| 6e 74 65 64 20 70 72 6f | 67 72 61 6d 6d 69 6e 67 |nted pro|gramming|
|00000ae0| 2e 20 54 68 65 73 65 0a | 66 61 63 69 6c 69 74 69 |. These.|faciliti|
|00000af0| 65 73 20 68 61 76 65 20 | 62 65 65 6e 20 6d 6f 64 |es have |been mod|
|00000b00| 69 66 69 65 64 20 69 6e | 20 58 4c 49 53 50 2d 53 |ified in| XLISP-S|
|00000b10| 54 41 54 20 74 6f 20 69 | 6d 70 6c 65 6d 65 6e 74 |TAT to i|mplement|
|00000b20| 20 74 68 65 20 73 63 72 | 65 65 6e 0a 6d 65 6e 75 | the scr|een.menu|
|00000b30| 73 2c 20 70 6c 6f 74 73 | 20 61 6e 64 20 72 65 67 |s, plots| and reg|
|00000b40| 72 65 73 73 69 6f 6e 20 | 6d 6f 64 65 6c 73 2e 20 |ression |models. |
|00000b50| 53 65 76 65 72 61 6c 20 | 65 78 63 65 6c 6c 65 6e |Several |excellen|
|00000b60| 74 20 62 6f 6f 6b 73 20 | 6f 6e 20 43 6f 6d 6d 6f |t books |on Commo|
|00000b70| 6e 0a 4c 69 73 70 20 61 | 72 65 20 61 76 61 69 6c |n.Lisp a|re avail|
|00000b80| 61 62 6c 65 2e 20 4f 6e | 65 20 65 78 61 6d 70 6c |able. On|e exampl|
|00000b90| 65 20 69 73 20 57 69 6e | 73 74 6f 6e 20 61 6e 64 |e is Win|ston and|
|00000ba0| 20 48 6f 72 6e 0a 5c 63 | 69 74 65 7b 57 69 6e 73 | Horn.\c|ite{Wins|
|00000bb0| 74 6f 6e 48 6f 72 6e 7d | 2e 20 41 20 62 6f 6f 6b |tonHorn}|. A book|
|00000bc0| 20 6f 6e 20 58 4c 49 53 | 50 20 69 74 73 65 6c 66 | on XLIS|P itself|
|00000bd0| 20 68 61 73 20 72 65 63 | 65 6e 74 6c 79 20 62 65 | has rec|ently be|
|00000be0| 65 6e 0a 70 75 62 6c 69 | 73 68 65 64 2e 20 55 6e |en.publi|shed. Un|
|00000bf0| 66 6f 72 74 75 6e 61 74 | 65 6c 79 20 69 74 20 69 |fortunat|ely it i|
|00000c00| 73 20 62 61 73 65 64 20 | 6f 6e 20 58 4c 49 53 50 |s based |on XLISP|
|00000c10| 20 31 2e 37 2c 20 77 68 | 69 63 68 20 64 69 66 66 | 1.7, wh|ich diff|
|00000c20| 65 72 73 0a 73 69 67 6e | 69 66 69 63 61 6e 74 6c |ers.sign|ificantl|
|00000c30| 79 20 66 72 6f 6d 20 58 | 4c 49 53 50 20 32 2e 30 |y from X|LISP 2.0|
|00000c40| 2c 20 74 68 65 20 62 61 | 73 69 73 20 6f 66 20 58 |, the ba|sis of X|
|00000c50| 4c 49 53 50 2d 53 54 41 | 54 20 32 2e 30 2e 0a 44 |LISP-STA|T 2.0..D|
|00000c60| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 6f 6e 20 |ocumenta|tion on |
|00000c70| 58 4c 49 53 50 20 32 2e | 30 20 69 73 20 69 6e 63 |XLISP 2.|0 is inc|
|00000c80| 6c 75 64 65 64 20 69 6e | 20 74 68 65 20 73 6f 75 |luded in| the sou|
|00000c90| 72 63 65 20 63 6f 64 65 | 0a 64 69 73 74 72 69 62 |rce code|.distrib|
|00000ca0| 75 74 69 6f 6e 3b 20 61 | 20 63 6f 70 79 20 69 73 |ution; a| copy is|
|00000cb0| 20 61 76 61 69 6c 61 62 | 6c 65 20 66 72 6f 6d 20 | availab|le from |
|00000cc0| 6d 65 2e 20 42 65 74 7a | 20 68 61 73 20 61 6c 73 |me. Betz| has als|
|00000cd0| 6f 20 77 72 69 74 74 65 | 6e 20 61 0a 74 75 74 6f |o writte|n a.tuto|
|00000ce0| 72 69 61 6c 20 69 6e 74 | 72 6f 64 75 63 74 69 6f |rial int|roductio|
|00000cf0| 6e 20 74 6f 20 58 4c 49 | 53 50 20 66 6f 72 20 42 |n to XLI|SP for B|
|00000d00| 59 54 45 20 5c 63 69 74 | 65 7b 42 65 74 7a 42 59 |YTE \cit|e{BetzBY|
|00000d10| 54 45 7d 2e 20 48 6f 77 | 65 76 65 72 2c 20 74 68 |TE}. How|ever, th|
|00000d20| 69 73 0a 64 65 61 6c 73 | 20 77 69 74 68 20 76 65 |is.deals| with ve|
|00000d30| 72 73 69 6f 6e 20 31 2e | 32 2c 20 77 68 69 63 68 |rsion 1.|2, which|
|00000d40| 20 61 67 61 69 6e 20 64 | 69 66 66 65 72 73 20 73 | again d|iffers s|
|00000d50| 69 67 6e 69 66 69 63 61 | 6e 74 6c 79 20 66 72 6f |ignifica|ntly fro|
|00000d60| 6d 20 76 65 72 73 69 6f | 6e 0a 32 2e 30 2e 0a 0a |m versio|n.2.0...|
|00000d70| 54 68 69 73 20 64 6f 63 | 75 6d 65 6e 74 20 64 65 |This doc|ument de|
|00000d80| 61 6c 73 20 70 72 69 6d | 61 72 69 6c 79 20 77 69 |als prim|arily wi|
|00000d90| 74 68 20 56 65 72 73 69 | 6f 6e 20 32 2e 30 20 6f |th Versi|on 2.0 o|
|00000da0| 66 20 58 4c 49 53 50 2d | 53 54 41 54 20 66 6f 72 |f XLISP-|STAT for|
|00000db0| 20 74 68 65 0a 41 70 70 | 6c 65 20 4d 61 63 69 6e | the.App|le Macin|
|00000dc0| 74 6f 73 68 2e 20 20 58 | 4c 49 53 50 2d 53 54 41 |tosh. X|LISP-STA|
|00000dd0| 54 20 69 73 20 61 6c 73 | 6f 20 61 76 61 69 6c 61 |T is als|o availa|
|00000de0| 62 6c 65 20 66 6f 72 20 | 34 2e 5b 32 33 5d 42 53 |ble for |4.[23]BS|
|00000df0| 44 20 55 4e 49 58 20 61 | 6e 64 0a 66 6f 72 20 72 |D UNIX a|nd.for r|
|00000e00| 75 6e 6e 69 6e 67 20 75 | 6e 64 65 72 20 73 75 6e |unning u|nder sun|
|00000e10| 74 6f 6f 6c 73 20 6f 6e | 20 53 75 6e 20 63 6f 6d |tools on| Sun com|
|00000e20| 70 75 74 65 72 73 2e 20 | 54 68 65 20 62 61 73 69 |puters. |The basi|
|00000e30| 63 20 55 4e 49 58 20 76 | 65 72 73 69 6f 6e 0a 70 |c UNIX v|ersion.p|
|00000e40| 72 65 73 65 6e 74 6c 79 | 20 73 75 70 70 6f 72 74 |resently| support|
|00000e50| 73 20 6e 6f 6e 2d 69 6e | 74 65 72 61 63 74 69 76 |s non-in|teractiv|
|00000e60| 65 20 70 6c 6f 74 74 69 | 6e 67 20 66 6f 72 20 74 |e plotti|ng for t|
|00000e70| 65 6b 74 72 6f 6e 69 78 | 20 74 65 72 6d 69 6e 61 |ektronix| termina|
|00000e80| 6c 73 20 76 69 61 20 0a | 74 68 65 20 67 6e 75 70 |ls via .|the gnup|
|00000e90| 6c 6f 74 20 72 6f 75 74 | 69 6e 65 73 2e 20 57 68 |lot rout|ines. Wh|
|00000ea0| 65 6e 20 72 75 6e 6e 69 | 6e 67 20 6f 6e 20 61 20 |en runni|ng on a |
|00000eb0| 53 75 6e 20 63 6f 6e 73 | 6f 6c 65 20 75 6e 64 65 |Sun cons|ole unde|
|00000ec0| 72 20 73 75 6e 74 6f 6f | 6c 73 0a 69 6e 74 65 72 |r suntoo|ls.inter|
|00000ed0| 61 63 74 69 76 65 20 67 | 72 61 70 68 69 63 73 20 |active g|raphics |
|00000ee0| 61 72 65 20 61 76 61 69 | 6c 61 62 6c 65 2e 0a 0a |are avai|lable...|
|00000ef0| 54 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 76 65 |The Maci|ntosh ve|
|00000f00| 72 73 69 6f 6e 20 6f 66 | 20 58 4c 49 53 50 2d 53 |rsion of| XLISP-S|
|00000f10| 54 41 54 20 77 61 73 20 | 64 65 76 65 6c 6f 70 65 |TAT was |develope|
|00000f20| 64 20 61 6e 64 20 63 6f | 6d 70 69 6c 65 64 20 75 |d and co|mpiled u|
|00000f30| 73 69 6e 67 0a 74 68 65 | 20 4c 69 67 68 74 73 70 |sing.the| Lightsp|
|00000f40| 65 65 64 20 43 20 63 6f | 6d 70 69 6c 65 72 20 66 |eed C co|mpiler f|
|00000f50| 72 6f 6d 20 54 68 69 6e | 6b 20 54 65 63 68 6e 6f |rom Thin|k Techno|
|00000f60| 6c 6f 67 69 65 73 2c 20 | 49 6e 63 2e 20 54 68 65 |logies, |Inc. The|
|00000f70| 20 4d 61 63 69 6e 74 6f | 73 68 0a 75 73 65 72 20 | Macinto|sh.user |
|00000f80| 69 6e 74 65 72 66 61 63 | 65 20 69 73 20 62 61 73 |interfac|e is bas|
|00000f90| 65 64 20 6f 6e 20 50 61 | 75 6c 20 44 75 42 6f 69 |ed on Pa|ul DuBoi|
|00000fa0| 73 27 20 54 72 61 6e 73 | 53 6b 65 6c 20 61 6e 64 |s' Trans|Skel and|
|00000fb0| 20 54 72 61 6e 73 45 64 | 69 74 0a 6c 69 62 72 61 | TransEd|it.libra|
|00000fc0| 72 69 65 73 2e 20 53 6f | 6d 65 20 6f 66 20 74 68 |ries. So|me of th|
|00000fd0| 65 20 6c 69 6e 65 61 72 | 20 61 6c 67 65 62 72 61 |e linear| algebra|
|00000fe0| 20 61 6e 64 20 70 72 6f | 62 61 62 69 6c 69 74 79 | and pro|bability|
|00000ff0| 20 66 75 6e 63 74 69 6f | 6e 73 20 61 72 65 0a 62 | functio|ns are.b|
|00001000| 61 73 65 64 20 6f 6e 20 | 63 6f 64 65 20 67 69 76 |ased on |code giv|
|00001010| 65 6e 20 69 6e 20 50 72 | 65 73 73 2c 20 46 6c 61 |en in Pr|ess, Fla|
|00001020| 6e 6e 65 72 79 2c 20 54 | 65 75 6b 6f 6c 73 6b 79 |nnery, T|eukolsky|
|00001030| 20 61 6e 64 20 56 65 74 | 74 65 72 6c 69 6e 67 0a | and Vet|terling.|
|00001040| 5c 63 69 74 65 7b 43 52 | 65 63 69 70 65 73 7d 2e |\cite{CR|ecipes}.|
|00001050| 20 52 65 67 72 65 73 73 | 69 6f 6e 20 63 6f 6d 70 | Regress|ion comp|
|00001060| 75 74 61 74 69 6f 6e 73 | 20 61 72 65 20 63 61 72 |utations| are car|
|00001070| 72 69 65 64 20 6f 75 74 | 20 75 73 69 6e 67 20 74 |ried out| using t|
|00001080| 68 65 20 73 77 65 65 70 | 0a 61 6c 67 6f 72 69 74 |he sweep|.algorit|
|00001090| 68 6d 20 61 73 20 64 65 | 73 63 72 69 62 65 64 20 |hm as de|scribed |
|000010a0| 69 6e 20 57 65 69 73 62 | 65 72 67 20 5c 63 69 74 |in Weisb|erg \cit|
|000010b0| 65 7b 4d 75 6c 74 72 65 | 67 7d 2e 0a 0a 54 68 69 |e{Multre|g}...Thi|
|000010c0| 73 20 74 75 74 6f 72 69 | 61 6c 20 68 61 73 20 62 |s tutori|al has b|
|000010d0| 6f 72 72 6f 77 65 64 20 | 73 65 76 65 72 61 6c 20 |orrowed |several |
|000010e0| 69 64 65 61 73 20 66 72 | 6f 6d 20 47 61 72 79 20 |ideas fr|om Gary |
|000010f0| 4f 65 68 6c 65 72 74 27 | 73 0a 7b 5c 65 6d 20 4d |Oehlert'|s.{\em M|
|00001100| 61 63 41 6e 6f 76 61 20 | 55 73 65 72 27 73 20 47 |acAnova |User's G|
|00001110| 75 69 64 65 7d 5c 2f 20 | 5c 63 69 74 65 7b 4d 61 |uide}\/ |\cite{Ma|
|00001120| 63 61 6e 6f 76 61 7d 2e | 20 4d 61 6e 79 20 6f 66 |canova}.| Many of|
|00001130| 20 74 68 65 20 6f 6e 2d | 6c 69 6e 65 20 68 65 6c | the on-|line hel|
|00001140| 70 0a 65 6e 74 72 69 65 | 73 20 68 61 76 65 20 62 |p.entrie|s have b|
|00001150| 65 65 6e 20 61 64 6f 70 | 74 65 64 20 64 69 72 65 |een adop|ted dire|
|00001160| 63 74 6c 79 20 6f 72 20 | 77 69 74 68 20 6d 69 6e |ctly or |with min|
|00001170| 6f 72 20 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 73 |or modif|ications|
|00001180| 20 66 72 6f 6d 20 74 68 | 65 0a 7b 5c 65 6d 20 4b | from th|e.{\em K|
|00001190| 79 6f 74 6f 20 43 6f 6d | 6d 6f 6e 20 4c 69 73 70 |yoto Com|mon Lisp|
|000011a0| 20 53 79 73 74 65 6d 7d | 2e 20 4d 6f 73 74 20 6f | System}|. Most o|
|000011b0| 66 20 74 68 65 20 65 78 | 61 6d 70 6c 65 73 20 75 |f the ex|amples u|
|000011c0| 73 65 64 20 69 6e 20 74 | 68 69 73 0a 74 75 74 6f |sed in t|his.tuto|
|000011d0| 72 69 61 6c 20 68 61 76 | 65 20 62 65 65 6e 20 74 |rial hav|e been t|
|000011e0| 61 6b 65 6e 20 66 72 6f | 6d 20 44 65 76 6f 72 65 |aken fro|m Devore|
|000011f0| 20 61 6e 64 20 50 65 63 | 6b 20 5c 63 69 74 65 7b | and Pec|k \cite{|
|00001200| 44 65 76 6f 72 65 50 65 | 63 6b 7d 2e 20 4d 61 6e |DevorePe|ck}. Man|
|00001210| 79 20 6f 66 0a 74 68 65 | 20 66 75 6e 63 74 69 6f |y of.the| functio|
|00001220| 6e 73 20 61 64 64 65 64 | 20 74 6f 20 58 4c 49 53 |ns added| to XLIS|
|00001230| 50 2d 53 54 41 54 20 77 | 65 72 65 20 6d 6f 74 69 |P-STAT w|ere moti|
|00001240| 76 61 74 65 64 20 62 79 | 20 73 69 6d 69 6c 61 72 |vated by| similar|
|00001250| 20 66 75 6e 63 74 69 6f | 6e 73 20 69 6e 0a 74 68 | functio|ns in.th|
|00001260| 65 20 7b 5c 65 6d 20 53 | 7d 20 73 74 61 74 69 73 |e {\em S|} statis|
|00001270| 74 69 63 61 6c 20 65 6e | 76 69 72 6f 6e 6d 65 6e |tical en|vironmen|
|00001280| 74 20 5c 63 69 74 65 7b | 6f 6c 64 53 62 6f 6f 6b |t \cite{|oldSbook|
|00001290| 2c 6e 65 77 53 62 6f 6f | 6b 7d 2e 0a 0a 54 68 65 |,newSboo|k}...The|
|000012a0| 20 70 72 65 73 65 6e 74 | 20 76 65 72 73 69 6f 6e | present| version|
|000012b0| 20 6f 66 20 58 4c 49 53 | 50 2d 53 54 41 54 20 32 | of XLIS|P-STAT 2|
|000012c0| 2e 30 20 73 65 65 6d 73 | 20 74 6f 20 72 75 6e 20 |.0 seems| to run |
|000012d0| 66 61 69 72 6c 79 20 63 | 6f 6d 66 6f 72 74 61 62 |fairly c|omfortab|
|000012e0| 6c 79 0a 6f 6e 20 61 20 | 4d 61 63 20 49 49 20 6f |ly.on a |Mac II o|
|000012f0| 72 20 4d 61 63 20 50 6c | 75 73 20 77 69 74 68 20 |r Mac Pl|us with |
|00001300| 32 4d 42 20 6f 66 20 6d | 65 6d 6f 72 79 2c 20 62 |2MB of m|emory, b|
|00001310| 75 74 20 69 73 20 61 20 | 62 69 74 20 63 72 61 6d |ut is a |bit cram|
|00001320| 70 65 64 20 77 69 74 68 | 0a 6f 6e 6c 79 20 31 4d |ped with|.only 1M|
|00001330| 42 2e 20 49 74 20 77 69 | 6c 6c 20 6e 6f 74 20 72 |B. It wi|ll not r|
|00001340| 75 6e 20 69 6e 20 6c 65 | 73 73 20 74 68 61 6e 20 |un in le|ss than |
|00001350| 31 4d 62 20 6f 66 20 6d | 65 6d 6f 72 79 2e 20 54 |1Mb of m|emory. T|
|00001360| 68 65 20 70 72 6f 67 72 | 61 6d 20 77 69 6c 6c 0a |he progr|am will.|
|00001370| 6f 63 63 61 73 69 6f 6e | 61 6c 6c 79 20 62 6f 6d |occasion|ally bom|
|00001380| 62 20 77 69 74 68 20 61 | 6e 20 49 44 3d 32 38 20 |b with a|n ID=28 |
|00001390| 69 66 20 69 74 20 67 65 | 74 73 20 69 6e 74 6f 20 |if it ge|ts into |
|000013a0| 61 20 72 65 63 75 72 73 | 69 6f 6e 20 74 68 61 74 |a recurs|ion that|
|000013b0| 20 69 73 0a 74 6f 6f 20 | 64 65 65 70 20 66 6f 72 | is.too |deep for|
|000013c0| 20 74 68 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 73 | the Mac|intosh s|
|000013d0| 74 61 63 6b 20 74 6f 20 | 68 61 6e 64 6c 65 2e 20 |tack to |handle. |
|000013e0| 4f 6e 20 61 20 31 4d 42 | 20 4d 61 63 20 69 74 20 |On a 1MB| Mac it |
|000013f0| 6d 61 79 20 61 6c 73 6f | 0a 62 6f 6d 62 20 77 69 |may also|.bomb wi|
|00001400| 74 68 20 61 6e 20 49 44 | 3d 31 35 20 69 66 20 74 |th an ID|=15 if t|
|00001410| 6f 6f 20 6d 75 63 68 20 | 6d 65 6d 6f 72 79 20 68 |oo much |memory h|
|00001420| 61 73 20 62 65 65 6e 20 | 75 73 65 64 20 66 6f 72 |as been |used for|
|00001430| 20 74 68 65 20 73 65 67 | 6d 65 6e 74 0a 6c 6f 61 | the seg|ment.loa|
|00001440| 64 65 72 20 74 6f 20 62 | 65 20 61 62 6c 65 20 74 |der to b|e able t|
|00001450| 6f 20 62 72 69 6e 67 20 | 69 6e 20 61 20 72 65 71 |o bring |in a req|
|00001460| 75 69 72 65 64 20 63 6f | 64 65 20 73 65 67 6d 65 |uired co|de segme|
|00001470| 6e 74 2e 0a 0a 44 65 76 | 65 6c 6f 70 6d 65 6e 74 |nt...Dev|elopment|
|00001480| 20 6f 66 20 58 4c 49 53 | 50 2d 53 54 41 54 20 77 | of XLIS|P-STAT w|
|00001490| 61 73 20 73 75 70 70 6f | 72 74 65 64 20 69 6e 20 |as suppo|rted in |
|000014a0| 70 61 72 74 20 62 79 20 | 67 72 61 6e 74 73 20 6f |part by |grants o|
|000014b0| 66 20 61 6e 20 41 70 70 | 6c 65 0a 4d 61 63 69 6e |f an App|le.Macin|
|000014c0| 74 6f 73 68 20 50 6c 75 | 73 20 63 6f 6d 70 75 74 |tosh Plu|s comput|
|000014d0| 65 72 20 61 6e 64 20 68 | 61 72 64 20 64 69 73 6b |er and h|ard disk|
|000014e0| 20 61 6e 64 20 61 20 4d | 61 63 69 6e 74 6f 73 68 | and a M|acintosh|
|000014f0| 20 49 49 20 63 6f 6d 70 | 75 74 65 72 20 66 72 6f | II comp|uter fro|
|00001500| 6d 0a 74 68 65 20 4d 69 | 6e 6e 65 4d 61 63 20 50 |m.the Mi|nneMac P|
|00001510| 72 6f 6a 65 63 74 20 61 | 74 20 74 68 65 20 55 6e |roject a|t the Un|
|00001520| 69 76 65 72 73 69 74 79 | 20 6f 66 20 4d 69 6e 6e |iversity| of Minn|
|00001530| 65 73 6f 74 61 2c 20 62 | 79 20 61 20 73 69 6e 67 |esota, b|y a sing|
|00001540| 6c 65 0a 71 75 61 72 74 | 65 72 20 6c 65 61 76 65 |le.quart|er leave|
|00001550| 20 67 72 61 6e 74 65 64 | 20 74 6f 20 74 68 65 20 | granted| to the |
|00001560| 61 75 74 68 6f 72 20 62 | 79 20 74 68 65 20 55 6e |author b|y the Un|
|00001570| 69 76 65 72 73 69 74 79 | 20 6f 66 20 4d 69 6e 6e |iversity| of Minn|
|00001580| 65 73 6f 74 61 2c 0a 61 | 6e 64 20 62 79 20 67 72 |esota,.a|nd by gr|
|00001590| 61 6e 74 20 44 4d 53 2d | 38 37 30 35 36 34 36 20 |ant DMS-|8705646 |
|000015a0| 66 72 6f 6d 20 74 68 65 | 20 4e 61 74 69 6f 6e 61 |from the| Nationa|
|000015b0| 6c 20 53 63 69 65 6e 63 | 65 20 46 6f 75 6e 64 61 |l Scienc|e Founda|
|000015c0| 74 69 6f 6e 2e 0a 0a 5c | 73 75 62 73 65 63 74 69 |tion...\|subsecti|
|000015d0| 6f 6e 2a 7b 55 73 69 6e | 67 20 74 68 69 73 20 54 |on*{Usin|g this T|
|000015e0| 75 74 6f 72 69 61 6c 7d | 0a 54 68 65 20 62 65 73 |utorial}|.The bes|
|000015f0| 74 20 77 61 79 20 74 6f | 20 6c 65 61 72 6e 20 61 |t way to| learn a|
|00001600| 62 6f 75 74 20 61 20 6e | 65 77 20 63 6f 6d 70 75 |bout a n|ew compu|
|00001610| 74 65 72 20 70 72 6f 67 | 72 61 6d 20 69 73 20 75 |ter prog|ram is u|
|00001620| 73 75 61 6c 6c 79 20 74 | 6f 20 75 73 65 0a 69 74 |sually t|o use.it|
|00001630| 2e 20 59 6f 75 20 77 69 | 6c 6c 20 67 65 74 20 6d |. You wi|ll get m|
|00001640| 6f 73 74 20 6f 75 74 20 | 6f 66 20 74 68 69 73 20 |ost out |of this |
|00001650| 74 75 74 6f 72 69 61 6c | 20 69 66 20 79 6f 75 20 |tutorial| if you |
|00001660| 72 65 61 64 20 69 74 20 | 61 74 20 79 6f 75 72 0a |read it |at your.|
|00001670| 63 6f 6d 70 75 74 65 72 | 20 61 6e 64 20 77 6f 72 |computer| and wor|
|00001680| 6b 20 74 68 72 6f 75 67 | 68 20 74 68 65 20 65 78 |k throug|h the ex|
|00001690| 61 6d 70 6c 65 73 20 79 | 6f 75 72 73 65 6c 66 2e |amples y|ourself.|
|000016a0| 20 54 6f 20 6d 61 6b 65 | 20 74 68 69 73 20 65 61 | To make| this ea|
|000016b0| 73 69 65 72 0a 74 68 65 | 20 6e 61 6d 65 64 20 64 |sier.the| named d|
|000016c0| 61 74 61 20 73 65 74 73 | 20 75 73 65 64 20 69 6e |ata sets| used in|
|000016d0| 20 74 68 69 73 20 74 75 | 74 6f 72 69 61 6c 20 68 | this tu|torial h|
|000016e0| 61 76 65 20 62 65 65 6e | 20 73 74 6f 72 65 64 20 |ave been| stored |
|000016f0| 6f 6e 20 74 68 65 20 66 | 69 6c 65 0a 5c 64 63 6f |on the f|ile.\dco|
|00001700| 64 65 7b 74 75 74 6f 72 | 69 61 6c 2e 6c 73 70 7d |de{tutor|ial.lsp}|
|00001710| 20 69 6e 20 74 68 65 20 | 5c 64 63 6f 64 65 7b 44 | in the |\dcode{D|
|00001720| 61 74 61 7d 20 66 6f 6c | 64 65 72 20 6f 66 20 74 |ata} fol|der of t|
|00001730| 68 65 20 4d 61 63 69 6e | 74 6f 73 68 0a 64 69 73 |he Macin|tosh.dis|
|00001740| 74 72 69 62 75 74 69 6f | 6e 20 20 64 69 73 6b 2e |tributio|n disk.|
|00001750| 20 54 6f 20 72 65 61 64 | 20 69 6e 20 74 68 69 73 | To read| in this|
|00001760| 20 66 69 6c 65 20 73 65 | 6c 65 63 74 20 74 68 65 | file se|lect the|
|00001770| 20 5c 6d 61 63 62 6f 6c | 64 7b 4c 6f 61 64 7d 20 | \macbol|d{Load} |
|00001780| 69 74 65 6d 0a 6f 6e 20 | 74 68 65 20 5c 6d 61 63 |item.on |the \mac|
|00001790| 62 6f 6c 64 7b 46 69 6c | 65 7d 20 6d 65 6e 75 2e |bold{Fil|e} menu.|
|000017a0| 20 54 68 69 73 20 77 69 | 6c 6c 20 62 72 69 6e 67 | This wi|ll bring|
|000017b0| 20 75 70 20 61 6e 20 5c | 6d 61 63 62 6f 6c 64 7b | up an \|macbold{|
|000017c0| 4f 70 65 6e 20 46 69 6c | 65 7d 0a 64 69 61 6c 6f |Open Fil|e}.dialo|
|000017d0| 67 20 77 69 6e 64 6f 77 | 2e 20 20 55 73 65 20 74 |g window|. Use t|
|000017e0| 68 69 73 20 64 69 61 6c | 6f 67 20 74 6f 20 6f 70 |his dial|og to op|
|000017f0| 65 6e 20 74 68 65 20 5c | 64 63 6f 64 65 7b 44 61 |en the \|dcode{Da|
|00001800| 74 61 7d 20 66 6f 6c 64 | 65 72 20 6f 6e 20 74 68 |ta} fold|er on th|
|00001810| 65 0a 64 69 73 74 72 69 | 62 75 74 69 6f 6e 20 64 |e.distri|bution d|
|00001820| 69 73 6b 2e 20 4e 6f 77 | 20 73 65 6c 65 63 74 20 |isk. Now| select |
|00001830| 74 68 65 20 66 69 6c 65 | 20 5c 64 63 6f 64 65 7b |the file| \dcode{|
|00001840| 74 75 74 6f 72 69 61 6c | 2e 6c 73 70 7d 20 61 6e |tutorial|.lsp} an|
|00001850| 64 20 70 72 65 73 73 0a | 74 68 65 20 5c 6d 61 63 |d press.|the \mac|
|00001860| 62 6f 6c 64 7b 4f 70 65 | 6e 7d 20 62 75 74 74 6f |bold{Ope|n} butto|
|00001870| 6e 2e 20 54 68 65 20 66 | 69 6c 65 20 77 69 6c 6c |n. The f|ile will|
|00001880| 20 62 65 20 6c 6f 61 64 | 65 64 20 61 6e 64 20 73 | be load|ed and s|
|00001890| 6f 6d 65 20 76 61 72 69 | 61 62 6c 65 73 0a 77 69 |ome vari|ables.wi|
|000018a0| 6c 6c 20 62 65 20 64 65 | 66 69 6e 65 64 20 66 6f |ll be de|fined fo|
|000018b0| 72 20 79 6f 75 2e 0a 0a | 5c 73 75 62 73 65 63 74 |r you...|\subsect|
|000018c0| 69 6f 6e 2a 7b 57 68 79 | 20 58 4c 49 53 50 2d 53 |ion*{Why| XLISP-S|
|000018d0| 54 41 54 20 45 78 69 73 | 74 73 7d 0a 54 68 65 72 |TAT Exis|ts}.Ther|
|000018e0| 65 20 61 72 65 20 74 68 | 72 65 65 20 70 72 69 6d |e are th|ree prim|
|000018f0| 61 72 79 20 72 65 61 73 | 6f 6e 73 20 62 65 68 69 |ary reas|ons behi|
|00001900| 6e 64 20 6d 79 20 64 65 | 63 69 73 69 6f 6e 20 74 |nd my de|cision t|
|00001910| 6f 20 70 72 6f 64 75 63 | 65 20 74 68 65 0a 58 4c |o produc|e the.XL|
|00001920| 49 53 50 2d 53 54 41 54 | 20 65 6e 76 69 72 6f 6e |ISP-STAT| environ|
|00001930| 6d 65 6e 74 2e 20 54 68 | 65 20 66 69 72 73 74 20 |ment. Th|e first |
|00001940| 69 73 20 74 6f 20 70 72 | 6f 76 69 64 65 20 61 20 |is to pr|ovide a |
|00001950| 76 65 68 69 63 6c 65 20 | 66 6f 72 0a 65 78 70 65 |vehicle |for.expe|
|00001960| 72 69 6d 65 6e 74 69 6e | 67 20 77 69 74 68 20 64 |rimentin|g with d|
|00001970| 79 6e 61 6d 69 63 20 67 | 72 61 70 68 69 63 73 20 |ynamic g|raphics |
|00001980| 61 6e 64 20 66 6f 72 20 | 75 73 69 6e 67 20 64 79 |and for |using dy|
|00001990| 6e 61 6d 69 63 20 67 72 | 61 70 68 69 63 73 20 69 |namic gr|aphics i|
|000019a0| 6e 0a 69 6e 73 74 72 75 | 63 74 69 6f 6e 2e 20 20 |n.instru|ction. |
|000019b0| 53 65 63 6f 6e 64 2c 20 | 49 20 77 61 6e 74 65 64 |Second, |I wanted|
|000019c0| 20 74 6f 20 62 65 20 61 | 62 6c 65 20 74 6f 20 65 | to be a|ble to e|
|000019d0| 78 70 65 72 69 6d 65 6e | 74 20 77 69 74 68 20 61 |xperimen|t with a|
|000019e0| 6e 0a 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 73 75 |n.enviro|nment su|
|000019f0| 70 70 6f 72 74 69 6e 67 | 20 66 75 6e 63 74 69 6f |pporting| functio|
|00001a00| 6e 61 6c 20 64 61 74 61 | 2c 20 73 75 63 68 20 61 |nal data|, such a|
|00001a10| 73 20 6d 65 61 6e 20 66 | 75 6e 63 74 69 6f 6e 73 |s mean f|unctions|
|00001a20| 20 69 6e 0a 6e 6f 6e 6c | 69 6e 65 61 72 20 72 65 | in.nonl|inear re|
|00001a30| 67 72 65 73 73 69 6f 6e | 20 6d 6f 64 65 6c 73 20 |gression| models |
|00001a40| 61 6e 64 20 70 72 69 6f | 72 20 64 65 6e 73 69 74 |and prio|r densit|
|00001a50| 79 20 61 6e 64 20 6c 69 | 6b 65 6c 69 68 6f 6f 64 |y and li|kelihood|
|00001a60| 20 66 75 6e 63 74 69 6f | 6e 73 0a 69 6e 20 42 61 | functio|ns.in Ba|
|00001a70| 79 65 73 69 61 6e 20 61 | 6e 61 6c 79 73 65 73 2e |yesian a|nalyses.|
|00001a80| 20 46 69 6e 61 6c 6c 79 | 2c 20 49 20 77 61 73 20 | Finally|, I was |
|00001a90| 69 6e 74 65 72 65 73 74 | 65 64 20 69 6e 20 65 78 |interest|ed in ex|
|00001aa0| 70 6c 6f 72 69 6e 67 20 | 74 68 65 20 75 73 65 0a |ploring |the use.|
|00001ab0| 6f 66 20 6f 62 6a 65 63 | 74 20 6f 72 69 65 6e 74 |of objec|t orient|
|00001ac0| 65 64 20 70 72 6f 67 72 | 61 6d 6d 69 6e 67 20 69 |ed progr|amming i|
|00001ad0| 64 65 61 73 20 66 6f 72 | 20 62 75 69 6c 64 69 6e |deas for| buildin|
|00001ae0| 67 20 61 6e 64 20 61 6e | 61 6c 79 7a 69 6e 67 0a |g and an|alyzing.|
|00001af0| 73 74 61 74 69 73 74 69 | 63 61 6c 20 6d 6f 64 65 |statisti|cal mode|
|00001b00| 6c 73 2e 20 49 20 77 69 | 6c 6c 20 64 69 73 63 75 |ls. I wi|ll discu|
|00001b10| 73 73 20 65 61 63 68 20 | 6f 66 20 74 68 65 73 65 |ss each |of these|
|00001b20| 20 70 6f 69 6e 74 73 20 | 69 6e 20 61 20 6c 69 74 | points |in a lit|
|00001b30| 74 6c 65 0a 6d 6f 72 65 | 20 64 65 74 61 69 6c 20 |tle.more| detail |
|00001b40| 69 6e 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |in the f|ollowing|
|00001b50| 20 70 61 72 61 67 72 61 | 70 68 73 2e 0a 0a 54 68 | paragra|phs...Th|
|00001b60| 65 20 64 65 76 65 6c 6f | 70 6d 65 6e 74 20 6f 66 |e develo|pment of|
|00001b70| 20 68 69 67 68 20 72 65 | 73 6f 6c 75 74 69 6f 6e | high re|solution|
|00001b80| 20 67 72 61 70 68 69 63 | 61 6c 20 63 6f 6d 70 75 | graphic|al compu|
|00001b90| 74 65 72 20 64 69 73 70 | 6c 61 79 73 20 68 61 73 |ter disp|lays has|
|00001ba0| 0a 6d 61 64 65 20 69 74 | 20 70 6f 73 73 69 62 6c |.made it| possibl|
|00001bb0| 65 20 74 6f 20 63 6f 6e | 73 69 64 65 72 20 74 68 |e to con|sider th|
|00001bc0| 65 20 75 73 65 20 6f 66 | 20 64 79 6e 61 6d 69 63 |e use of| dynamic|
|00001bd0| 20 67 72 61 70 68 69 63 | 73 20 66 6f 72 0a 75 6e | graphic|s for.un|
|00001be0| 64 65 72 73 74 61 6e 64 | 69 6e 67 20 68 69 67 68 |derstand|ing high|
|00001bf0| 65 72 2d 64 69 6d 65 6e | 73 69 6f 6e 61 6c 20 73 |er-dimen|sional s|
|00001c00| 74 72 75 63 74 75 72 65 | 2e 20 4f 6e 65 20 6f 66 |tructure|. One of|
|00001c10| 20 74 68 65 20 65 61 72 | 6c 69 65 73 74 0a 65 78 | the ear|liest.ex|
|00001c20| 61 6d 70 6c 65 73 20 69 | 73 20 74 68 65 20 72 65 |amples i|s the re|
|00001c30| 61 6c 20 74 69 6d 65 20 | 72 6f 74 61 74 69 6f 6e |al time |rotation|
|00001c40| 20 6f 66 20 61 20 74 68 | 72 65 65 20 64 69 6d 65 | of a th|ree dime|
|00001c50| 6e 73 69 6f 6e 61 6c 20 | 70 6f 69 6e 74 20 63 6c |nsional |point cl|
|00001c60| 6f 75 64 0a 6f 6e 20 61 | 20 73 63 72 65 65 6e 20 |oud.on a| screen |
|00001c70| 2d 2d 20 61 6e 20 65 66 | 66 6f 72 74 20 74 6f 20 |-- an ef|fort to |
|00001c80| 75 73 65 20 6d 6f 74 69 | 6f 6e 20 74 6f 20 72 65 |use moti|on to re|
|00001c90| 63 6f 76 65 72 20 61 20 | 74 68 69 72 64 20 64 69 |cover a |third di|
|00001ca0| 6d 65 6e 73 69 6f 6e 0a | 66 72 6f 6d 20 61 20 74 |mension.|from a t|
|00001cb0| 77 6f 20 64 69 6d 65 6e | 73 69 6f 6e 61 6c 20 64 |wo dimen|sional d|
|00001cc0| 69 73 70 6c 61 79 2e 20 | 4f 74 68 65 72 20 74 65 |isplay. |Other te|
|00001cd0| 63 68 6e 69 71 75 65 73 | 20 74 68 61 74 20 68 61 |chniques| that ha|
|00001ce0| 76 65 20 62 65 65 6e 0a | 64 65 76 65 6c 6f 70 65 |ve been.|develope|
|00001cf0| 64 20 69 6e 63 6c 75 64 | 65 20 7b 5c 65 6d 20 62 |d includ|e {\em b|
|00001d00| 72 75 73 68 69 6e 67 7d | 5c 2f 20 61 20 73 63 61 |rushing}|\/ a sca|
|00001d10| 74 74 65 72 70 6c 6f 74 | 20 2d 2d 20 68 69 67 68 |tterplot| -- high|
|00001d20| 6c 69 67 68 74 69 6e 67 | 20 70 6f 69 6e 74 73 0a |lighting| points.|
|00001d30| 69 6e 20 6f 6e 65 20 70 | 6c 6f 74 20 61 6e 64 20 |in one p|lot and |
|00001d40| 73 65 65 69 6e 67 20 77 | 68 65 72 65 20 74 68 65 |seeing w|here the|
|00001d50| 20 63 6f 72 72 65 73 70 | 6f 6e 64 69 6e 67 20 70 | corresp|onding p|
|00001d60| 6f 69 6e 74 73 20 66 61 | 6c 6c 20 69 6e 20 6f 74 |oints fa|ll in ot|
|00001d70| 68 65 72 0a 70 6c 6f 74 | 73 2e 20 41 20 63 6f 6e |her.plot|s. A con|
|00001d80| 73 69 64 65 72 61 62 6c | 65 20 61 6d 6f 75 6e 74 |siderabl|e amount|
|00001d90| 20 6f 66 20 72 65 73 65 | 61 72 63 68 20 68 61 73 | of rese|arch has|
|00001da0| 20 62 65 65 6e 20 64 6f | 6e 65 20 69 6e 20 74 68 | been do|ne in th|
|00001db0| 69 73 20 61 72 65 61 2c | 0a 73 65 65 20 66 6f 72 |is area,|.see for|
|00001dc0| 20 65 78 61 6d 70 6c 65 | 20 74 68 65 20 64 69 73 | example| the dis|
|00001dd0| 63 75 73 73 69 6f 6e 20 | 69 6e 20 42 65 63 6b 65 |cussion |in Becke|
|00001de0| 72 20 61 6e 64 20 43 6c | 65 76 65 6c 61 6e 64 0a |r and Cl|eveland.|
|00001df0| 5c 63 69 74 65 7b 42 65 | 63 6b 65 72 43 6c 65 76 |\cite{Be|ckerClev|
|00001e00| 65 6c 61 6e 64 7d 20 61 | 6e 64 20 74 68 65 20 70 |eland} a|nd the p|
|00001e10| 61 70 65 72 73 20 72 65 | 70 72 6f 64 75 63 65 64 |apers re|produced|
|00001e20| 20 69 6e 20 43 6c 65 76 | 65 6c 61 6e 64 20 0a 61 | in Clev|eland .a|
|00001e30| 6e 64 20 4d 63 47 69 6c | 6c 5c 63 69 74 65 7b 43 |nd McGil|l\cite{C|
|00001e40| 6c 65 76 65 6c 61 6e 64 | 4d 63 47 69 6c 6c 7d 2e |leveland|McGill}.|
|00001e50| 20 48 6f 77 65 76 65 72 | 20 6d 6f 73 74 20 6f 66 | However| most of|
|00001e60| 20 74 68 65 20 73 6f 66 | 74 77 61 72 65 0a 64 65 | the sof|tware.de|
|00001e70| 76 65 6c 6f 70 65 64 20 | 74 6f 20 64 61 74 65 20 |veloped |to date |
|00001e80| 68 61 73 20 62 65 65 6e | 20 64 65 76 65 6c 6f 70 |has been| develop|
|00001e90| 65 64 20 6f 6e 20 73 70 | 65 63 69 61 6c 69 7a 65 |ed on sp|ecialize|
|00001ea0| 64 20 68 61 72 64 77 61 | 72 65 2c 20 73 75 63 68 |d hardwa|re, such|
|00001eb0| 20 61 73 0a 74 68 65 20 | 54 54 59 20 35 36 32 30 | as.the |TTY 5620|
|00001ec0| 20 74 65 72 6d 69 6e 61 | 6c 20 6f 72 20 4c 69 73 | termina|l or Lis|
|00001ed0| 70 20 6d 61 63 68 69 6e | 65 73 2e 20 20 41 73 20 |p machin|es. As |
|00001ee0| 61 20 72 65 73 75 6c 74 | 2c 20 76 65 72 79 20 66 |a result|, very f|
|00001ef0| 65 77 0a 73 74 61 74 69 | 73 74 69 63 69 61 6e 73 |ew.stati|sticians|
|00001f00| 20 68 61 76 65 20 68 61 | 64 20 61 6e 20 6f 70 70 | have ha|d an opp|
|00001f10| 6f 72 74 75 6e 69 74 79 | 20 74 6f 20 65 78 70 65 |ortunity| to expe|
|00001f20| 72 69 6d 65 6e 74 20 77 | 69 74 68 20 64 79 6e 61 |riment w|ith dyna|
|00001f30| 6d 69 63 0a 67 72 61 70 | 68 69 63 73 20 66 69 72 |mic.grap|hics fir|
|00001f40| 73 74 20 68 61 6e 64 2c | 20 61 6e 64 20 73 74 69 |st hand,| and sti|
|00001f50| 6c 6c 20 66 65 77 65 72 | 20 68 61 76 65 20 68 61 |ll fewer| have ha|
|00001f60| 64 20 61 63 63 65 73 73 | 20 74 6f 20 61 6e 20 65 |d access| to an e|
|00001f70| 6e 76 69 72 6f 6e 6d 65 | 6e 74 0a 74 68 61 74 20 |nvironme|nt.that |
|00001f80| 77 6f 75 6c 64 20 61 6c | 6c 6f 77 20 74 68 65 6d |would al|low them|
|00001f90| 20 74 6f 20 69 6d 70 6c | 65 6d 65 6e 74 20 64 79 | to impl|ement dy|
|00001fa0| 6e 61 6d 69 63 20 67 72 | 61 70 68 69 63 73 20 69 |namic gr|aphics i|
|00001fb0| 64 65 61 73 20 6f 66 20 | 74 68 65 69 72 0a 6f 77 |deas of |their.ow|
|00001fc0| 6e 2e 20 53 65 76 65 72 | 61 6c 20 63 6f 6d 6d 65 |n. Sever|al comme|
|00001fd0| 72 63 69 61 6c 20 70 61 | 63 6b 61 67 65 73 20 66 |rcial pa|ckages f|
|00001fe0| 6f 72 20 6d 69 63 72 6f | 63 6f 6d 70 75 74 65 72 |or micro|computer|
|00001ff0| 73 20 6e 6f 77 20 63 6f | 6e 74 61 69 6e 20 73 6f |s now co|ntain so|
|00002000| 6d 65 0a 66 6f 72 6d 20 | 6f 66 20 64 79 6e 61 6d |me.form |of dynam|
|00002010| 69 63 20 67 72 61 70 68 | 69 63 73 2c 20 62 75 74 |ic graph|ics, but|
|00002020| 20 6d 6f 73 74 20 64 6f | 20 6e 6f 74 20 61 6c 6c | most do| not all|
|00002030| 6f 77 20 75 73 65 72 73 | 20 74 6f 20 63 75 73 74 |ow users| to cust|
|00002040| 6f 6d 69 7a 65 0a 74 68 | 65 69 72 20 70 6c 6f 74 |omize.th|eir plot|
|00002050| 73 20 6f 72 20 64 65 76 | 65 6c 6f 70 20 66 75 6e |s or dev|elop fun|
|00002060| 63 74 69 6f 6e 73 20 66 | 6f 72 20 70 72 6f 64 75 |ctions f|or produ|
|00002070| 63 69 6e 67 20 73 70 65 | 63 69 61 6c 69 7a 65 64 |cing spe|cialized|
|00002080| 20 70 6c 6f 74 73 2c 20 | 73 75 63 68 0a 61 73 20 | plots, |such.as |
|00002090| 64 79 6e 61 6d 69 63 20 | 72 65 73 69 64 75 61 6c |dynamic |residual|
|000020a0| 20 70 6c 6f 74 73 2e 20 | 58 4c 49 53 50 2d 53 54 | plots. |XLISP-ST|
|000020b0| 41 54 20 70 72 6f 76 69 | 64 65 73 20 61 74 20 6c |AT provi|des at l|
|000020c0| 65 61 73 74 20 61 20 70 | 61 72 74 69 61 6c 0a 73 |east a p|artial.s|
|000020d0| 6f 6c 75 74 69 6f 6e 20 | 74 6f 20 74 68 65 73 65 |olution |to these|
|000020e0| 20 70 72 6f 62 6c 65 6d | 73 2e 20 49 74 20 61 6c | problem|s. It al|
|000020f0| 6c 6f 77 73 20 74 68 65 | 20 75 73 65 72 20 74 6f |lows the| user to|
|00002100| 20 6d 6f 64 69 66 79 20 | 61 20 73 63 61 74 74 65 | modify |a scatte|
|00002110| 72 20 70 6c 6f 74 0a 77 | 69 74 68 20 4c 69 73 70 |r plot.w|ith Lisp|
|00002120| 20 6c 65 76 65 6c 20 66 | 75 6e 63 74 69 6f 6e 73 | level f|unctions|
|00002130| 20 61 6e 64 20 70 72 6f | 76 69 64 65 73 20 6d 65 | and pro|vides me|
|00002140| 61 6e 73 20 66 6f 72 20 | 6d 6f 64 69 66 79 69 6e |ans for |modifyin|
|00002150| 67 20 74 68 65 0a 77 61 | 79 20 69 6e 20 77 68 69 |g the.wa|y in whi|
|00002160| 63 68 20 61 20 70 6c 6f | 74 20 72 65 73 70 6f 6e |ch a plo|t respon|
|00002170| 64 73 20 74 6f 20 6d 6f | 75 73 65 20 61 63 74 69 |ds to mo|use acti|
|00002180| 6f 6e 73 2e 20 49 74 20 | 69 73 20 61 6c 73 6f 20 |ons. It |is also |
|00002190| 65 61 73 79 20 74 6f 20 | 61 64 64 0a 66 75 6e 63 |easy to |add.func|
|000021a0| 74 69 6f 6e 73 20 77 72 | 69 74 74 65 6e 20 69 6e |tions wr|itten in|
|000021b0| 20 43 20 74 6f 20 74 68 | 65 20 70 72 6f 67 72 61 | C to th|e progra|
|000021c0| 6d 2e 20 49 64 65 61 6c | 6c 79 20 74 68 69 73 20 |m. Ideal|ly this |
|000021d0| 73 68 6f 75 6c 64 20 6e | 6f 74 20 62 65 0a 6e 65 |should n|ot be.ne|
|000021e0| 63 65 73 73 61 72 79 3b | 20 62 75 74 20 6f 6e 20 |cessary;| but on |
|000021f0| 74 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 69 74 |the Maci|ntosh it|
|00002200| 20 69 73 20 6f 66 74 65 | 6e 20 74 68 65 20 6f 6e | is ofte|n the on|
|00002210| 6c 79 20 77 61 79 20 74 | 6f 20 61 63 68 69 65 76 |ly way t|o achiev|
|00002220| 65 0a 72 65 61 73 6f 6e | 61 62 6c 65 20 65 78 65 |e.reason|able exe|
|00002230| 63 75 74 69 6f 6e 20 73 | 70 65 65 64 2e 0a 0a 41 |cution s|peed...A|
|00002240| 6e 20 69 6e 74 65 67 72 | 61 74 65 64 20 65 6e 76 |n integr|ated env|
|00002250| 69 72 6f 6e 6d 65 6e 74 | 20 66 6f 72 20 73 74 61 |ironment| for sta|
|00002260| 74 69 73 74 69 63 61 6c | 20 63 61 6c 63 75 6c 61 |tistical| calcula|
|00002270| 74 69 6f 6e 73 20 61 6e | 64 20 67 72 61 70 68 69 |tions an|d graphi|
|00002280| 63 73 20 69 73 0a 65 73 | 73 65 6e 74 69 61 6c 20 |cs is.es|sential |
|00002290| 66 6f 72 20 64 65 76 65 | 6c 6f 70 69 6e 67 20 61 |for deve|loping a|
|000022a0| 6e 20 75 6e 64 65 72 73 | 74 61 6e 64 69 6e 67 20 |n unders|tanding |
|000022b0| 6f 66 20 74 68 65 20 75 | 73 65 73 20 6f 66 20 64 |of the u|ses of d|
|000022c0| 79 6e 61 6d 69 63 0a 67 | 72 61 70 68 69 63 73 20 |ynamic.g|raphics |
|000022d0| 69 6e 20 73 74 61 74 69 | 73 74 69 63 73 20 61 6e |in stati|stics an|
|000022e0| 64 20 66 6f 72 20 64 65 | 76 65 6c 6f 70 69 6e 67 |d for de|veloping|
|000022f0| 20 6e 65 77 20 67 72 61 | 70 68 69 63 61 6c 20 74 | new gra|phical t|
|00002300| 65 63 68 6e 69 71 75 65 | 73 2e 0a 53 75 63 68 20 |echnique|s..Such |
|00002310| 61 6e 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 6d |an envir|onment m|
|00002320| 75 73 74 20 65 73 73 65 | 6e 74 69 61 6c 6c 79 20 |ust esse|ntially |
|00002330| 62 65 20 61 20 70 72 6f | 67 72 61 6d 6d 69 6e 67 |be a pro|gramming|
|00002340| 20 6c 61 6e 67 75 61 67 | 65 2e 20 49 74 73 0a 62 | languag|e. Its.b|
|00002350| 61 73 69 63 20 64 61 74 | 61 20 74 79 70 65 73 20 |asic dat|a types |
|00002360| 6d 75 73 74 20 69 6e 63 | 6c 75 64 65 20 74 79 70 |must inc|lude typ|
|00002370| 65 73 20 74 68 61 74 20 | 61 6c 6c 6f 77 20 67 72 |es that |allow gr|
|00002380| 6f 75 70 73 20 6f 66 20 | 6e 75 6d 62 65 72 73 20 |oups of |numbers |
|00002390| 2d 2d 0a 64 61 74 61 20 | 73 65 74 73 20 2d 2d 20 |--.data |sets -- |
|000023a0| 74 6f 20 62 65 20 6d 61 | 6e 69 70 75 6c 61 74 65 |to be ma|nipulate|
|000023b0| 64 20 61 73 20 65 6e 74 | 69 72 65 20 6f 62 6a 65 |d as ent|ire obje|
|000023c0| 63 74 73 2e 20 42 75 74 | 20 69 6e 20 6d 6f 64 65 |cts. But| in mode|
|000023d0| 6c 2d 62 61 73 65 64 0a | 61 6e 61 6c 79 73 65 73 |l-based.|analyses|
|000023e0| 20 6e 75 6d 65 72 69 63 | 61 6c 20 64 61 74 61 20 | numeric|al data |
|000023f0| 61 72 65 20 6f 6e 6c 79 | 20 70 61 72 74 20 6f 66 |are only| part of|
|00002400| 20 74 68 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e | the inf|ormation|
|00002410| 20 62 65 69 6e 67 20 75 | 73 65 64 2e 0a 54 68 65 | being u|sed..The|
|00002420| 20 72 65 6d 61 69 6e 64 | 65 72 20 69 73 20 74 68 | remaind|er is th|
|00002430| 65 20 6d 6f 64 65 6c 20 | 69 74 73 65 6c 66 2e 20 |e model |itself. |
|00002440| 53 6f 6d 65 74 69 6d 65 | 73 20 61 20 6d 6f 64 65 |Sometime|s a mode|
|00002450| 6c 20 69 73 20 65 61 73 | 69 6c 79 0a 63 68 61 72 |l is eas|ily.char|
|00002460| 61 63 74 65 72 69 7a 65 | 64 20 62 79 20 73 70 65 |acterize|d by spe|
|00002470| 63 69 66 79 69 6e 67 20 | 61 20 73 65 74 20 6f 66 |cifying |a set of|
|00002480| 20 6e 75 6d 62 65 72 73 | 2e 20 41 20 6e 6f 72 6d | numbers|. A norm|
|00002490| 61 6c 20 6c 69 6e 65 61 | 72 0a 72 65 67 72 65 73 |al linea|r.regres|
|000024a0| 73 69 6f 6e 20 6d 6f 64 | 65 6c 20 77 69 74 68 20 |sion mod|el with |
|000024b0| 24 69 2e 20 69 2e 20 64 | 2e 24 20 65 72 72 6f 72 |$i. i. d|.$ error|
|000024c0| 73 20 6d 69 67 68 74 20 | 62 65 20 64 65 73 63 72 |s might |be descr|
|000024d0| 69 62 65 64 20 62 79 20 | 74 68 65 0a 6e 75 6d 62 |ibed by |the.numb|
|000024e0| 65 72 20 6f 66 20 63 6f | 76 61 72 69 61 74 65 73 |er of co|variates|
|000024f0| 2c 20 74 68 65 20 63 6f | 65 66 66 69 63 69 65 6e |, the co|efficien|
|00002500| 74 73 20 61 6e 64 20 74 | 68 65 20 65 72 72 6f 72 |ts and t|he error|
|00002510| 20 76 61 72 69 61 6e 63 | 65 2e 20 4f 6e 20 74 68 | varianc|e. On th|
|00002520| 65 0a 6f 74 68 65 72 20 | 68 61 6e 64 2c 20 69 6e |e.other |hand, in|
|00002530| 20 6d 61 6e 79 20 63 61 | 73 65 73 20 69 74 20 69 | many ca|ses it i|
|00002540| 73 20 65 61 73 69 65 72 | 20 74 6f 20 73 70 65 63 |s easier| to spec|
|00002550| 69 66 79 20 61 20 6d 6f | 64 65 6c 20 62 79 0a 73 |ify a mo|del by.s|
|00002560| 70 65 63 69 66 79 69 6e | 67 20 61 20 66 75 6e 63 |pecifyin|g a func|
|00002570| 74 69 6f 6e 2e 20 54 6f | 20 73 70 65 63 69 66 79 |tion. To| specify|
|00002580| 20 61 20 6e 6f 72 6d 61 | 6c 20 6e 6f 6e 6c 69 6e | a norma|l nonlin|
|00002590| 65 61 72 20 72 65 67 72 | 65 73 73 69 6f 6e 20 6d |ear regr|ession m|
|000025a0| 6f 64 65 6c 2c 0a 66 6f | 72 20 65 78 61 6d 70 6c |odel,.fo|r exampl|
|000025b0| 65 2c 20 6f 6e 65 20 6d | 69 67 68 74 20 73 70 65 |e, one m|ight spe|
|000025c0| 63 69 66 79 20 74 68 65 | 20 6d 65 61 6e 20 66 75 |cify the| mean fu|
|000025d0| 6e 63 74 69 6f 6e 2e 20 | 20 49 66 20 6f 75 72 20 |nction. | If our |
|000025e0| 6c 61 6e 67 75 61 67 65 | 20 69 73 0a 74 6f 20 61 |language| is.to a|
|000025f0| 6c 6c 6f 77 20 75 73 20 | 74 6f 20 73 70 65 63 69 |llow us |to speci|
|00002600| 66 79 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |fy this |function|
|00002610| 20 77 69 74 68 69 6e 20 | 74 68 65 20 6c 61 6e 67 | within |the lang|
|00002620| 75 61 67 65 20 69 74 73 | 65 6c 66 20 74 68 65 6e |uage its|elf then|
|00002630| 0a 74 68 65 20 6c 61 6e | 67 75 61 67 65 20 6d 75 |.the lan|guage mu|
|00002640| 73 74 20 73 75 70 70 6f | 72 74 20 61 20 66 75 6e |st suppo|rt a fun|
|00002650| 63 74 69 6f 6e 61 6c 20 | 64 61 74 61 20 74 79 70 |ctional |data typ|
|00002660| 65 20 77 69 74 68 20 66 | 75 6c 6c 20 72 69 67 68 |e with f|ull righ|
|00002670| 74 73 3a 20 49 74 0a 68 | 61 73 20 74 6f 20 62 65 |ts: It.h|as to be|
|00002680| 20 70 6f 73 73 69 62 6c | 65 20 74 6f 20 64 65 66 | possibl|e to def|
|00002690| 69 6e 65 20 66 75 6e 63 | 74 69 6f 6e 73 20 74 68 |ine func|tions th|
|000026a0| 61 74 20 6d 61 6e 69 70 | 75 6c 61 74 65 20 66 75 |at manip|ulate fu|
|000026b0| 6e 63 74 69 6f 6e 73 2c | 0a 72 65 74 75 72 6e 20 |nctions,|.return |
|000026c0| 66 75 6e 63 74 69 6f 6e | 73 2c 20 61 70 70 6c 79 |function|s, apply|
|000026d0| 20 66 75 6e 63 74 69 6f | 6e 73 20 74 6f 20 61 72 | functio|ns to ar|
|000026e0| 67 75 6d 65 6e 74 73 2c | 20 65 74 63 2e 2e 20 54 |guments,| etc.. T|
|000026f0| 68 65 20 63 68 6f 69 63 | 65 20 49 0a 66 61 63 65 |he choic|e I.face|
|00002700| 64 20 77 61 73 20 74 6f | 20 64 65 66 69 6e 65 20 |d was to| define |
|00002710| 61 20 6c 61 6e 67 75 61 | 67 65 20 66 72 6f 6d 20 |a langua|ge from |
|00002720| 73 63 72 61 74 63 68 20 | 6f 72 20 75 73 65 20 61 |scratch |or use a|
|00002730| 6e 20 65 78 69 73 74 69 | 6e 67 0a 6c 61 6e 67 75 |n existi|ng.langu|
|00002740| 61 67 65 2e 20 20 42 65 | 63 61 75 73 65 20 6f 66 |age. Be|cause of|
|00002750| 20 74 68 65 20 63 6f 6d | 70 6c 65 78 69 74 79 20 | the com|plexity |
|00002760| 6f 66 20 69 73 73 75 65 | 73 20 69 6e 76 6f 6c 76 |of issue|s involv|
|00002770| 65 64 20 69 6e 20 66 75 | 6e 63 74 69 6f 6e 61 6c |ed in fu|nctional|
|00002780| 0a 70 72 6f 67 72 61 6d | 6d 69 6e 67 20 49 20 64 |.program|ming I d|
|00002790| 65 63 69 64 65 64 20 74 | 6f 20 75 73 65 20 61 20 |ecided t|o use a |
|000027a0| 64 69 61 6c 65 63 74 20 | 6f 66 20 61 20 77 65 6c |dialect |of a wel|
|000027b0| 6c 20 75 6e 64 65 72 73 | 74 6f 6f 64 20 66 75 6e |l unders|tood fun|
|000027c0| 63 74 69 6f 6e 61 6c 0a | 6c 61 6e 67 75 61 67 65 |ctional.|language|
|000027d0| 2c 20 4c 69 73 70 2e 20 | 54 68 65 20 73 79 6e 74 |, Lisp. |The synt|
|000027e0| 61 78 20 6f 66 20 4c 69 | 73 70 20 69 73 20 73 6f |ax of Li|sp is so|
|000027f0| 6d 65 77 68 61 74 20 75 | 6e 66 61 6d 69 6c 69 61 |mewhat u|nfamilia|
|00002800| 72 20 74 6f 20 6d 6f 73 | 74 0a 75 73 65 72 73 20 |r to mos|t.users |
|00002810| 6f 66 20 73 74 61 74 69 | 73 74 69 63 61 6c 20 70 |of stati|stical p|
|00002820| 61 63 6b 61 67 65 73 2c | 20 62 75 74 20 69 74 20 |ackages,| but it |
|00002830| 69 73 20 65 61 73 79 20 | 74 6f 20 6c 65 61 72 6e |is easy |to learn|
|00002840| 20 61 6e 64 20 73 65 76 | 65 72 61 6c 0a 67 6f 6f | and sev|eral.goo|
|00002850| 64 20 74 75 74 6f 72 69 | 61 6c 73 20 61 72 65 20 |d tutori|als are |
|00002860| 61 76 61 69 6c 61 62 6c | 65 20 69 6e 20 6c 6f 63 |availabl|e in loc|
|00002870| 61 6c 20 62 6f 6f 6b 20 | 73 74 6f 72 65 73 2e 20 |al book |stores. |
|00002880| 49 20 63 6f 6e 73 69 64 | 65 72 65 64 20 74 68 65 |I consid|ered the|
|00002890| 0a 70 6f 73 73 69 62 69 | 6c 69 74 79 20 6f 66 20 |.possibi|lity of |
|000028a0| 75 73 69 6e 67 20 4c 69 | 73 70 20 74 6f 20 77 72 |using Li|sp to wr|
|000028b0| 69 74 65 20 61 20 74 6f | 70 20 6c 65 76 65 6c 20 |ite a to|p level |
|000028c0| 69 6e 74 65 72 66 61 63 | 65 20 77 69 74 68 20 61 |interfac|e with a|
|000028d0| 20 6d 6f 72 65 0a 60 60 | 6e 61 74 75 72 61 6c 27 | more.``|natural'|
|000028e0| 27 20 73 79 6e 74 61 78 | 2c 20 62 75 74 20 49 20 |' syntax|, but I |
|000028f0| 64 69 64 20 6e 6f 74 20 | 73 65 65 20 61 6e 79 20 |did not |see any |
|00002900| 77 61 79 20 6f 66 20 64 | 6f 69 6e 67 20 74 68 69 |way of d|oing thi|
|00002910| 73 20 77 69 74 68 6f 75 | 74 0a 63 6f 6d 70 6c 69 |s withou|t.compli|
|00002920| 63 61 74 69 6e 67 20 61 | 63 63 65 73 73 20 74 6f |cating a|ccess to|
|00002930| 20 73 6f 6d 65 20 6f 66 | 20 74 68 65 20 6d 6f 72 | some of| the mor|
|00002940| 65 20 70 6f 77 65 72 66 | 75 6c 20 66 65 61 74 75 |e powerf|ul featu|
|00002950| 72 65 73 20 6f 66 20 4c | 69 73 70 20 6f 72 0a 72 |res of L|isp or.r|
|00002960| 75 6e 6e 69 6e 67 20 69 | 6e 74 6f 20 73 6f 6d 65 |unning i|nto some|
|00002970| 20 6f 66 20 74 68 65 20 | 70 69 74 66 61 6c 6c 73 | of the |pitfalls|
|00002980| 20 6f 66 20 66 75 6e 63 | 74 69 6f 6e 61 6c 20 70 | of func|tional p|
|00002990| 72 6f 67 72 61 6d 6d 69 | 6e 67 2e 20 49 0a 74 68 |rogrammi|ng. I.th|
|000029a0| 65 72 65 66 6f 72 65 20 | 64 65 63 69 64 65 64 20 |erefore |decided |
|000029b0| 74 6f 20 72 65 74 61 69 | 6e 20 74 68 65 20 62 61 |to retai|n the ba|
|000029c0| 73 69 63 20 4c 69 73 70 | 20 74 6f 70 20 6c 65 76 |sic Lisp| top lev|
|000029d0| 65 6c 20 73 79 6e 74 61 | 78 2e 20 54 6f 20 6d 61 |el synta|x. To ma|
|000029e0| 6b 65 0a 74 68 65 20 6d | 61 6e 69 70 75 6c 61 74 |ke.the m|anipulat|
|000029f0| 69 6f 6e 20 6f 66 20 6e | 75 6d 65 72 69 63 61 6c |ion of n|umerical|
|00002a00| 20 64 61 74 61 20 73 65 | 74 73 20 65 61 73 69 65 | data se|ts easie|
|00002a10| 72 20 49 20 68 61 76 65 | 20 72 65 64 65 66 69 6e |r I have| redefin|
|00002a20| 65 64 20 74 68 65 0a 61 | 72 69 74 68 6d 65 74 69 |ed the.a|rithmeti|
|00002a30| 63 20 6f 70 65 72 61 74 | 6f 72 73 20 61 6e 64 20 |c operat|ors and |
|00002a40| 62 61 73 69 63 20 6e 75 | 6d 65 72 69 63 61 6c 20 |basic nu|merical |
|00002a50| 66 75 6e 63 74 69 6f 6e | 73 20 74 6f 20 77 6f 72 |function|s to wor|
|00002a60| 6b 20 6f 6e 20 6c 69 73 | 74 73 0a 61 6e 64 20 61 |k on lis|ts.and a|
|00002a70| 72 72 61 79 73 20 6f 66 | 20 64 61 74 61 2e 0a 0a |rrays of| data...|
|00002a80| 48 61 76 69 6e 67 20 64 | 65 63 69 64 65 64 20 74 |Having d|ecided t|
|00002a90| 6f 20 75 73 65 20 4c 69 | 73 70 20 61 73 20 74 68 |o use Li|sp as th|
|00002aa0| 65 20 62 61 73 69 73 20 | 66 6f 72 20 6d 79 20 65 |e basis |for my e|
|00002ab0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 58 4c 49 53 50 |nvironme|nt XLISP|
|00002ac0| 20 77 61 73 20 61 0a 6e | 61 74 75 72 61 6c 20 63 | was a.n|atural c|
|00002ad0| 68 6f 69 63 65 20 66 6f | 72 20 73 65 76 65 72 61 |hoice fo|r severa|
|00002ae0| 6c 20 72 65 61 73 6f 6e | 73 2e 20 49 74 20 68 61 |l reason|s. It ha|
|00002af0| 73 20 62 65 65 6e 20 70 | 6c 61 63 65 64 20 69 6e |s been p|laced in|
|00002b00| 20 74 68 65 20 70 75 62 | 6c 69 63 0a 64 6f 6d 61 | the pub|lic.doma|
|00002b10| 69 6e 20 62 79 20 69 74 | 73 20 61 75 74 68 6f 72 |in by it|s author|
|00002b20| 2c 20 44 61 76 69 64 20 | 42 65 74 7a 2e 20 49 74 |, David |Betz. It|
|00002b30| 20 69 73 20 73 6d 61 6c | 6c 20 28 66 6f 72 20 61 | is smal|l (for a|
|00002b40| 20 4c 69 73 70 20 73 79 | 73 74 65 6d 29 2c 20 69 | Lisp sy|stem), i|
|00002b50| 74 73 0a 73 6f 75 72 63 | 65 20 63 6f 64 65 20 69 |ts.sourc|e code i|
|00002b60| 73 20 61 76 61 69 6c 61 | 62 6c 65 20 69 6e 20 43 |s availa|ble in C|
|00002b70| 2c 20 61 6e 64 20 69 74 | 20 69 73 20 65 61 73 69 |, and it| is easi|
|00002b80| 6c 79 20 65 78 74 65 6e | 73 69 62 6c 65 2e 20 46 |ly exten|sible. F|
|00002b90| 69 6e 61 6c 6c 79 2c 0a | 69 74 20 69 6e 63 6c 75 |inally,.|it inclu|
|00002ba0| 64 65 73 20 73 75 70 70 | 6f 72 74 20 66 6f 72 20 |des supp|ort for |
|00002bb0| 6f 62 6a 65 63 74 20 6f | 72 69 65 6e 74 65 64 20 |object o|riented |
|00002bc0| 70 72 6f 67 72 61 6d 6d | 69 6e 67 2e 20 4f 62 6a |programm|ing. Obj|
|00002bd0| 65 63 74 20 6f 72 69 65 | 6e 74 65 64 0a 70 72 6f |ect orie|nted.pro|
|00002be0| 67 72 61 6d 6d 69 6e 67 | 20 68 61 73 20 72 65 63 |gramming| has rec|
|00002bf0| 65 69 76 65 64 20 63 6f | 6e 73 69 64 65 72 61 62 |eived co|nsiderab|
|00002c00| 6c 65 20 61 74 74 65 6e | 74 69 6f 6e 20 69 6e 20 |le atten|tion in |
|00002c10| 72 65 63 65 6e 74 20 79 | 65 61 72 73 20 61 6e 64 |recent y|ears and|
|00002c20| 20 69 73 0a 70 61 72 74 | 69 63 75 6c 61 72 6c 79 | is.part|icularly|
|00002c30| 20 6e 61 74 75 72 61 6c | 20 66 6f 72 20 75 73 65 | natural| for use|
|00002c40| 20 69 6e 20 64 65 73 63 | 72 69 62 69 6e 67 20 61 | in desc|ribing a|
|00002c50| 6e 64 20 6d 61 6e 69 70 | 75 6c 61 74 69 6e 67 20 |nd manip|ulating |
|00002c60| 67 72 61 70 68 69 63 61 | 6c 0a 6f 62 6a 65 63 74 |graphica|l.object|
|00002c70| 73 2e 20 49 74 20 6d 61 | 79 20 61 6c 73 6f 20 62 |s. It ma|y also b|
|00002c80| 65 20 75 73 65 66 75 6c | 20 66 6f 72 20 74 68 65 |e useful| for the|
|00002c90| 20 61 6e 61 6c 79 73 69 | 73 20 6f 66 20 73 74 61 | analysi|s of sta|
|00002ca0| 74 69 73 74 69 63 61 6c | 20 64 61 74 61 0a 61 6e |tistical| data.an|
|00002cb0| 64 20 6d 6f 64 65 6c 73 | 2e 20 41 20 63 6f 6c 6c |d models|. A coll|
|00002cc0| 65 63 74 69 6f 6e 20 6f | 66 20 64 61 74 61 20 61 |ection o|f data a|
|00002cd0| 6e 64 20 61 73 73 75 6d | 70 74 69 6f 6e 73 20 6d |nd assum|ptions m|
|00002ce0| 61 79 20 62 65 20 72 65 | 70 72 65 73 65 6e 74 65 |ay be re|presente|
|00002cf0| 64 20 61 73 0a 61 6e 20 | 7b 5c 65 6d 20 6f 62 6a |d as.an |{\em obj|
|00002d00| 65 63 74 7d 2e 20 54 68 | 65 20 6d 6f 64 65 6c 20 |ect}. Th|e model |
|00002d10| 6f 62 6a 65 63 74 20 63 | 61 6e 20 74 68 65 6e 20 |object c|an then |
|00002d20| 62 65 20 65 78 61 6d 69 | 6e 65 64 20 61 6e 64 20 |be exami|ned and |
|00002d30| 6d 6f 64 69 66 69 65 64 | 20 62 79 0a 73 65 6e 64 |modified| by.send|
|00002d40| 69 6e 67 20 69 74 20 7b | 5c 65 6d 20 6d 65 73 73 |ing it {|\em mess|
|00002d50| 61 67 65 73 7d 2e 20 4d | 61 6e 79 20 64 69 66 66 |ages}. M|any diff|
|00002d60| 65 72 65 6e 74 20 6b 69 | 6e 64 73 20 6f 66 20 6d |erent ki|nds of m|
|00002d70| 6f 64 65 6c 73 20 77 69 | 6c 6c 20 61 6e 73 77 65 |odels wi|ll answe|
|00002d80| 72 0a 73 69 6d 69 6c 61 | 72 20 71 75 65 73 74 69 |r.simila|r questi|
|00002d90| 6f 6e 73 2c 20 74 68 75 | 73 20 66 69 74 74 69 6e |ons, thu|s fittin|
|00002da0| 67 20 6e 61 74 75 72 61 | 6c 6c 79 20 69 6e 74 6f |g natura|lly into|
|00002db0| 20 61 6e 20 7b 5c 65 6d | 20 69 6e 68 65 72 69 74 | an {\em| inherit|
|00002dc0| 61 6e 63 65 0a 73 74 72 | 75 63 74 75 72 65 7d 2e |ance.str|ucture}.|
|00002dd0| 20 58 4c 49 53 50 2d 53 | 54 41 54 27 73 20 69 6d | XLISP-S|TAT's im|
|00002de0| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 20 6f 66 20 |plementa|tion of |
|00002df0| 6c 69 6e 65 61 72 20 61 | 6e 64 20 6e 6f 6e 6c 69 |linear a|nd nonli|
|00002e00| 6e 65 61 72 0a 72 65 67 | 72 65 73 73 69 6f 6e 20 |near.reg|ression |
|00002e10| 6d 6f 64 65 6c 73 20 61 | 73 20 7b 5c 65 6d 20 6f |models a|s {\em o|
|00002e20| 62 6a 65 63 74 73 7d 2c | 20 77 69 74 68 20 6e 6f |bjects},| with no|
|00002e30| 6e 6c 69 6e 65 61 72 20 | 72 65 67 72 65 73 73 69 |nlinear |regressi|
|00002e40| 6f 6e 0a 69 6e 68 65 72 | 69 74 69 6e 67 20 6d 61 |on.inher|iting ma|
|00002e50| 6e 79 20 6f 66 20 69 74 | 73 20 7b 5c 65 6d 20 6d |ny of it|s {\em m|
|00002e60| 65 74 68 6f 64 73 7d 20 | 66 72 6f 6d 20 6c 69 6e |ethods} |from lin|
|00002e70| 65 61 72 20 72 65 67 72 | 65 73 73 69 6f 6e 2c 20 |ear regr|ession, |
|00002e80| 69 73 20 61 20 66 69 72 | 73 74 2c 0a 70 72 69 6d |is a fir|st,.prim|
|00002e90| 69 74 69 76 65 20 61 74 | 74 65 6d 70 74 20 74 6f |itive at|tempt to|
|00002ea0| 20 65 78 70 6c 6f 69 74 | 20 74 68 69 73 20 70 72 | exploit| this pr|
|00002eb0| 6f 67 72 61 6d 6d 69 6e | 67 20 74 65 63 68 6e 69 |ogrammin|g techni|
|00002ec0| 71 75 65 20 69 6e 20 73 | 74 61 74 69 73 74 69 63 |que in s|tatistic|
|00002ed0| 61 6c 0a 61 6e 61 6c 79 | 73 69 73 2e 0a 0a 5c 73 |al.analy|sis...\s|
|00002ee0| 75 62 73 65 63 74 69 6f | 6e 2a 7b 41 76 61 69 6c |ubsectio|n*{Avail|
|00002ef0| 61 62 69 6c 69 74 79 7d | 0a 53 6f 75 72 63 65 20 |ability}|.Source |
|00002f00| 63 6f 64 65 20 66 6f 72 | 20 58 4c 49 53 50 2d 53 |code for| XLISP-S|
|00002f10| 54 41 54 20 66 6f 72 20 | 53 75 6e 20 33 2c 20 34 |TAT for |Sun 3, 4|
|00002f20| 2e 5b 32 33 5d 42 53 44 | 20 55 4e 49 58 20 61 6e |.[23]BSD| UNIX an|
|00002f30| 64 20 4d 61 63 69 6e 74 | 6f 73 68 0a 76 65 72 73 |d Macint|osh.vers|
|00002f40| 69 6f 6e 73 20 61 6e 64 | 20 65 78 65 63 75 74 61 |ions and| executa|
|00002f50| 62 6c 65 73 20 66 6f 72 | 20 74 68 65 20 4d 61 63 |bles for| the Mac|
|00002f60| 69 6e 74 6f 73 68 20 61 | 72 65 20 61 76 61 69 6c |intosh a|re avail|
|00002f70| 61 62 6c 65 20 66 72 65 | 65 20 6f 66 0a 63 68 61 |able fre|e of.cha|
|00002f80| 72 67 65 20 66 6f 72 20 | 6e 6f 6e 2d 63 6f 6d 6d |rge for |non-comm|
|00002f90| 65 72 63 69 61 6c 20 75 | 73 65 2e 20 59 6f 75 20 |ercial u|se. You |
|00002fa0| 73 68 6f 75 6c 64 2c 20 | 68 6f 77 65 76 65 72 2c |should, |however,|
|00002fb0| 20 62 65 20 70 72 65 70 | 61 72 65 64 20 74 6f 0a | be prep|ared to.|
|00002fc0| 62 65 61 72 20 74 68 65 | 20 63 6f 73 74 20 6f 66 |bear the| cost of|
|00002fd0| 20 63 6f 70 79 69 6e 67 | 2c 20 65 2e 20 67 2e 20 | copying|, e. g. |
|00002fe0| 62 79 20 73 75 70 70 6c | 79 69 6e 67 20 61 20 64 |by suppl|ying a d|
|00002ff0| 69 73 6b 20 6f 72 20 74 | 61 70 65 20 61 6e 64 20 |isk or t|ape and |
|00003000| 61 0a 73 74 61 6d 70 65 | 64 20 6d 61 69 6c 69 6e |a.stampe|d mailin|
|00003010| 67 20 65 6e 76 65 6c 6f | 70 65 2e 20 0a 0a 41 20 |g envelo|pe. ..A |
|00003020| 76 65 72 73 69 6f 6e 20 | 66 6f 72 20 74 68 65 20 |version |for the |
|00003030| 4d 61 63 20 49 49 20 72 | 65 71 75 69 72 69 6e 67 |Mac II r|equiring|
|00003040| 20 74 68 65 20 4d 43 36 | 38 38 38 31 20 63 6f 70 | the MC6|8881 cop|
|00003050| 72 6f 63 65 73 73 6f 72 | 20 69 73 20 61 76 61 69 |rocessor| is avai|
|00003060| 6c 61 62 6c 65 0a 61 73 | 20 77 65 6c 6c 2e 20 54 |lable.as| well. T|
|00003070| 68 69 73 20 76 65 72 73 | 69 6f 6e 20 69 73 20 63 |his vers|ion is c|
|00003080| 6f 6d 70 69 6c 65 64 20 | 74 6f 20 61 63 63 65 73 |ompiled |to acces|
|00003090| 73 20 74 68 65 20 63 6f | 70 72 6f 63 65 73 73 6f |s the co|processo|
|000030a0| 72 20 64 69 72 65 63 74 | 6c 79 0a 61 6e 64 20 77 |r direct|ly.and w|
|000030b0| 69 6c 6c 20 74 68 65 72 | 65 66 6f 72 65 20 6e 6f |ill ther|efore no|
|000030c0| 74 20 72 75 6e 20 6f 6e | 20 61 20 6d 61 63 68 69 |t run on| a machi|
|000030d0| 6e 65 20 77 69 74 68 6f | 75 74 20 74 68 65 20 63 |ne witho|ut the c|
|000030e0| 6f 70 72 6f 63 65 73 73 | 6f 72 2e 0a 4e 75 6d 65 |oprocess|or..Nume|
|000030f0| 72 69 63 61 6c 20 63 6f | 6d 70 75 74 61 74 69 6f |rical co|mputatio|
|00003100| 6e 73 20 77 69 74 68 20 | 74 68 69 73 20 76 65 72 |ns with |this ver|
|00003110| 73 69 6f 6e 20 61 72 65 | 20 61 62 6f 75 74 20 37 |sion are| about 7|
|00003120| 20 74 6f 20 31 30 20 74 | 69 6d 65 73 20 66 61 73 | to 10 t|imes fas|
|00003130| 74 65 72 0a 6f 6e 20 61 | 20 4d 61 63 20 49 49 20 |ter.on a| Mac II |
|00003140| 74 68 61 6e 20 77 69 74 | 68 6f 75 74 20 74 68 65 |than wit|hout the|
|00003150| 20 64 69 72 65 63 74 20 | 63 6f 70 72 6f 63 65 73 | direct |coproces|
|00003160| 73 6f 72 20 61 63 63 65 | 73 73 2e 20 0a 0a 5c 73 |sor acce|ss. ..\s|
|00003170| 75 62 73 65 63 74 69 6f | 6e 2a 7b 44 69 73 63 6c |ubsectio|n*{Discl|
|00003180| 61 69 6d 65 72 7d 0a 58 | 4c 49 53 50 2d 53 54 41 |aimer}.X|LISP-STA|
|00003190| 54 20 69 73 20 61 6e 20 | 65 78 70 65 72 69 6d 65 |T is an |experime|
|000031a0| 6e 74 61 6c 20 70 72 6f | 67 72 61 6d 2e 20 49 74 |ntal pro|gram. It|
|000031b0| 20 68 61 73 20 6e 6f 74 | 20 62 65 65 6e 20 65 78 | has not| been ex|
|000031c0| 74 65 6e 73 69 76 65 6c | 79 0a 74 65 73 74 65 64 |tensivel|y.tested|
|000031d0| 2e 20 54 68 65 20 55 6e | 69 76 65 72 73 69 74 79 |. The Un|iversity|
|000031e0| 20 6f 66 20 4d 69 6e 6e | 65 73 6f 74 61 2c 20 74 | of Minn|esota, t|
|000031f0| 68 65 20 53 63 68 6f 6f | 6c 20 6f 66 20 53 74 61 |he Schoo|l of Sta|
|00003200| 74 69 73 74 69 63 73 2c | 20 74 68 65 0a 61 75 74 |tistics,| the.aut|
|00003210| 68 6f 72 20 6f 66 20 74 | 68 65 20 73 74 61 74 69 |hor of t|he stati|
|00003220| 73 74 69 63 61 6c 20 65 | 78 74 65 6e 73 69 6f 6e |stical e|xtension|
|00003230| 73 20 61 6e 64 20 74 68 | 65 20 61 75 74 68 6f 72 |s and th|e author|
|00003240| 20 6f 66 20 58 4c 49 53 | 50 20 74 61 6b 65 20 6e | of XLIS|P take n|
|00003250| 6f 0a 72 65 73 70 6f 6e | 73 69 62 69 6c 69 74 79 |o.respon|sibility|
|00003260| 20 66 6f 72 20 6c 6f 73 | 73 65 73 20 6f 72 20 64 | for los|ses or d|
|00003270| 61 6d 61 67 65 73 20 72 | 65 73 75 6c 74 69 6e 67 |amages r|esulting|
|00003280| 20 64 69 72 65 63 74 6c | 79 20 6f 72 20 69 6e 64 | directl|y or ind|
|00003290| 69 72 65 63 74 6c 79 0a | 66 72 6f 6d 20 74 68 65 |irectly.|from the|
|000032a0| 20 75 73 65 20 6f 66 20 | 74 68 69 73 20 70 72 6f | use of |this pro|
|000032b0| 67 72 61 6d 2e 0a 0a 5c | 6e 65 77 70 61 67 65 0a |gram...\|newpage.|
|000032c0| 5c 73 65 63 74 69 6f 6e | 7b 53 74 61 72 74 69 6e |\section|{Startin|
|000032d0| 67 20 61 6e 64 20 46 69 | 6e 69 73 68 69 6e 67 7d |g and Fi|nishing}|
|000032e0| 0a 59 6f 75 20 73 68 6f | 75 6c 64 20 68 61 76 65 |.You sho|uld have|
|000032f0| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 58 4c 49 | the pro|gram XLI|
|00003300| 53 50 2d 53 54 41 54 20 | 6f 6e 20 61 20 4d 61 63 |SP-STAT |on a Mac|
|00003310| 69 6e 74 6f 73 68 20 64 | 69 73 6b 2e 20 58 4c 49 |intosh d|isk. XLI|
|00003320| 53 50 2d 53 54 41 54 0a | 6e 65 65 64 73 20 74 6f |SP-STAT.|needs to|
|00003330| 20 68 61 76 65 20 73 65 | 76 65 72 61 6c 20 66 69 | have se|veral fi|
|00003340| 6c 65 73 20 61 76 61 69 | 6c 61 62 6c 65 20 66 6f |les avai|lable fo|
|00003350| 72 20 69 74 20 74 6f 20 | 77 6f 72 6b 20 70 72 6f |r it to |work pro|
|00003360| 70 65 72 6c 79 2e 20 54 | 68 65 73 65 0a 66 69 6c |perly. T|hese.fil|
|00003370| 65 73 20 61 72 65 0a 5c | 66 6f 6f 74 6e 6f 74 65 |es are.\|footnote|
|00003380| 7b 54 68 65 20 66 69 6c | 65 20 5c 64 63 6f 64 65 |{The fil|e \dcode|
|00003390| 7b 78 6c 69 73 70 2e 68 | 65 6c 70 7d 20 69 73 20 |{xlisp.h|elp} is |
|000033a0| 6f 70 74 69 6f 6e 61 6c | 2e 20 49 66 20 69 74 20 |optional|. If it |
|000033b0| 69 73 20 6e 6f 74 0a 70 | 72 65 73 65 6e 74 20 69 |is not.p|resent i|
|000033c0| 6e 74 65 72 61 63 74 69 | 76 65 20 68 65 6c 70 20 |nteracti|ve help |
|000033d0| 77 69 6c 6c 20 6e 6f 74 | 20 62 65 20 61 76 61 69 |will not| be avai|
|000033e0| 6c 61 62 6c 65 2e 7d 3a | 0a 5c 62 65 67 69 6e 7b |lable.}:|.\begin{|
|000033f0| 63 65 6e 74 65 72 7d 7b | 5c 62 66 0a 69 6e 69 74 |center}{|\bf.init|
|00003400| 2e 6c 73 70 5c 5c 0a 63 | 6f 6d 6d 6f 6e 2e 6c 73 |.lsp\\.c|ommon.ls|
|00003410| 70 5c 5c 0a 68 65 6c 70 | 2e 6c 73 70 5c 5c 0a 6f |p\\.help|.lsp\\.o|
|00003420| 62 6a 65 63 74 73 2e 6c | 73 70 5c 5c 0a 6d 65 6e |bjects.l|sp\\.men|
|00003430| 75 73 2e 6c 73 70 5c 5c | 0a 73 74 61 74 69 73 74 |us.lsp\\|.statist|
|00003440| 69 63 73 2e 6c 73 70 5c | 5c 0a 64 69 61 6c 6f 67 |ics.lsp\|\.dialog|
|00003450| 73 2e 6c 73 70 5c 5c 0a | 67 72 61 70 68 69 63 73 |s.lsp\\.|graphics|
|00003460| 2e 6c 73 70 5c 5c 0a 67 | 72 61 70 68 69 63 73 32 |.lsp\\.g|raphics2|
|00003470| 2e 6c 73 70 5c 5c 0a 72 | 65 67 72 65 73 73 69 6f |.lsp\\.r|egressio|
|00003480| 6e 2e 6c 73 70 5c 5c 0a | 78 6c 69 73 70 2e 68 65 |n.lsp\\.|xlisp.he|
|00003490| 6c 70 7d 0a 5c 65 6e 64 | 7b 63 65 6e 74 65 72 7d |lp}.\end|{center}|
|000034a0| 0a 42 65 66 6f 72 65 20 | 73 74 61 72 74 69 6e 67 |.Before |starting|
|000034b0| 20 58 4c 49 53 50 2d 53 | 54 41 54 20 79 6f 75 20 | XLISP-S|TAT you |
|000034c0| 73 68 6f 75 6c 64 20 6d | 61 6b 65 20 73 75 72 65 |should m|ake sure|
|000034d0| 20 74 68 61 74 20 74 68 | 65 73 65 20 66 69 6c 65 | that th|ese file|
|000034e0| 73 20 61 72 65 0a 69 6e | 20 74 68 65 20 73 61 6d |s are.in| the sam|
|000034f0| 65 20 66 6f 6c 64 65 72 | 20 61 73 20 74 68 65 20 |e folder| as the |
|00003500| 58 4c 49 53 50 2d 53 54 | 41 54 20 61 70 70 6c 69 |XLISP-ST|AT appli|
|00003510| 63 61 74 69 6f 6e 2e 0a | 0a 54 6f 20 73 74 61 72 |cation..|.To star|
|00003520| 74 20 58 4c 49 53 50 2d | 53 54 41 54 20 64 6f 75 |t XLISP-|STAT dou|
|00003530| 62 6c 65 20 63 6c 69 63 | 6b 20 6f 6e 20 69 74 73 |ble clic|k on its|
|00003540| 20 69 63 6f 6e 2e 20 54 | 68 65 20 70 72 6f 67 72 | icon. T|he progr|
|00003550| 61 6d 20 77 69 6c 6c 20 | 6e 65 65 64 20 61 0a 6c |am will |need a.l|
|00003560| 69 74 74 6c 65 20 74 69 | 6d 65 20 74 6f 20 73 74 |ittle ti|me to st|
|00003570| 61 72 74 20 75 70 20 61 | 6e 64 20 72 65 61 64 20 |art up a|nd read |
|00003580| 69 6e 20 74 68 65 20 66 | 69 6c 65 73 20 6d 65 6e |in the f|iles men|
|00003590| 74 69 6f 6e 65 64 20 61 | 62 6f 76 65 2e 20 57 68 |tioned a|bove. Wh|
|000035a0| 65 6e 0a 58 4c 49 53 50 | 2d 53 54 41 54 20 69 73 |en.XLISP|-STAT is|
|000035b0| 20 72 65 61 64 79 20 74 | 68 65 20 74 65 78 74 20 | ready t|he text |
|000035c0| 69 6e 20 69 74 73 20 63 | 6f 6d 6d 61 6e 64 20 77 |in its c|ommand w|
|000035d0| 69 6e 64 6f 77 20 77 69 | 6c 6c 20 6c 6f 6f 6b 20 |indow wi|ll look |
|000035e0| 73 6f 6d 65 74 68 69 6e | 67 0a 6c 69 6b 65 20 74 |somethin|g.like t|
|000035f0| 68 69 73 5c 66 6f 6f 74 | 6e 6f 74 65 7b 49 6e 20 |his\foot|note{In |
|00003600| 61 20 73 6d 61 6c 6c 20 | 53 77 69 74 63 68 65 72 |a small |Switcher|
|00003610| 20 6f 72 20 4d 75 6c 74 | 69 46 69 6e 64 65 72 20 | or Mult|iFinder |
|00003620| 70 61 72 74 69 74 69 6f | 6e 20 61 20 64 69 61 6c |partitio|n a dial|
|00003630| 6f 67 0a 77 61 72 6e 69 | 6e 67 20 61 62 6f 75 74 |og.warni|ng about|
|00003640| 20 6d 65 6d 6f 72 79 20 | 72 65 73 74 72 69 63 74 | memory |restrict|
|00003650| 69 6f 6e 73 20 6d 61 79 | 20 62 65 20 61 70 70 65 |ions may| be appe|
|00003660| 61 72 20 61 74 20 74 68 | 69 73 20 70 6f 69 6e 74 |ar at th|is point|
|00003670| 2e 20 4f 6e 20 61 0a 4d | 61 63 20 49 49 20 69 74 |. On a.M|ac II it|
|00003680| 20 74 61 6b 65 73 20 61 | 62 6f 75 74 20 61 20 6d | takes a|bout a m|
|00003690| 69 6e 75 74 65 20 74 6f | 20 6c 6f 61 64 20 74 68 |inute to| load th|
|000036a0| 65 73 65 20 66 69 6c 65 | 73 3b 20 6f 6e 20 61 20 |ese file|s; on a |
|000036b0| 4d 61 63 20 50 6c 75 73 | 20 6f 72 0a 61 6e 20 53 |Mac Plus| or.an S|
|000036c0| 45 20 69 74 20 74 61 6b | 65 73 20 61 62 6f 75 74 |E it tak|es about|
|000036d0| 20 33 2e 35 20 6d 69 6e | 75 74 65 73 2e 7d 3a 0a | 3.5 min|utes.}:.|
|000036e0| 5c 62 65 67 69 6e 7b 76 | 65 72 62 61 74 69 6d 7d |\begin{v|erbatim}|
|000036f0| 0a 58 4c 49 53 50 20 76 | 65 72 73 69 6f 6e 20 32 |.XLISP v|ersion 2|
|00003700| 2e 30 2c 20 43 6f 70 79 | 72 69 67 68 74 20 28 63 |.0, Copy|right (c|
|00003710| 29 20 31 39 38 38 2c 20 | 62 79 20 44 61 76 69 64 |) 1988, |by David|
|00003720| 20 42 65 74 7a 0a 58 4c | 49 53 50 2d 53 54 41 54 | Betz.XL|ISP-STAT|
|00003730| 20 76 65 72 73 69 6f 6e | 20 32 2e 30 20 2c 20 43 | version| 2.0 , C|
|00003740| 6f 70 79 72 69 67 68 74 | 20 28 63 29 20 31 39 38 |opyright| (c) 198|
|00003750| 38 2c 20 62 79 20 4c 75 | 6b 65 20 54 69 65 72 6e |8, by Lu|ke Tiern|
|00003760| 65 79 2e 0a 53 65 76 65 | 72 61 6c 20 66 69 6c 65 |ey..Seve|ral file|
|00003770| 73 20 77 69 6c 6c 20 62 | 65 20 6c 6f 61 64 65 64 |s will b|e loaded|
|00003780| 3b 20 74 68 69 73 20 6d | 61 79 20 74 61 6b 65 20 |; this m|ay take |
|00003790| 61 20 66 65 77 20 6d 69 | 6e 75 74 65 73 2e 0a 0a |a few mi|nutes...|
|000037a0| 0a 3b 20 6c 6f 61 64 69 | 6e 67 20 22 69 6e 69 74 |.; loadi|ng "init|
|000037b0| 2e 6c 73 70 22 0a 3b 20 | 6c 6f 61 64 69 6e 67 20 |.lsp".; |loading |
|000037c0| 22 63 6f 6d 6d 6f 6e 2e | 6c 73 70 22 0a 3b 20 6c |"common.|lsp".; l|
|000037d0| 6f 61 64 69 6e 67 20 22 | 68 65 6c 70 2e 6c 73 70 |oading "|help.lsp|
|000037e0| 22 0a 3b 20 6c 6f 61 64 | 69 6e 67 20 22 6f 62 6a |".; load|ing "obj|
|000037f0| 65 63 74 73 2e 6c 73 70 | 22 0a 3b 20 6c 6f 61 64 |ects.lsp|".; load|
|00003800| 69 6e 67 20 22 6d 65 6e | 75 73 2e 6c 73 70 22 0a |ing "men|us.lsp".|
|00003810| 3b 20 6c 6f 61 64 69 6e | 67 20 22 73 74 61 74 69 |; loadin|g "stati|
|00003820| 73 74 69 63 73 2e 6c 73 | 70 22 0a 3b 20 6c 6f 61 |stics.ls|p".; loa|
|00003830| 64 69 6e 67 20 22 64 69 | 61 6c 6f 67 73 2e 6c 73 |ding "di|alogs.ls|
|00003840| 70 22 0a 3b 20 6c 6f 61 | 64 69 6e 67 20 22 67 72 |p".; loa|ding "gr|
|00003850| 61 70 68 69 63 73 2e 6c | 73 70 22 0a 3b 20 6c 6f |aphics.l|sp".; lo|
|00003860| 61 64 69 6e 67 20 22 67 | 72 61 70 68 69 63 73 32 |ading "g|raphics2|
|00003870| 2e 6c 73 70 22 0a 3b 20 | 6c 6f 61 64 69 6e 67 20 |.lsp".; |loading |
|00003880| 22 72 65 67 72 65 73 73 | 69 6f 6e 2e 6c 73 70 22 |"regress|ion.lsp"|
|00003890| 0a 3e 20 0a 5c 65 6e 64 | 7b 76 65 72 62 61 74 69 |.> .\end|{verbati|
|000038a0| 6d 7d 0a 0a 54 68 65 20 | 66 69 6e 61 6c 20 60 60 |m}..The |final ``|
|000038b0| 5c 50 52 4f 4d 50 54 27 | 27 20 69 6e 20 74 68 65 |\PROMPT'|' in the|
|000038c0| 20 77 69 6e 64 6f 77 20 | 69 73 20 74 68 65 20 58 | window |is the X|
|000038d0| 4c 49 53 50 2d 53 54 41 | 54 20 70 72 6f 6d 70 74 |LISP-STA|T prompt|
|000038e0| 2e 20 41 6e 79 0a 63 68 | 61 72 61 63 74 65 72 73 |. Any.ch|aracters|
|000038f0| 20 79 6f 75 20 74 79 70 | 65 20 77 68 69 6c 65 20 | you typ|e while |
|00003900| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 77 69 6e 64 |the comm|and wind|
|00003910| 6f 77 20 69 73 20 61 63 | 74 69 76 65 20 77 69 6c |ow is ac|tive wil|
|00003920| 6c 20 62 65 20 61 64 64 | 65 64 0a 74 6f 20 74 68 |l be add|ed.to th|
|00003930| 65 20 6c 69 6e 65 20 61 | 66 74 65 72 20 74 68 65 |e line a|fter the|
|00003940| 20 66 69 6e 61 6c 20 70 | 72 6f 6d 70 74 2e 20 57 | final p|rompt. W|
|00003950| 68 65 6e 20 79 6f 75 20 | 68 69 74 20 61 20 72 65 |hen you |hit a re|
|00003960| 74 75 72 6e 2c 20 58 4c | 49 53 50 2d 53 54 41 54 |turn, XL|ISP-STAT|
|00003970| 0a 77 69 6c 6c 20 74 72 | 79 20 74 6f 20 69 6e 74 |.will tr|y to int|
|00003980| 65 72 70 72 65 74 20 77 | 68 61 74 20 79 6f 75 20 |erpret w|hat you |
|00003990| 68 61 76 65 20 74 79 70 | 65 64 20 61 6e 64 20 77 |have typ|ed and w|
|000039a0| 69 6c 6c 20 70 72 69 6e | 74 20 61 20 72 65 73 70 |ill prin|t a resp|
|000039b0| 6f 6e 73 65 2e 0a 46 6f | 72 20 65 78 61 6d 70 6c |onse..Fo|r exampl|
|000039c0| 65 2c 20 69 66 20 79 6f | 75 20 74 79 70 65 20 61 |e, if yo|u type a|
|000039d0| 20 31 20 61 6e 64 20 68 | 69 74 20 72 65 74 75 72 | 1 and h|it retur|
|000039e0| 6e 20 74 68 65 6e 20 58 | 4c 49 53 50 2d 53 54 41 |n then X|LISP-STA|
|000039f0| 54 20 77 69 6c 6c 0a 72 | 65 73 70 6f 6e 64 20 62 |T will.r|espond b|
|00003a00| 79 20 73 69 6d 70 6c 79 | 20 70 72 69 6e 74 69 6e |y simply| printin|
|00003a10| 67 20 61 20 31 20 6f 6e | 20 74 68 65 20 66 6f 6c |g a 1 on| the fol|
|00003a20| 6c 6f 77 69 6e 67 20 6c | 69 6e 65 20 61 6e 64 20 |lowing l|ine and |
|00003a30| 74 68 65 6e 20 67 69 76 | 69 6e 67 0a 79 6f 75 20 |then giv|ing.you |
|00003a40| 61 20 6e 65 77 20 70 72 | 6f 6d 70 74 3a 0a 5c 62 |a new pr|ompt:.\b|
|00003a50| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 0a 3e |egin{ver|batim}.>|
|00003a60| 20 31 0a 31 0a 3e 0a 5c | 65 6e 64 7b 76 65 72 62 | 1.1.>.\|end{verb|
|00003a70| 61 74 69 6d 7d 0a 0a 49 | 66 20 79 6f 75 20 74 79 |atim}..I|f you ty|
|00003a80| 70 65 20 61 6e 20 7b 5c | 65 6d 20 65 78 70 72 65 |pe an {\|em expre|
|00003a90| 73 73 69 6f 6e 7d 20 6c | 69 6b 65 20 5c 64 63 6f |ssion} l|ike \dco|
|00003aa0| 64 65 7b 28 2b 20 31 20 | 32 29 7d 2c 20 74 68 65 |de{(+ 1 |2)}, the|
|00003ab0| 6e 20 58 4c 49 53 50 2d | 53 54 41 54 0a 77 69 6c |n XLISP-|STAT.wil|
|00003ac0| 6c 20 70 72 69 6e 74 20 | 74 68 65 20 72 65 73 75 |l print |the resu|
|00003ad0| 6c 74 20 6f 66 20 65 76 | 61 6c 75 61 74 69 6e 67 |lt of ev|aluating|
|00003ae0| 20 74 68 65 20 65 78 70 | 72 65 73 73 69 6f 6e 20 | the exp|ression |
|00003af0| 61 6e 64 20 67 69 76 65 | 20 79 6f 75 20 61 20 6e |and give| you a n|
|00003b00| 65 77 0a 70 72 6f 6d 70 | 74 3a 0a 5c 62 65 67 69 |ew.promp|t:.\begi|
|00003b10| 6e 7b 76 65 72 62 61 74 | 69 6d 7d 0a 3e 20 28 2b |n{verbat|im}.> (+|
|00003b20| 20 31 20 32 29 0a 33 0a | 3e 0a 5c 65 6e 64 7b 76 | 1 2).3.|>.\end{v|
|00003b30| 65 72 62 61 74 69 6d 7d | 0a 41 73 20 79 6f 75 20 |erbatim}|.As you |
|00003b40| 68 61 76 65 20 70 72 6f | 62 61 62 6c 79 20 67 75 |have pro|bably gu|
|00003b50| 65 73 73 65 64 2c 20 74 | 68 69 73 20 65 78 70 72 |essed, t|his expr|
|00003b60| 65 73 73 69 6f 6e 20 6d | 65 61 6e 73 20 74 68 61 |ession m|eans tha|
|00003b70| 74 20 74 68 65 20 6e 75 | 6d 62 65 72 73 20 31 0a |t the nu|mbers 1.|
|00003b80| 61 6e 64 20 32 20 61 72 | 65 20 74 6f 20 62 65 20 |and 2 ar|e to be |
|00003b90| 61 64 64 65 64 20 74 6f | 67 65 74 68 65 72 2e 20 |added to|gether. |
|00003ba0| 54 68 65 20 6e 65 78 74 | 20 73 65 63 74 69 6f 6e |The next| section|
|00003bb0| 20 77 69 6c 6c 20 67 69 | 76 65 20 6d 6f 72 65 0a | will gi|ve more.|
|00003bc0| 64 65 74 61 69 6c 73 20 | 6f 6e 20 68 6f 77 20 58 |details |on how X|
|00003bd0| 4c 49 53 50 2d 53 54 41 | 54 20 65 78 70 72 65 73 |LISP-STA|T expres|
|00003be0| 73 69 6f 6e 73 20 77 6f | 72 6b 2e 20 49 6e 20 74 |sions wo|rk. In t|
|00003bf0| 68 69 73 20 74 75 74 6f | 72 69 61 6c 20 49 20 77 |his tuto|rial I w|
|00003c00| 69 6c 6c 0a 61 6c 77 61 | 79 73 20 73 68 6f 77 20 |ill.alwa|ys show |
|00003c10| 69 6e 74 65 72 61 63 74 | 69 6f 6e 73 20 77 69 74 |interact|ions wit|
|00003c20| 68 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 61 73 |h the pr|ogram as|
|00003c30| 20 49 20 68 61 76 65 20 | 64 6f 6e 65 20 68 65 72 | I have |done her|
|00003c40| 65 3a 20 54 68 65 0a 60 | 60 5c 50 52 4f 4d 50 54 |e: The.`|`\PROMPT|
|00003c50| 27 27 20 70 72 6f 6d 70 | 74 20 77 69 6c 6c 20 61 |'' promp|t will a|
|00003c60| 70 70 65 61 72 20 62 65 | 66 6f 72 65 20 6c 69 6e |ppear be|fore lin|
|00003c70| 65 73 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 74 79 |es you s|hould ty|
|00003c80| 70 65 2e 0a 58 4c 49 53 | 50 2d 53 54 41 54 20 77 |pe..XLIS|P-STAT w|
|00003c90| 69 6c 6c 20 73 75 70 70 | 6c 79 20 74 68 69 73 20 |ill supp|ly this |
|00003ca0| 70 72 6f 6d 70 74 20 77 | 68 65 6e 20 69 74 20 69 |prompt w|hen it i|
|00003cb0| 73 20 72 65 61 64 79 3b | 20 79 6f 75 20 73 68 6f |s ready;| you sho|
|00003cc0| 75 6c 64 20 6e 6f 74 0a | 74 79 70 65 20 69 74 20 |uld not.|type it |
|00003cd0| 79 6f 75 72 73 65 6c 66 | 2e 0a 0a 4e 6f 77 20 74 |yourself|...Now t|
|00003ce0| 68 61 74 20 79 6f 75 20 | 68 61 76 65 20 73 65 65 |hat you |have see|
|00003cf0| 6e 20 68 6f 77 20 74 6f | 20 73 74 61 72 74 20 75 |n how to| start u|
|00003d00| 70 20 58 4c 49 53 50 2d | 53 54 41 54 20 69 74 20 |p XLISP-|STAT it |
|00003d10| 69 73 20 61 20 67 6f 6f | 64 20 69 64 65 61 20 74 |is a goo|d idea t|
|00003d20| 6f 0a 6d 61 6b 65 20 73 | 75 72 65 20 79 6f 75 20 |o.make s|ure you |
|00003d30| 6b 6e 6f 77 20 68 6f 77 | 20 74 6f 20 67 65 74 20 |know how| to get |
|00003d40| 6f 75 74 2e 20 41 73 20 | 77 69 74 68 20 6d 61 6e |out. As |with man|
|00003d50| 79 20 4d 61 63 69 6e 74 | 6f 73 68 20 70 72 6f 67 |y Macint|osh prog|
|00003d60| 72 61 6d 73 20 74 68 65 | 0a 65 61 73 69 65 73 74 |rams the|.easiest|
|00003d70| 20 77 61 79 20 74 6f 20 | 67 65 74 20 6f 75 74 20 | way to |get out |
|00003d80| 69 73 20 74 6f 20 63 68 | 6f 6f 73 65 20 74 68 65 |is to ch|oose the|
|00003d90| 20 5c 69 6e 64 65 78 7b | 71 75 69 74 7d 20 5c 6d | \index{|quit} \m|
|00003da0| 61 63 62 6f 6c 64 7b 51 | 75 69 74 7d 0a 63 6f 6d |acbold{Q|uit}.com|
|00003db0| 6d 61 6e 64 20 66 72 6f | 6d 20 74 68 65 20 5c 6d |mand fro|m the \m|
|00003dc0| 61 63 62 6f 6c 64 7b 46 | 69 6c 65 7d 20 6d 65 6e |acbold{F|ile} men|
|00003dd0| 75 2e 20 59 6f 75 20 63 | 61 6e 20 61 6c 73 6f 20 |u. You c|an also |
|00003de0| 75 73 65 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 |use the |command |
|00003df0| 6b 65 79 0a 73 68 6f 72 | 74 63 75 74 20 5c 43 4f |key.shor|tcut \CO|
|00003e00| 4d 4d 41 4e 44 7b 51 7d | 2c 20 6f 72 20 79 6f 75 |MMAND{Q}|, or you|
|00003e10| 20 63 61 6e 20 74 79 70 | 65 20 74 68 65 20 65 78 | can typ|e the ex|
|00003e20| 70 72 65 73 73 69 6f 6e | 0a 5c 62 65 67 69 6e 7b |pression|.\begin{|
|00003e30| 76 65 72 62 61 74 69 6d | 7d 0a 3e 20 28 65 78 69 |verbatim|}.> (exi|
|00003e40| 74 29 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |t).\end{|verbatim|
|00003e50| 7d 0a 5c 69 6e 64 65 78 | 7b 65 78 69 74 7d 0a 41 |}.\index|{exit}.A|
|00003e60| 6e 79 20 6f 6e 65 20 6f | 66 20 74 68 65 73 65 20 |ny one o|f these |
|00003e70| 6d 65 74 68 6f 64 73 20 | 73 68 6f 75 6c 64 20 63 |methods |should c|
|00003e80| 61 75 73 65 20 74 68 65 | 20 70 72 6f 67 72 61 6d |ause the| program|
|00003e90| 20 74 6f 20 65 78 69 74 | 20 61 6e 64 20 72 65 74 | to exit| and ret|
|00003ea0| 75 72 6e 0a 79 6f 75 20 | 74 6f 20 74 68 65 20 46 |urn.you |to the F|
|00003eb0| 69 6e 64 65 72 2e 0a 0a | 5c 6e 65 77 70 61 67 65 |inder...|\newpage|
|00003ec0| 0a 5c 73 65 63 74 69 6f | 6e 7b 49 6e 74 72 6f 64 |.\sectio|n{Introd|
|00003ed0| 75 63 74 69 6f 6e 20 74 | 6f 20 42 61 73 69 63 73 |uction t|o Basics|
|00003ee0| 7d 0a 42 65 66 6f 72 65 | 20 77 65 20 63 61 6e 20 |}.Before| we can |
|00003ef0| 73 74 61 72 74 20 74 6f | 20 75 73 65 20 58 4c 49 |start to| use XLI|
|00003f00| 53 50 2d 53 54 41 54 20 | 66 6f 72 20 73 74 61 74 |SP-STAT |for stat|
|00003f10| 69 73 74 69 63 61 6c 20 | 77 6f 72 6b 20 77 65 20 |istical |work we |
|00003f20| 6e 65 65 64 20 74 6f 0a | 6c 65 61 72 6e 20 61 20 |need to.|learn a |
|00003f30| 6c 69 74 74 6c 65 20 61 | 62 6f 75 74 20 74 68 65 |little a|bout the|
|00003f40| 20 6b 69 6e 64 20 6f 66 | 20 64 61 74 61 20 58 4c | kind of| data XL|
|00003f50| 49 53 50 2d 53 54 41 54 | 20 75 73 65 73 20 61 6e |ISP-STAT| uses an|
|00003f60| 64 20 61 62 6f 75 74 20 | 68 6f 77 0a 74 68 65 20 |d about |how.the |
|00003f70| 58 4c 49 53 50 2d 53 54 | 41 54 20 7b 5c 65 6d 20 |XLISP-ST|AT {\em |
|00003f80| 6c 69 73 74 65 6e 65 72 | 7d 20 61 6e 64 20 7b 5c |listener|} and {\|
|00003f90| 65 6d 20 65 76 61 6c 75 | 61 74 6f 72 7d 20 77 6f |em evalu|ator} wo|
|00003fa0| 72 6b 2e 0a 0a 5c 73 75 | 62 73 65 63 74 69 6f 6e |rk...\su|bsection|
|00003fb0| 7b 44 61 74 61 7d 0a 58 | 4c 49 53 50 2d 53 54 41 |{Data}.X|LISP-STA|
|00003fc0| 54 20 77 6f 72 6b 73 20 | 77 69 74 68 20 74 77 6f |T works |with two|
|00003fd0| 20 6b 69 6e 64 73 20 6f | 66 20 64 61 74 61 3a 20 | kinds o|f data: |
|00003fe0| 7b 5c 65 6d 20 73 69 6d | 70 6c 65 20 64 61 74 61 |{\em sim|ple data|
|00003ff0| 7d 5c 69 6e 64 65 78 7b | 73 69 6d 70 6c 65 0a 64 |}\index{|simple.d|
|00004000| 61 74 61 7d 20 61 6e 64 | 20 7b 5c 65 6d 20 63 6f |ata} and| {\em co|
|00004010| 6d 70 6f 75 6e 64 20 64 | 61 74 61 7d 5c 69 6e 64 |mpound d|ata}\ind|
|00004020| 65 78 7b 63 6f 6d 70 6f | 75 6e 64 20 64 61 74 61 |ex{compo|und data|
|00004030| 7d 2e 20 53 69 6d 70 6c | 65 20 64 61 74 61 2c 20 |}. Simpl|e data, |
|00004040| 6f 72 0a 61 74 6f 6d 73 | 5c 69 6e 64 65 78 7b 61 |or.atoms|\index{a|
|00004050| 74 6f 6d 73 7d 2c 20 61 | 72 65 20 6e 75 6d 62 65 |toms}, a|re numbe|
|00004060| 72 73 0a 5c 62 65 67 69 | 6e 7b 76 65 72 62 61 74 |rs.\begi|n{verbat|
|00004070| 69 6d 7d 0a 31 20 20 20 | 20 20 20 20 20 20 20 20 |im}.1 | |
|00004080| 20 20 20 20 20 20 20 20 | 3b 20 61 6e 20 69 6e 74 | |; an int|
|00004090| 65 67 65 72 0a 2d 33 2e | 31 34 20 20 20 20 20 20 |eger.-3.|14 |
|000040a0| 20 20 20 20 20 20 20 20 | 20 3b 20 61 20 66 6c 6f | | ; a flo|
|000040b0| 61 74 69 6e 67 20 70 6f | 69 6e 74 20 6e 75 6d 62 |ating po|int numb|
|000040c0| 65 72 0a 23 43 28 30 20 | 31 29 20 20 20 20 20 20 |er.#C(0 |1) |
|000040d0| 20 20 20 20 20 20 20 3b | 20 61 20 63 6f 6d 70 6c | ;| a compl|
|000040e0| 65 78 20 6e 75 6d 62 65 | 72 20 28 74 68 65 20 69 |ex numbe|r (the i|
|000040f0| 6d 61 67 69 6e 61 72 79 | 20 75 6e 69 74 29 0a 5c |maginary| unit).\|
|00004100| 65 6e 64 7b 76 65 72 62 | 61 74 69 6d 7d 0a 6c 6f |end{verb|atim}.lo|
|00004110| 67 69 63 61 6c 20 76 61 | 6c 75 65 73 0a 5c 62 65 |gical va|lues.\be|
|00004120| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0a 54 20 |gin{verb|atim}.T |
|00004130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004140| 20 20 3b 20 74 72 75 65 | 0a 6e 69 6c 20 20 20 20 | ; true|.nil |
|00004150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3b 20 66 | | ; f|
|00004160| 61 6c 73 65 0a 5c 65 6e | 64 7b 76 65 72 62 61 74 |alse.\en|d{verbat|
|00004170| 69 6d 7d 0a 73 74 72 69 | 6e 67 73 20 28 61 6c 77 |im}.stri|ngs (alw|
|00004180| 61 79 73 20 65 6e 63 6c | 6f 73 65 64 20 69 6e 20 |ays encl|osed in |
|00004190| 64 6f 75 62 6c 65 20 71 | 75 6f 74 65 73 29 0a 5c |double q|uotes).\|
|000041a0| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|000041b0| 22 54 68 69 73 20 69 73 | 20 61 20 73 74 72 69 6e |"This is| a strin|
|000041c0| 67 20 31 20 32 20 33 20 | 34 22 0a 5c 65 6e 64 7b |g 1 2 3 |4".\end{|
|000041d0| 76 65 72 62 61 74 69 6d | 7d 0a 61 6e 64 20 73 79 |verbatim|}.and sy|
|000041e0| 6d 62 6f 6c 73 20 28 75 | 73 65 64 20 66 6f 72 20 |mbols (u|sed for |
|000041f0| 6e 61 6d 69 6e 67 20 74 | 68 69 6e 67 73 3b 20 73 |naming t|hings; s|
|00004200| 65 65 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ee the f|ollowing|
|00004210| 20 73 65 63 74 69 6f 6e | 29 0a 5c 62 65 67 69 6e | section|).\begin|
|00004220| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 78 0a 78 31 32 |{verbati|m}.x.x12|
|00004230| 0a 31 32 78 0a 74 68 69 | 73 2d 69 73 2d 61 2d 73 |.12x.thi|s-is-a-s|
|00004240| 79 6d 62 6f 6c 0a 5c 65 | 6e 64 7b 76 65 72 62 61 |ymbol.\e|nd{verba|
|00004250| 74 69 6d 7d 0a 43 6f 6d | 70 6f 75 6e 64 20 64 61 |tim}.Com|pound da|
|00004260| 74 61 20 61 72 65 20 6c | 69 73 74 73 5c 69 6e 64 |ta are l|ists\ind|
|00004270| 65 78 7b 6c 69 73 74 7d | 0a 5c 62 65 67 69 6e 7b |ex{list}|.\begin{|
|00004280| 76 65 72 62 61 74 69 6d | 7d 0a 28 74 68 69 73 20 |verbatim|}.(this |
|00004290| 69 73 20 61 20 6c 69 73 | 74 20 77 69 74 68 20 37 |is a lis|t with 7|
|000042a0| 20 65 6c 65 6d 65 6e 74 | 73 29 0a 28 2b 20 31 20 | element|s).(+ 1 |
|000042b0| 32 20 33 29 0a 28 73 71 | 72 74 20 32 29 0a 5c 65 |2 3).(sq|rt 2).\e|
|000042c0| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0a 6f 72 20 |nd{verba|tim}.or |
|000042d0| 5c 69 6e 64 65 78 7b 76 | 65 63 74 6f 72 7d 20 76 |\index{v|ector} v|
|000042e0| 65 63 74 6f 72 73 0a 5c | 62 65 67 69 6e 7b 76 65 |ectors.\|begin{ve|
|000042f0| 72 62 61 74 69 6d 7d 0a | 23 28 74 68 69 73 20 69 |rbatim}.|#(this i|
|00004300| 73 20 61 20 76 65 63 74 | 6f 72 20 77 69 74 68 20 |s a vect|or with |
|00004310| 37 20 65 6c 65 6d 65 6e | 74 73 29 0a 23 28 31 20 |7 elemen|ts).#(1 |
|00004320| 32 20 33 29 0a 5c 65 6e | 64 7b 76 65 72 62 61 74 |2 3).\en|d{verbat|
|00004330| 69 6d 7d 0a 48 69 67 68 | 65 72 20 64 69 6d 65 6e |im}.High|er dimen|
|00004340| 73 69 6f 6e 61 6c 20 61 | 72 72 61 79 73 20 61 72 |sional a|rrays ar|
|00004350| 65 20 61 6e 6f 74 68 65 | 72 20 66 6f 72 6d 20 6f |e anothe|r form o|
|00004360| 66 20 63 6f 6d 70 6f 75 | 6e 64 20 64 61 74 61 3b |f compou|nd data;|
|00004370| 20 74 68 65 79 20 77 69 | 6c 6c 0a 62 65 20 64 69 | they wi|ll.be di|
|00004380| 73 63 75 73 73 65 64 20 | 62 65 6c 6f 77 20 69 6e |scussed |below in|
|00004390| 20 53 65 63 74 69 6f 6e | 20 5c 72 65 66 7b 41 72 | Section| \ref{Ar|
|000043a0| 72 61 79 73 7d 2e 0a 0a | 41 6c 6c 20 74 68 65 20 |rays}...|All the |
|000043b0| 65 78 61 6d 70 6c 65 73 | 20 67 69 76 65 6e 20 61 |examples| given a|
|000043c0| 62 6f 76 65 20 63 61 6e | 20 62 65 20 74 79 70 65 |bove can| be type|
|000043d0| 64 20 64 69 72 65 63 74 | 6c 79 20 69 6e 74 6f 20 |d direct|ly into |
|000043e0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 0a 77 69 6e 64 |the comm|and.wind|
|000043f0| 6f 77 20 61 73 20 74 68 | 65 79 20 61 72 65 20 73 |ow as th|ey are s|
|00004400| 68 6f 77 6e 20 68 65 72 | 65 2e 20 54 68 65 20 6e |hown her|e. The n|
|00004410| 65 78 74 20 73 65 63 74 | 69 6f 6e 20 64 65 73 63 |ext sect|ion desc|
|00004420| 72 69 62 65 73 20 77 68 | 61 74 0a 58 4c 49 53 50 |ribes wh|at.XLISP|
|00004430| 2d 53 54 41 54 20 77 69 | 6c 6c 20 64 6f 20 77 69 |-STAT wi|ll do wi|
|00004440| 74 68 20 74 68 65 73 65 | 20 65 78 70 72 65 73 73 |th these| express|
|00004450| 69 6f 6e 73 2e 0a 0a 5c | 73 75 62 73 65 63 74 69 |ions...\|subsecti|
|00004460| 6f 6e 7b 54 68 65 20 4c | 69 73 74 65 6e 65 72 20 |on{The L|istener |
|00004470| 61 6e 64 20 74 68 65 20 | 45 76 61 6c 75 61 74 6f |and the |Evaluato|
|00004480| 72 7d 0a 41 20 73 65 73 | 73 69 6f 6e 20 77 69 74 |r}.A ses|sion wit|
|00004490| 68 20 58 4c 49 53 50 2d | 53 54 41 54 20 62 61 73 |h XLISP-|STAT bas|
|000044a0| 69 63 61 6c 6c 79 20 63 | 6f 6e 73 69 73 74 73 20 |ically c|onsists |
|000044b0| 6f 66 20 61 20 63 6f 6e | 76 65 72 73 61 74 69 6f |of a con|versatio|
|000044c0| 6e 20 62 65 74 77 65 65 | 6e 0a 79 6f 75 20 61 6e |n betwee|n.you an|
|000044d0| 64 20 74 68 65 20 7b 5c | 65 6d 20 6c 69 73 74 65 |d the {\|em liste|
|000044e0| 6e 65 72 7d 2e 20 54 68 | 65 20 6c 69 73 74 65 6e |ner}. Th|e listen|
|000044f0| 65 72 20 69 73 20 74 68 | 65 20 77 69 6e 64 6f 77 |er is th|e window|
|00004500| 20 69 6e 74 6f 20 77 68 | 69 63 68 0a 79 6f 75 20 | into wh|ich.you |
|00004510| 74 79 70 65 20 79 6f 75 | 72 20 63 6f 6d 6d 61 6e |type you|r comman|
|00004520| 64 73 2e 20 57 68 65 6e | 20 69 74 20 69 73 20 72 |ds. When| it is r|
|00004530| 65 61 64 79 20 74 6f 20 | 72 65 63 65 69 76 65 20 |eady to |receive |
|00004540| 61 20 63 6f 6d 6d 61 6e | 64 20 69 74 0a 67 69 76 |a comman|d it.giv|
|00004550| 65 73 20 79 6f 75 20 61 | 20 70 72 6f 6d 70 74 2e |es you a| prompt.|
|00004560| 20 41 74 20 74 68 65 20 | 70 72 6f 6d 70 74 20 79 | At the |prompt y|
|00004570| 6f 75 20 63 61 6e 20 74 | 79 70 65 20 69 6e 20 61 |ou can t|ype in a|
|00004580| 6e 20 65 78 70 72 65 73 | 73 69 6f 6e 2e 20 59 6f |n expres|sion. Yo|
|00004590| 75 0a 63 61 6e 20 75 73 | 65 20 74 68 65 20 6d 6f |u.can us|e the mo|
|000045a0| 75 73 65 20 6f 72 20 74 | 68 65 20 7b 5c 65 6d 20 |use or t|he {\em |
|000045b0| 62 61 63 6b 73 70 61 63 | 65 7d 20 6b 65 79 20 74 |backspac|e} key t|
|000045c0| 6f 20 63 6f 72 72 65 63 | 74 20 61 6e 79 20 6d 69 |o correc|t any mi|
|000045d0| 73 74 61 6b 65 73 20 79 | 6f 75 0a 6d 61 6b 65 20 |stakes y|ou.make |
|000045e0| 77 68 69 6c 65 20 74 79 | 70 69 6e 67 20 69 6e 20 |while ty|ping in |
|000045f0| 79 6f 75 72 20 65 78 70 | 72 65 73 73 69 6f 6e 2e |your exp|ression.|
|00004600| 20 57 68 65 6e 20 74 68 | 65 20 65 78 70 72 65 73 | When th|e expres|
|00004610| 73 69 6f 6e 20 69 73 20 | 63 6f 6d 70 6c 65 74 65 |sion is |complete|
|00004620| 20 61 6e 64 0a 79 6f 75 | 20 74 79 70 65 20 61 20 | and.you| type a |
|00004630| 7b 5c 65 6d 20 72 65 74 | 75 72 6e 7d 20 74 68 65 |{\em ret|urn} the|
|00004640| 20 6c 69 73 74 65 6e 65 | 72 20 70 61 73 73 65 73 | listene|r passes|
|00004650| 20 74 68 65 20 65 78 70 | 72 65 73 73 69 6f 6e 20 | the exp|ression |
|00004660| 6f 6e 20 74 6f 20 74 68 | 65 0a 7b 5c 65 6d 20 65 |on to th|e.{\em e|
|00004670| 76 61 6c 75 61 74 6f 72 | 7d 2e 20 54 68 65 20 65 |valuator|}. The e|
|00004680| 76 61 6c 75 61 74 6f 72 | 20 65 76 61 6c 75 61 74 |valuator| evaluat|
|00004690| 65 73 20 74 68 65 20 65 | 78 70 72 65 73 73 69 6f |es the e|xpressio|
|000046a0| 6e 20 61 6e 64 20 72 65 | 74 75 72 6e 73 20 74 68 |n and re|turns th|
|000046b0| 65 0a 72 65 73 75 6c 74 | 20 74 6f 20 74 68 65 20 |e.result| to the |
|000046c0| 6c 69 73 74 65 6e 65 72 | 20 66 6f 72 20 70 72 69 |listener| for pri|
|000046d0| 6e 74 69 6e 67 2e 20 5c | 66 6f 6f 74 6e 6f 74 65 |nting. \|footnote|
|000046e0| 7b 49 74 20 69 73 20 70 | 6f 73 73 69 62 6c 65 20 |{It is p|ossible |
|000046f0| 74 6f 20 6d 61 6b 65 20 | 61 0a 66 69 6e 65 72 20 |to make |a.finer |
|00004700| 64 69 73 74 69 6e 63 74 | 69 6f 6e 2e 20 54 68 65 |distinct|ion. The|
|00004710| 20 7b 5c 65 6d 20 72 65 | 61 64 65 72 7d 20 20 74 | {\em re|ader} t|
|00004720| 61 6b 65 73 20 61 20 73 | 74 72 69 6e 67 20 6f 66 |akes a s|tring of|
|00004730| 20 63 68 61 72 61 63 74 | 65 72 73 20 66 72 6f 6d | charact|ers from|
|00004740| 0a 74 68 65 20 6c 69 73 | 74 65 6e 65 72 20 61 6e |.the lis|tener an|
|00004750| 64 20 63 6f 6e 76 65 72 | 74 73 20 69 74 20 69 6e |d conver|ts it in|
|00004760| 74 6f 20 61 6e 20 65 78 | 70 72 65 73 73 69 6f 6e |to an ex|pression|
|00004770| 2e 20 54 68 65 20 7b 5c | 65 6d 20 65 76 61 6c 75 |. The {\|em evalu|
|00004780| 61 74 6f 72 7d 0a 65 76 | 61 6c 75 61 74 65 73 20 |ator}.ev|aluates |
|00004790| 74 68 65 20 65 78 70 72 | 65 73 73 69 6f 6e 20 61 |the expr|ession a|
|000047a0| 6e 64 20 74 68 65 20 7b | 5c 65 6d 20 70 72 69 6e |nd the {|\em prin|
|000047b0| 74 65 72 7d 20 63 6f 6e | 76 65 72 74 73 20 74 68 |ter} con|verts th|
|000047c0| 65 20 72 65 73 75 6c 74 | 20 69 6e 74 6f 0a 61 6e |e result| into.an|
|000047d0| 6f 74 68 65 72 20 73 74 | 72 69 6e 67 20 6f 66 20 |other st|ring of |
|000047e0| 63 68 61 72 61 63 74 65 | 72 73 20 66 6f 72 20 74 |characte|rs for t|
|000047f0| 68 65 20 6c 69 73 74 65 | 6e 65 72 20 74 6f 20 70 |he liste|ner to p|
|00004800| 72 69 6e 74 2e 20 46 6f | 72 20 73 69 6d 70 6c 69 |rint. Fo|r simpli|
|00004810| 63 69 74 79 20 49 0a 77 | 69 6c 6c 20 75 73 65 20 |city I.w|ill use |
|00004820| 7b 5c 65 6d 20 65 76 61 | 6c 75 61 74 6f 72 7d 20 |{\em eva|luator} |
|00004830| 74 6f 20 64 65 73 63 72 | 69 62 65 20 74 68 65 20 |to descr|ibe the |
|00004840| 63 6f 6d 62 69 6e 61 74 | 69 6f 6e 20 6f 66 20 74 |combinat|ion of t|
|00004850| 68 65 73 65 0a 66 75 6e | 63 74 69 6f 6e 73 2e 7d |hese.fun|ctions.}|
|00004860| 20 54 68 65 20 65 76 61 | 6c 75 61 74 6f 72 20 69 | The eva|luator i|
|00004870| 74 20 74 68 65 20 68 65 | 61 72 74 20 6f 66 20 74 |t the he|art of t|
|00004880| 68 65 20 73 79 73 74 65 | 6d 2e 0a 0a 54 68 65 20 |he syste|m...The |
|00004890| 62 61 73 69 63 20 72 75 | 6c 65 20 74 6f 20 72 65 |basic ru|le to re|
|000048a0| 6d 65 6d 62 65 72 20 69 | 6e 20 74 72 79 69 6e 67 |member i|n trying|
|000048b0| 20 74 6f 20 75 6e 64 65 | 72 73 74 61 6e 64 20 68 | to unde|rstand h|
|000048c0| 6f 77 20 74 68 65 20 65 | 76 61 6c 75 61 74 6f 72 |ow the e|valuator|
|000048d0| 0a 77 6f 72 6b 73 20 69 | 73 20 74 68 61 74 20 65 |.works i|s that e|
|000048e0| 76 65 72 79 74 68 69 6e | 67 20 69 73 20 65 76 61 |verythin|g is eva|
|000048f0| 6c 75 61 74 65 64 2e 20 | 4e 75 6d 62 65 72 73 20 |luated. |Numbers |
|00004900| 61 6e 64 20 73 74 72 69 | 6e 67 73 20 65 76 61 6c |and stri|ngs eval|
|00004910| 75 61 74 65 20 74 6f 0a | 74 68 65 6d 73 65 6c 76 |uate to.|themselv|
|00004920| 65 73 3a 0a 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |es:.\beg|in{verba|
|00004930| 74 69 6d 7d 20 0a 3e 20 | 31 20 0a 31 0a 3e 20 22 |tim} .> |1 .1.> "|
|00004940| 48 65 6c 6c 6f 22 0a 22 | 48 65 6c 6c 6f 22 0a 3e |Hello"."|Hello".>|
|00004950| 0a 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |.\end{ve|rbatim}.|
|00004960| 4c 69 73 74 73 20 61 72 | 65 20 6d 6f 72 65 20 63 |Lists ar|e more c|
|00004970| 6f 6d 70 6c 69 63 61 74 | 65 64 2e 20 53 75 70 70 |omplicat|ed. Supp|
|00004980| 6f 73 65 20 79 6f 75 20 | 74 79 70 65 20 74 68 65 |ose you |type the|
|00004990| 20 6c 69 73 74 0a 5c 64 | 63 6f 64 65 7b 28 2b 20 | list.\d|code{(+ |
|000049a0| 31 20 32 20 33 29 7d 20 | 61 74 20 74 68 65 20 6c |1 2 3)} |at the l|
|000049b0| 69 73 74 65 6e 65 72 2e | 20 54 68 69 73 20 6c 69 |istener.| This li|
|000049c0| 73 74 20 68 61 73 20 66 | 6f 75 72 0a 65 6c 65 6d |st has f|our.elem|
|000049d0| 65 6e 74 73 3a 20 74 68 | 65 20 73 79 6d 62 6f 6c |ents: th|e symbol|
|000049e0| 20 5c 64 63 6f 64 65 7b | 2b 7d 5c 69 6e 64 65 78 | \dcode{|+}\index|
|000049f0| 7b 2b 7d 20 66 6f 6c 6c | 6f 77 65 64 20 62 79 20 |{+} foll|owed by |
|00004a00| 74 68 65 20 6e 75 6d 62 | 65 72 73 20 31 2c 20 32 |the numb|ers 1, 2|
|00004a10| 0a 61 6e 64 20 33 2e 20 | 20 48 65 72 65 20 69 73 |.and 3. | Here is|
|00004a20| 20 77 68 61 74 20 68 61 | 70 70 65 6e 73 3a 0a 5c | what ha|ppens:.\|
|00004a30| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|00004a40| 3e 20 28 2b 20 31 20 32 | 20 33 29 0a 36 0a 3e 0a |> (+ 1 2| 3).6.>.|
|00004a50| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0a 41 |\end{ver|batim}.A|
|00004a60| 20 6c 69 73 74 20 69 73 | 20 65 76 61 6c 75 61 74 | list is| evaluat|
|00004a70| 65 64 20 61 73 20 61 20 | 66 75 6e 63 74 69 6f 6e |ed as a |function|
|00004a80| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2e 20 20 54 | applica|tion. T|
|00004a90| 68 65 20 66 69 72 73 74 | 20 65 6c 65 6d 65 6e 74 |he first| element|
|00004aa0| 0a 69 73 20 61 20 73 79 | 6d 62 6f 6c 20 72 65 70 |.is a sy|mbol rep|
|00004ab0| 72 65 73 65 6e 74 69 6e | 67 20 61 20 66 75 6e 63 |resentin|g a func|
|00004ac0| 74 69 6f 6e 2c 20 69 6e | 20 74 68 69 73 20 63 61 |tion, in| this ca|
|00004ad0| 73 65 20 74 68 65 20 73 | 79 6d 62 6f 6c 20 5c 64 |se the s|ymbol \d|
|00004ae0| 63 6f 64 65 7b 2b 7d 0a | 72 65 70 72 65 73 65 6e |code{+}.|represen|
|00004af0| 74 69 6e 67 20 74 68 65 | 20 61 64 64 69 74 69 6f |ting the| additio|
|00004b00| 6e 20 66 75 6e 63 74 69 | 6f 6e 2e 20 54 68 65 20 |n functi|on. The |
|00004b10| 72 65 6d 61 69 6e 69 6e | 67 20 65 6c 65 6d 65 6e |remainin|g elemen|
|00004b20| 74 73 20 61 72 65 20 74 | 68 65 0a 61 72 67 75 6d |ts are t|he.argum|
|00004b30| 65 6e 74 73 2e 20 20 54 | 68 75 73 20 74 68 65 20 |ents. T|hus the |
|00004b40| 6c 69 73 74 20 69 6e 20 | 74 68 65 20 65 78 61 6d |list in |the exam|
|00004b50| 70 6c 65 20 61 62 6f 76 | 65 20 69 73 20 69 6e 74 |ple abov|e is int|
|00004b60| 65 72 70 72 65 74 65 64 | 20 74 6f 20 6d 65 61 6e |erpreted| to mean|
|00004b70| 0a 60 60 41 70 70 6c 79 | 20 74 68 65 20 66 75 6e |.``Apply| the fun|
|00004b80| 63 74 69 6f 6e 20 5c 64 | 63 6f 64 65 7b 2b 7d 20 |ction \d|code{+} |
|00004b90| 74 6f 20 74 68 65 20 6e | 75 6d 62 65 72 73 20 31 |to the n|umbers 1|
|00004ba0| 2c 20 32 20 61 6e 64 20 | 33 27 27 2e 0a 0a 41 63 |, 2 and |3''...Ac|
|00004bb0| 74 75 61 6c 6c 79 2c 20 | 74 68 65 20 61 72 67 75 |tually, |the argu|
|00004bc0| 6d 65 6e 74 73 20 74 6f | 20 61 20 66 75 6e 63 74 |ments to| a funct|
|00004bd0| 69 6f 6e 20 61 72 65 20 | 61 6c 77 61 79 73 20 65 |ion are |always e|
|00004be0| 76 61 6c 75 61 74 65 64 | 20 62 65 66 6f 72 65 20 |valuated| before |
|00004bf0| 74 68 65 0a 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |the.func|tion is |
|00004c00| 61 70 70 6c 69 65 64 2e | 20 49 6e 20 74 68 65 20 |applied.| In the |
|00004c10| 70 72 65 76 69 6f 75 73 | 20 65 78 61 6d 70 6c 65 |previous| example|
|00004c20| 20 74 68 65 20 61 72 67 | 75 6d 65 6e 74 73 20 61 | the arg|uments a|
|00004c30| 72 65 20 61 6c 6c 0a 6e | 75 6d 62 65 72 73 20 61 |re all.n|umbers a|
|00004c40| 6e 64 20 74 68 75 73 20 | 65 76 61 6c 75 61 74 65 |nd thus |evaluate|
|00004c50| 20 74 6f 20 74 68 65 6d | 73 65 6c 76 65 73 2e 20 | to them|selves. |
|00004c60| 20 4f 6e 20 74 68 65 20 | 6f 74 68 65 72 20 68 61 | On the |other ha|
|00004c70| 6e 64 2c 20 63 6f 6e 73 | 69 64 65 72 0a 5c 62 65 |nd, cons|ider.\be|
|00004c80| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0a 3e 20 |gin{verb|atim}.> |
|00004c90| 28 2b 20 28 2a 20 32 20 | 33 29 20 34 29 0a 31 30 |(+ (* 2 |3) 4).10|
|00004ca0| 0a 3e 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |.>.\end{|verbatim|
|00004cb0| 7d 0a 54 68 65 20 65 76 | 61 6c 75 61 74 6f 72 20 |}.The ev|aluator |
|00004cc0| 68 61 73 20 74 6f 20 65 | 76 61 6c 75 61 74 65 20 |has to e|valuate |
|00004cd0| 74 68 65 20 66 69 72 73 | 74 20 61 72 67 75 6d 65 |the firs|t argume|
|00004ce0| 6e 74 20 74 6f 20 74 68 | 65 20 66 75 6e 63 74 69 |nt to th|e functi|
|00004cf0| 6f 6e 0a 5c 64 63 6f 64 | 65 7b 2b 7d 20 62 65 66 |on.\dcod|e{+} bef|
|00004d00| 6f 72 65 20 69 74 20 63 | 61 6e 20 61 70 70 6c 79 |ore it c|an apply|
|00004d10| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 2e 0a 0a | the fun|ction...|
|00004d20| 4f 63 63 61 73 69 6f 6e | 61 6c 6c 79 20 79 6f 75 |Occasion|ally you|
|00004d30| 20 6d 61 79 20 77 61 6e | 74 20 74 6f 20 74 65 6c | may wan|t to tel|
|00004d40| 6c 20 74 68 65 20 65 76 | 61 6c 75 61 74 6f 72 20 |l the ev|aluator |
|00004d50| 7b 5c 65 6d 20 6e 6f 74 | 7d 5c 2f 20 74 6f 20 65 |{\em not|}\/ to e|
|00004d60| 76 61 6c 75 61 74 65 0a | 73 6f 6d 65 74 68 69 6e |valuate.|somethin|
|00004d70| 67 2e 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |g. For e|xample, |
|00004d80| 73 75 70 70 6f 73 65 20 | 77 65 20 77 61 6e 74 65 |suppose |we wante|
|00004d90| 64 20 74 6f 20 67 65 74 | 20 74 68 65 20 65 76 61 |d to get| the eva|
|00004da0| 6c 75 61 74 6f 72 20 74 | 6f 0a 73 69 6d 70 6c 79 |luator t|o.simply|
|00004db0| 20 72 65 74 75 72 6e 20 | 74 68 65 20 6c 69 73 74 | return |the list|
|00004dc0| 20 5c 64 63 6f 64 65 7b | 28 2b 20 31 20 32 29 7d | \dcode{|(+ 1 2)}|
|00004dd0| 20 62 61 63 6b 20 74 6f | 20 75 73 2c 20 69 6e 73 | back to| us, ins|
|00004de0| 74 65 61 64 20 6f 66 0a | 65 76 61 6c 75 61 74 69 |tead of.|evaluati|
|00004df0| 6e 67 20 69 74 2e 20 54 | 6f 20 64 6f 20 74 68 69 |ng it. T|o do thi|
|00004e00| 73 20 77 65 20 6e 65 65 | 64 20 74 6f 20 7b 5c 65 |s we nee|d to {\e|
|00004e10| 6d 20 71 75 6f 74 65 7d | 20 6f 75 72 0a 6c 69 73 |m quote}| our.lis|
|00004e20| 74 3a 5c 69 6e 64 65 78 | 7b 71 75 6f 74 65 7d 0a |t:\index|{quote}.|
|00004e30| 5c 62 65 67 69 6e 7b 76 | 65 72 62 61 74 69 6d 7d |\begin{v|erbatim}|
|00004e40| 0a 3e 20 28 71 75 6f 74 | 65 20 28 2b 20 31 20 32 |.> (quot|e (+ 1 2|
|00004e50| 29 29 0a 28 2b 20 31 20 | 32 29 0a 3e 0a 5c 65 6e |)).(+ 1 |2).>.\en|
|00004e60| 64 7b 76 65 72 62 61 74 | 69 6d 7d 0a 5c 64 63 6f |d{verbat|im}.\dco|
|00004e70| 64 65 7b 71 75 6f 74 65 | 7d 20 69 73 20 6e 6f 74 |de{quote|} is not|
|00004e80| 20 61 20 66 75 6e 63 74 | 69 6f 6e 2e 20 49 74 20 | a funct|ion. It |
|00004e90| 64 6f 65 73 20 6e 6f 74 | 20 6f 62 65 79 20 74 68 |does not| obey th|
|00004ea0| 65 20 72 75 6c 65 73 20 | 6f 66 20 66 75 6e 63 74 |e rules |of funct|
|00004eb0| 69 6f 6e 0a 65 76 61 6c | 75 61 74 69 6f 6e 20 64 |ion.eval|uation d|
|00004ec0| 65 73 63 72 69 62 65 64 | 20 61 62 6f 76 65 3a 20 |escribed| above: |
|00004ed0| 49 74 73 20 61 72 67 75 | 6d 65 6e 74 20 69 73 20 |Its argu|ment is |
|00004ee0| 6e 6f 74 20 65 76 61 6c | 75 61 74 65 64 2e 0a 5c |not eval|uated..\|
|00004ef0| 64 63 6f 64 65 7b 71 75 | 6f 74 65 7d 20 69 73 20 |dcode{qu|ote} is |
|00004f00| 63 61 6c 6c 65 64 20 61 | 20 7b 5c 65 6d 20 73 70 |called a| {\em sp|
|00004f10| 65 63 69 61 6c 20 66 6f | 72 6d 7d 20 2d 2d 20 73 |ecial fo|rm} -- s|
|00004f20| 70 65 63 69 61 6c 20 62 | 65 63 61 75 73 65 20 69 |pecial b|ecause i|
|00004f30| 74 20 68 61 73 0a 73 70 | 65 63 69 61 6c 20 72 75 |t has.sp|ecial ru|
|00004f40| 6c 65 73 20 66 6f 72 20 | 74 68 65 20 74 72 65 61 |les for |the trea|
|00004f50| 74 6d 65 6e 74 20 6f 66 | 20 69 74 73 20 61 72 67 |tment of| its arg|
|00004f60| 75 6d 65 6e 74 73 2e 20 | 54 68 65 72 65 20 61 72 |uments. |There ar|
|00004f70| 65 20 61 20 66 65 77 0a | 6f 74 68 65 72 20 73 70 |e a few.|other sp|
|00004f80| 65 63 69 61 6c 20 66 6f | 72 6d 73 20 74 68 61 74 |ecial fo|rms that|
|00004f90| 20 77 65 20 77 69 6c 6c | 20 6e 65 65 64 3b 20 49 | we will| need; I|
|00004fa0| 20 77 69 6c 6c 20 69 6e | 74 72 6f 64 75 63 65 20 | will in|troduce |
|00004fb0| 74 68 65 6d 20 61 73 20 | 74 68 65 79 0a 61 72 65 |them as |they.are|
|00004fc0| 20 6e 65 65 64 65 64 2e | 20 20 54 6f 67 65 74 68 | needed.| Togeth|
|00004fd0| 65 72 20 77 69 74 68 20 | 74 68 65 20 62 61 73 69 |er with |the basi|
|00004fe0| 63 20 65 76 61 6c 75 61 | 74 69 6f 6e 20 72 75 6c |c evalua|tion rul|
|00004ff0| 65 73 20 64 65 73 63 72 | 69 62 65 64 20 68 65 72 |es descr|ibed her|
|00005000| 65 0a 74 68 65 73 65 20 | 73 70 65 63 69 61 6c 20 |e.these |special |
|00005010| 66 6f 72 6d 73 20 6d 61 | 6b 65 20 75 70 20 74 68 |forms ma|ke up th|
|00005020| 65 20 62 61 73 69 63 73 | 20 6f 66 20 74 68 65 20 |e basics| of the |
|00005030| 4c 49 53 50 20 6c 61 6e | 67 75 61 67 65 2e 20 54 |LISP lan|guage. T|
|00005040| 68 65 0a 73 70 65 63 69 | 61 6c 20 66 6f 72 6d 20 |he.speci|al form |
|00005050| 5c 64 63 6f 64 65 7b 71 | 75 6f 74 65 7d 20 69 73 |\dcode{q|uote} is|
|00005060| 20 75 73 65 64 20 73 6f | 20 6f 66 74 65 6e 20 74 | used so| often t|
|00005070| 68 61 74 20 61 20 73 68 | 6f 72 74 68 61 6e 64 20 |hat a sh|orthand |
|00005080| 6e 6f 74 61 74 69 6f 6e | 0a 68 61 73 20 62 65 65 |notation|.has bee|
|00005090| 6e 20 64 65 76 65 6c 6f | 70 65 64 2c 20 61 20 73 |n develo|ped, a s|
|000050a0| 69 6e 67 6c 65 20 71 75 | 6f 74 65 20 62 65 66 6f |ingle qu|ote befo|
|000050b0| 72 65 20 74 68 65 20 65 | 78 70 72 65 73 73 69 6f |re the e|xpressio|
|000050c0| 6e 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 0a 71 75 |n you wa|nt to.qu|
|000050d0| 6f 74 65 3a 20 0a 5c 62 | 65 67 69 6e 7b 76 65 72 |ote: .\b|egin{ver|
|000050e0| 62 61 74 69 6d 7d 0a 3e | 20 27 28 2b 20 31 20 32 |batim}.>| '(+ 1 2|
|000050f0| 29 20 20 20 20 20 09 3b | 20 73 69 6e 67 6c 65 20 |) .;| single |
|00005100| 71 75 6f 74 65 20 73 68 | 6f 72 74 68 61 6e 64 20 |quote sh|orthand |
|00005110| 0a 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |.\end{ve|rbatim}.|
|00005120| 54 68 69 73 20 69 73 20 | 65 71 75 69 76 61 6c 65 |This is |equivale|
|00005130| 6e 74 20 74 6f 20 5c 64 | 63 6f 64 65 7b 28 71 75 |nt to \d|code{(qu|
|00005140| 6f 74 65 20 28 2b 20 31 | 20 32 29 29 7d 2e 20 4e |ote (+ 1| 2))}. N|
|00005150| 6f 74 65 20 74 68 61 74 | 20 74 68 65 72 65 20 69 |ote that| there i|
|00005160| 73 20 6e 6f 0a 6d 61 74 | 63 68 69 6e 67 20 71 75 |s no.mat|ching qu|
|00005170| 6f 74 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 74 68 |ote foll|owing th|
|00005180| 65 20 65 78 70 72 65 73 | 73 69 6f 6e 2e 0a 0a 42 |e expres|sion...B|
|00005190| 79 20 74 68 65 20 77 61 | 79 2c 20 74 68 65 20 73 |y the wa|y, the s|
|000051a0| 65 6d 69 63 6f 6c 6f 6e | 20 60 60 5c 64 63 6f 64 |emicolon| ``\dcod|
|000051b0| 65 7b 3b 7d 27 27 20 69 | 73 20 74 68 65 20 4c 49 |e{;}'' i|s the LI|
|000051c0| 53 50 20 63 6f 6d 6d 65 | 6e 74 20 63 68 61 72 61 |SP comme|nt chara|
|000051d0| 63 74 65 72 2e 0a 41 6e | 79 74 68 69 6e 67 20 79 |cter..An|ything y|
|000051e0| 6f 75 20 74 79 70 65 20 | 61 66 74 65 72 20 61 20 |ou type |after a |
|000051f0| 73 65 6d 69 63 6f 6c 6f | 6e 20 75 70 20 74 6f 20 |semicolo|n up to |
|00005200| 74 68 65 20 6e 65 78 74 | 20 74 69 6d 65 20 79 6f |the next| time yo|
|00005210| 75 20 68 69 74 20 61 0a | 72 65 74 75 72 6e 20 69 |u hit a.|return i|
|00005220| 73 20 69 67 6e 6f 72 65 | 64 20 62 79 20 74 68 65 |s ignore|d by the|
|00005230| 20 65 76 61 6c 75 61 74 | 6f 72 2e 0a 0a 5c 73 75 | evaluat|or...\su|
|00005240| 62 73 65 63 74 69 6f 6e | 2a 7b 45 78 65 72 63 69 |bsection|*{Exerci|
|00005250| 73 65 73 7d 0a 46 6f 72 | 20 65 61 63 68 20 6f 66 |ses}.For| each of|
|00005260| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 65 | the fol|lowing e|
|00005270| 78 70 72 65 73 73 69 6f | 6e 73 20 74 72 79 20 74 |xpressio|ns try t|
|00005280| 6f 20 70 72 65 64 69 63 | 74 20 77 68 61 74 20 74 |o predic|t what t|
|00005290| 68 65 0a 65 76 61 6c 75 | 61 74 6f 72 20 77 69 6c |he.evalu|ator wil|
|000052a0| 6c 20 72 65 74 75 72 6e | 2e 20 54 68 65 6e 20 74 |l return|. Then t|
|000052b0| 79 70 65 20 74 68 65 6d | 20 69 6e 2c 20 73 65 65 |ype them| in, see|
|000052c0| 20 77 68 61 74 20 68 61 | 70 70 65 6e 73 20 61 6e | what ha|ppens an|
|000052d0| 64 20 74 72 79 20 74 6f | 0a 65 78 70 6c 61 69 6e |d try to|.explain|
|000052e0| 20 61 6e 79 20 64 69 66 | 66 65 72 65 6e 63 65 73 | any dif|ferences|
|000052f0| 2e 0a 5c 62 65 67 69 6e | 7b 65 6e 75 6d 65 72 61 |..\begin|{enumera|
|00005300| 74 65 7d 0a 5c 69 74 65 | 6d 20 5c 64 63 6f 64 65 |te}.\ite|m \dcode|
|00005310| 7b 28 2b 20 33 20 35 20 | 36 29 7d 0a 5c 69 74 65 |{(+ 3 5 |6)}.\ite|
|00005320| 6d 20 5c 64 63 6f 64 65 | 7b 28 2b 20 28 2d 20 31 |m \dcode|{(+ (- 1|
|00005330| 20 32 29 20 33 29 7d 0a | 5c 69 74 65 6d 20 5c 64 | 2) 3)}.|\item \d|
|00005340| 63 6f 64 65 7b 27 28 2b | 20 33 20 35 20 36 29 7d |code{'(+| 3 5 6)}|
|00005350| 0a 5c 69 74 65 6d 20 5c | 64 63 6f 64 65 7b 27 28 |.\item \|dcode{'(|
|00005360| 20 2b 20 28 2d 20 31 20 | 32 29 20 33 29 7d 0a 5c | + (- 1 |2) 3)}.\|
|00005370| 69 74 65 6d 20 5c 64 63 | 6f 64 65 7b 28 2b 20 28 |item \dc|ode{(+ (|
|00005380| 2d 20 28 2a 20 32 20 33 | 29 20 28 2f 20 36 20 32 |- (* 2 3|) (/ 6 2|
|00005390| 29 29 20 37 29 7d 0a 5c | 69 74 65 6d 20 5c 64 63 |)) 7)}.\|item \dc|
|000053a0| 6f 64 65 7b 27 78 7d 0a | 5c 65 6e 64 7b 65 6e 75 |ode{'x}.|\end{enu|
|000053b0| 6d 65 72 61 74 65 7d 0a | 52 65 6d 65 6d 62 65 72 |merate}.|Remember|
|000053c0| 2c 20 74 6f 20 71 75 69 | 74 20 66 72 6f 6d 20 58 |, to qui|t from X|
|000053d0| 4c 49 53 50 2d 53 54 41 | 54 20 63 68 6f 6f 73 65 |LISP-STA|T choose|
|000053e0| 20 5c 6d 61 63 62 6f 6c | 64 7b 51 75 69 74 7d 20 | \macbol|d{Quit} |
|000053f0| 66 72 6f 6d 20 74 68 65 | 0a 5c 6d 61 63 62 6f 6c |from the|.\macbol|
|00005400| 64 7b 46 69 6c 65 7d 20 | 6d 65 6e 75 20 6f 72 20 |d{File} |menu or |
|00005410| 74 79 70 65 20 5c 64 63 | 6f 64 65 7b 28 65 78 69 |type \dc|ode{(exi|
|00005420| 74 29 7d 2e 0a 0a 5c 6e | 65 77 70 61 67 65 0a 5c |t)}...\n|ewpage.\|
|00005430| 73 65 63 74 69 6f 6e 7b | 45 6c 65 6d 65 6e 74 61 |section{|Elementa|
|00005440| 72 79 20 53 74 61 74 69 | 73 74 69 63 61 6c 20 4f |ry Stati|stical O|
|00005450| 70 65 72 61 74 69 6f 6e | 73 7d 0a 5c 6c 61 62 65 |peration|s}.\labe|
|00005460| 6c 7b 45 6c 65 6d 65 6e | 74 61 72 79 7d 0a 54 68 |l{Elemen|tary}.Th|
|00005470| 69 73 20 73 65 63 74 69 | 6f 6e 20 69 6e 74 72 6f |is secti|on intro|
|00005480| 64 75 63 65 73 20 73 6f | 6d 65 20 6f 66 20 74 68 |duces so|me of th|
|00005490| 65 20 62 61 73 69 63 20 | 67 72 61 70 68 69 63 61 |e basic |graphica|
|000054a0| 6c 20 61 6e 64 20 6e 75 | 6d 65 72 69 63 61 6c 0a |l and nu|merical.|
|000054b0| 73 74 61 74 69 73 74 69 | 63 61 6c 20 6f 70 65 72 |statisti|cal oper|
|000054c0| 61 74 69 6f 6e 73 20 74 | 68 61 74 20 61 72 65 20 |ations t|hat are |
|000054d0| 61 76 61 69 6c 61 62 6c | 65 20 69 6e 20 58 4c 49 |availabl|e in XLI|
|000054e0| 53 50 2d 53 54 41 54 2e | 0a 0a 5c 73 75 62 73 65 |SP-STAT.|..\subse|
|000054f0| 63 74 69 6f 6e 7b 46 69 | 72 73 74 20 53 74 65 70 |ction{Fi|rst Step|
|00005500| 73 7d 0a 5c 6c 61 62 65 | 6c 7b 45 6c 65 6d 65 6e |s}.\labe|l{Elemen|
|00005510| 74 61 72 79 2e 46 69 72 | 73 74 7d 0a 53 74 61 74 |tary.Fir|st}.Stat|
|00005520| 69 73 74 69 63 61 6c 20 | 64 61 74 61 20 75 73 75 |istical |data usu|
|00005530| 61 6c 6c 79 20 63 6f 6e | 73 69 73 74 73 20 6f 66 |ally con|sists of|
|00005540| 20 67 72 6f 75 70 73 20 | 6f 66 20 6e 75 6d 62 65 | groups |of numbe|
|00005550| 72 73 2e 20 44 65 76 6f | 72 65 20 61 6e 64 20 50 |rs. Devo|re and P|
|00005560| 65 63 6b 0a 5c 63 69 74 | 65 5b 45 78 65 72 63 69 |eck.\cit|e[Exerci|
|00005570| 73 65 20 32 2e 31 31 5d | 7b 44 65 76 6f 72 65 50 |se 2.11]|{DevoreP|
|00005580| 65 63 6b 7d 20 64 65 73 | 63 72 69 62 65 20 61 6e |eck} des|cribe an|
|00005590| 20 65 78 70 65 72 69 6d | 65 6e 74 20 69 6e 20 77 | experim|ent in w|
|000055a0| 68 69 63 68 20 32 32 0a | 63 6f 6e 73 75 6d 65 72 |hich 22.|consumer|
|000055b0| 73 20 72 65 70 6f 72 74 | 65 64 20 74 68 65 20 6e |s report|ed the n|
|000055c0| 75 6d 62 65 72 20 6f 66 | 20 74 69 6d 65 73 20 74 |umber of| times t|
|000055d0| 68 65 79 20 68 61 64 20 | 70 75 72 63 68 61 73 65 |hey had |purchase|
|000055e0| 64 20 61 20 70 72 6f 64 | 75 63 74 0a 64 75 72 69 |d a prod|uct.duri|
|000055f0| 6e 67 20 74 68 65 20 70 | 72 65 76 69 6f 75 73 20 |ng the p|revious |
|00005600| 34 38 20 77 65 65 6b 20 | 70 65 72 69 6f 64 2e 20 |48 week |period. |
|00005610| 54 68 65 20 72 65 73 75 | 6c 74 73 20 61 72 65 20 |The resu|lts are |
|00005620| 67 69 76 65 6e 20 61 73 | 20 61 20 74 61 62 6c 65 |given as| a table|
|00005630| 3a 0a 5c 62 65 67 69 6e | 7b 63 65 6e 74 65 72 7d |:.\begin|{center}|
|00005640| 20 5c 62 65 67 69 6e 7b | 74 61 62 75 6c 61 72 7d | \begin{|tabular}|
|00005650| 7b 72 72 72 72 72 72 72 | 72 72 72 72 7d 0a 09 30 |{rrrrrrr|rrrr}..0|
|00005660| 09 26 20 32 09 26 20 35 | 09 26 20 30 20 26 20 33 |.& 2.& 5|.& 0 & 3|
|00005670| 09 26 20 31 09 26 20 38 | 09 26 20 30 09 26 0a 33 |.& 1.& 8|.& 0.&.3|
|00005680| 09 26 20 31 09 26 20 31 | 5c 5c 0a 20 09 39 09 26 |.& 1.& 1|\\. .9.&|
|00005690| 20 32 09 26 20 34 09 26 | 20 30 09 26 20 32 09 26 | 2.& 4.&| 0.& 2.&|
|000056a0| 0a 39 09 26 20 33 09 26 | 20 30 09 26 20 31 09 26 |.9.& 3.&| 0.& 1.&|
|000056b0| 20 39 09 26 20 38 0a 5c | 65 6e 64 7b 74 61 62 75 | 9.& 8.\|end{tabu|
|000056c0| 6c 61 72 7d 0a 5c 65 6e | 64 7b 63 65 6e 74 65 72 |lar}.\en|d{center|
|000056d0| 7d 0a 54 6f 20 65 78 61 | 6d 69 6e 65 20 74 68 69 |}.To exa|mine thi|
|000056e0| 73 20 64 61 74 61 20 69 | 6e 20 58 4c 49 53 50 2d |s data i|n XLISP-|
|000056f0| 53 54 41 54 20 77 65 20 | 72 65 70 72 65 73 65 6e |STAT we |represen|
|00005700| 74 20 69 74 20 61 73 20 | 61 20 6c 69 73 74 20 6f |t it as |a list o|
|00005710| 66 0a 6e 75 6d 62 65 72 | 73 20 75 73 69 6e 67 20 |f.number|s using |
|00005720| 74 68 65 20 5c 64 63 6f | 64 65 7b 6c 69 73 74 7d |the \dco|de{list}|
|00005730| 5c 69 6e 64 65 78 7b 6c | 69 73 74 7d 20 66 75 6e |\index{l|ist} fun|
|00005740| 63 74 69 6f 6e 3a 0a 5c | 62 65 67 69 6e 7b 76 65 |ction:.\|begin{ve|
|00005750| 72 62 61 74 69 6d 7d 0a | 3e 20 28 6c 69 73 74 20 |rbatim}.|> (list |
|00005760| 30 20 32 20 35 20 30 20 | 33 20 31 20 38 20 30 20 |0 2 5 0 |3 1 8 0 |
|00005770| 33 20 31 20 31 20 39 20 | 32 20 34 20 30 20 32 20 |3 1 1 9 |2 4 0 2 |
|00005780| 39 20 33 20 30 20 31 20 | 39 20 38 29 0a 28 30 20 |9 3 0 1 |9 8).(0 |
|00005790| 32 20 35 20 30 20 33 20 | 31 20 38 20 30 20 33 20 |2 5 0 3 |1 8 0 3 |
|000057a0| 31 20 31 20 39 20 32 20 | 34 20 30 20 32 20 39 20 |1 1 9 2 |4 0 2 9 |
|000057b0| 33 20 30 20 31 20 39 20 | 38 29 0a 3e 0a 5c 65 6e |3 0 1 9 |8).>.\en|
|000057c0| 64 7b 76 65 72 62 61 74 | 69 6d 7d 0a 4e 6f 74 65 |d{verbat|im}.Note|
|000057d0| 20 74 68 61 74 20 74 68 | 65 20 6e 75 6d 62 65 72 | that th|e number|
|000057e0| 73 20 61 72 65 20 73 65 | 70 61 72 61 74 65 64 20 |s are se|parated |
|000057f0| 62 79 20 77 68 69 74 65 | 20 73 70 61 63 65 20 28 |by white| space (|
|00005800| 73 70 61 63 65 73 2c 20 | 74 61 62 73 20 6f 72 20 |spaces, |tabs or |
|00005810| 65 76 65 6e 0a 72 65 74 | 75 72 6e 73 29 2c 20 6e |even.ret|urns), n|
|00005820| 6f 74 20 63 6f 6d 6d 61 | 73 2e 20 0a 0a 54 68 65 |ot comma|s. ..The|
|00005830| 20 5c 64 63 6f 64 65 7b | 6d 65 61 6e 7d 5c 69 6e | \dcode{|mean}\in|
|00005840| 64 65 78 7b 6d 65 61 6e | 7d 20 66 75 6e 63 74 69 |dex{mean|} functi|
|00005850| 6f 6e 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 74 |on can b|e used t|
|00005860| 6f 20 63 6f 6d 70 75 74 | 65 20 74 68 65 0a 61 76 |o comput|e the.av|
|00005870| 65 72 61 67 65 20 6f 66 | 20 61 20 6c 69 73 74 20 |erage of| a list |
|00005880| 6f 66 20 6e 75 6d 62 65 | 72 73 2e 20 57 65 20 63 |of numbe|rs. We c|
|00005890| 61 6e 20 63 6f 6d 62 69 | 6e 65 20 69 74 20 77 69 |an combi|ne it wi|
|000058a0| 74 68 20 74 68 65 20 5c | 64 63 6f 64 65 7b 6c 69 |th the \|dcode{li|
|000058b0| 73 74 7d 0a 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |st}.func|tion to |
|000058c0| 66 69 6e 64 20 74 68 65 | 20 61 76 65 72 61 67 65 |find the| average|
|000058d0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 70 75 72 63 68 | number |of purch|
|000058e0| 61 73 65 73 20 66 6f 72 | 20 6f 75 72 20 73 61 6d |ases for| our sam|
|000058f0| 70 6c 65 3a 0a 5c 62 65 | 67 69 6e 7b 76 65 72 62 |ple:.\be|gin{verb|
|00005900| 61 74 69 6d 7d 0a 3e 20 | 28 6d 65 61 6e 20 28 6c |atim}.> |(mean (l|
|00005910| 69 73 74 20 30 20 32 20 | 35 20 30 20 33 20 31 20 |ist 0 2 |5 0 3 1 |
|00005920| 38 20 30 20 33 20 31 20 | 31 20 39 20 32 20 34 20 |8 0 3 1 |1 9 2 4 |
|00005930| 30 20 32 20 39 20 33 20 | 30 20 31 20 39 20 38 29 |0 2 9 3 |0 1 9 8)|
|00005940| 29 0a 33 2e 32 32 37 32 | 37 33 0a 3e 20 0a 5c 65 |).3.2272|73.> .\e|
|00005950| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0a 54 68 65 |nd{verba|tim}.The|
|00005960| 20 6d 65 64 69 61 6e 5c | 69 6e 64 65 78 7b 6d 65 | median\|index{me|
|00005970| 64 69 61 6e 7d 20 6f 66 | 20 74 68 65 73 65 20 6e |dian} of| these n|
|00005980| 75 6d 62 65 72 73 20 63 | 61 6e 20 62 65 20 63 6f |umbers c|an be co|
|00005990| 6d 70 75 74 65 64 20 61 | 73 0a 5c 62 65 67 69 6e |mputed a|s.\begin|
|000059a0| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 3e 20 28 6d 65 |{verbati|m}.> (me|
|000059b0| 64 69 61 6e 20 28 6c 69 | 73 74 20 30 20 32 20 35 |dian (li|st 0 2 5|
|000059c0| 20 30 20 33 20 31 20 38 | 20 30 20 33 20 31 20 31 | 0 3 1 8| 0 3 1 1|
|000059d0| 20 39 20 32 20 34 20 30 | 20 32 20 39 20 33 20 30 | 9 2 4 0| 2 9 3 0|
|000059e0| 20 31 20 39 20 38 29 29 | 0a 32 0a 3e 20 0a 5c 65 | 1 9 8))|.2.> .\e|
|000059f0| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0a 0a 49 74 |nd{verba|tim}..It|
|00005a00| 20 69 73 20 6f 66 20 63 | 6f 75 72 73 65 20 61 20 | is of c|ourse a |
|00005a10| 6e 75 69 73 61 6e 63 65 | 20 74 6f 20 68 61 76 65 |nuisance| to have|
|00005a20| 20 74 6f 20 74 79 70 65 | 20 69 6e 20 74 68 65 20 | to type| in the |
|00005a30| 6c 69 73 74 20 6f 66 20 | 32 32 20 6e 75 6d 62 65 |list of |22 numbe|
|00005a40| 72 73 0a 65 76 65 72 79 | 20 74 69 6d 65 20 77 65 |rs.every| time we|
|00005a50| 20 77 61 6e 74 20 74 6f | 20 63 6f 6d 70 75 74 65 | want to| compute|
|00005a60| 20 61 20 73 74 61 74 69 | 73 74 69 63 20 66 6f 72 | a stati|stic for|
|00005a70| 20 74 68 65 20 73 61 6d | 70 6c 65 2e 20 54 6f 20 | the sam|ple. To |
|00005a80| 61 76 6f 69 64 0a 68 61 | 76 69 6e 67 20 74 6f 20 |avoid.ha|ving to |
|00005a90| 64 6f 20 74 68 69 73 20 | 49 20 77 69 6c 6c 20 67 |do this |I will g|
|00005aa0| 69 76 65 20 74 68 69 73 | 20 6c 69 73 74 20 61 20 |ive this| list a |
|00005ab0| 6e 61 6d 65 20 75 73 69 | 6e 67 20 74 68 65 0a 5c |name usi|ng the.\|
|00005ac0| 64 63 6f 64 65 7b 64 65 | 66 7d 5c 69 6e 64 65 78 |dcode{de|f}\index|
|00005ad0| 7b 64 65 66 7d 20 73 70 | 65 63 69 61 6c 20 66 6f |{def} sp|ecial fo|
|00005ae0| 72 6d 0a 5c 66 6f 6f 74 | 6e 6f 74 65 7b 5c 64 63 |rm.\foot|note{\dc|
|00005af0| 6f 64 65 7b 64 65 66 7d | 20 61 63 74 73 20 6c 69 |ode{def}| acts li|
|00005b00| 6b 65 20 61 20 73 70 65 | 63 69 61 6c 20 66 6f 72 |ke a spe|cial for|
|00005b10| 6d 2c 20 72 61 74 68 65 | 72 20 74 68 61 6e 20 61 |m, rathe|r than a|
|00005b20| 20 66 75 6e 63 74 69 6f | 6e 2c 0a 73 69 6e 63 65 | functio|n,.since|
|00005b30| 20 69 74 73 20 66 69 72 | 73 74 20 61 72 67 75 6d | its fir|st argum|
|00005b40| 65 6e 74 20 69 73 20 6e | 6f 74 20 65 76 61 6c 75 |ent is n|ot evalu|
|00005b50| 61 74 65 64 20 28 6f 74 | 68 65 72 77 69 73 65 20 |ated (ot|herwise |
|00005b60| 79 6f 75 20 77 6f 75 6c | 64 20 68 61 76 65 20 74 |you woul|d have t|
|00005b70| 6f 0a 71 75 6f 74 65 20 | 74 68 65 20 73 79 6d 62 |o.quote |the symb|
|00005b80| 6f 6c 29 2e 20 54 65 63 | 68 6e 69 63 61 6c 6c 79 |ol). Tec|hnically|
|00005b90| 20 5c 64 63 6f 64 65 7b | 64 65 66 7d 20 69 73 20 | \dcode{|def} is |
|00005ba0| 61 20 6d 61 63 72 6f 2c | 20 6e 6f 74 20 61 20 73 |a macro,| not a s|
|00005bb0| 70 65 63 69 61 6c 0a 66 | 6f 72 6d 2c 20 62 75 74 |pecial.f|orm, but|
|00005bc0| 20 49 20 77 69 6c 6c 20 | 6e 6f 74 20 77 6f 72 72 | I will |not worr|
|00005bd0| 79 20 61 62 6f 75 74 20 | 74 68 69 73 20 64 69 73 |y about |this dis|
|00005be0| 74 69 6e 63 74 69 6f 6e | 20 69 6e 20 74 68 69 73 |tinction| in this|
|00005bf0| 20 64 6f 63 75 6d 65 6e | 74 2e 0a 5c 64 63 6f 64 | documen|t..\dcod|
|00005c00| 65 7b 64 65 66 7d 20 69 | 73 20 63 6c 6f 73 65 6c |e{def} i|s closel|
|00005c10| 79 20 72 65 6c 61 74 65 | 64 20 74 6f 20 74 68 65 |y relate|d to the|
|00005c20| 20 73 74 61 6e 64 61 72 | 64 20 4c 69 73 70 20 73 | standar|d Lisp s|
|00005c30| 70 65 63 69 61 6c 20 66 | 6f 72 6d 73 0a 5c 64 63 |pecial f|orms.\dc|
|00005c40| 6f 64 65 7b 73 65 74 66 | 7d 20 61 6e 64 20 5c 64 |ode{setf|} and \d|
|00005c50| 63 6f 64 65 7b 73 65 74 | 71 7d 2e 20 54 68 65 20 |code{set|q}. The |
|00005c60| 61 64 76 61 6e 74 61 67 | 65 20 6f 66 20 75 73 69 |advantag|e of usi|
|00005c70| 6e 67 20 5c 64 63 6f 64 | 65 7b 64 65 66 7d 20 69 |ng \dcod|e{def} i|
|00005c80| 73 20 74 68 61 74 0a 69 | 74 20 61 64 64 73 20 79 |s that.i|t adds y|
|00005c90| 6f 75 72 20 76 61 72 69 | 61 62 6c 65 20 6e 61 6d |our vari|able nam|
|00005ca0| 65 20 74 6f 20 61 20 6c | 69 73 74 20 6f 66 20 5c |e to a l|ist of \|
|00005cb0| 64 63 6f 64 65 7b 64 65 | 66 7d 27 65 64 20 76 61 |dcode{de|f}'ed va|
|00005cc0| 72 69 61 62 6c 65 73 20 | 6b 65 70 74 0a 69 6e 20 |riables |kept.in |
|00005cd0| 74 68 65 20 67 6c 6f 62 | 61 6c 20 76 61 72 69 61 |the glob|al varia|
|00005ce0| 62 6c 65 20 5c 64 63 6f | 64 65 7b 2a 76 61 72 69 |ble \dco|de{*vari|
|00005cf0| 61 62 6c 65 73 2a 7d 2e | 20 49 66 20 79 6f 75 20 |ables*}.| If you |
|00005d00| 75 73 65 0a 5c 64 63 6f | 64 65 7b 73 65 74 66 7d |use.\dco|de{setf}|
|00005d10| 20 6f 72 20 5c 64 63 6f | 64 65 7b 73 65 74 71 7d | or \dco|de{setq}|
|00005d20| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 65 61 73 | there i|s no eas|
|00005d30| 79 20 77 61 79 20 74 6f | 20 66 69 6e 64 20 76 61 |y way to| find va|
|00005d40| 72 69 61 62 6c 65 73 20 | 0a 79 6f 75 20 68 61 76 |riables |.you hav|
|00005d50| 65 20 64 65 66 69 6e 65 | 64 2c 20 61 73 20 6f 70 |e define|d, as op|
|00005d60| 70 6f 73 65 64 20 74 6f | 20 6f 6e 65 73 20 74 68 |posed to| ones th|
|00005d70| 61 74 20 61 72 65 20 70 | 72 65 64 65 66 69 6e 65 |at are p|redefine|
|00005d80| 64 2e 20 5c 64 63 6f 64 | 65 7b 64 65 66 7d 0a 61 |d. \dcod|e{def}.a|
|00005d90| 6c 77 61 79 73 20 61 66 | 66 65 63 74 73 20 74 6f |lways af|fects to|
|00005da0| 70 20 6c 65 76 65 6c 20 | 73 79 6d 62 6f 6c 20 62 |p level |symbol b|
|00005db0| 69 6e 64 69 6e 67 73 2c | 20 6e 6f 74 20 6c 6f 63 |indings,| not loc|
|00005dc0| 61 6c 20 62 69 6e 64 69 | 6e 67 73 2e 20 49 74 20 |al bindi|ngs. It |
|00005dd0| 63 61 6e 0a 6e 6f 74 20 | 62 65 20 75 73 65 64 20 |can.not |be used |
|00005de0| 69 6e 20 66 75 6e 63 74 | 69 6f 6e 20 64 65 66 69 |in funct|ion defi|
|00005df0| 6e 69 74 69 6f 6e 73 20 | 74 6f 20 63 68 61 6e 67 |nitions |to chang|
|00005e00| 65 20 6c 6f 63 61 6c 20 | 62 69 6e 64 69 6e 67 73 |e local |bindings|
|00005e10| 2e 7d 3a 0a 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |.}:.\beg|in{verba|
|00005e20| 74 69 6d 7d 0a 3e 20 28 | 64 65 66 20 70 75 72 63 |tim}.> (|def purc|
|00005e30| 68 61 73 65 73 20 28 6c | 69 73 74 20 30 20 32 20 |hases (l|ist 0 2 |
|00005e40| 35 20 30 20 33 20 31 20 | 38 20 30 20 33 20 31 20 |5 0 3 1 |8 0 3 1 |
|00005e50| 31 20 39 20 32 20 34 20 | 30 20 32 20 39 20 33 20 |1 9 2 4 |0 2 9 3 |
|00005e60| 30 20 31 20 39 20 38 29 | 29 0a 50 55 52 43 48 41 |0 1 9 8)|).PURCHA|
|00005e70| 53 45 53 0a 3e 20 0a 5c | 65 6e 64 7b 76 65 72 62 |SES.> .\|end{verb|
|00005e80| 61 74 69 6d 7d 0a 4e 6f | 77 20 74 68 65 20 73 79 |atim}.No|w the sy|
|00005e90| 6d 62 6f 6c 20 5c 64 63 | 6f 64 65 7b 70 75 72 63 |mbol \dc|ode{purc|
|00005ea0| 68 61 73 65 73 7d 20 68 | 61 73 20 61 20 76 61 6c |hases} h|as a val|
|00005eb0| 75 65 5c 69 6e 64 65 78 | 7b 73 79 6d 62 6f 6c 0a |ue\index|{symbol.|
|00005ec0| 76 61 6c 75 65 7d 5c 69 | 6e 64 65 78 7b 76 61 6c |value}\i|ndex{val|
|00005ed0| 75 65 7d 20 61 73 73 6f | 63 69 61 74 65 64 20 77 |ue} asso|ciated w|
|00005ee0| 69 74 68 20 69 74 3a 20 | 49 74 73 20 76 61 6c 75 |ith it: |Its valu|
|00005ef0| 65 20 69 73 20 6f 75 72 | 20 6c 69 73 74 20 6f 66 |e is our| list of|
|00005f00| 20 32 32 0a 6e 75 6d 62 | 65 72 73 2e 20 49 66 20 | 22.numb|ers. If |
|00005f10| 79 6f 75 20 67 69 76 65 | 20 74 68 65 20 73 79 6d |you give| the sym|
|00005f20| 62 6f 6c 20 5c 64 63 6f | 64 65 7b 70 75 72 63 68 |bol \dco|de{purch|
|00005f30| 61 73 65 73 7d 20 74 6f | 20 74 68 65 20 65 76 61 |ases} to| the eva|
|00005f40| 6c 75 61 74 6f 72 0a 74 | 68 65 6e 20 69 74 20 77 |luator.t|hen it w|
|00005f50| 69 6c 6c 20 66 69 6e 64 | 20 74 68 65 20 76 61 6c |ill find| the val|
|00005f60| 75 65 20 6f 66 20 74 68 | 69 73 20 73 79 6d 62 6f |ue of th|is symbo|
|00005f70| 6c 20 61 6e 64 20 72 65 | 74 75 72 6e 20 74 68 61 |l and re|turn tha|
|00005f80| 74 20 76 61 6c 75 65 3a | 0a 5c 62 65 67 69 6e 7b |t value:|.\begin{|
|00005f90| 76 65 72 62 61 74 69 6d | 7d 0a 3e 20 70 75 72 63 |verbatim|}.> purc|
|00005fa0| 68 61 73 65 73 0a 28 30 | 20 32 20 35 20 30 20 33 |hases.(0| 2 5 0 3|
|00005fb0| 20 31 20 38 20 30 20 33 | 20 31 20 31 20 39 20 32 | 1 8 0 3| 1 1 9 2|
|00005fc0| 20 34 20 30 20 32 20 39 | 20 33 20 30 20 31 20 39 | 4 0 2 9| 3 0 1 9|
|00005fd0| 20 38 29 0a 3e 20 0a 5c | 65 6e 64 7b 76 65 72 62 | 8).> .\|end{verb|
|00005fe0| 61 74 69 6d 7d 0a 57 65 | 20 63 61 6e 20 6e 6f 77 |atim}.We| can now|
|00005ff0| 20 65 61 73 69 6c 79 20 | 63 6f 6d 70 75 74 65 20 | easily |compute |
|00006000| 76 61 72 69 6f 75 73 20 | 6e 75 6d 65 72 69 63 61 |various |numerica|
|00006010| 6c 20 64 65 73 63 72 69 | 70 74 69 76 65 20 73 74 |l descri|ptive st|
|00006020| 61 74 69 73 74 69 63 73 | 20 66 6f 72 0a 74 68 69 |atistics| for.thi|
|00006030| 73 20 64 61 74 61 20 73 | 65 74 3a 0a 5c 62 65 67 |s data s|et:.\beg|
|00006040| 69 6e 7b 76 65 72 62 61 | 74 69 6d 7d 0a 3e 20 28 |in{verba|tim}.> (|
|00006050| 6d 65 61 6e 20 70 75 72 | 63 68 61 73 65 73 29 0a |mean pur|chases).|
|00006060| 33 2e 32 32 37 32 37 33 | 0a 3e 20 28 6d 65 64 69 |3.227273|.> (medi|
|00006070| 61 6e 20 70 75 72 63 68 | 61 73 65 73 29 0a 32 0a |an purch|ases).2.|
|00006080| 3e 20 28 73 74 61 6e 64 | 61 72 64 2d 64 65 76 69 |> (stand|ard-devi|
|00006090| 61 74 69 6f 6e 20 70 75 | 72 63 68 61 73 65 73 29 |ation pu|rchases)|
|000060a0| 0a 33 2e 32 37 39 35 34 | 34 0a 3e 20 28 69 6e 74 |.3.27954|4.> (int|
|000060b0| 65 72 71 75 61 72 74 69 | 6c 65 2d 72 61 6e 67 65 |erquarti|le-range|
|000060c0| 20 70 75 72 63 68 61 73 | 65 73 29 0a 33 2e 35 0a | purchas|es).3.5.|
|000060d0| 3e 0a 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d |>.\end{v|erbatim}|
|000060e0| 0a 5c 69 6e 64 65 78 7b | 73 74 61 6e 64 61 72 64 |.\index{|standard|
|000060f0| 2d 64 65 76 69 61 74 69 | 6f 6e 7d 0a 5c 69 6e 64 |-deviati|on}.\ind|
|00006100| 65 78 7b 69 6e 74 65 72 | 71 75 61 72 74 69 6c 65 |ex{inter|quartile|
|00006110| 2d 72 61 6e 67 65 7d 0a | 0a 58 4c 49 53 50 2d 53 |-range}.|.XLISP-S|
|00006120| 54 41 54 20 61 6c 73 6f | 20 73 75 70 70 6f 72 74 |TAT also| support|
|00006130| 73 20 65 6c 65 6d 65 6e | 74 77 69 73 65 20 61 72 |s elemen|twise ar|
|00006140| 69 74 68 6d 65 74 69 63 | 5c 69 6e 64 65 78 7b 65 |ithmetic|\index{e|
|00006150| 6c 65 6d 65 6e 74 77 69 | 73 65 0a 61 72 69 74 68 |lementwi|se.arith|
|00006160| 6d 65 74 69 63 7d 20 6f | 70 65 72 61 74 69 6f 6e |metic} o|peration|
|00006170| 73 20 6f 6e 20 6c 69 73 | 74 73 20 6f 66 20 6e 75 |s on lis|ts of nu|
|00006180| 6d 62 65 72 73 2e 20 46 | 6f 72 20 65 78 61 6d 70 |mbers. F|or examp|
|00006190| 6c 65 2c 20 77 65 20 63 | 61 6e 20 61 64 64 20 31 |le, we c|an add 1|
|000061a0| 0a 74 6f 20 65 61 63 68 | 20 6f 66 20 74 68 65 20 |.to each| of the |
|000061b0| 70 75 72 63 68 61 73 65 | 73 3a 5c 69 6e 64 65 78 |purchase|s:\index|
|000061c0| 7b 2b 7d 0a 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |{+}.\beg|in{verba|
|000061d0| 74 69 6d 7d 0a 3e 20 28 | 2b 20 31 20 70 75 72 63 |tim}.> (|+ 1 purc|
|000061e0| 68 61 73 65 73 29 0a 28 | 31 20 33 20 36 20 31 20 |hases).(|1 3 6 1 |
|000061f0| 34 20 32 20 39 20 31 20 | 34 20 32 20 32 20 31 30 |4 2 9 1 |4 2 2 10|
|00006200| 20 33 20 35 20 31 20 33 | 20 31 30 20 34 20 31 20 | 3 5 1 3| 10 4 1 |
|00006210| 32 20 31 30 20 39 29 0a | 3e 0a 5c 65 6e 64 7b 76 |2 10 9).|>.\end{v|
|00006220| 65 72 62 61 74 69 6d 7d | 0a 61 6e 64 20 61 66 74 |erbatim}|.and aft|
|00006230| 65 72 20 61 64 64 69 6e | 67 20 31 20 77 65 20 63 |er addin|g 1 we c|
|00006240| 61 6e 20 63 6f 6d 70 75 | 74 65 20 74 68 65 20 6e |an compu|te the n|
|00006250| 61 74 75 72 61 6c 20 6c | 6f 67 61 72 69 74 68 6d |atural l|ogarithm|
|00006260| 73 20 6f 66 20 74 68 65 | 0a 72 65 73 75 6c 74 73 |s of the|.results|
|00006270| 3a 0a 5c 69 6e 64 65 78 | 7b 6c 6f 67 7d 0a 5c 62 |:.\index|{log}.\b|
|00006280| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 0a 3e |egin{ver|batim}.>|
|00006290| 20 28 6c 6f 67 20 28 2b | 20 31 20 70 75 72 63 68 | (log (+| 1 purch|
|000062a0| 61 73 65 73 29 29 0a 28 | 30 20 31 2e 30 39 38 36 |ases)).(|0 1.0986|
|000062b0| 31 32 20 31 2e 37 39 31 | 37 35 39 20 30 20 31 2e |12 1.791|759 0 1.|
|000062c0| 33 38 36 32 39 34 20 30 | 2e 36 39 33 31 34 37 32 |386294 0|.6931472|
|000062d0| 20 32 2e 31 39 37 32 32 | 35 20 30 20 31 2e 33 38 | 2.19722|5 0 1.38|
|000062e0| 36 32 39 34 20 30 2e 36 | 39 33 31 34 37 32 20 0a |6294 0.6|931472 .|
|000062f0| 30 2e 36 39 33 31 34 37 | 32 20 32 2e 33 30 32 35 |0.693147|2 2.3025|
|00006300| 38 35 20 31 2e 30 39 38 | 36 31 32 20 31 2e 36 30 |85 1.098|612 1.60|
|00006310| 39 34 33 38 20 30 20 31 | 2e 30 39 38 36 31 32 20 |9438 0 1|.098612 |
|00006320| 32 2e 33 30 32 35 38 35 | 20 31 2e 33 38 36 32 39 |2.302585| 1.38629|
|00006330| 34 20 30 20 0a 30 2e 36 | 39 33 31 34 37 32 20 32 |4 0 .0.6|931472 2|
|00006340| 2e 33 30 32 35 38 35 20 | 32 2e 31 39 37 32 32 35 |.302585 |2.197225|
|00006350| 29 0a 3e 20 0a 5c 65 6e | 64 7b 76 65 72 62 61 74 |).> .\en|d{verbat|
|00006360| 69 6d 7d 0a 0a 5c 73 75 | 62 73 65 63 74 69 6f 6e |im}..\su|bsection|
|00006370| 2a 7b 45 78 65 72 63 69 | 73 65 73 7d 0a 46 6f 72 |*{Exerci|ses}.For|
|00006380| 20 65 61 63 68 20 6f 66 | 20 74 68 65 20 66 6f 6c | each of| the fol|
|00006390| 6c 6f 77 69 6e 67 20 65 | 78 70 72 65 73 73 69 6f |lowing e|xpressio|
|000063a0| 6e 73 20 74 72 79 20 74 | 6f 20 70 72 65 64 69 63 |ns try t|o predic|
|000063b0| 74 20 77 68 61 74 20 74 | 68 65 0a 65 76 61 6c 75 |t what t|he.evalu|
|000063c0| 61 74 6f 72 20 77 69 6c | 6c 20 72 65 74 75 72 6e |ator wil|l return|
|000063d0| 2e 20 54 68 65 6e 20 74 | 79 70 65 20 74 68 65 6d |. Then t|ype them|
|000063e0| 20 69 6e 2c 20 73 65 65 | 20 77 68 61 74 20 68 61 | in, see| what ha|
|000063f0| 70 70 65 6e 73 20 61 6e | 64 20 74 72 79 20 74 6f |ppens an|d try to|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.