home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / e / e070 / 6.ddi / EXPLORER / SLIDES / VALUES.TF < prev   
Unknown  |  1984-10-20  |  7.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Follin Player Module (music/follinPlayer) ext Supported
100% file data default
100% gt2 Kopftext: 'FASL FILE default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 41 53 4c 20 46 49 4c | 45 0d 0a 43 6f 70 79 72 |FASL FIL|E..Copyr|
|00000010| 69 67 68 74 20 28 63 29 | 20 31 39 38 34 20 53 61 |ight (c)| 1984 Sa|
|00000020| 6e 20 4d 61 72 63 6f 20 | 41 73 73 6f 63 69 61 74 |n Marco |Associat|
|00000030| 65 73 0d 0a 09 41 6c 6c | 20 72 69 67 68 74 73 20 |es...All| rights |
|00000040| 72 65 73 65 72 76 65 64 | 2e 0d 0a 1a ff 07 04 55 |reserved|.......U|
|00000050| 53 45 52 0e 0d 00 00 00 | 00 07 04 4c 49 53 50 0e |SER.....|...LISP.|
|00000060| 0b 01 04 53 45 54 46 07 | 0a 47 45 54 2d 4c 45 53 |...SETF.|.GET-LES|
|00000070| 53 4f 4e 0b 01 05 51 55 | 4f 54 45 0b 01 06 56 41 |SON...QU|OTE...VA|
|00000080| 4c 55 45 53 04 10 02 04 | 10 02 0b 01 05 51 55 4f |LUES....|.....QUO|
|00000090| 54 45 07 06 4c 45 53 53 | 4f 4e 0b 01 06 56 41 4c |TE..LESS|ON...VAL|
|000000a0| 55 45 53 0b 01 04 4e 41 | 4d 45 0b 01 06 56 41 4c |UES...NA|ME...VAL|
|000000b0| 55 45 53 04 10 01 07 0b | 4c 45 53 53 4f 4e 2d 4e |UES.....|LESSON-N|
|000000c0| 41 4d 45 26 14 4c 49 53 | 50 20 45 76 61 6c 75 61 |AME&.LIS|P Evalua|
|000000d0| 74 65 73 20 46 6f 72 6d | 73 04 10 01 04 10 04 07 |tes Form|s.......|
|000000e0| 05 53 4c 49 44 45 07 0a | 45 58 50 4f 53 49 54 49 |.SLIDE..|EXPOSITI|
|000000f0| 4f 4e 23 01 00 00 00 04 | 07 0a 45 58 50 4f 53 49 |ON#.....|..EXPOSI|
|00000100| 54 49 4f 4e 25 4a 01 00 | 00 0a 57 68 65 6e 20 4c |TION%J..|..When L|
|00000110| 49 53 50 20 69 73 20 72 | 65 73 74 69 6e 67 2c 20 |ISP is r|esting, |
|00000120| 64 6f 69 6e 67 20 6e 6f | 74 68 69 6e 67 2c 20 69 |doing no|thing, i|
|00000130| 74 20 64 69 73 70 6c 61 | 79 73 20 61 20 50 52 4f |t displa|ys a PRO|
|00000140| 4d 50 54 20 73 79 6d 62 | 6f 6c 2c 0a 6e 6f 72 6d |MPT symb|ol,.norm|
|00000150| 61 6c 6c 79 20 61 6e 20 | 61 73 74 65 72 69 73 6b |ally an |asterisk|
|00000160| 2c 20 74 6f 20 74 65 6c | 6c 20 79 6f 75 20 74 68 |, to tel|l you th|
|00000170| 61 74 20 4c 49 53 50 20 | 69 73 20 77 61 69 74 69 |at LISP |is waiti|
|00000180| 6e 67 20 66 6f 72 20 79 | 6f 75 20 74 6f 0a 74 79 |ng for y|ou to.ty|
|00000190| 70 65 20 73 6f 6d 65 74 | 68 69 6e 67 2e 0a 0a 2a |pe somet|hing...*|
|000001a0| 00 08 3b 49 6e 64 69 63 | 61 74 65 73 20 4c 49 53 |..;Indic|ates LIS|
|000001b0| 50 20 69 73 20 77 61 69 | 74 69 6e 67 20 66 6f 72 |P is wai|ting for|
|000001c0| 20 79 6f 75 20 74 6f 20 | 74 79 70 65 2e 0a 0a 54 | you to |type...T|
|000001d0| 68 65 20 77 6f 72 64 73 | 20 62 65 79 6f 6e 64 20 |he words| beyond |
|000001e0| 74 68 65 20 73 65 6d 69 | 63 6f 6c 6f 6e 20 61 72 |the semi|colon ar|
|000001f0| 65 20 43 4f 4d 4d 45 4e | 54 53 20 69 6e 73 65 72 |e COMMEN|TS inser|
|00000200| 74 65 64 20 62 79 20 75 | 73 20 66 6f 72 0a 65 78 |ted by u|s for.ex|
|00000210| 70 6c 61 6e 61 74 69 6f | 6e c4 c4 c4 61 6c 6c 20 |planatio|n...all |
|00000220| 77 6f 72 64 73 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |words fo|llowing |
|00000230| 61 20 73 65 6d 69 63 6f | 6c 6f 6e 20 61 72 65 20 |a semico|lon are |
|00000240| 49 4e 56 49 53 49 42 4c | 45 20 74 6f 0a 4c 49 53 |INVISIBL|E to.LIS|
|00000250| 50 2e 0a 23 0b 00 00 00 | 10 01 04 27 03 00 00 00 |P..#....|...'....|
|00000260| 2e 27 05 00 00 00 2e 07 | 05 53 4c 49 44 45 07 0a |.'......|.SLIDE..|
|00000270| 45 58 50 4f 53 49 54 49 | 4f 4e 23 02 00 00 00 04 |EXPOSITI|ON#.....|
|00000280| 07 0a 45 58 50 4f 53 49 | 54 49 4f 4e 25 6a 01 00 |..EXPOSI|TION%j..|
|00000290| 00 0a 4e 6f 77 20 74 68 | 65 20 71 75 65 73 74 69 |..Now th|e questi|
|000002a0| 6f 6e 20 69 73 2c 20 57 | 68 61 74 20 64 6f 65 73 |on is, W|hat does|
|000002b0| 20 4c 49 53 50 20 64 6f | 20 77 68 65 6e 20 79 6f | LISP do| when yo|
|000002c0| 75 20 74 79 70 65 20 6e | 75 6d 62 65 72 73 2c 0a |u type n|umbers,.|
|000002d0| 73 79 6d 62 6f 6c 73 2c | 20 61 6e 64 20 6c 69 73 |symbols,| and lis|
|000002e0| 74 73 3f 0a 0a 4c 49 53 | 50 20 6c 65 61 76 65 73 |ts?..LIS|P leaves|
|000002f0| 20 6e 75 6d 62 65 72 73 | 20 61 6c 6f 6e 65 2e 00 | numbers| alone..|
|00000300| 02 57 68 65 6e 65 76 65 | 72 20 79 6f 75 20 74 79 |.Wheneve|r you ty|
|00000310| 70 65 20 6f 6e 65 2c 20 | 4c 49 53 50 20 6a 75 73 |pe one, |LISP jus|
|00000320| 74 0a 68 61 6e 64 73 20 | 69 74 20 62 61 63 6b 3a |t.hands |it back:|
|00000330| 0a 0a 2a 20 33 2e 31 34 | 00 06 3b 4e 6f 74 65 20 |..* 3.14|..;Note |
|00000340| 4c 49 53 50 27 73 20 70 | 72 6f 6d 70 74 20 73 79 |LISP's p|rompt sy|
|00000350| 6d 62 6f 6c 2c 20 74 68 | 65 20 61 73 74 65 72 69 |mbol, th|e asteri|
|00000360| 73 6b 2e 0a 33 2e 31 34 | 00 08 3b 4e 6f 74 65 20 |sk..3.14|..;Note |
|00000370| 74 68 61 74 20 4c 49 53 | 50 20 72 65 74 75 72 6e |that LIS|P return|
|00000380| 73 20 6e 75 6d 62 65 72 | 73 20 75 6e 74 6f 75 63 |s number|s untouc|
|00000390| 68 65 64 2e 0a 0a 4f 6e | 20 74 68 65 20 6f 74 68 |hed...On| the oth|
|000003a0| 65 72 20 68 61 6e 64 2c | 20 77 68 65 6e 65 76 65 |er hand,| wheneve|
|000003b0| 72 20 79 6f 75 20 74 79 | 70 65 20 61 20 73 79 6d |r you ty|pe a sym|
|000003c0| 62 6f 6c 20 6f 72 20 61 | 20 6c 69 73 74 2c 20 4c |bol or a| list, L|
|000003d0| 49 53 50 0a 66 69 6e 64 | 73 20 74 68 65 20 56 41 |ISP.find|s the VA|
|000003e0| 4c 55 45 20 6f 66 20 74 | 68 65 20 73 79 6d 62 6f |LUE of t|he symbo|
|000003f0| 6c 20 6f 72 20 6c 69 73 | 74 2e 0a 23 0d 00 00 00 |l or lis|t..#....|
|00000400| 10 01 04 27 03 00 00 00 | 2e 27 05 00 00 00 2e 07 |...'....|.'......|
|00000410| 05 53 4c 49 44 45 07 0a | 45 58 50 4f 53 49 54 49 |.SLIDE..|EXPOSITI|
|00000420| 4f 4e 23 03 00 00 00 04 | 07 0a 45 58 50 4f 53 49 |ON#.....|..EXPOSI|
|00000430| 54 49 4f 4e 25 11 01 00 | 00 0a 49 74 20 69 73 20 |TION%...|..It is |
|00000440| 63 6f 6e 76 65 6e 74 69 | 6f 6e 61 6c 20 74 6f 20 |conventi|onal to |
|00000450| 75 73 65 20 74 68 65 20 | 77 6f 72 64 20 46 4f 52 |use the |word FOR|
|00000460| 4d 20 74 6f 20 72 65 66 | 65 72 20 74 6f 20 61 6e |M to ref|er to an|
|00000470| 79 20 73 79 6d 62 6f 6c | 20 6f 72 0a 6c 69 73 74 |y symbol| or.list|
|00000480| 20 77 68 65 6e 20 69 74 | 20 69 73 20 6f 62 76 69 | when it| is obvi|
|00000490| 6f 75 73 20 74 68 61 74 | 20 74 68 65 20 73 79 6d |ous that| the sym|
|000004a0| 62 6f 6c 20 6f 72 20 6c | 69 73 74 20 68 61 73 20 |bol or l|ist has |
|000004b0| 61 20 76 61 6c 75 65 2e | 00 02 54 68 65 0a 70 72 |a value.|..The.pr|
|000004c0| 6f 63 65 73 73 20 6f 66 | 20 66 69 6e 64 69 6e 67 |ocess of| finding|
|000004d0| 20 74 68 65 20 76 61 6c | 75 65 20 69 73 20 63 61 | the val|ue is ca|
|000004e0| 6c 6c 65 64 20 45 56 41 | 4c 55 41 54 49 4f 4e 2e |lled EVA|LUATION.|
|000004f0| 0a 0a 4c 65 74 27 73 20 | 63 6f 6e 73 69 64 65 72 |..Let's |consider|
|00000500| 20 74 68 65 20 76 61 6c | 75 65 73 20 6f 66 20 6c | the val|ues of l|
|00000510| 69 73 74 73 20 66 69 72 | 73 74 3b 20 74 68 65 6e |ists fir|st; then|
|00000520| 20 77 65 20 77 69 6c 6c | 20 72 65 74 75 72 6e 20 | we will| return |
|00000530| 74 6f 0a 74 68 65 20 76 | 61 6c 75 65 73 20 6f 66 |to.the v|alues of|
|00000540| 20 73 79 6d 62 6f 6c 73 | 2e 0a 23 08 00 00 00 10 | symbols|..#.....|
|00000550| 01 04 27 03 00 00 00 2e | 27 05 00 00 00 2e 07 05 |..'.....|'.......|
|00000560| 53 4c 49 44 45 07 0a 45 | 58 50 4f 53 49 54 49 4f |SLIDE..E|XPOSITIO|
|00000570| 4e 23 04 00 00 00 04 07 | 0a 45 58 50 4f 53 49 54 |N#......|.EXPOSIT|
|00000580| 49 4f 4e 26 ac 0a 52 65 | 6d 65 6d 62 65 72 20 2e |ION&..Re|member .|
|00000590| 2e 2e 0a 0a 6f 00 04 46 | 4f 52 4d 53 20 61 72 65 |....o..F|ORMS are|
|000005a0| 20 65 78 70 72 65 73 73 | 69 6f 6e 73 20 74 68 61 | express|ions tha|
|000005b0| 74 20 61 72 65 20 74 6f | 20 62 65 20 65 76 61 6c |t are to| be eval|
|000005c0| 75 61 74 65 64 2e 0a 0a | 6f 00 04 57 68 65 6e 20 |uated...|o..When |
|000005d0| 70 72 65 73 65 6e 74 65 | 64 20 77 69 74 68 20 61 |presente|d with a|
|000005e0| 20 6e 75 6d 62 65 72 2c | 20 4c 49 53 50 20 72 65 | number,| LISP re|
|000005f0| 74 75 72 6e 73 20 74 68 | 65 20 6e 75 6d 62 65 72 |turns th|e number|
|00000600| 2e 0a 0a 6f 00 04 45 76 | 65 72 79 74 68 69 6e 67 |...o..Ev|erything|
|00000610| 20 61 66 74 65 72 20 61 | 20 73 65 6d 69 63 6f 6c | after a| semicol|
|00000620| 6f 6e 20 69 73 20 61 20 | 63 6f 6d 6d 65 6e 74 2e |on is a |comment.|
|00000630| 0a 23 09 00 00 00 10 01 | 04 27 03 00 00 00 2e 27 |.#......|.'.....'|
|00000640| 05 00 00 00 2e 27 04 00 | 00 00 04 27 05 00 00 00 |.....'..|...'....|
|00000650| 2e 04 10 02 04 10 03 36 | 0b 01 04 53 45 54 46 07 |.......6|...SETF.|
|00000660| 0a 47 45 54 2d 4c 45 53 | 53 4f 4e 0b 01 05 51 55 |.GET-LES|SON...QU|
|00000670| 4f 54 45 07 0b 4c 49 53 | 54 2d 56 41 4c 55 45 53 |OTE..LIS|T-VALUES|
|00000680| 04 10 02 04 10 02 0b 01 | 05 51 55 4f 54 45 07 06 |........|.QUOTE..|
|00000690| 4c 45 53 53 4f 4e 07 0b | 4c 49 53 54 2d 56 41 4c |LESSON..|LIST-VAL|
|000006a0| 55 45 53 0b 01 04 4e 41 | 4d 45 07 0b 4c 49 53 54 |UES...NA|ME..LIST|
|000006b0| 2d 56 41 4c 55 45 53 04 | 10 01 07 04 4e 45 58 54 |-VALUES.|....NEXT|
|000006c0| 07 0d 53 59 4d 42 4f 4c | 2d 56 41 4c 55 45 53 04 |..SYMBOL|-VALUES.|
|000006d0| 10 01 07 08 50 52 45 56 | 49 4f 55 53 0b 01 06 56 |....PREV|IOUS...V|
|000006e0| 41 4c 55 45 53 04 10 01 | 07 0b 4c 45 53 53 4f 4e |ALUES...|..LESSON|
|000006f0| 2d 4e 41 4d 45 26 12 4c | 69 73 74 73 20 43 61 6e |-NAME&.L|ists Can|
|00000700| 20 42 65 20 46 6f 72 6d | 73 04 10 01 04 10 08 07 | Be Form|s.......|
|00000710| 05 53 4c 49 44 45 07 0a | 45 58 50 4f 53 49 54 49 |.SLIDE..|EXPOSITI|
|00000720| 4f 4e 23 01 00 00 00 04 | 07 0a 45 58 50 4f 53 49 |ON#.....|..EXPOSI|
|00000730| 54 49 4f 4e 25 7a 02 00 | 00 0a 46 6f 72 20 73 6f |TION%z..|..For so|
|00000740| 6d 65 20 6c 69 73 74 73 | 2c 20 74 68 65 20 76 61 |me lists|, the va|
|00000750| 6c 75 65 20 69 73 20 6f | 62 76 69 6f 75 73 20 62 |lue is o|bvious b|
|00000760| 65 63 61 75 73 65 20 74 | 68 65 20 6c 69 73 74 73 |ecause t|he lists|
|00000770| 20 6a 75 73 74 0a 61 72 | 72 61 6e 67 65 20 66 6f | just.ar|range fo|
|00000780| 72 20 61 72 69 74 68 6d | 65 74 69 63 20 6f 70 65 |r arithm|etic ope|
|00000790| 72 61 74 69 6f 6e 73 2c | 20 6c 69 6b 65 20 74 68 |rations,| like th|
|000007a0| 65 73 65 3a 0a 0a 2a 20 | 28 2b 20 31 20 32 29 00 |ese:..* |(+ 1 2).|
|000007b0| 06 3b 41 67 61 69 6e 2c | 20 74 68 65 20 61 73 74 |.;Again,| the ast|
|000007c0| 65 72 69 73 6b 20 69 73 | 20 4c 49 53 50 27 73 20 |erisk is| LISP's |
|000007d0| 70 72 6f 6d 70 74 20 73 | 79 6d 62 6f 6c 2e 0a 33 |prompt s|ymbol..3|
|000007e0| 00 0e 3b 4c 49 53 50 20 | 72 65 74 75 72 6e 73 20 |..;LISP |returns |
|000007f0| 33 20 62 65 63 61 75 73 | 65 20 31 20 2b 20 32 20 |3 becaus|e 1 + 2 |
|00000800| 3d 20 33 0a 0a 4e 6f 74 | 65 20 74 68 61 74 20 74 |= 3..Not|e that t|
|00000810| 68 65 20 70 6c 75 73 20 | 73 69 67 6e 20 63 6f 6d |he plus |sign com|
|00000820| 65 73 20 62 65 66 6f 72 | 65 20 74 68 65 20 6e 75 |es befor|e the nu|
|00000830| 6d 62 65 72 73 2c 20 6e | 6f 74 20 69 6e 20 62 65 |mbers, n|ot in be|
|00000840| 74 77 65 65 6e 2e 0a 0a | 49 6e 20 4c 49 53 50 2c |tween...|In LISP,|
|00000850| 20 74 68 65 20 73 79 6d | 62 6f 6c 20 74 68 61 74 | the sym|bol that|
|00000860| 20 6e 61 6d 65 73 20 74 | 68 65 20 74 68 69 6e 67 | names t|he thing|
|00000870| 20 74 6f 20 64 6f 20 69 | 73 20 63 61 6c 6c 65 64 | to do i|s called|
|00000880| 20 74 68 65 0a 50 52 4f | 43 45 44 55 52 45 20 4e | the.PRO|CEDURE N|
|00000890| 41 4d 45 2e 00 02 57 68 | 65 6e 65 76 65 72 20 61 |AME...Wh|enever a|
|000008a0| 20 6c 69 73 74 20 69 73 | 20 75 73 65 64 20 74 6f | list is| used to|
|000008b0| 20 73 70 65 63 69 66 79 | 20 63 6f 6d 70 75 74 61 | specify| computa|
|000008c0| 74 69 6f 6e 2c 0a 61 20 | 70 72 6f 63 65 64 75 72 |tion,.a |procedur|
|000008d0| 65 20 6e 61 6d 65 20 69 | 73 20 61 6c 77 61 79 73 |e name i|s always|
|000008e0| 20 74 68 65 20 66 69 72 | 73 74 20 65 6c 65 6d 65 | the fir|st eleme|
|000008f0| 6e 74 20 6f 66 20 74 68 | 65 20 6c 69 73 74 2e 00 |nt of th|e list..|
|00000900| 02 54 68 65 0a 72 65 73 | 74 20 6f 66 20 74 68 65 |.The.res|t of the|
|00000910| 20 65 6c 65 6d 65 6e 74 | 73 20 69 6e 20 74 68 65 | element|s in the|
|00000920| 20 6c 69 73 74 20 61 72 | 65 20 74 68 65 20 74 68 | list ar|e the th|
|00000930| 69 6e 67 73 20 74 6f 20 | 77 6f 72 6b 20 6f 6e 2e |ings to |work on.|
|00000940| 00 02 54 68 65 0a 74 68 | 69 6e 67 73 20 74 6f 20 |..The.th|ings to |
|00000950| 77 6f 72 6b 20 6f 6e 20 | 61 72 65 20 63 61 6c 6c |work on |are call|
|00000960| 65 64 20 74 68 65 20 41 | 52 47 55 4d 45 4e 54 53 |ed the A|RGUMENTS|
|00000970| 2e 0a 0a 49 6e 20 28 2b | 20 31 20 32 29 20 74 68 |...In (+| 1 2) th|
|00000980| 65 20 50 52 4f 43 45 44 | 55 52 45 20 4e 41 4d 45 |e PROCED|URE NAME|
|00000990| 20 69 73 20 2b 2e 00 02 | 54 68 65 20 41 52 47 55 | is +...|The ARGU|
|000009a0| 4d 45 4e 54 53 20 61 72 | 65 20 31 20 61 6e 64 20 |MENTS ar|e 1 and |
|000009b0| 32 2e 0a 23 11 00 00 00 | 10 01 04 27 03 00 00 00 |2..#....|...'....|
|000009c0| 2e 27 05 00 00 00 2e 07 | 05 53 4c 49 44 45 07 0a |.'......|.SLIDE..|
|000009d0| 45 58 50 4f 53 49 54 49 | 4f 4e 23 02 00 00 00 04 |EXPOSITI|ON#.....|
|000009e0| 07 0a 45 58 50 4f 53 49 | 54 49 4f 4e 25 82 01 00 |..EXPOSI|TION%...|
|000009f0| 00 0a 50 72 6f 63 65 64 | 75 72 65 73 20 74 68 61 |..Proced|ures tha|
|00000a00| 74 20 63 6f 6d 65 20 77 | 69 74 68 20 4c 49 53 50 |t come w|ith LISP|
|00000a10| 20 61 72 65 20 63 61 6c | 6c 65 64 20 50 52 49 4d | are cal|led PRIM|
|00000a20| 49 54 49 56 45 53 2e 20 | 54 68 75 73 20 74 68 65 |ITIVES. |Thus the|
|00000a30| 0a 66 6f 6c 6c 6f 77 69 | 6e 67 20 61 72 65 20 61 |.followi|ng are a|
|00000a40| 6c 6c 20 4c 49 53 50 20 | 70 72 69 6d 69 74 69 76 |ll LISP |primitiv|
|00000a50| 65 73 2e 0a 0a 50 72 69 | 6d 69 74 69 76 65 20 6e |es...Pri|mitive n|
|00000a60| 61 6d 65 00 05 41 63 74 | 69 6f 6e 0a 0a 2b 00 12 |ame..Act|ion..+..|
|00000a70| 41 64 64 73 20 6e 75 6d | 62 65 72 73 2e 0a 2d 00 |Adds num|bers..-.|
|00000a80| 12 53 75 62 74 72 61 63 | 74 73 20 6e 75 6d 62 65 |.Subtrac|ts numbe|
|00000a90| 72 73 2e 0a 2a 00 12 4d | 75 6c 74 69 70 6c 69 65 |rs..*..M|ultiplie|
|00000aa0| 73 20 6e 75 6d 62 65 72 | 73 2e 0a 2f 00 12 44 69 |s number|s../..Di|
|00000ab0| 76 69 64 65 73 20 6e 75 | 6d 62 65 72 73 2e 0a 4d |vides nu|mbers..M|
|00000ac0| 41 58 00 10 46 69 6e 64 | 73 20 74 68 65 20 6c 61 |AX..Find|s the la|
|00000ad0| 72 67 65 73 74 20 6e 75 | 6d 62 65 72 2e 0a 4d 49 |rgest nu|mber..MI|
|00000ae0| 4e 00 10 46 69 6e 64 73 | 20 74 68 65 20 73 6d 61 |N..Finds| the sma|
|00000af0| 6c 6c 65 73 74 20 6e 75 | 6d 62 65 72 2e 0a 0a 4e |llest nu|mber...N|
|00000b00| 6f 74 65 20 74 68 61 74 | 20 74 68 65 20 61 73 74 |ote that| the ast|
|00000b10| 65 72 69 73 6b 20 63 68 | 61 72 61 63 74 65 72 20 |erisk ch|aracter |
|00000b20| 75 73 65 64 20 74 6f 20 | 73 70 65 63 69 66 79 20 |used to |specify |
|00000b30| 6d 75 6c 74 69 70 6c 69 | 63 61 74 69 6f 6e 0a 69 |multipli|cation.i|
|00000b40| 73 20 74 68 65 20 73 61 | 6d 65 20 63 68 61 72 61 |s the sa|me chara|
|00000b50| 63 74 65 72 20 74 68 61 | 74 20 4c 49 53 50 20 75 |cter tha|t LISP u|
|00000b60| 73 65 73 20 66 6f 72 20 | 70 72 6f 6d 70 74 69 6e |ses for |promptin|
|00000b70| 67 2e 0a 23 10 00 00 00 | 10 01 04 27 03 00 00 00 |g..#....|...'....|
|00000b80| 2e 27 05 00 00 00 2e 07 | 05 53 4c 49 44 45 07 0a |.'......|.SLIDE..|
|00000b90| 45 58 50 4f 53 49 54 49 | 4f 4e 23 03 00 00 00 04 |EXPOSITI|ON#.....|
|00000ba0| 07 0a 45 58 50 4f 53 49 | 54 49 4f 4e 26 c9 0a 57 |..EXPOSI|TION&..W|
|00000bb0| 68 65 6e 20 74 68 65 20 | 61 64 64 69 74 69 6f 6e |hen the |addition|
|00000bc0| 20 61 6e 64 20 6d 75 6c | 74 69 70 6c 69 63 61 74 | and mul|tiplicat|
|00000bd0| 69 6f 6e 20 70 72 69 6d | 69 74 69 76 65 73 20 68 |ion prim|itives h|
|00000be0| 61 76 65 20 6d 6f 72 65 | 20 74 68 61 6e 0a 74 77 |ave more| than.tw|
|00000bf0| 6f 20 61 72 67 75 6d 65 | 6e 74 73 2c 20 65 76 65 |o argume|nts, eve|
|00000c00| 72 79 74 68 69 6e 67 20 | 69 73 20 61 64 64 65 64 |rything |is added|
|00000c10| 20 6f 72 20 6d 75 6c 74 | 69 70 6c 69 65 64 20 74 | or mult|iplied t|
|00000c20| 6f 67 65 74 68 65 72 3a | 0a 0a 2a 20 28 2b 20 31 |ogether:|..* (+ 1|
|00000c30| 20 32 20 33 20 34 29 0a | 31 30 00 11 3b 31 20 2b | 2 3 4).|10..;1 +|
|00000c40| 20 32 20 2b 20 33 20 2b | 20 34 20 3d 20 31 30 0a | 2 + 3 +| 4 = 10.|
|00000c50| 0a 2a 20 28 2a 20 31 20 | 32 20 33 20 34 29 0a 32 |.* (* 1 |2 3 4).2|
|00000c60| 34 00 11 3b 31 20 78 20 | 32 20 78 20 33 20 78 20 |4..;1 x |2 x 3 x |
|00000c70| 34 20 3d 20 32 34 0a 23 | 0a 00 00 00 10 01 04 27 |4 = 24.#|.......'|
|00000c80| 03 00 00 00 2e 27 05 00 | 00 00 2e 07 05 53 4c 49 |.....'..|.....SLI|
|00000c90| 44 45 07 0a 45 58 50 4f | 53 49 54 49 4f 4e 23 04 |DE..EXPO|SITION#.|
|00000ca0| 00 00 00 04 07 0a 45 58 | 50 4f 53 49 54 49 4f 4e |......EX|POSITION|
|00000cb0| 25 6b 01 00 00 0a 54 68 | 65 20 73 75 62 74 72 61 |%k....Th|e subtra|
|00000cc0| 63 74 69 6f 6e 20 61 6e | 64 20 64 69 76 69 73 69 |ction an|d divisi|
|00000cd0| 6f 6e 20 70 72 69 6d 69 | 74 69 76 65 73 2c 20 2d |on primi|tives, -|
|00000ce0| 20 61 6e 64 20 2f 20 61 | 6c 73 6f 20 61 70 70 65 | and / a|lso appe|
|00000cf0| 61 72 0a 66 69 72 73 74 | 2c 20 62 65 66 6f 72 65 |ar.first|, before|
|00000d00| 20 74 68 65 20 61 72 67 | 75 6d 65 6e 74 73 2e 00 | the arg|uments..|
|00000d10| 02 54 68 65 79 20 77 6f | 72 6b 20 61 73 20 69 66 |.They wo|rk as if|
|00000d20| 20 74 68 65 79 20 68 61 | 64 20 62 65 65 6e 0a 6c | they ha|d been.l|
|00000d30| 69 66 74 65 64 20 6f 75 | 74 20 6f 66 20 74 68 65 |ifted ou|t of the|
|00000d40| 69 72 20 6e 6f 72 6d 61 | 6c 20 61 72 69 74 68 6d |ir norma|l arithm|
|00000d50| 65 74 69 63 20 70 6f 73 | 69 74 69 6f 6e 20 61 6e |etic pos|ition an|
|00000d60| 64 20 6d 6f 76 65 64 20 | 69 6e 74 6f 20 74 68 65 |d moved |into the|
|00000d70| 0a 66 69 72 73 74 20 70 | 6f 73 69 74 69 6f 6e 3a |.first p|osition:|
|00000d80| 0a 0a 4e 6f 72 6d 61 6c | 20 61 72 69 74 68 6d 65 |..Normal| arithme|
|00000d90| 74 69 63 20 6e 6f 74 61 | 74 69 6f 6e 3a 0a 0a 20 |tic nota|tion:.. |
|00000da0| da c4 c4 c4 bf 00 0d da | c4 c4 c4 bf 0a 20 b3 00 |........|..... ..|
|00000db0| 03 b3 00 0d b3 00 03 b3 | 0a 20 1f 00 03 b3 00 0d |........|. ......|
|00000dc0| 1f 00 03 b3 0a 00 03 36 | 20 2d 20 32 20 3d 20 34 |.......6| - 2 = 4|
|00000dd0| 00 09 36 20 2f 20 32 20 | 3d 20 33 0a 0a 4c 49 53 |..6 / 2 |= 3..LIS|
|00000de0| 50 20 6e 6f 74 61 74 69 | 6f 6e 3a 0a 0a 2a 20 28 |P notati|on:..* (|
|00000df0| 2d 20 36 20 32 29 0a 34 | 00 13 3b 36 20 2d 20 32 |- 6 2).4|..;6 - 2|
|00000e00| 20 3d 20 34 0a 0a 2a 20 | 28 2f 20 36 20 32 29 0a | = 4..* |(/ 6 2).|
|00000e10| 33 2e 30 00 11 3b 36 20 | 2f 20 32 20 3d 20 33 0a |3.0..;6 |/ 2 = 3.|
|00000e20| 23 15 00 00 00 10 01 04 | 27 03 00 00 00 2e 27 05 |#.......|'.....'.|
|00000e30| 00 00 00 2e 07 05 53 4c | 49 44 45 07 0a 45 58 50 |......SL|IDE..EXP|
|00000e40| 4f 53 49 54 49 4f 4e 23 | 05 00 00 00 04 07 0a 45 |OSITION#|.......E|
|00000e50| 58 50 4f 53 49 54 49 4f | 4e 26 6e 0a 49 6e 20 74 |XPOSITIO|N&n.In t|
|00000e60| 68 65 20 70 72 65 76 69 | 6f 75 73 20 73 6c 69 64 |he previ|ous slid|
|00000e70| 65 2c 20 64 69 76 69 64 | 69 6e 67 20 36 20 62 79 |e, divid|ing 6 by|
|00000e80| 20 32 20 70 72 6f 64 75 | 63 65 64 20 33 2e 30 20 | 2 produ|ced 3.0 |
|00000e90| 69 6e 73 74 65 61 64 20 | 6f 66 20 33 2e 20 0a 54 |instead |of 3. .T|
|00000ea0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 64 65 74 |he follo|wing det|
|00000eb0| 61 69 6c 73 20 73 6c 69 | 64 65 20 65 78 70 6c 61 |ails sli|de expla|
|00000ec0| 69 6e 73 20 77 68 79 2e | 0a 23 04 00 00 00 10 01 |ins why.|.#......|
|00000ed0| 07 05 53 4c 49 44 45 07 | 0a 45 58 50 4f 53 49 54 |..SLIDE.|.EXPOSIT|
|00000ee0| 49 4f 4e 23 01 00 00 00 | 04 07 0a 45 58 50 4f 53 |ION#....|...EXPOS|
|00000ef0| 49 54 49 4f 4e 25 ad 01 | 00 00 0a 57 68 61 74 20 |ITION%..|...What |
|00000f00| 74 6f 20 64 6f 20 77 69 | 74 68 20 64 69 76 69 73 |to do wi|th divis|
|00000f10| 69 6f 6e 20 73 74 69 6d | 75 6c 61 74 65 73 20 66 |ion stim|ulates f|
|00000f20| 69 65 72 63 65 20 61 72 | 67 75 6d 65 6e 74 73 20 |ierce ar|guments |
|00000f30| 61 6d 6f 6e 67 0a 63 6f | 6d 70 75 74 65 72 2d 6c |among.co|mputer-l|
|00000f40| 61 6e 67 75 61 67 65 20 | 69 6d 70 6c 65 6d 65 6e |anguage |implemen|
|00000f50| 74 65 72 73 2e 00 02 43 | 6f 6d 6d 6f 6e 20 4c 49 |ters...C|ommon LI|
|00000f60| 53 50 20 70 72 65 73 63 | 72 69 62 65 73 20 74 68 |SP presc|ribes th|
|00000f70| 61 74 0a 64 69 76 69 73 | 69 6f 6e 20 69 73 20 74 |at.divis|ion is t|
|00000f80| 6f 20 70 72 6f 64 75 63 | 65 20 61 6e 20 49 4e 54 |o produc|e an INT|
|00000f90| 45 47 45 52 20 69 66 20 | 74 68 65 20 64 65 6e 6f |EGER if |the deno|
|00000fa0| 6d 69 6e 61 74 6f 72 20 | 64 69 76 69 64 65 73 0a |minator |divides.|
|00000fb0| 69 6e 74 6f 20 74 68 65 | 20 6e 75 6d 65 72 61 74 |into the| numerat|
|00000fc0| 6f 72 20 65 78 61 63 74 | 6c 79 3b 20 61 6e 64 20 |or exact|ly; and |
|00000fd0| 64 69 76 69 73 69 6f 6e | 20 69 73 20 74 6f 20 70 |division| is to p|
|00000fe0| 72 6f 64 75 63 65 20 61 | 20 52 41 54 49 4f 2c 0a |roduce a| RATIO,.|
|00000ff0| 6f 74 68 65 72 77 69 73 | 65 2e 0a 0a 49 6d 70 6c |otherwis|e...Impl|
|00001000| 65 6d 65 6e 74 69 6e 67 | 20 61 20 52 41 54 49 4f |ementing| a RATIO|
|00001010| 20 64 61 74 61 20 74 79 | 70 65 20 74 61 6b 65 73 | data ty|pe takes|
|00001020| 20 74 6f 6f 20 6d 75 63 | 68 20 6d 65 6d 6f 72 79 | too muc|h memory|
|00001030| 20 66 6f 72 20 61 20 73 | 6d 61 6c 6c 0a 63 6f 6d | for a s|mall.com|
|00001040| 70 75 74 65 72 2c 20 68 | 6f 77 65 76 65 72 2e 00 |puter, h|owever..|
|00001050| 02 43 6f 6e 73 65 71 75 | 65 6e 74 6c 79 2c 20 64 |.Consequ|ently, d|
|00001060| 69 76 69 73 69 6f 6e 20 | 69 6e 20 47 6f 6c 64 65 |ivision |in Golde|
|00001070| 6e 20 43 6f 6d 6d 6f 6e | 20 4c 49 53 50 0a 61 6c |n Common| LISP.al|
|00001080| 77 61 79 73 20 70 72 6f | 64 75 63 65 73 20 61 20 |ways pro|duces a |
|00001090| 46 4c 4f 41 54 49 4e 47 | 20 50 4f 49 4e 54 20 4e |FLOATING| POINT N|
|000010a0| 55 4d 42 45 52 2e 0a 23 | 0b 00 00 00 10 01 04 27 |UMBER..#|.......'|
|000010b0| 03 00 00 00 2e 27 05 00 | 00 00 2e 27 01 00 00 00 |.....'..|...'....|
|000010c0| 27 03 00 00 00 2e 27 05 | 00 00 00 2e 07 05 53 4c |'.....'.|......SL|
|000010d0| 49 44 45 07 0a 45 58 50 | 4f 53 49 54 49 4f 4e 23 |IDE..EXP|OSITION#|
|000010e0| 06 00 00 00 04 07 0a 45 | 58 50 4f 53 49 54 49 4f |.......E|XPOSITIO|
|000010f0| 4e 26 a3 0a 57 68 65 6e | 20 6a 75 73 74 20 6f 6e |N&..When| just on|
|00001100| 65 20 61 72 67 75 6d 65 | 6e 74 20 61 70 70 65 61 |e argume|nt appea|
|00001110| 72 73 20 77 69 74 68 20 | 74 68 65 20 2d 20 70 72 |rs with |the - pr|
|00001120| 69 6d 69 74 69 76 65 2c | 20 4c 49 53 50 20 61 63 |imitive,| LISP ac|
|00001130| 74 73 20 61 73 0a 69 66 | 20 74 68 65 72 65 20 77 |ts as.if| there w|
|00001140| 65 72 65 20 61 20 7a 65 | 72 6f 20 69 6e 20 74 68 |ere a ze|ro in th|
|00001150| 65 20 66 69 72 73 74 20 | 70 6f 73 69 74 69 6f 6e |e first |position|
|00001160| 2e 0a 0a 2a 20 28 2d 20 | 36 29 0a 2d 36 00 11 3b |...* (- |6).-6..;|
|00001170| 30 20 2d 20 36 20 3d 20 | 2d 36 0a 0a 2a 20 28 2d |0 - 6 = |-6..* (-|
|00001180| 00 02 2d 36 29 0a 36 00 | 12 3b 30 20 2d 00 02 2d |..-6).6.|.;0 -..-|
|00001190| 36 20 3d 20 36 0a 23 0a | 00 00 00 10 01 04 27 03 |6 = 6.#.|......'.|
|000011a0| 00 00 00 2e 27 05 00 00 | 00 2e 07 05 53 4c 49 44 |....'...|....SLID|
|000011b0| 45 07 0a 45 58 50 4f 53 | 49 54 49 4f 4e 23 07 00 |E..EXPOS|ITION#..|
|000011c0| 00 00 04 07 0a 45 58 50 | 4f 53 49 54 49 4f 4e 26 |.....EXP|OSITION&|
|000011d0| 87 0a 57 68 65 6e 20 6a | 75 73 74 20 6f 6e 65 20 |..When j|ust one |
|000011e0| 61 72 67 75 6d 65 6e 74 | 20 61 70 70 65 61 72 73 |argument| appears|
|000011f0| 20 77 69 74 68 20 74 68 | 65 20 2f 20 70 72 69 6d | with th|e / prim|
|00001200| 69 74 69 76 65 2c 20 4c | 49 53 50 20 61 63 74 73 |itive, L|ISP acts|
|00001210| 20 61 73 0a 69 66 20 74 | 68 65 72 65 20 77 65 72 | as.if t|here wer|
|00001220| 65 20 61 20 6f 6e 65 20 | 69 6e 20 74 68 65 20 66 |e a one |in the f|
|00001230| 69 72 73 74 20 70 6f 73 | 69 74 69 6f 6e 2e 0a 0a |irst pos|ition...|
|00001240| 2a 20 28 2f 20 35 29 0a | 2e 32 00 11 3b 31 20 2f |* (/ 5).|.2..;1 /|
|00001250| 20 35 20 3d 20 2e 32 0a | 23 07 00 00 00 10 01 04 | 5 = .2.|#.......|
|00001260| 27 03 00 00 00 2e 27 05 | 00 00 00 2e 07 05 53 4c |'.....'.|......SL|
|00001270| 49 44 45 07 0a 45 58 50 | 4f 53 49 54 49 4f 4e 23 |IDE..EXP|OSITION#|
|00001280| 08 00 00 00 04 07 0a 45 | 58 50 4f 53 49 54 49 4f |.......E|XPOSITIO|
|00001290| 4e 26 c7 0a 57 68 65 6e | 20 74 68 65 20 2d 20 61 |N&..When| the - a|
|000012a0| 6e 64 20 2f 20 70 72 69 | 6d 69 74 69 76 65 73 20 |nd / pri|mitives |
|000012b0| 68 61 76 65 20 6d 6f 72 | 65 20 74 68 61 6e 20 74 |have mor|e than t|
|000012c0| 77 6f 20 61 72 67 75 6d | 65 6e 74 73 2c 20 4c 49 |wo argum|ents, LI|
|000012d0| 53 50 0a 63 6f 6e 74 69 | 6e 75 65 73 20 74 6f 20 |SP.conti|nues to |
|000012e0| 73 75 62 74 72 61 63 74 | 20 6f 72 20 64 69 76 69 |subtract| or divi|
|000012f0| 64 65 3a 0a 0a 2a 20 28 | 2d 20 31 32 20 34 20 33 |de:..* (|- 12 4 3|
|00001300| 29 0a 35 2e 30 00 10 3b | 31 32 20 2d 20 34 20 3d |).5.0..;|12 - 4 =|
|00001310| 20 38 20 61 6e 64 20 74 | 68 65 6e 20 38 20 2d 20 | 8 and t|hen 8 - |
|00001320| 33 20 3d 20 35 2e 0a 0a | 2a 20 28 2f 20 31 32 20 |3 = 5...|* (/ 12 |
|00001330| 34 20 33 29 0a 31 2e 30 | 00 10 3b 31 32 20 2f 20 |4 3).1.0|..;12 / |
|00001340| 34 20 3d 20 33 20 61 6e | 64 20 74 68 65 6e 20 33 |4 = 3 an|d then 3|
|00001350| 20 2f 20 33 20 3d 20 31 | 2e 0a 23 0a 00 00 00 10 | / 3 = 1|..#.....|
|00001360| 01 04 27 03 00 00 00 2e | 27 05 00 00 00 2e 07 05 |..'.....|'.......|
|00001370| 53 4c 49 44 45 07 08 45 | 58 41 4d 50 4c 45 53 23 |SLIDE..E|XAMPLES#|
|00001380| 09 00 00 00 04 07 0d 45 | 58 41 4d 50 4c 45 2d 47 |.......E|XAMPLE-G|
|00001390| 52 4f 55 50 26 52 0a 43 | 6f 6d 70 75 74 65 20 74 |ROUP&R.C|ompute t|
|000013a0| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 74 68 65 20 |he value| of the |
|000013b0| 67 69 76 65 6e 20 6c 69 | 73 74 2c 20 61 6e 64 20 |given li|st, and |
|000013c0| 74 68 65 6e 20 74 79 70 | 65 20 61 20 73 70 61 63 |then typ|e a spac|
|000013d0| 65 20 74 6f 20 73 65 65 | 0a 4c 49 53 50 27 73 20 |e to see|.LISP's |
|000013e0| 61 6e 73 77 65 72 2e 0a | 23 04 00 00 00 10 01 26 |answer..|#......&|
|000013f0| 09 2a 20 28 2b 20 31 20 | 32 29 23 01 00 00 00 10 |.* (+ 1 |2)#.....|
|00001400| 01 26 01 33 23 01 00 00 | 00 10 01 27 04 00 00 00 |.&.3#...|...'....|
|00001410| 2e 07 0d 45 58 41 4d 50 | 4c 45 2d 47 52 4f 55 50 |...EXAMP|LE-GROUP|
|00001420| 04 26 0b 2a 20 28 2b 20 | 31 20 32 20 33 29 23 01 |.&.* (+ |1 2 3)#.|
|00001430| 00 00 00 10 01 26 12 36 | 00 10 3b 31 20 2b 20 32 |.....&.6|..;1 + 2|
|00001440| 20 2b 20 33 20 3d 20 36 | 2e 23 01 00 00 00 10 01 | + 3 = 6|.#......|
|00001450| 27 04 00 00 00 2e 07 0d | 45 58 41 4d 50 4c 45 2d |'.......|EXAMPLE-|
|00001460| 47 52 4f 55 50 04 26 4c | 2a 20 28 2a 20 31 20 32 |GROUP.&L|* (* 1 2|
|00001470| 29 00 08 3b 48 65 72 65 | 20 74 68 65 20 61 73 74 |)..;Here| the ast|
|00001480| 65 72 69 73 6b 20 69 73 | 20 62 6f 74 68 20 74 68 |erisk is| both th|
|00001490| 65 20 70 72 6f 6d 70 74 | 0a 00 11 3b 61 6e 64 20 |e prompt|...;and |
|000014a0| 74 68 65 20 6d 75 6c 74 | 69 70 6c 79 20 73 79 6d |the mult|iply sym|
|000014b0| 62 6f 6c 2e 23 02 00 00 | 00 10 01 26 01 32 23 01 |bol.#...|...&.2#.|
|000014c0| 00 00 00 10 01 27 04 00 | 00 00 2e 07 0d 45 58 41 |.....'..|.....EXA|
|000014d0| 4d 50 4c 45 2d 47 52 4f | 55 50 04 26 0b 2a 20 28 |MPLE-GRO|UP.&.* (|
|000014e0| 2a 20 31 20 32 20 33 29 | 23 01 00 00 00 10 01 26 |* 1 2 3)|#......&|
|000014f0| 12 36 00 10 3b 31 20 78 | 20 32 20 78 20 33 20 3d |.6..;1 x| 2 x 3 =|
|00001500| 20 36 2e 23 01 00 00 00 | 10 01 27 04 00 00 00 2e | 6.#....|..'.....|
|00001510| 07 0d 45 58 41 4d 50 4c | 45 2d 47 52 4f 55 50 04 |..EXAMPL|E-GROUP.|
|00001520| 26 09 2a 20 28 2d 20 31 | 20 32 29 23 01 00 00 00 |&.* (- 1| 2)#....|
|00001530| 10 01 26 02 2d 31 23 01 | 00 00 00 10 01 27 04 00 |..&.-1#.|.....'..|
|00001540| 00 00 2e 07 0d 45 58 41 | 4d 50 4c 45 2d 47 52 4f |.....EXA|MPLE-GRO|
|00001550| 55 50 04 26 0b 2a 20 28 | 2d 20 31 20 32 20 33 29 |UP.&.* (|- 1 2 3)|
|00001560| 23 01 00 00 00 10 01 26 | 25 2d 34 00 0f 3b 31 20 |#......&|%-4..;1 |
|00001570| 2d 20 32 20 3d 20 2d 31 | 20 61 6e 64 20 74 68 65 |- 2 = -1| and the|
|00001580| 6e 20 2d 31 20 2d 20 33 | 20 3d 20 2d 34 2e 23 01 |n -1 - 3| = -4.#.|
|00001590| 00 00 00 10 01 27 04 00 | 00 00 2e 07 0d 45 58 41 |.....'..|.....EXA|
|000015a0| 4d 50 4c 45 2d 47 52 4f | 55 50 04 26 07 2a 20 28 |MPLE-GRO|UP.&.* (|
|000015b0| 2d 20 31 29 23 01 00 00 | 00 10 01 26 10 2d 31 00 |- 1)#...|...&.-1.|
|000015c0| 0f 3b 30 20 2d 20 31 20 | 3d 20 2d 31 2e 23 01 00 |.;0 - 1 |= -1.#..|
|000015d0| 00 00 10 01 27 04 00 00 | 00 2e 04 10 07 27 05 00 |....'...|.....'..|
|000015e0| 00 00 2e 07 05 53 4c 49 | 44 45 07 08 45 58 41 4d |.....SLI|DE..EXAM|
|000015f0| 50 4c 45 53 23 0a 00 00 | 00 04 07 0d 45 58 41 4d |PLES#...|....EXAM|
|00001600| 50 4c 45 2d 47 52 4f 55 | 50 26 52 0a 43 6f 6d 70 |PLE-GROU|P&R.Comp|
|00001610| 75 74 65 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 |ute the |value of|
|00001620| 20 74 68 65 20 67 69 76 | 65 6e 20 6c 69 73 74 2c | the giv|en list,|
|00001630| 20 61 6e 64 20 74 68 65 | 6e 20 74 79 70 65 20 61 | and the|n type a|
|00001640| 20 73 70 61 63 65 20 74 | 6f 20 73 65 65 0a 4c 49 | space t|o see.LI|
|00001650| 53 50 27 73 20 61 6e 73 | 77 65 72 2e 0a 23 04 00 |SP's ans|wer..#..|
|00001660| 00 00 10 01 26 09 2a 20 | 28 2f 20 34 20 32 29 23 |....&.* |(/ 4 2)#|
|00001670| 01 00 00 00 10 01 26 03 | 32 2e 30 23 01 00 00 00 |......&.|2.0#....|
|00001680| 10 01 27 04 00 00 00 2e | 07 0d 45 58 41 4d 50 4c |..'.....|..EXAMPL|
|00001690| 45 2d 47 52 4f 55 50 04 | 26 09 2a 20 28 2f 20 32 |E-GROUP.|&.* (/ 2|
|000016a0| 20 34 29 23 01 00 00 00 | 10 01 26 03 30 2e 35 23 | 4)#....|..&.0.5#|
|000016b0| 01 00 00 00 10 01 27 04 | 00 00 00 2e 07 0d 45 58 |......'.|......EX|
|000016c0| 41 4d 50 4c 45 2d 47 52 | 4f 55 50 04 26 0c 2a 20 |AMPLE-GR|OUP.&.* |
|000016d0| 28 2f 20 31 32 20 33 20 | 32 29 23 01 00 00 00 10 |(/ 12 3 |2)#.....|
|000016e0| 01 26 24 32 2e 30 00 0e | 3b 31 32 20 2f 20 33 20 |.&$2.0..|;12 / 3 |
|000016f0| 3d 20 34 20 61 6e 64 20 | 74 68 65 6e 20 34 20 2f |= 4 and |then 4 /|
|00001700| 20 32 20 3d 20 32 2e 23 | 01 00 00 00 10 01 27 04 | 2 = 2.#|......'.|
|00001710| 00 00 00 2e 07 0d 45 58 | 41 4d 50 4c 45 2d 47 52 |......EX|AMPLE-GR|
|00001720| 4f 55 50 04 26 05 28 2f | 20 32 29 23 01 00 00 00 |OUP.&.(/| 2)#....|
|00001730| 10 01 26 0f 2e 35 00 0f | 3b 31 20 2f 20 32 20 3d |..&..5..|;1 / 2 =|
|00001740| 20 2e 35 23 01 00 00 00 | 10 01 27 04 00 00 00 2e | .5#....|..'.....|
|00001750| 04 10 04 27 05 00 00 00 | 2e 07 05 53 4c 49 44 45 |...'....|...SLIDE|
|00001760| 07 08 45 58 41 4d 50 4c | 45 53 23 0b 00 00 00 04 |..EXAMPL|ES#.....|
|00001770| 07 0d 45 58 41 4d 50 4c | 45 2d 47 52 4f 55 50 26 |..EXAMPL|E-GROUP&|
|00001780| 52 0a 43 6f 6d 70 75 74 | 65 20 74 68 65 20 76 61 |R.Comput|e the va|
|00001790| 6c 75 65 20 6f 66 20 74 | 68 65 20 67 69 76 65 6e |lue of t|he given|
|000017a0| 20 6c 69 73 74 2c 20 61 | 6e 64 20 74 68 65 6e 20 | list, a|nd then |
|000017b0| 74 79 70 65 20 61 20 73 | 70 61 63 65 20 74 6f 20 |type a s|pace to |
|000017c0| 73 65 65 0a 4c 49 53 50 | 27 73 20 61 6e 73 77 65 |see.LISP|'s answe|
|000017d0| 72 2e 0a 23 04 00 00 00 | 10 01 26 15 2a 20 28 4d |r..#....|..&.* (M|
|000017e0| 41 58 20 33 20 36 20 39 | 20 31 20 36 20 39 20 35 |AX 3 6 9| 1 6 9 5|
|000017f0| 29 23 01 00 00 00 10 01 | 26 01 39 23 01 00 00 00 |)#......|&.9#....|
|00001800| 10 01 27 04 00 00 00 2e | 07 0d 45 58 41 4d 50 4c |..'.....|..EXAMPL|
|00001810| 45 2d 47 52 4f 55 50 04 | 26 15 2a 20 28 4d 49 4e |E-GROUP.|&.* (MIN|
|00001820| 20 33 20 36 20 39 20 31 | 20 36 20 39 20 35 29 23 | 3 6 9 1| 6 9 5)#|
|00001830| 01 00 00 00 10 01 26 02 | 31 0a 23 02 00 00 00 10 |......&.|1.#.....|
|00001840| 01 27 04 00 00 00 2e 04 | 10 02 27 05 00 00 00 2e |.'......|..'.....|
|00001850| 07 05 53 4c 49 44 45 07 | 08 50 52 41 43 54 49 43 |..SLIDE.|.PRACTIC|
|00001860| 45 23 0c 00 00 00 07 05 | 46 4f 52 4d 53 0b 01 01 |E#......|FORMS...|
|00001870| 54 04 10 02 26 b9 0a 54 | 79 70 65 20 73 6f 6d 65 |T...&..T|ype some|
|00001880| 20 66 6f 72 6d 73 20 77 | 68 6f 73 65 20 70 72 6f | forms w|hose pro|
|00001890| 63 65 64 75 72 65 20 6e | 61 6d 65 73 20 61 72 65 |cedure n|ames are|
|000018a0| 20 70 72 69 6d 69 74 69 | 76 65 73 20 6c 69 6b 65 | primiti|ves like|
|000018b0| 20 2b 2c 20 2d 2c 0a 2a | 2c 20 2f 2c 20 4d 49 4e | +, -,.*|, /, MIN|
|000018c0| 2c 20 61 6e 64 20 4d 41 | 58 2c 20 73 75 63 68 20 |, and MA|X, such |
|000018d0| 61 73 20 28 2b 20 31 39 | 20 34 33 29 20 61 6e 64 |as (+ 19| 43) and|
|000018e0| 20 28 2d 20 38 38 29 2e | 00 02 52 65 6d 65 6d 62 | (- 88).|..Rememb|
|000018f0| 65 72 20 74 6f 0a 73 65 | 70 61 72 61 74 65 20 74 |er to.se|parate t|
|00001900| 68 65 20 65 6c 65 6d 65 | 6e 74 73 20 6f 66 20 74 |he eleme|nts of t|
|00001910| 68 65 20 6c 69 73 74 73 | 20 79 6f 75 20 74 79 70 |he lists| you typ|
|00001920| 65 20 77 69 74 68 20 73 | 70 61 63 65 73 2e 0a 23 |e with s|paces..#|
|00001930| 05 00 00 00 10 01 27 05 | 00 00 00 2e 07 05 53 4c |......'.|......SL|
|00001940| 49 44 45 07 0a 45 58 50 | 4f 53 49 54 49 4f 4e 23 |IDE..EXP|OSITION#|
|00001950| 0d 00 00 00 04 07 0a 45 | 58 50 4f 53 49 54 49 4f |.......E|XPOSITIO|
|00001960| 4e 25 c6 01 00 00 0a 46 | 72 65 71 75 65 6e 74 6c |N%.....F|requentl|
|00001970| 79 2c 20 6f 6e 65 20 66 | 6f 72 6d 20 61 70 70 65 |y, one f|orm appe|
|00001980| 61 72 73 20 61 73 20 61 | 6e 20 61 72 67 75 6d 65 |ars as a|n argume|
|00001990| 6e 74 20 74 6f 20 61 6e | 6f 74 68 65 72 3a 0a 0a |nt to an|other:..|
|000019a0| 2a 20 28 2b 20 28 2d 20 | 35 20 33 29 20 28 2f 20 |* (+ (- |5 3) (/ |
|000019b0| 31 32 20 36 29 29 0a 34 | 2e 30 00 18 3b 28 35 20 |12 6)).4|.0..;(5 |
|000019c0| 2d 20 33 29 20 2b 20 28 | 31 32 20 2f 20 36 29 20 |- 3) + (|12 / 6) |
|000019d0| 3d 20 34 2e 0a 0a 54 68 | 65 20 76 61 6c 75 65 20 |= 4...Th|e value |
|000019e0| 6f 66 20 74 68 65 20 66 | 69 72 73 74 20 61 72 67 |of the f|irst arg|
|000019f0| 75 6d 65 6e 74 20 6f 66 | 20 2b 20 69 73 20 74 68 |ument of| + is th|
|00001a00| 65 20 76 61 6c 75 65 20 | 6f 66 20 28 2d 20 35 20 |e value |of (- 5 |
|00001a10| 33 29 2c 0a 6e 61 6d 65 | 6c 79 20 32 2c 20 77 68 |3),.name|ly 2, wh|
|00001a20| 69 6c 65 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 |ile the |value of|
|00001a30| 20 74 68 65 20 73 65 63 | 6f 6e 64 20 61 72 67 75 | the sec|ond argu|
|00001a40| 6d 65 6e 74 20 69 73 20 | 74 68 65 20 76 61 6c 75 |ment is |the valu|
|00001a50| 65 20 6f 66 0a 28 2f 20 | 31 32 20 36 29 2c 20 6e |e of.(/ |12 6), n|
|00001a60| 61 6d 65 6c 79 20 32 2e | 30 2e 00 02 48 65 6e 63 |amely 2.|0...Henc|
|00001a70| 65 20 34 2e 30 20 69 73 | 20 74 68 65 20 72 65 73 |e 4.0 is| the res|
|00001a80| 75 6c 74 20 6f 66 20 65 | 76 61 6c 75 61 74 69 6e |ult of e|valuatin|
|00001a90| 67 20 28 2b 0a 28 2d 20 | 35 20 33 29 20 28 2f 20 |g (+.(- |5 3) (/ |
|00001aa0| 31 32 20 36 29 29 2e 0a | 0a 4c 49 53 50 20 6e 6f |12 6))..|.LISP no|
|00001ab0| 72 6d 61 6c 6c 79 20 65 | 76 61 6c 75 61 74 65 73 |rmally e|valuates|
|00001ac0| 20 61 6c 6c 20 74 68 65 | 20 61 72 67 75 6d 65 6e | all the| argumen|
|00001ad0| 74 73 20 6f 66 20 61 6e | 20 65 78 70 72 65 73 73 |ts of an| express|
|00001ae0| 69 6f 6e 2c 20 61 6e 64 | 0a 74 68 65 6e 20 61 74 |ion, and|.then at|
|00001af0| 74 61 63 6b 73 20 74 68 | 65 20 65 76 61 6c 75 61 |tacks th|e evalua|
|00001b00| 74 65 64 20 61 72 67 75 | 6d 65 6e 74 73 20 77 69 |ted argu|ments wi|
|00001b10| 74 68 20 74 68 65 20 73 | 70 65 63 69 66 69 65 64 |th the s|pecified|
|00001b20| 0a 70 72 6f 63 65 64 75 | 72 65 2e 0a 23 0f 00 00 |.procedu|re..#...|
|00001b30| 00 10 01 04 27 03 00 00 | 00 2e 27 05 00 00 00 2e |....'...|..'.....|
|00001b40| 07 05 53 4c 49 44 45 07 | 08 45 58 41 4d 50 4c 45 |..SLIDE.|.EXAMPLE|
|00001b50| 53 23 0e 00 00 00 04 07 | 0d 45 58 41 4d 50 4c 45 |S#......|.EXAMPLE|
|00001b60| 2d 47 52 4f 55 50 26 23 | 0a 54 72 79 20 74 6f 20 |-GROUP&#|.Try to |
|00001b70| 65 76 61 6c 75 61 74 65 | 20 65 61 63 68 20 65 78 |evaluate| each ex|
|00001b80| 61 6d 70 6c 65 20 66 6f | 72 6d 2e 23 02 00 00 00 |ample fo|rm.#....|
|00001b90| 10 01 26 15 2a 20 28 2b | 20 28 2a 20 31 20 32 29 |..&.* (+| (* 1 2)|
|00001ba0| 20 28 2a 20 33 20 34 29 | 29 23 01 00 00 00 10 01 | (* 3 4)|)#......|
|00001bb0| 26 02 31 34 23 01 00 00 | 00 10 01 27 04 00 00 00 |&.14#...|...'....|
|00001bc0| 2e 07 0d 45 58 41 4d 50 | 4c 45 2d 47 52 4f 55 50 |...EXAMP|LE-GROUP|
|00001bd0| 04 26 15 2a 20 28 2a 20 | 28 2b 20 31 20 32 29 20 |.&.* (* |(+ 1 2) |
|00001be0| 28 2b 20 33 20 34 29 29 | 23 01 00 00 00 10 01 26 |(+ 3 4))|#......&|
|00001bf0| 02 32 31 23 01 00 00 00 | 10 01 27 04 00 00 00 2e |.21#....|..'.....|
|00001c00| 07 0d 45 58 41 4d 50 4c | 45 2d 47 52 4f 55 50 04 |..EXAMPL|E-GROUP.|
|00001c10| 26 15 2a 20 28 2d 20 28 | 2f 20 31 20 32 29 20 28 |&.* (- (|/ 1 2) (|
|00001c20| 2f 20 33 20 34 29 29 23 | 01 00 00 00 10 01 26 05 |/ 3 4))#|......&.|
|00001c30| 2d 30 2e 32 35 23 01 00 | 00 00 10 01 27 04 00 00 |-0.25#..|....'...|
|00001c40| 00 2e 07 0d 45 58 41 4d | 50 4c 45 2d 47 52 4f 55 |....EXAM|PLE-GROU|
|00001c50| 50 04 26 15 2a 20 28 2f | 20 28 2d 20 31 20 32 29 |P.&.* (/| (- 1 2)|
|00001c60| 20 28 2d 20 33 20 34 29 | 29 23 01 00 00 00 10 01 | (- 3 4)|)#......|
|00001c70| 26 03 31 2e 30 23 01 00 | 00 00 10 01 27 04 00 00 |&.1.0#..|....'...|
|00001c80| 00 2e 04 10 04 27 05 00 | 00 00 2e 07 05 53 4c 49 |.....'..|.....SLI|
|00001c90| 44 45 07 08 45 58 41 4d | 50 4c 45 53 23 0f 00 00 |DE..EXAM|PLES#...|
|00001ca0| 00 04 07 0d 45 58 41 4d | 50 4c 45 2d 47 52 4f 55 |....EXAM|PLE-GROU|
|00001cb0| 50 26 23 0a 54 72 79 20 | 74 6f 20 65 76 61 6c 75 |P&#.Try |to evalu|
|00001cc0| 61 74 65 20 65 61 63 68 | 20 65 78 61 6d 70 6c 65 |ate each| example|
|00001cd0| 20 66 6f 72 6d 2e 23 02 | 00 00 00 10 01 26 1d 2a | form.#.|.....&.*|
|00001ce0| 20 28 2a 20 28 4d 41 58 | 20 33 20 34 20 35 29 20 | (* (MAX| 3 4 5) |
|00001cf0| 28 4d 49 4e 20 33 20 34 | 20 35 29 29 23 01 00 00 |(MIN 3 4| 5))#...|
|00001d00| 00 10 01 26 02 31 35 23 | 01 00 00 00 10 01 27 04 |...&.15#|......'.|
|00001d10| 00 00 00 2e 07 0d 45 58 | 41 4d 50 4c 45 2d 47 52 |......EX|AMPLE-GR|
|00001d20| 4f 55 50 04 26 1f 2a 20 | 28 4d 49 4e 20 28 4d 41 |OUP.&.* |(MIN (MA|
|00001d30| 58 20 33 20 31 20 34 29 | 20 28 4d 41 58 20 32 20 |X 3 1 4)| (MAX 2 |
|00001d40| 37 20 31 29 29 23 01 00 | 00 00 10 01 26 02 34 0a |7 1))#..|....&.4.|
|00001d50| 23 02 00 00 00 10 01 27 | 04 00 00 00 2e 04 10 02 |#......'|........|
|00001d60| 27 05 00 00 00 2e 07 05 | 53 4c 49 44 45 07 08 50 |'.......|SLIDE..P|
|00001d70| 52 41 43 54 49 43 45 23 | 10 00 00 00 07 05 46 4f |RACTICE#|......FO|
|00001d80| 52 4d 53 0b 01 01 54 04 | 10 02 26 5c 0a 48 65 72 |RMS...T.|..&\.Her|
|00001d90| 65 20 79 6f 75 20 6d 69 | 67 68 74 20 74 72 79 20 |e you mi|ght try |
|00001da0| 73 6f 6d 65 20 66 6f 72 | 6d 73 20 77 68 6f 73 65 |some for|ms whose|
|00001db0| 20 61 72 67 75 6d 65 6e | 74 73 20 61 72 65 20 61 | argumen|ts are a|
|00001dc0| 6c 73 6f 20 66 6f 72 6d | 73 2c 0a 73 75 63 68 20 |lso form|s,.such |
|00001dd0| 61 73 20 28 2b 20 28 2a | 20 32 20 32 29 20 28 2a |as (+ (*| 2 2) (*|
|00001de0| 20 33 20 33 29 29 2e 0a | 23 04 00 00 00 10 01 27 | 3 3))..|#......'|
|00001df0| 05 00 00 00 2e 07 05 53 | 4c 49 44 45 07 0a 45 58 |.......S|LIDE..EX|
|00001e00| 50 4f 53 49 54 49 4f 4e | 23 11 00 00 00 04 07 0a |POSITION|#.......|
|00001e10| 45 58 50 4f 53 49 54 49 | 4f 4e 26 ae 0a 52 65 6d |EXPOSITI|ON&..Rem|
|00001e20| 65 6d 62 65 72 20 2e 2e | 2e 0a 0a 6f 00 04 50 52 |ember ..|...o..PR|
|00001e30| 4f 43 45 44 55 52 45 20 | 4e 41 4d 45 53 20 61 70 |OCEDURE |NAMES ap|
|00001e40| 70 65 61 72 20 61 73 20 | 74 68 65 20 66 69 72 73 |pear as |the firs|
|00001e50| 74 20 65 6c 65 6d 65 6e | 74 20 69 6e 20 66 6f 72 |t elemen|t in for|
|00001e60| 6d 73 2e 0a 0a 6f 00 04 | 54 68 65 20 72 65 73 74 |ms...o..|The rest|
|00001e70| 20 6f 66 20 74 68 65 20 | 65 6c 65 6d 65 6e 74 73 | of the |elements|
|00001e80| 20 61 72 65 20 41 52 47 | 55 4d 45 4e 54 53 2e 0a | are ARG|UMENTS..|
|00001e90| 0a 6f 00 04 54 68 65 20 | 70 72 6f 63 65 73 73 20 |.o..The |process |
|00001ea0| 6f 66 20 66 69 6e 64 69 | 6e 67 20 61 20 76 61 6c |of findi|ng a val|
|00001eb0| 75 65 20 69 73 20 63 61 | 6c 6c 65 64 20 45 56 41 |ue is ca|lled EVA|
|00001ec0| 4c 55 41 54 49 4f 4e 2e | 0a 0a 23 0a 00 00 00 10 |LUATION.|..#.....|
|00001ed0| 01 04 27 03 00 00 00 2e | 27 05 00 00 00 2e 27 11 |..'.....|'.....'.|
|00001ee0| 00 00 00 04 27 05 00 00 | 00 2e 04 10 02 04 10 03 |....'...|........|
|00001ef0| 36 0b 01 04 53 45 54 46 | 07 15 2a 4c 41 53 54 2d |6...SETF|..*LAST-|
|00001f00| 4c 4f 41 44 45 44 2d 4c | 45 53 53 4f 4e 53 2a 0b |LOADED-L|ESSONS*.|
|00001f10| 01 05 51 55 4f 54 45 0b | 01 06 56 41 4c 55 45 53 |..QUOTE.|..VALUES|
|00001f20| 07 0b 4c 49 53 54 2d 56 | 41 4c 55 45 53 04 10 02 |..LIST-V|ALUES...|
|00001f30| 04 10 02 04 10 03 36 40 | |......6@| |
+--------+-------------------------+-------------------------+--------+--------+