home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / fish / applications / xlispstat / man.lzh / Manual / Mac / techreport.tex / node49_ct.html < prev    next >
LaTeX Document  |  1990-10-12  |  4.2 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
90% dexvert Hypertext Markup Language File (text/html) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file HTML document text default (weak)
99% file JavaScript source default
98% file LaTeX document text default
97% file exported SGML document text default
96% file Lisp/Scheme program text default
95% file exported SGML document, ASCII text default
80% TrID HyperText Markup Language with DOCTYPE default
19% TrID HyperText Markup Language default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% gt2 HTML (Hyper Text Markup Language) Datei default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/html default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 41 6e | 6f 6e 79 6d 6f 75 73 20 |ts of An|onymous |
|000000b0| 46 75 6e 63 74 69 6f 6e | 73 3c 2f 54 49 54 4c 45 |Function|s</TITLE|
|000000c0| 3e 0a 0a 3c 4d 45 54 41 | 20 48 54 54 50 2d 45 51 |>..<META| HTTP-EQ|
|000000d0| 55 49 56 3d 22 43 6f 6e | 74 65 6e 74 2d 54 79 70 |UIV="Con|tent-Typ|
|000000e0| 65 22 20 43 4f 4e 54 45 | 4e 54 3d 22 74 65 78 74 |e" CONTE|NT="text|
|000000f0| 2f 68 74 6d 6c 3b 20 63 | 68 61 72 73 65 74 3d 75 |/html; c|harset=u|
|00000100| 74 66 2d 38 22 3e 0a 3c | 4d 45 54 41 20 4e 41 4d |tf-8">.<|META NAM|
|00000110| 45 3d 22 76 69 65 77 70 | 6f 72 74 22 20 43 4f 4e |E="viewp|ort" CON|
|00000120| 54 45 4e 54 3d 22 77 69 | 64 74 68 3d 64 65 76 69 |TENT="wi|dth=devi|
|00000130| 63 65 2d 77 69 64 74 68 | 2c 20 69 6e 69 74 69 61 |ce-width|, initia|
|00000140| 6c 2d 73 63 61 6c 65 3d | 31 2e 30 22 3e 0a 3c 4d |l-scale=|1.0">.<M|
|00000150| 45 54 41 20 4e 41 4d 45 | 3d 22 47 65 6e 65 72 61 |ETA NAME|="Genera|
|00000160| 74 6f 72 22 20 43 4f 4e | 54 45 4e 54 3d 22 4c 61 |tor" CON|TENT="La|
|00000170| 54 65 58 32 48 54 4d 4c | 20 76 32 30 32 32 22 3e |TeX2HTML| v2022">|
|00000180| 0a 0a 3c 4c 49 4e 4b 20 | 52 45 4c 3d 22 53 54 59 |..<LINK |REL="STY|
|00000190| 4c 45 53 48 45 45 54 22 | 20 48 52 45 46 3d 22 74 |LESHEET"| HREF="t|
|000001a0| 65 63 68 72 65 70 6f 72 | 74 2e 63 73 73 22 3e 0a |echrepor|t.css">.|
|000001b0| 0a 3c 4c 49 4e 4b 20 52 | 45 4c 3d 22 6e 65 78 74 |.<LINK R|EL="next|
|000001c0| 22 20 48 52 45 46 3d 22 | 6e 6f 64 65 35 30 5f 6d |" HREF="|node50_m|
|000001d0| 6e 2e 68 74 6d 6c 22 3e | 0a 3c 4c 49 4e 4b 20 52 |n.html">|.<LINK R|
|000001e0| 45 4c 3d 22 70 72 65 76 | 69 6f 75 73 22 20 48 52 |EL="prev|ious" HR|
|000001f0| 45 46 3d 22 6e 6f 64 65 | 34 38 5f 6d 6e 2e 68 74 |EF="node|48_mn.ht|
|00000200| 6d 6c 22 3e 0a 3c 4c 49 | 4e 4b 20 52 45 4c 3d 22 |ml">.<LI|NK REL="|
|00000210| 75 70 22 20 48 52 45 46 | 3d 22 6e 6f 64 65 34 37 |up" HREF|="node47|
|00000220| 5f 6d 6e 2e 68 74 6d 6c | 22 3e 0a 3c 4c 49 4e 4b |_mn.html|">.<LINK|
|00000230| 20 52 45 4c 3d 22 6e 65 | 78 74 22 20 48 52 45 46 | REL="ne|xt" HREF|
|00000240| 3d 22 6e 6f 64 65 35 30 | 5f 6d 6e 2e 68 74 6d 6c |="node50|_mn.html|
|00000250| 22 3e 0a 3c 2f 48 45 41 | 44 3e 0a 20 0a 3c 42 4f |">.</HEA|D>. .<BO|
|00000260| 44 59 20 62 67 63 6f 6c | 6f 72 3d 22 23 66 66 66 |DY bgcol|or="#fff|
|00000270| 66 66 66 22 20 74 65 78 | 74 3d 22 23 30 30 30 30 |fff" tex|t="#0000|
|00000280| 30 30 22 20 6c 69 6e 6b | 3d 22 23 39 39 34 34 45 |00" link|="#9944E|
|00000290| 45 22 20 76 6c 69 6e 6b | 3d 22 23 30 30 30 30 66 |E" vlink|="#0000f|
|000002a0| 66 22 20 61 6c 69 6e 6b | 3d 22 23 30 30 66 66 30 |f" alink|="#00ff0|
|000002b0| 30 22 3e 0a 0a 3c 48 32 | 3e 3c 41 20 49 44 3d 22 |0">..<H2|><A ID="|
|000002c0| 53 45 43 54 49 4f 4e 30 | 30 30 31 30 32 30 30 30 |SECTION0|00102000|
|000002d0| 30 30 30 30 30 30 30 30 | 30 30 30 30 22 3e 3c 2f |00000000|0000"></|
|000002e0| 41 3e 0a 3c 41 20 49 44 | 3d 22 46 75 6e 64 65 66 |A>.<A ID|="Fundef|
|000002f0| 73 2e 41 6e 6f 6e 79 6d | 6f 75 73 22 3e 3c 2f 41 |s.Anonym|ous"></A|
|00000300| 3e 0a 3c 42 52 3e 0a 41 | 6e 6f 6e 79 6d 6f 75 73 |>.<BR>.A|nonymous|
|00000310| 20 46 75 6e 63 74 69 6f | 6e 73 0a 3c 2f 48 32 3e | Functio|ns.</H2>|
|00000320| 0a 53 75 70 70 6f 73 65 | 20 79 6f 75 20 77 6f 75 |.Suppose| you wou|
|00000330| 6c 64 20 6c 69 6b 65 20 | 74 6f 20 70 6c 6f 74 20 |ld like |to plot |
|00000340| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 3c 21 2d |the func|tion <!-|
|00000350| 2d 20 4d 41 54 48 0a 20 | 24 66 28 78 29 20 3d 20 |- MATH. |$f(x) = |
|00000360| 32 78 20 2b 20 78 5e 7b | 32 7d 24 0a 20 2d 2d 3e |2x + x^{|2}$. -->|
|00000370| 0a 3c 49 3e 66 3c 2f 49 | 3e 20 28 3c 49 3e 78 3c |.<I>f</I|> (<I>x<|
|00000380| 2f 49 3e 29 20 3d 20 32 | 3c 49 3e 78 3c 2f 49 3e |/I>) = 2|<I>x</I>|
|00000390| 20 2b 20 3c 49 3e 78 3c | 2f 49 3e 3c 53 55 50 3e | + <I>x<|/I><SUP>|
|000003a0| 32 3c 2f 53 55 50 3e 20 | 6f 76 65 72 20 74 68 65 |2</SUP> |over the|
|000003b0| 0a 72 61 6e 67 65 20 3c | 21 2d 2d 20 4d 41 54 48 |.range <|!-- MATH|
|000003c0| 0a 20 24 2d 32 20 5c 6c | 65 71 20 78 20 5c 6c 65 |. $-2 \l|eq x \le|
|000003d0| 71 20 33 24 0a 20 2d 2d | 3e 0a 2d 32 26 23 38 38 |q 3$. --|>.-2&#88|
|000003e0| 30 34 3b 3c 49 3e 78 3c | 2f 49 3e 26 23 38 38 30 |04;<I>x<|/I>&#880|
|000003f0| 34 3b 33 2e 20 57 65 20 | 63 61 6e 20 64 6f 20 74 |4;3. We |can do t|
|00000400| 68 69 73 20 62 79 20 66 | 69 72 73 74 20 64 65 66 |his by f|irst def|
|00000410| 69 6e 69 6e 67 20 61 20 | 66 75 6e 63 74 69 6f 6e |ining a |function|
|00000420| 0a 3c 54 54 3e 20 22 32 | 44 20 66 3c 2f 54 54 3e |.<TT> "2|D f</TT>|
|00000430| 20 61 6e 64 20 74 68 65 | 6e 20 75 73 69 6e 67 20 | and the|n using |
|00000440| 3c 54 54 3e 20 22 32 44 | 20 70 6c 6f 74 2d 66 75 |<TT> "2D| plot-fu|
|00000450| 6e 63 74 69 6f 6e 3c 2f | 54 54 3e 3a 0a 3c 50 52 |nction</|TT>:.<PR|
|00000460| 45 3e 0a 28 64 65 66 75 | 6e 20 66 20 28 78 29 20 |E>.(defu|n f (x) |
|00000470| 28 2b 20 28 2a 20 32 20 | 78 29 20 28 5e 20 78 20 |(+ (* 2 |x) (^ x |
|00000480| 32 29 29 29 0a 28 70 6c | 6f 74 2d 66 75 6e 63 74 |2))).(pl|ot-funct|
|00000490| 69 6f 6e 20 23 27 66 20 | 2d 32 20 33 29 0a 3c 2f |ion #'f |-2 3).</|
|000004a0| 50 52 45 3e 0a 54 68 69 | 73 20 69 73 20 6e 6f 74 |PRE>.Thi|s is not|
|000004b0| 20 74 6f 6f 20 68 61 72 | 64 2c 20 62 75 74 20 69 | too har|d, but i|
|000004c0| 74 20 6e 65 76 65 72 74 | 68 65 6c 65 73 73 20 69 |t nevert|heless i|
|000004d0| 6e 76 6f 6c 76 65 73 20 | 6f 6e 65 20 75 6e 6e 65 |nvolves |one unne|
|000004e0| 63 65 73 73 61 72 79 20 | 73 74 65 70 3a 0a 4e 61 |cessary |step:.Na|
|000004f0| 6d 69 6e 67 20 74 68 65 | 20 66 75 6e 63 74 69 6f |ming the| functio|
|00000500| 6e 20 3c 54 54 3e 20 22 | 32 44 20 66 3c 2f 54 54 |n <TT> "|2D f</TT|
|00000510| 3e 2e 20 59 6f 75 20 70 | 72 6f 62 61 62 6c 79 20 |>. You p|robably |
|00000520| 77 6f 6e 27 74 20 6e 65 | 65 64 20 74 68 69 73 20 |won't ne|ed this |
|00000530| 66 75 6e 63 74 69 6f 6e | 0a 61 67 61 69 6e 3b 20 |function|.again; |
|00000540| 69 74 20 69 73 20 61 20 | 74 68 72 6f 77 20 61 77 |it is a |throw aw|
|00000550| 61 79 20 66 75 6e 63 74 | 69 6f 6e 20 64 65 66 69 |ay funct|ion defi|
|00000560| 6e 65 64 20 6f 6e 6c 79 | 20 74 6f 20 61 6c 6c 6f |ned only| to allo|
|00000570| 77 20 79 6f 75 20 74 6f | 20 67 69 76 65 20 69 74 |w you to| give it|
|00000580| 0a 74 6f 20 3c 54 54 3e | 20 22 32 44 20 70 6c 6f |.to <TT>| "2D plo|
|00000590| 74 2d 66 75 6e 63 74 69 | 6f 6e 3c 2f 54 54 3e 20 |t-functi|on</TT> |
|000005a0| 61 73 20 61 6e 20 61 72 | 67 75 6d 65 6e 74 2e 20 |as an ar|gument. |
|000005b0| 49 74 20 77 6f 75 6c 64 | 20 62 65 20 6e 69 63 65 |It would| be nice|
|000005c0| 20 69 66 20 79 6f 75 20 | 63 6f 75 6c 64 0a 6a 75 | if you |could.ju|
|000005d0| 73 74 20 67 69 76 65 20 | 3c 54 54 3e 20 22 32 44 |st give |<TT> "2D|
|000005e0| 20 70 6c 6f 74 2d 66 75 | 6e 63 74 69 6f 6e 3c 2f | plot-fu|nction</|
|000005f0| 54 54 3e 20 61 6e 20 65 | 78 70 72 65 73 73 69 6f |TT> an e|xpressio|
|00000600| 6e 20 74 68 61 74 20 63 | 6f 6e 73 74 72 75 63 74 |n that c|onstruct|
|00000610| 73 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 0a 79 |s the fu|nction.y|
|00000620| 6f 75 20 77 61 6e 74 2e | 20 48 65 72 65 20 69 73 |ou want.| Here is|
|00000630| 20 73 75 63 68 20 61 6e | 20 65 78 70 72 65 73 73 | such an| express|
|00000640| 69 6f 6e 3a 0a 3c 50 52 | 45 3e 0a 28 66 75 6e 63 |ion:.<PR|E>.(func|
|00000650| 74 69 6f 6e 20 28 6c 61 | 6d 62 64 61 20 28 78 29 |tion (la|mbda (x)|
|00000660| 20 28 2b 20 28 2a 20 32 | 20 78 29 20 28 5e 20 78 | (+ (* 2| x) (^ x|
|00000670| 20 32 29 29 29 29 0a 3c | 2f 50 52 45 3e 0a 0a 3c | 2)))).<|/PRE>..<|
|00000680| 50 3e 0a 54 68 65 72 65 | 20 61 72 65 20 74 77 6f |P>.There| are two|
|00000690| 20 73 74 65 70 73 20 69 | 6e 76 6f 6c 76 65 64 2e | steps i|nvolved.|
|000006a0| 20 54 68 65 20 66 69 72 | 73 74 20 69 73 20 74 6f | The fir|st is to|
|000006b0| 20 73 70 65 63 69 66 79 | 20 74 68 65 20 64 65 66 | specify| the def|
|000006c0| 69 6e 69 74 69 6f 6e 20 | 6f 66 0a 79 6f 75 72 20 |inition |of.your |
|000006d0| 66 75 6e 63 74 69 6f 6e | 2e 20 54 68 69 73 20 69 |function|. This i|
|000006e0| 73 20 64 6f 6e 65 20 75 | 73 69 6e 67 20 61 20 3c |s done u|sing a <|
|000006f0| 45 4d 3e 6c 61 6d 62 64 | 61 20 65 78 70 72 65 73 |EM>lambd|a expres|
|00000700| 73 69 6f 6e 3c 2f 45 4d | 3e 2c 20 69 6e 20 74 68 |sion</EM|>, in th|
|00000710| 69 73 20 63 61 73 65 20 | 0a 3c 50 52 45 3e 0a 28 |is case |.<PRE>.(|
|00000720| 6c 61 6d 62 64 61 20 28 | 78 29 20 28 2b 20 28 2a |lambda (|x) (+ (*|
|00000730| 20 32 20 78 29 20 28 5e | 20 78 20 32 29 29 29 0a | 2 x) (^| x 2))).|
|00000740| 3c 2f 50 52 45 3e 0a 41 | 20 6c 61 6d 62 64 61 20 |</PRE>.A| lambda |
|00000750| 65 78 70 72 65 73 73 69 | 6f 6e 20 69 73 20 61 20 |expressi|on is a |
|00000760| 6c 69 73 74 20 73 74 61 | 72 74 69 6e 67 20 77 69 |list sta|rting wi|
|00000770| 74 68 20 74 68 65 20 73 | 79 6d 62 6f 6c 20 3c 54 |th the s|ymbol <T|
|00000780| 54 3e 20 22 32 44 20 6c | 61 6d 62 64 61 3c 2f 54 |T> "2D l|ambda</T|
|00000790| 54 3e 2c 0a 66 6f 6c 6c | 6f 77 65 64 20 62 79 20 |T>,.foll|owed by |
|000007a0| 74 68 65 20 6c 69 73 74 | 20 6f 66 20 61 72 67 75 |the list| of argu|
|000007b0| 6d 65 6e 74 73 20 61 6e | 64 20 74 68 65 20 65 78 |ments an|d the ex|
|000007c0| 70 72 65 73 73 69 6f 6e | 73 20 6d 61 6b 69 6e 67 |pression|s making|
|000007d0| 20 75 70 20 74 68 65 0a | 62 6f 64 79 20 6f 66 20 | up the.|body of |
|000007e0| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 2e 20 54 68 |the func|tion. Th|
|000007f0| 65 20 6c 61 6d 62 64 61 | 20 65 78 70 72 65 73 73 |e lambda| express|
|00000800| 69 6f 6e 20 69 73 20 6f | 6e 6c 79 20 61 20 64 65 |ion is o|nly a de|
|00000810| 66 69 6e 69 74 69 6f 6e | 2c 20 69 74 0a 69 73 20 |finition|, it.is |
|00000820| 6e 6f 74 20 79 65 74 20 | 61 20 66 75 6e 63 74 69 |not yet |a functi|
|00000830| 6f 6e 2c 20 61 20 70 69 | 65 63 65 20 6f 66 20 63 |on, a pi|ece of c|
|00000840| 6f 64 65 20 74 68 61 74 | 20 63 61 6e 20 62 65 20 |ode that| can be |
|00000850| 61 70 70 6c 69 65 64 20 | 74 6f 0a 61 72 67 75 6d |applied |to.argum|
|00000860| 65 6e 74 73 2e 20 54 68 | 65 20 73 70 65 63 69 61 |ents. Th|e specia|
|00000870| 6c 20 66 6f 72 6d 20 3c | 54 54 3e 20 22 32 44 20 |l form <|TT> "2D |
|00000880| 66 75 6e 63 74 69 6f 6e | 3c 2f 54 54 3e 20 74 61 |function|</TT> ta|
|00000890| 6b 65 73 20 74 68 65 20 | 6c 61 6d 62 64 61 20 6c |kes the |lambda l|
|000008a0| 69 73 74 20 61 6e 64 0a | 63 6f 6e 73 74 72 75 63 |ist and.|construc|
|000008b0| 74 73 20 73 75 63 68 20 | 61 20 66 75 6e 63 74 69 |ts such |a functi|
|000008c0| 6f 6e 2e 20 54 68 65 20 | 72 65 73 75 6c 74 20 63 |on. The |result c|
|000008d0| 61 6e 20 62 65 20 73 61 | 76 65 64 20 69 6e 20 61 |an be sa|ved in a|
|000008e0| 20 76 61 72 69 61 62 6c | 65 20 6f 72 0a 69 74 20 | variabl|e or.it |
|000008f0| 63 61 6e 20 62 65 20 70 | 61 73 73 65 64 20 6f 6e |can be p|assed on|
|00000900| 20 74 6f 20 61 6e 6f 74 | 68 65 72 20 66 75 6e 63 | to anot|her func|
|00000910| 74 69 6f 6e 20 61 73 20 | 61 6e 20 61 72 67 75 6d |tion as |an argum|
|00000920| 65 6e 74 2e 20 46 6f 72 | 20 6f 75 72 0a 70 6c 6f |ent. For| our.plo|
|00000930| 74 74 69 6e 67 20 70 72 | 6f 62 6c 65 6d 20 79 6f |tting pr|oblem yo|
|00000940| 75 20 63 61 6e 20 75 73 | 65 20 74 68 65 20 73 69 |u can us|e the si|
|00000950| 6e 67 6c 65 20 65 78 70 | 72 65 73 73 69 6f 6e 0a |ngle exp|ression.|
|00000960| 3c 50 52 45 3e 0a 28 70 | 6c 6f 74 2d 66 75 6e 63 |<PRE>.(p|lot-func|
|00000970| 74 69 6f 6e 20 28 66 75 | 6e 63 74 69 6f 6e 20 28 |tion (fu|nction (|
|00000980| 6c 61 6d 62 64 61 20 28 | 78 29 20 28 2b 20 28 2a |lambda (|x) (+ (*|
|00000990| 20 32 20 78 29 20 28 5e | 20 78 20 32 29 29 29 29 | 2 x) (^| x 2))))|
|000009a0| 20 2d 32 20 33 29 0a 3c | 2f 50 52 45 3e 0a 6f 72 | -2 3).<|/PRE>.or|
|000009b0| 2c 20 75 73 69 6e 67 20 | 74 68 65 20 3c 54 54 3e |, using |the <TT>|
|000009c0| 20 22 32 44 20 23 27 3c | 2f 54 54 3e 20 73 68 6f | "2D #'<|/TT> sho|
|000009d0| 72 74 20 66 6f 72 6d 2c | 0a 3c 50 52 45 3e 0a 28 |rt form,|.<PRE>.(|
|000009e0| 70 6c 6f 74 2d 66 75 6e | 63 74 69 6f 6e 20 23 27 |plot-fun|ction #'|
|000009f0| 28 6c 61 6d 62 64 61 20 | 28 78 29 20 28 2b 20 28 |(lambda |(x) (+ (|
|00000a00| 2a 20 32 20 78 29 20 28 | 5e 20 78 20 32 29 29 29 |* 2 x) (|^ x 2)))|
|00000a10| 20 2d 32 20 33 29 0a 3c | 2f 50 52 45 3e 0a 53 69 | -2 3).<|/PRE>.Si|
|00000a20| 6e 63 65 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e |nce the |function|
|00000a30| 20 75 73 65 64 20 69 6e | 20 74 68 65 73 65 20 65 | used in| these e|
|00000a40| 78 70 72 65 73 73 69 6f | 6e 73 20 69 73 20 6e 65 |xpressio|ns is ne|
|00000a50| 76 65 72 20 6e 61 6d 65 | 64 20 69 74 20 69 73 0a |ver name|d it is.|
|00000a60| 73 6f 6d 65 74 69 6d 65 | 73 20 63 61 6c 6c 65 64 |sometime|s called|
|00000a70| 20 61 6e 20 3c 45 4d 3e | 61 6e 6f 6e 79 6d 6f 75 | an <EM>|anonymou|
|00000a80| 73 20 66 75 6e 63 74 69 | 6f 6e 3c 2f 45 4d 3e 2e |s functi|on</EM>.|
|00000a90| 0a 0a 3c 50 3e 0a 59 6f | 75 20 63 61 6e 20 61 6c |..<P>.Yo|u can al|
|00000aa0| 73 6f 20 63 6f 6e 73 74 | 72 75 63 74 20 61 20 72 |so const|ruct a r|
|00000ab0| 6f 74 61 74 69 6e 67 20 | 70 6c 6f 74 20 6f 66 20 |otating |plot of |
|00000ac0| 61 20 66 75 6e 63 74 69 | 6f 6e 20 6f 66 20 74 77 |a functi|on of tw|
|00000ad0| 6f 20 76 61 72 69 61 62 | 6c 65 73 0a 75 73 69 6e |o variab|les.usin|
|00000ae0| 67 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 3c |g the fu|nction <|
|00000af0| 54 54 3e 20 22 32 44 20 | 73 70 69 6e 2d 66 75 6e |TT> "2D |spin-fun|
|00000b00| 63 74 69 6f 6e 3c 2f 54 | 54 3e 2e 20 41 73 20 61 |ction</T|T>. As a|
|00000b10| 6e 20 65 78 61 6d 70 6c | 65 2c 20 74 68 65 0a 65 |n exampl|e, the.e|
|00000b20| 78 70 72 65 73 73 69 6f | 6e 0a 3c 50 52 45 3e 0a |xpressio|n.<PRE>.|
|00000b30| 28 73 70 69 6e 2d 66 75 | 6e 63 74 69 6f 6e 20 23 |(spin-fu|nction #|
|00000b40| 27 28 6c 61 6d 62 64 61 | 20 28 78 20 79 29 20 28 |'(lambda| (x y) (|
|00000b50| 2b 20 28 5e 20 78 20 32 | 29 20 28 5e 20 79 20 32 |+ (^ x 2|) (^ y 2|
|00000b60| 29 29 29 20 2d 31 20 31 | 20 2d 31 20 31 29 0a 3c |))) -1 1| -1 1).<|
|00000b70| 2f 50 52 45 3e 0a 0a 3c | 44 49 56 20 63 6c 61 73 |/PRE>..<|DIV clas|
|00000b80| 73 3d 22 43 45 4e 54 45 | 52 22 3e 3c 41 20 49 44 |s="CENTE|R"><A ID|
|00000b90| 3d 22 53 70 69 6e 70 6c | 6f 74 33 22 3e 3c 2f 41 |="Spinpl|ot3"></A|
|00000ba0| 3e 3c 41 20 49 44 3d 22 | 31 39 32 32 22 3e 3c 2f |><A ID="|1922"></|
|00000bb0| 41 3e 0a 3c 54 41 42 4c | 45 3e 0a 3c 43 41 50 54 |A>.<TABL|E>.<CAPT|
|00000bc0| 49 4f 4e 20 63 6c 61 73 | 73 3d 22 42 4f 54 54 4f |ION clas|s="BOTTO|
|00000bd0| 4d 22 3e 3c 53 54 52 4f | 4e 47 3e 46 69 67 75 72 |M"><STRO|NG>Figur|
|00000be0| 65 3a 3c 2f 53 54 52 4f | 4e 47 3e 0a 52 6f 74 61 |e:</STRO|NG>.Rota|
|00000bf0| 74 61 62 6c 65 20 70 6c | 6f 74 20 6f 66 20 3c 21 |table pl|ot of <!|
|00000c00| 2d 2d 20 4d 41 54 48 0a | 20 24 66 28 78 2c 79 29 |-- MATH.| $f(x,y)|
|00000c10| 20 3d 20 78 5e 7b 32 7d | 20 2b 20 79 5e 7b 32 7d | = x^{2}| + y^{2}|
|00000c20| 24 0a 20 2d 2d 3e 0a 3c | 49 3e 66 3c 2f 49 3e 20 |$. -->.<|I>f</I> |
|00000c30| 28 3c 49 3e 78 3c 2f 49 | 3e 2c 20 3c 49 3e 79 3c |(<I>x</I|>, <I>y<|
|00000c40| 2f 49 3e 29 20 3d 20 3c | 49 3e 78 3c 2f 49 3e 3c |/I>) = <|I>x</I><|
|00000c50| 53 55 50 3e 32 3c 2f 53 | 55 50 3e 20 2b 20 3c 49 |SUP>2</S|UP> + <I|
|00000c60| 3e 79 3c 2f 49 3e 3c 53 | 55 50 3e 32 3c 2f 53 55 |>y</I><S|UP>2</SU|
|00000c70| 50 3e 2e 3c 2f 43 41 50 | 54 49 4f 4e 3e 0a 3c 54 |P>.</CAP|TION>.<T|
|00000c80| 52 3e 3c 54 44 3e 3c 49 | 4d 47 0a 20 53 54 59 4c |R><TD><I|MG. STYL|
|00000c90| 45 3d 22 22 20 53 52 43 | 3d 22 69 6d 67 35 2e 70 |E="" SRC|="img5.p|
|00000ca0| 6e 67 22 0a 20 41 4c 54 | 3d 22 5c 62 65 67 69 6e |ng". ALT|="\begin|
|00000cb0| 7b 66 69 67 75 72 65 7d | 5c 63 65 6e 74 65 72 69 |{figure}|\centeri|
|00000cc0| 6e 67 0a 5c 76 73 70 61 | 63 65 7b 33 2e 34 37 69 |ng.\vspa|ce{3.47i|
|00000cd0| 6e 7d 0a 5c 70 61 72 62 | 6f 78 5b 74 5d 7b 33 2e |n}.\parb|ox[t]{3.|
|00000ce0| 38 69 6e 7d 7b 7d 0a 5c | 65 6e 64 7b 66 69 67 75 |8in}{}.\|end{figu|
|00000cf0| 72 65 7d 22 3e 3c 2f 54 | 44 3e 3c 2f 54 52 3e 0a |re}"></T|D></TR>.|
|00000d00| 3c 2f 54 41 42 4c 45 3e | 0a 3c 2f 44 49 56 3e 0a |</TABLE>|.</DIV>.|
|00000d10| 63 6f 6e 73 74 72 75 63 | 74 73 20 61 20 70 6c 6f |construc|ts a plo|
|00000d20| 74 20 6f 66 20 74 68 65 | 20 66 75 6e 63 74 69 6f |t of the| functio|
|00000d30| 6e 20 3c 21 2d 2d 20 4d | 41 54 48 0a 20 24 66 28 |n <!-- M|ATH. $f(|
|00000d40| 78 2c 20 79 29 20 3d 20 | 78 5e 7b 32 7d 20 2b 20 |x, y) = |x^{2} + |
|00000d50| 79 5e 7b 32 7d 24 0a 20 | 2d 2d 3e 0a 3c 49 3e 66 |y^{2}$. |-->.<I>f|
|00000d60| 3c 2f 49 3e 20 28 3c 49 | 3e 78 3c 2f 49 3e 2c 20 |</I> (<I|>x</I>, |
|00000d70| 3c 49 3e 79 3c 2f 49 3e | 29 20 3d 20 3c 49 3e 78 |<I>y</I>|) = <I>x|
|00000d80| 3c 2f 49 3e 3c 53 55 50 | 3e 32 3c 2f 53 55 50 3e |</I><SUP|>2</SUP>|
|00000d90| 20 2b 20 3c 49 3e 79 3c | 2f 49 3e 3c 53 55 50 3e | + <I>y<|/I><SUP>|
|00000da0| 32 3c 2f 53 55 50 3e 20 | 6f 76 65 72 20 74 68 65 |2</SUP> |over the|
|00000db0| 0a 72 61 6e 67 65 20 3c | 21 2d 2d 20 4d 41 54 48 |.range <|!-- MATH|
|00000dc0| 0a 20 24 2d 31 20 5c 6c | 65 71 20 78 20 5c 6c 65 |. $-1 \l|eq x \le|
|00000dd0| 71 20 31 2c 20 2d 31 20 | 5c 6c 65 71 20 79 20 5c |q 1, -1 |\leq y \|
|00000de0| 6c 65 71 20 31 24 0a 20 | 2d 2d 3e 0a 2d 31 26 23 |leq 1$. |-->.-1&#|
|00000df0| 38 38 30 34 3b 3c 49 3e | 78 3c 2f 49 3e 26 23 38 |8804;<I>|x</I>&#8|
|00000e00| 38 30 34 3b 31 2c 20 2d | 31 26 23 38 38 30 34 3b |804;1, -|1&#8804;|
|00000e10| 3c 49 3e 79 3c 2f 49 3e | 26 23 38 38 30 34 3b 31 |<I>y</I>|&#8804;1|
|00000e20| 20 75 73 69 6e 67 20 61 | 20 3c 21 2d 2d 20 4d 41 | using a| <!-- MA|
|00000e30| 54 48 0a 20 24 36 20 5c | 74 69 6d 65 73 20 36 24 |TH. $6 \|times 6$|
|00000e40| 0a 20 2d 2d 3e 0a 36 26 | 23 32 31 35 3b 36 20 67 |. -->.6&|#215;6 g|
|00000e50| 72 69 64 2e 0a 54 68 65 | 20 6e 75 6d 62 65 72 20 |rid..The| number |
|00000e60| 6f 66 20 67 72 69 64 20 | 70 6f 69 6e 74 73 20 63 |of grid |points c|
|00000e70| 61 6e 20 62 65 20 63 68 | 61 6e 67 65 64 20 75 73 |an be ch|anged us|
|00000e80| 69 6e 67 20 74 68 65 20 | 3c 54 54 3e 3a 6e 75 6d |ing the |<TT>:num|
|00000e90| 2d 70 6f 69 6e 74 73 3c | 2f 54 54 3e 0a 6b 65 79 |-points<|/TT>.key|
|00000ea0| 77 6f 72 64 2e 20 54 68 | 65 20 72 65 73 75 6c 74 |word. Th|e result|
|00000eb0| 20 69 73 20 73 68 6f 77 | 6e 20 69 6e 20 46 69 67 | is show|n in Fig|
|00000ec0| 75 72 65 20 3c 41 20 48 | 52 45 46 3d 22 6e 6f 64 |ure <A H|REF="nod|
|00000ed0| 65 34 39 5f 63 74 2e 68 | 74 6d 6c 23 53 70 69 6e |e49_ct.h|tml#Spin|
|00000ee0| 70 6c 6f 74 33 22 3e 3c | 49 4d 47 20 20 41 4c 54 |plot3"><|IMG ALT|
|00000ef0| 3d 22 5b 2a 5d 22 20 53 | 52 43 3d 22 63 72 6f 73 |="[*]" S|RC="cros|
|00000f00| 73 72 65 66 2e 70 6e 67 | 22 3e 3c 2f 41 3e 2e 20 |sref.png|"></A>. |
|00000f10| 41 67 61 69 6e 20 69 74 | 20 63 6f 6e 76 65 6e 69 |Again it| conveni|
|00000f20| 65 6e 74 0a 74 6f 20 75 | 73 65 20 61 20 6c 61 6d |ent.to u|se a lam|
|00000f30| 62 64 61 20 65 78 70 72 | 65 73 73 69 6f 6e 20 74 |bda expr|ession t|
|00000f40| 6f 20 73 70 65 63 69 66 | 79 20 74 68 65 20 66 75 |o specif|y the fu|
|00000f50| 6e 63 74 69 6f 6e 20 74 | 6f 20 62 65 20 70 6c 6f |nction t|o be plo|
|00000f60| 74 74 65 64 2e 0a 0a 3c | 50 3e 0a 54 68 65 72 65 |tted...<|P>.There|
|00000f70| 20 61 72 65 20 61 20 6e | 75 6d 62 65 72 20 6f 66 | are a n|umber of|
|00000f80| 20 73 69 74 75 61 74 69 | 6f 6e 73 20 69 6e 20 77 | situati|ons in w|
|00000f90| 68 69 63 68 20 79 6f 75 | 20 6d 69 67 68 74 20 77 |hich you| might w|
|00000fa0| 61 6e 74 20 74 6f 20 70 | 61 73 73 20 61 0a 66 75 |ant to p|ass a.fu|
|00000fb0| 6e 63 74 69 6f 6e 20 6f | 6e 20 61 73 20 61 6e 20 |nction o|n as an |
|00000fc0| 61 72 67 75 6d 65 6e 74 | 20 77 69 74 68 6f 75 74 |argument| without|
|00000fd0| 20 66 69 72 73 74 20 67 | 6f 69 6e 67 20 74 68 72 | first g|oing thr|
|00000fe0| 6f 75 67 68 20 74 68 65 | 20 74 72 6f 75 62 6c 65 |ough the| trouble|
|00000ff0| 20 6f 66 0a 74 68 69 6e | 6b 69 6e 67 20 75 70 20 | of.thin|king up |
|00001000| 61 20 6e 61 6d 65 20 66 | 6f 72 20 74 68 65 20 66 |a name f|or the f|
|00001010| 75 6e 63 74 69 6f 6e 20 | 61 6e 64 20 64 65 66 69 |unction |and defi|
|00001020| 6e 69 6e 67 20 69 74 20 | 75 73 69 6e 67 0a 3c 54 |ning it |using.<T|
|00001030| 54 3e 20 22 32 44 20 64 | 65 66 75 6e 3c 2f 54 54 |T> "2D d|efun</TT|
|00001040| 3e 2e 20 41 20 66 65 77 | 20 61 64 64 69 74 69 6f |>. A few| additio|
|00001050| 6e 61 6c 20 65 78 61 6d | 70 6c 65 73 20 61 72 65 |nal exam|ples are|
|00001060| 20 67 69 76 65 6e 20 69 | 6e 20 74 68 65 20 6e 65 | given i|n the ne|
|00001070| 78 74 0a 73 75 62 73 65 | 63 74 69 6f 6e 2e 0a 0a |xt.subse|ction...|
|00001080| 3c 50 3e 0a 0a 3c 48 52 | 3e 0a 0a 3c 2f 42 4f 44 |<P>..<HR|>..</BOD|
|00001090| 59 3e 0a 3c 2f 48 54 4d | 4c 3e 0a |Y>.</HTM|L>. |
+--------+-------------------------+-------------------------+--------+--------+