home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 February / PCWK0296.iso / sharewar / os2 / grafika / splot / doc / samples.tex < prev    next >
LaTeX Document  |  1994-09-22  |  28.2 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

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

You can browse this item here: samples.tex

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 data default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[CRLF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 63 68 61 70 74 65 72 | 7b 53 61 6d 70 6c 65 20 |\chapter|{Sample |
|00000010| 50 72 6f 67 72 61 6d 73 | 7d 20 0d 0a 0d 0a 5c 69 |Programs|} ....\i|
|00000020| 6e 64 65 78 7b 65 78 61 | 6d 70 6c 65 20 66 69 6c |ndex{exa|mple fil|
|00000030| 65 73 7d 0d 0a 54 68 69 | 73 20 63 68 61 70 74 65 |es}..Thi|s chapte|
|00000040| 72 20 63 6f 6e 74 61 69 | 6e 73 20 70 72 69 6e 74 |r contai|ns print|
|00000050| 6f 75 74 73 20 6f 66 20 | 73 65 76 65 72 61 6c 20 |outs of |several |
|00000060| 65 78 61 6d 70 6c 65 20 | 64 72 61 77 69 6e 67 20 |example |drawing |
|00000070| 6f 72 20 70 6c 6f 74 74 | 69 6e 67 20 66 69 6c 65 |or plott|ing file|
|00000080| 73 20 0d 0a 77 69 74 68 | 20 74 68 65 20 63 6f 72 |s ..with| the cor|
|00000090| 72 65 73 70 6f 6e 64 69 | 6e 67 20 0d 0a 70 72 69 |respondi|ng ..pri|
|000000a0| 6e 74 65 64 20 66 69 67 | 75 72 65 20 74 68 61 74 |nted fig|ure that|
|000000b0| 20 74 68 65 20 66 69 6c | 65 20 67 65 6e 65 72 61 | the fil|e genera|
|000000c0| 74 65 73 2e 20 0d 0a 54 | 68 65 73 65 20 66 6f 72 |tes. ..T|hese for|
|000000d0| 20 74 68 65 20 6d 6f 73 | 74 20 70 61 72 74 20 61 | the mos|t part a|
|000000e0| 72 65 20 63 6f 6e 74 72 | 69 62 75 74 65 64 20 66 |re contr|ibuted f|
|000000f0| 69 6c 65 73 20 6f 66 20 | 61 63 74 75 61 6c 20 66 |iles of |actual f|
|00000100| 69 67 75 72 65 73 20 75 | 73 65 64 20 69 6e 20 20 |igures u|sed in |
|00000110| 20 20 20 20 20 20 20 20 | 20 0d 0a 70 75 62 6c 69 | | ..publi|
|00000120| 63 61 74 69 6f 6e 73 2e | 20 20 20 20 20 0d 0a 20 |cations.| .. |
|00000130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000140| 20 0d 0a 5c 73 65 63 74 | 69 6f 6e 7b 73 69 6d 70 | ..\sect|ion{simp|
|00000150| 6c 65 2e 73 70 74 7d 0d | 0a 0d 0a 7b 5c 74 74 0d |le.spt}.|...{\tt.|
|00000160| 0a 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |.\begin{|verbatim|
|00000170| 7d 0d 0a 2f 2a 20 64 65 | 6d 6f 20 6f 66 20 73 69 |}../* de|mo of si|
|00000180| 6d 70 6c 65 73 74 20 70 | 6f 73 73 69 62 6c 65 20 |mplest p|ossible |
|00000190| 64 61 74 61 20 2a 2f 0d | 0a 2f 2a 20 70 6c 6f 74 |data */.|./* plot|
|000001a0| 74 69 6e 67 20 75 73 69 | 6e 67 20 61 6c 6c 20 74 |ting usi|ng all t|
|000001b0| 68 65 20 64 65 66 61 75 | 6c 74 73 20 2a 2f 0d 0a |he defau|lts */..|
|000001c0| 0d 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 70 6c 6f |..#inclu|de <splo|
|000001d0| 74 2e 68 3e 0d 0a 64 6f | 75 62 6c 65 20 2a 64 61 |t.h>..do|uble *da|
|000001e0| 74 61 3b 0d 0a 6d 61 69 | 6e 28 29 20 0d 0a 20 20 |ta;..mai|n() .. |
|000001f0| 20 7b 20 20 20 20 20 0d | 0a 20 20 20 72 65 61 64 | { .|. read|
|00000200| 64 61 74 61 28 22 64 65 | 6d 6f 5c 64 61 74 61 31 |data("de|mo\data1|
|00000210| 2e 64 61 74 22 2c 64 61 | 74 61 29 3b 0d 0a 20 20 |.dat",da|ta);.. |
|00000220| 20 70 6c 6f 74 64 61 74 | 61 28 64 61 74 61 29 3b | plotdat|a(data);|
|00000230| 20 20 0d 0a 20 20 20 6c | 61 62 65 6c 28 4c 4f 57 | .. l|abel(LOW|
|00000240| 45 52 2c 22 50 6f 73 69 | 74 69 6f 6e 22 29 3b 0d |ER,"Posi|tion");.|
|00000250| 0a 20 20 20 6c 61 62 65 | 6c 28 4c 45 46 54 2c 22 |. labe|l(LEFT,"|
|00000260| 57 61 76 65 6c 65 6e 67 | 74 68 20 69 6e 20 21 6d |Waveleng|th in !m|
|00000270| 21 6d 22 29 3b 0d 0a 20 | 20 20 74 65 78 74 28 36 |!m");.. | text(6|
|00000280| 2e 32 30 2c 32 32 2e 39 | 38 2c 22 4d 65 70 73 69 |.20,22.9|8,"Mepsi|
|00000290| 63 72 6f 6e 20 43 61 6c | 69 62 72 61 74 69 6f 6e |cron Cal|ibration|
|000002a0| 22 29 3b 0d 0a 20 20 20 | 7d 0d 0a 5c 65 6e 64 7b |");.. |}..\end{|
|000002b0| 76 65 72 62 61 74 69 6d | 7d 0d 0a 7d 0d 0a 0d 0a |verbatim|}..}....|
|000002c0| 5c 76 73 70 61 63 65 2a | 7b 32 63 6d 7d 0d 0a 0d |\vspace*|{2cm}...|
|000002d0| 0a 5c 73 70 65 63 69 61 | 6c 7b 70 73 66 69 6c 65 |.\specia|l{psfile|
|000002e0| 3d 73 69 6d 70 6c 65 2e | 65 70 73 20 68 73 63 61 |=simple.|eps hsca|
|000002f0| 6c 65 3d 34 30 20 76 73 | 63 61 6c 65 3d 34 30 20 |le=40 vs|cale=40 |
|00000300| 68 6f 66 66 73 65 74 3d | 32 35 30 20 76 6f 66 66 |hoffset=|250 voff|
|00000310| 73 65 74 3d 2d 35 30 7d | 0d 0a 20 20 20 20 20 20 |set=-50}|.. |
|00000320| 20 20 20 20 20 20 20 20 | 0d 0a 5c 6e 65 77 70 61 | |..\newpa|
|00000330| 67 65 0d 0a 5c 73 65 63 | 74 69 6f 6e 7b 73 69 6d |ge..\sec|tion{sim|
|00000340| 70 6c 65 32 2e 73 70 74 | 7d 20 20 20 20 20 20 20 |ple2.spt|} |
|00000350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000360| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0d 0a 0d | | ...|
|00000370| 0a 7b 5c 74 74 0d 0a 5c | 62 65 67 69 6e 7b 76 65 |.{\tt..\|begin{ve|
|00000380| 72 62 61 74 69 6d 7d 0d | 0a 2f 2a 20 64 65 6d 6f |rbatim}.|./* demo|
|00000390| 20 6f 66 20 73 69 6d 70 | 6c 65 20 64 61 74 61 20 | of simp|le data |
|000003a0| 70 6c 6f 74 74 69 6e 67 | 20 62 75 74 2a 2f 0d 0a |plotting| but*/..|
|000003b0| 2f 2a 20 6f 76 65 72 20 | 72 69 64 69 6e 67 20 73 |/* over |riding s|
|000003c0| 6f 6d 65 20 6f 66 20 74 | 68 65 20 64 65 66 61 75 |ome of t|he defau|
|000003d0| 6c 74 73 20 2a 2f 0d 0a | 0d 0a 23 69 6e 63 6c 75 |lts */..|..#inclu|
|000003e0| 64 65 20 3c 73 70 6c 6f | 74 2e 68 3e 0d 0a 64 6f |de <splo|t.h>..do|
|000003f0| 75 62 6c 65 20 2a 64 61 | 74 61 3b 0d 0a 6d 61 69 |uble *da|ta;..mai|
|00000400| 6e 28 29 20 0d 0a 20 20 | 20 7b 20 20 20 20 20 0d |n() .. | { .|
|00000410| 0a 20 20 20 72 65 61 64 | 64 61 74 61 28 22 64 65 |. read|data("de|
|00000420| 6d 6f 5c 64 61 74 61 31 | 2e 64 61 74 22 2c 64 61 |mo\data1|.dat",da|
|00000430| 74 61 29 3b 0d 0a 20 20 | 20 73 65 74 28 50 4c 4f |ta);.. | set(PLO|
|00000440| 54 54 59 50 45 2c 53 59 | 4d 42 4f 4c 53 29 3b 0d |TTYPE,SY|MBOLS);.|
|00000450| 0a 20 20 20 73 65 74 28 | 41 58 45 53 43 4c 49 50 |. set(|AXESCLIP|
|00000460| 2c 4f 4e 29 3b 0d 0a 20 | 20 20 61 78 65 73 5f 62 |,ON);.. | axes_b|
|00000470| 6f 78 28 31 31 2c 31 36 | 2c 2d 30 2e 30 32 2c 30 |ox(11,16|,-0.02,0|
|00000480| 2e 36 33 32 2c 30 2e 30 | 34 2c 30 2e 36 33 33 35 |.632,0.0|4,0.6335|
|00000490| 29 3b 0d 0a 20 20 20 70 | 6c 6f 74 64 61 74 61 28 |);.. p|lotdata(|
|000004a0| 64 61 74 61 29 3b 20 20 | 0d 0a 20 20 20 6c 61 62 |data); |.. lab|
|000004b0| 65 6c 28 4c 4f 57 45 52 | 2c 22 50 6f 73 69 74 69 |el(LOWER|,"Positi|
|000004c0| 6f 6e 22 29 3b 0d 0a 20 | 20 20 6c 61 62 65 6c 28 |on");.. | label(|
|000004d0| 4c 45 46 54 2c 22 57 61 | 76 65 6c 65 6e 67 74 68 |LEFT,"Wa|velength|
|000004e0| 20 69 6e 20 21 6d 21 6d | 22 29 3b 0d 0a 20 20 20 | in !m!m|");.. |
|000004f0| 74 65 78 74 28 36 2e 32 | 30 2c 32 32 2e 39 38 2c |text(6.2|0,22.98,|
|00000500| 22 4d 65 70 73 69 63 72 | 6f 6e 20 43 61 6c 69 62 |"Mepsicr|on Calib|
|00000510| 72 61 74 69 6f 6e 22 29 | 3b 0d 0a 20 20 20 7d 0d |ration")|;.. }.|
|00000520| 0a 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0d |.\end{ve|rbatim}.|
|00000530| 0a 7d 0d 0a 0d 0a 5c 76 | 73 70 61 63 65 2a 7b 31 |.}....\v|space*{1|
|00000540| 2e 35 63 6d 7d 0d 0a 5c | 73 70 65 63 69 61 6c 7b |.5cm}..\|special{|
|00000550| 70 73 66 69 6c 65 3d 73 | 69 6d 70 6c 65 32 2e 65 |psfile=s|imple2.e|
|00000560| 70 73 20 68 73 63 61 6c | 65 3d 34 30 20 76 73 63 |ps hscal|e=40 vsc|
|00000570| 61 6c 65 3d 34 30 20 68 | 6f 66 66 73 65 74 3d 32 |ale=40 h|offset=2|
|00000580| 35 30 20 76 6f 66 66 73 | 65 74 3d 2d 31 30 7d 0d |50 voffs|et=-10}.|
|00000590| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0d |. | .|
|000005a0| 0a 5c 73 65 63 74 69 6f | 6e 7b 73 69 6d 70 6c 65 |.\sectio|n{simple|
|000005b0| 33 2e 73 70 74 7d 0d 0a | 0d 0a 7b 5c 74 74 0d 0a |3.spt}..|..{\tt..|
|000005c0| 5c 62 65 67 69 6e 7b 76 | 65 72 62 61 74 69 6d 7d |\begin{v|erbatim}|
|000005d0| 0d 0a 2f 2a 20 64 65 6d | 6f 20 6f 66 20 73 69 6d |../* dem|o of sim|
|000005e0| 70 6c 65 20 64 61 74 61 | 20 70 6c 6f 74 74 69 6e |ple data| plottin|
|000005f0| 67 20 62 75 74 2a 2f 0d | 0a 2f 2a 20 6f 76 65 72 |g but*/.|./* over|
|00000600| 20 72 69 64 69 6e 67 20 | 73 6f 6d 65 20 6d 6f 72 | riding |some mor|
|00000610| 65 20 6f 66 20 74 68 65 | 20 64 65 66 61 75 6c 74 |e of the| default|
|00000620| 73 20 2a 2f 0d 0a 0d 0a | 23 69 6e 63 6c 75 64 65 |s */....|#include|
|00000630| 20 3c 73 70 6c 6f 74 2e | 68 3e 0d 0a 64 6f 75 62 | <splot.|h>..doub|
|00000640| 6c 65 20 2a 64 61 74 61 | 3b 0d 0a 6d 61 69 6e 28 |le *data|;..main(|
|00000650| 29 20 0d 0a 20 20 20 7b | 20 20 20 20 20 0d 0a 20 |) .. {| .. |
|00000660| 20 20 72 65 61 64 64 61 | 74 61 28 22 64 65 6d 6f | readda|ta("demo|
|00000670| 5c 64 61 74 61 31 2e 64 | 61 74 22 2c 64 61 74 61 |\data1.d|at",data|
|00000680| 29 3b 0d 0a 20 20 20 73 | 65 74 28 50 4c 4f 54 54 |);.. s|et(PLOTT|
|00000690| 59 50 45 2c 53 59 4d 5f | 4c 49 4e 45 53 29 3b 0d |YPE,SYM_|LINES);.|
|000006a0| 0a 20 20 20 73 65 74 28 | 43 55 52 53 59 4d 42 4f |. set(|CURSYMBO|
|000006b0| 4c 2c 41 52 52 4f 57 29 | 3b 0d 0a 20 20 20 73 65 |L,ARROW)|;.. se|
|000006c0| 74 28 41 58 45 53 43 4c | 49 50 2c 4f 4e 29 3b 0d |t(AXESCL|IP,ON);.|
|000006d0| 0a 20 20 20 61 78 65 73 | 5f 62 6f 78 28 31 31 2c |. axes|_box(11,|
|000006e0| 31 36 2c 2d 30 2e 30 32 | 2c 30 2e 36 33 32 2c 30 |16,-0.02|,0.632,0|
|000006f0| 2e 30 34 2c 30 2e 36 33 | 33 35 29 3b 0d 0a 20 20 |.04,0.63|35);.. |
|00000700| 20 74 69 63 6b 6d 61 72 | 6b 73 28 59 41 58 45 53 | tickmar|ks(YAXES|
|00000710| 2c 30 2e 36 33 32 2c 30 | 2e 36 33 32 35 2c 30 2e |,0.632,0|.6325,0.|
|00000720| 36 33 33 2c 30 2e 36 33 | 33 35 29 3b 0d 0a 20 20 |633,0.63|35);.. |
|00000730| 20 74 69 63 6b 6d 61 72 | 6b 73 28 58 41 58 45 53 | tickmar|ks(XAXES|
|00000740| 29 3b 0d 0a 20 20 20 74 | 69 63 6b 6c 61 62 65 6c |);.. t|icklabel|
|00000750| 28 29 3b 0d 0a 20 20 20 | 6c 61 62 65 6c 28 4c 4f |();.. |label(LO|
|00000760| 57 45 52 2c 22 50 6f 73 | 69 74 69 6f 6e 22 29 3b |WER,"Pos|ition");|
|00000770| 0d 0a 20 20 20 6c 61 62 | 65 6c 28 4c 45 46 54 2c |.. lab|el(LEFT,|
|00000780| 22 57 61 76 65 6c 65 6e | 67 74 68 20 69 6e 20 21 |"Wavelen|gth in !|
|00000790| 6d 21 6d 22 29 3b 0d 0a | 20 20 20 74 65 78 74 28 |m!m");..| text(|
|000007a0| 36 2e 32 30 2c 32 32 2e | 39 38 2c 22 4d 65 70 73 |6.20,22.|98,"Meps|
|000007b0| 69 63 72 6f 6e 20 43 61 | 6c 69 62 72 61 74 69 6f |icron Ca|libratio|
|000007c0| 6e 22 29 3b 0d 0a 20 20 | 20 73 65 74 28 46 4f 4e |n");.. | set(FON|
|000007d0| 54 4d 55 4c 54 2c 32 29 | 3b 0d 0a 20 20 20 70 6c |TMULT,2)|;.. pl|
|000007e0| 6f 74 64 61 74 61 28 64 | 61 74 61 29 3b 20 20 0d |otdata(d|ata); .|
|000007f0| 0a 20 20 20 7d 0d 0a 5c | 65 6e 64 7b 76 65 72 62 |. }..\|end{verb|
|00000800| 61 74 69 6d 7d 0d 0a 7d | 0d 0a 0d 0a 20 20 20 20 |atim}..}|.... |
|00000810| 20 20 20 20 20 20 20 20 | 20 20 0d 0a 5c 76 73 70 | | ..\vsp|
|00000820| 61 63 65 2a 7b 32 63 6d | 7d 0d 0a 5c 73 70 65 63 |ace*{2cm|}..\spec|
|00000830| 69 61 6c 7b 70 73 66 69 | 6c 65 3d 73 69 6d 70 6c |ial{psfi|le=simpl|
|00000840| 65 33 2e 65 70 73 20 68 | 73 63 61 6c 65 3d 34 30 |e3.eps h|scale=40|
|00000850| 20 76 73 63 61 6c 65 3d | 34 30 20 68 6f 66 66 73 | vscale=|40 hoffs|
|00000860| 65 74 3d 32 35 30 20 76 | 6f 66 66 73 65 74 3d 34 |et=250 v|offset=4|
|00000870| 30 7d 0d 0a 20 20 20 20 | 20 20 0d 0a 5c 6e 65 77 |0}.. | ..\new|
|00000880| 70 61 67 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |page | |
|00000890| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0d 0a 5c | | ..\|
|000008c0| 73 65 63 74 69 6f 6e 7b | 69 6e 76 65 72 61 78 2e |section{|inverax.|
|000008d0| 73 70 74 7d 20 20 20 20 | 20 20 20 20 20 20 20 20 |spt} | |
|000008e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008f0| 20 20 20 20 20 20 20 20 | 0d 0a 0d 0a 7b 5c 74 74 | |....{\tt|
|00000900| 0d 0a 5c 62 65 67 69 6e | 7b 76 65 72 62 61 74 69 |..\begin|{verbati|
|00000910| 6d 7d 0d 0a 2f 2a 20 54 | 68 69 73 20 66 69 6c 65 |m}../* T|his file|
|00000920| 20 69 6c 6c 75 73 74 72 | 61 74 65 73 20 74 68 65 | illustr|ates the|
|00000930| 20 75 73 65 20 6f 66 20 | 69 6e 76 65 72 73 65 20 | use of |inverse |
|00000940| 61 6e 64 20 6c 6f 67 20 | 61 78 65 73 20 2a 2f 0d |and log |axes */.|
|00000950| 0a 5c 69 6e 64 65 78 7b | 61 78 65 73 2c 20 6c 6f |.\index{|axes, lo|
|00000960| 67 20 65 78 61 6d 70 6c | 65 7d 0d 0a 5c 69 6e 64 |g exampl|e}..\ind|
|00000970| 65 78 7b 61 78 65 73 2c | 20 69 6e 76 65 72 73 65 |ex{axes,| inverse|
|00000980| 20 65 78 61 6d 70 6c 65 | 7d 0d 0a 0d 0a 23 69 6e | example|}....#in|
|00000990| 63 6c 75 64 65 20 3c 73 | 70 6c 6f 74 2e 68 3e 0d |clude <s|plot.h>.|
|000009a0| 0a 64 6f 75 62 6c 65 20 | 2a 64 61 74 61 3b 0d 0a |.double |*data;..|
|000009b0| 6d 61 69 6e 28 29 20 0d | 0a 20 20 20 7b 20 20 20 |main() .|. { |
|000009c0| 20 20 0d 0a 20 20 20 73 | 65 74 28 4c 49 4e 45 57 | .. s|et(LINEW|
|000009d0| 49 44 54 48 2c 30 2e 30 | 36 29 3b 0d 0a 20 20 20 |IDTH,0.0|6);.. |
|000009e0| 73 65 74 28 43 55 52 53 | 59 4d 42 4f 4c 2c 4f 53 |set(CURS|YMBOL,OS|
|000009f0| 51 55 41 52 45 29 3b 0d | 0a 20 20 20 73 65 74 28 |QUARE);.|. set(|
|00000a00| 41 58 45 53 43 4c 49 50 | 2c 4f 4e 29 3b 0d 0a 20 |AXESCLIP|,ON);.. |
|00000a10| 20 20 73 65 74 28 46 4f | 4e 54 41 53 50 45 43 54 | set(FO|NTASPECT|
|00000a20| 2c 31 2e 35 29 3b 0d 0a | 20 20 20 73 65 74 28 41 |,1.5);..| set(A|
|00000a30| 58 45 53 54 59 50 45 2c | 49 4e 56 58 4c 4f 47 59 |XESTYPE,|INVXLOGY|
|00000a40| 29 3b 0d 0a 20 20 20 61 | 78 65 73 5f 62 6f 78 28 |);.. a|xes_box(|
|00000a50| 31 32 2c 31 35 2c 31 65 | 32 30 2c 30 2e 30 30 31 |12,15,1e|20,0.001|
|00000a60| 2c 34 2c 31 30 29 3b 0d | 0a 20 20 20 73 65 74 28 |,4,10);.|. set(|
|00000a70| 46 4f 4e 54 57 49 44 54 | 48 2c 30 2e 38 29 3b 0d |FONTWIDT|H,0.8);.|
|00000a80| 0a 20 20 20 74 69 63 6b | 6d 61 72 6b 73 28 29 3b |. tick|marks();|
|00000a90| 0d 0a 20 20 20 74 69 63 | 6b 6c 61 62 65 6c 28 42 |.. tic|klabel(B|
|00000aa0| 4f 54 54 4f 4d 2c 31 65 | 2b 32 30 2c 22 30 22 2c |OTTOM,1e|+20,"0",|
|00000ab0| 32 30 2c 22 35 30 22 2c | 31 30 2c 22 31 30 30 22 |20,"50",|10,"100"|
|00000ac0| 2c 36 2e 36 36 36 36 2c | 22 31 35 30 22 0d 0a 20 |,6.6666,|"150".. |
|00000ad0| 20 20 20 20 20 20 20 20 | 20 20 20 20 2c 35 2c 22 | | ,5,"|
|00000ae0| 32 30 30 22 2c 34 2c 22 | 32 35 30 22 29 3b 0d 0a |200",4,"|250");..|
|00000af0| 20 20 20 74 69 63 6b 6c | 61 62 65 6c 28 4c 45 46 | tickl|abel(LEF|
|00000b00| 54 2c 31 65 2d 33 2c 22 | 31 30 5e 31 31 5e 22 2c |T,1e-3,"|10^11^",|
|00000b10| 31 65 2d 32 2c 22 31 30 | 5e 31 32 5e 22 2c 31 65 |1e-2,"10|^12^",1e|
|00000b20| 2d 31 2c 22 31 30 5e 31 | 33 5e 22 2c 31 2c 22 31 |-1,"10^1|3^",1,"1|
|00000b30| 30 5e 31 34 5e 22 2c 31 | 30 2c 22 31 30 5e 31 35 |0^14^",1|0,"10^15|
|00000b40| 5e 22 29 3b 0d 0a 20 20 | 20 73 65 74 28 58 4d 55 |^");.. | set(XMU|
|00000b50| 4c 54 2c 31 29 3b 0d 0a | 20 20 20 73 65 74 28 46 |LT,1);..| set(F|
|00000b60| 4f 4e 54 57 49 44 54 48 | 2c 30 2e 39 29 3b 0d 0a |ONTWIDTH|,0.9);..|
|00000b70| 20 20 20 6c 61 62 65 6c | 28 42 4f 54 54 4f 4d 2c | label|(BOTTOM,|
|00000b80| 22 31 30 30 30 2f 54 22 | 29 3b 0d 0a 20 20 20 6c |"1000/T"|);.. l|
|00000b90| 61 62 65 6c 28 4c 45 46 | 54 2c 22 43 41 52 52 49 |abel(LEF|T,"CARRI|
|00000ba0| 45 52 20 43 4f 4e 43 45 | 4e 54 52 41 54 49 4f 4e |ER CONCE|NTRATION|
|00000bb0| 22 29 3b 0d 0a 20 20 20 | 73 65 74 28 50 4c 4f 54 |");.. |set(PLOT|
|00000bc0| 54 59 50 45 2c 53 59 4d | 42 4f 4c 53 29 3b 0d 0a |TYPE,SYM|BOLS);..|
|00000bd0| 20 20 20 72 65 61 64 64 | 61 74 61 28 22 64 65 6d | readd|ata("dem|
|00000be0| 6f 5c 74 62 34 5f 32 5f | 32 2e 64 61 74 22 2c 64 |o\tb4_2_|2.dat",d|
|00000bf0| 61 74 61 29 3b 0d 0a 20 | 20 20 70 6c 6f 74 64 61 |ata);.. | plotda|
|00000c00| 74 61 28 64 61 74 61 29 | 3b 0d 0a 20 20 20 7d 20 |ta(data)|;.. } |
|00000c10| 20 20 20 20 20 20 0d 0a | 5c 65 6e 64 7b 76 65 72 | ..|\end{ver|
|00000c20| 62 61 74 69 6d 7d 0d 0a | 7d 0d 0a 0d 0a 5c 76 73 |batim}..|}....\vs|
|00000c30| 70 61 63 65 2a 7b 37 63 | 6d 7d 20 20 20 20 20 20 |pace*{7c|m} |
|00000c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 0d 0a 0d 0a | | ....|
|00000c50| 5c 73 70 65 63 69 61 6c | 7b 70 73 66 69 6c 65 3d |\special|{psfile=|
|00000c60| 69 6e 76 65 72 61 78 2e | 65 70 73 20 68 73 63 61 |inverax.|eps hsca|
|00000c70| 6c 65 3d 34 30 20 76 73 | 63 61 6c 65 3d 34 30 20 |le=40 vs|cale=40 |
|00000c80| 68 6f 66 66 73 65 74 3d | 32 32 30 20 76 6f 66 66 |hoffset=|220 voff|
|00000c90| 73 65 74 3d 30 7d 0d 0a | 20 20 20 20 0d 0a 5c 6e |set=0}..| ..\n|
|00000ca0| 65 77 70 61 67 65 0d 0a | 5c 69 6e 64 65 78 7b 65 |ewpage..|\index{e|
|00000cb0| 72 72 6f 72 20 62 61 72 | 73 2c 20 65 78 61 6d 70 |rror bar|s, examp|
|00000cc0| 6c 65 7d 5c 69 6e 64 65 | 78 7b 66 69 74 20 6c 69 |le}\inde|x{fit li|
|00000cd0| 6e 65 2c 20 65 78 61 6d | 70 6c 65 7d 0d 0a 5c 73 |ne, exam|ple}..\s|
|00000ce0| 65 63 74 69 6f 6e 7b 65 | 72 72 6f 72 62 61 72 2e |ection{e|rrorbar.|
|00000cf0| 73 70 74 7d 20 20 20 20 | 20 20 20 20 20 20 20 20 |spt} | |
|00000d00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d10| 20 20 20 20 20 20 0d 0a | 0d 0a 7b 5c 74 74 0d 0a | ..|..{\tt..|
|00000d20| 5c 62 65 67 69 6e 7b 76 | 65 72 62 61 74 69 6d 7d |\begin{v|erbatim}|
|00000d30| 0d 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 70 6c 6f |..#inclu|de <splo|
|00000d40| 74 2e 68 3e 0d 0a 0d 0a | 2f 2a 20 54 68 69 73 20 |t.h>....|/* This |
|00000d50| 65 78 61 6d 70 6c 65 20 | 66 69 6c 65 20 69 6c 6c |example |file ill|
|00000d60| 75 73 74 72 61 74 65 73 | 20 74 68 65 20 75 73 65 |ustrates| the use|
|00000d70| 20 6f 66 20 65 72 72 6f | 72 62 61 72 73 20 61 6e | of erro|rbars an|
|00000d80| 64 20 73 74 72 61 69 67 | 68 74 20 2a 2f 0d 0a 2f |d straig|ht */../|
|00000d90| 2a 20 6c 69 6e 65 20 66 | 69 74 73 20 74 6f 20 64 |* line f|its to d|
|00000da0| 61 74 61 2e 20 49 74 20 | 61 6c 73 6f 20 75 73 65 |ata. It |also use|
|00000db0| 73 20 61 20 73 6d 61 6c | 6c 20 69 6e 74 65 72 6e |s a smal|l intern|
|00000dc0| 61 6c 20 64 61 74 61 20 | 61 72 72 61 79 20 72 61 |al data |array ra|
|00000dd0| 74 68 65 72 20 2a 2f 0d | 0a 2f 2a 20 74 68 61 6e |ther */.|./* than|
|00000de0| 20 72 65 61 64 69 6e 67 | 20 64 61 74 61 20 69 6e | reading| data in|
|00000df0| 20 66 72 6f 6d 20 61 20 | 66 69 6c 65 20 2a 2f 0d | from a |file */.|
|00000e00| 0a 0d 0a 64 6f 75 62 6c | 65 20 64 61 74 61 5b 34 |...doubl|e data[4|
|00000e10| 5d 5b 34 5d 20 3d 20 7b | 0d 0a 20 20 20 31 2e 32 |][4] = {|.. 1.2|
|00000e20| 2c 20 30 2e 32 34 2c 20 | 30 2e 31 2c 20 31 2c 0d |, 0.24, |0.1, 1,.|
|00000e30| 0a 20 20 20 32 2e 30 2c | 20 30 2e 34 33 2c 20 30 |. 2.0,| 0.43, 0|
|00000e40| 2e 31 2c 20 31 2c 20 0d | 0a 20 20 20 34 2e 30 2c |.1, 1, .|. 4.0,|
|00000e50| 20 30 2e 35 32 2c 20 30 | 2e 31 2c 20 31 2c 20 0d | 0.52, 0|.1, 1, .|
|00000e60| 0a 20 20 20 36 2e 30 2c | 20 30 2e 38 37 2c 20 30 |. 6.0,| 0.87, 0|
|00000e70| 2e 31 2c 20 31 7d 3b 20 | 0d 0a 0d 0a 64 6f 75 62 |.1, 1}; |....doub|
|00000e80| 6c 65 20 79 69 6e 74 2c | 73 6c 6f 70 65 3b 0d 0a |le yint,|slope;..|
|00000e90| 0d 0a 0d 0a 6d 61 69 6e | 28 29 0d 0a 20 20 20 7b |....main|().. {|
|00000ea0| 0d 0a 20 20 20 73 65 74 | 28 4c 49 4e 45 57 49 44 |.. set|(LINEWID|
|00000eb0| 54 48 2c 30 2e 31 29 3b | 0d 0a 20 20 20 73 65 74 |TH,0.1);|.. set|
|00000ec0| 28 50 4c 4f 54 54 59 50 | 45 2c 53 59 4d 42 4f 4c |(PLOTTYP|E,SYMBOL|
|00000ed0| 53 29 3b 0d 0a 20 20 20 | 61 78 65 73 5f 62 6f 78 |S);.. |axes_box|
|00000ee0| 28 31 32 2c 31 35 2c 30 | 2c 30 2c 38 2c 31 2e 30 |(12,15,0|,0,8,1.0|
|00000ef0| 29 3b 0d 0a 20 20 20 74 | 69 63 6b 6d 61 72 6b 73 |);.. t|ickmarks|
|00000f00| 28 29 3b 0d 0a 20 20 20 | 73 65 74 28 46 4f 4e 54 |();.. |set(FONT|
|00000f10| 57 49 44 54 48 2c 30 2e | 35 29 3b 0d 0a 20 20 20 |WIDTH,0.|5);.. |
|00000f20| 74 69 63 6b 6c 61 62 65 | 6c 28 29 3b 0d 0a 20 20 |ticklabe|l();.. |
|00000f30| 20 73 65 74 28 46 4f 4e | 54 57 49 44 54 48 2c 30 | set(FON|TWIDTH,0|
|00000f40| 2e 37 29 3b 0d 0a 0d 0a | 20 20 20 6c 61 62 65 6c |.7);....| label|
|00000f50| 28 42 4f 54 54 4f 4d 2c | 22 53 69 47 65 20 57 65 |(BOTTOM,|"SiGe We|
|00000f60| 6c 6c 20 57 69 64 74 68 | 20 69 6e 20 28 6e 6d 29 |ll Width| in (nm)|
|00000f70| 22 29 3b 0d 0a 20 20 20 | 6c 61 62 65 6c 28 4c 45 |");.. |label(LE|
|00000f80| 46 54 2c 22 42 69 65 78 | 63 69 74 6f 6e 20 4c 69 |FT,"Biex|citon Li|
|00000f90| 66 65 74 69 6d 65 20 69 | 6e 20 28 21 6d 21 73 29 |fetime i|n (!m!s)|
|00000fa0| 22 29 3b 0d 0a 0d 0a 20 | 20 20 74 65 78 74 28 31 |");.... | text(1|
|00000fb0| 30 2e 30 33 2c 32 32 2e | 35 36 2c 22 4d 42 45 20 |0.03,22.|56,"MBE |
|00000fc0| 53 69 47 65 20 51 75 61 | 6e 74 75 6d 20 57 65 6c |SiGe Qua|ntum Wel|
|00000fd0| 6c 73 22 2c 43 45 4e 54 | 45 52 29 3b 0d 0a 0d 0a |ls",CENT|ER);....|
|00000fe0| 20 20 20 2f 2a 20 64 72 | 61 77 20 74 68 65 20 64 | /* dr|aw the d|
|00000ff0| 61 74 61 20 70 6f 69 6e | 74 73 20 20 2a 2f 0d 0a |ata poin|ts */..|
|00001000| 20 20 20 64 72 61 77 64 | 61 74 61 28 64 61 74 61 | drawd|ata(data|
|00001010| 2c 30 2c 31 29 3b 0d 0a | 0d 0a 20 20 20 2f 2a 20 |,0,1);..|.. /* |
|00001020| 70 75 74 20 69 6e 20 74 | 68 65 20 65 72 72 6f 72 |put in t|he error|
|00001030| 20 62 61 72 73 20 66 6f | 72 20 74 68 65 20 78 20 | bars fo|r the x |
|00001040| 76 61 6c 75 65 73 20 2a | 2f 0d 0a 20 20 20 65 72 |values *|/.. er|
|00001050| 72 6f 72 62 61 72 73 28 | 58 56 41 4c 53 2c 64 61 |rorbars(|XVALS,da|
|00001060| 74 61 2c 30 2c 31 2c 33 | 29 3b 0d 0a 20 20 20 2f |ta,0,1,3|);.. /|
|00001070| 2a 20 70 75 74 20 69 6e | 20 74 68 65 20 65 72 72 |* put in| the err|
|00001080| 6f 72 20 62 61 72 73 20 | 66 6f 72 20 74 68 65 20 |or bars |for the |
|00001090| 79 20 76 61 6c 75 65 73 | 20 2a 2f 0d 0a 20 20 20 |y values| */.. |
|000010a0| 65 72 72 6f 72 62 61 72 | 73 28 59 56 41 4c 53 2c |errorbar|s(YVALS,|
|000010b0| 64 61 74 61 2c 30 2c 31 | 2c 32 29 3b 0d 0a 0d 0a |data,0,1|,2);....|
|000010c0| 20 20 20 2f 2a 20 66 69 | 74 20 74 68 65 20 62 65 | /* fi|t the be|
|000010d0| 73 74 20 6c 69 6e 65 20 | 74 6f 20 74 68 65 20 64 |st line |to the d|
|000010e0| 61 74 61 20 61 6e 64 20 | 72 65 74 75 72 6e 20 74 |ata and |return t|
|000010f0| 68 65 20 73 6c 6f 70 65 | 20 61 6e 64 20 69 6e 74 |he slope| and int|
|00001100| 65 72 63 65 70 74 20 2a | 2f 0d 0a 20 20 20 66 69 |ercept *|/.. fi|
|00001110| 74 6c 69 6e 65 28 64 61 | 74 61 2c 30 2c 31 2c 26 |tline(da|ta,0,1,&|
|00001120| 79 69 6e 74 2c 26 73 6c | 6f 70 65 29 3b 0d 0a 20 |yint,&sl|ope);.. |
|00001130| 20 20 70 72 69 6e 74 28 | 73 6c 6f 70 65 29 3b 0d | print(|slope);.|
|00001140| 0a 20 20 20 70 72 69 6e | 74 28 79 69 6e 74 29 3b |. prin|t(yint);|
|00001150| 0d 0a 20 20 20 7d 0d 0a | 5c 65 6e 64 7b 76 65 72 |.. }..|\end{ver|
|00001160| 62 61 74 69 6d 7d 0d 0a | 7d 0d 0a 20 20 20 20 20 |batim}..|}.. |
|00001170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011a0| 20 20 20 20 20 20 20 20 | 20 0d 0a 5c 76 73 70 61 | | ..\vspa|
|000011b0| 63 65 2a 7b 2e 31 63 6d | 7d 20 0d 0a 5c 73 70 65 |ce*{.1cm|} ..\spe|
|000011c0| 63 69 61 6c 7b 70 73 66 | 69 6c 65 3d 65 72 72 6f |cial{psf|ile=erro|
|000011d0| 72 62 61 72 2e 65 70 73 | 20 68 73 63 61 6c 65 3d |rbar.eps| hscale=|
|000011e0| 35 30 20 76 73 63 61 6c | 65 3d 35 30 20 68 6f 66 |50 vscal|e=50 hof|
|000011f0| 66 73 65 74 3d 32 31 30 | 20 76 6f 66 66 73 65 74 |fset=210| voffset|
|00001200| 3d 31 32 30 7d 0d 0a 20 | 20 20 20 20 20 20 20 20 |=120}.. | |
|00001210| 20 20 20 20 0d 0a 5c 6e | 65 77 70 61 67 65 20 20 | ..\n|ewpage |
|00001220| 20 20 20 0d 0a 5c 73 65 | 63 74 69 6f 6e 7b 6d 61 | ..\se|ction{ma|
|00001230| 6e 79 73 70 65 63 2e 73 | 70 74 20 7d 20 0d 0a 0d |nyspec.s|pt } ...|
|00001240| 0a 5c 76 73 70 61 63 65 | 2a 7b 31 32 63 6d 7d 0d |.\vspace|*{12cm}.|
|00001250| 0a 5c 73 70 65 63 69 61 | 6c 7b 70 73 66 69 6c 65 |.\specia|l{psfile|
|00001260| 3d 6d 61 6e 79 73 70 65 | 63 2e 65 70 73 20 68 73 |=manyspe|c.eps hs|
|00001270| 63 61 6c 65 3d 35 30 20 | 76 73 63 61 6c 65 3d 35 |cale=50 |vscale=5|
|00001280| 30 20 68 6f 66 66 73 65 | 74 3d 35 30 20 76 6f 66 |0 hoffse|t=50 vof|
|00001290| 66 73 65 74 3d 2d 33 30 | 7d 0d 0a 0d 0a 5c 69 6e |fset=-30|}....\in|
|000012a0| 64 65 78 7b 64 61 74 61 | 2c 20 73 68 69 66 74 69 |dex{data|, shifti|
|000012b0| 6e 67 20 65 78 61 6d 70 | 6c 65 7d 0d 0a 20 20 20 |ng examp|le}.. |
|000012c0| 20 20 20 20 20 20 20 20 | 20 20 0d 0a 7b 5c 74 74 | | ..{\tt|
|000012d0| 0d 0a 5c 62 65 67 69 6e | 7b 76 65 72 62 61 74 69 |..\begin|{verbati|
|000012e0| 6d 7d 0d 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 70 |m}..#inc|lude <sp|
|000012f0| 6c 6f 74 2e 68 3e 20 0d | 0a 2f 2a 20 43 72 65 61 |lot.h> .|./* Crea|
|00001300| 74 65 64 20 62 79 20 53 | 63 6f 74 74 20 57 69 6c |ted by S|cott Wil|
|00001310| 73 6f 6e 20 30 32 2f 30 | 35 2f 39 33 20 2a 2f 0d |son 02/0|5/93 */.|
|00001320| 0a 2f 2a 20 74 68 69 73 | 20 73 70 6c 6f 74 20 66 |./* this| splot f|
|00001330| 69 6c 65 20 67 65 6e 65 | 72 61 74 65 73 20 61 6e |ile gene|rates an|
|00001340| 20 78 79 20 0d 0a 20 20 | 20 70 6c 6f 74 20 6f 66 | xy .. | plot of|
|00001350| 20 35 20 64 61 74 61 20 | 73 65 74 73 2e 20 45 61 | 5 data |sets. Ea|
|00001360| 63 68 20 63 75 72 76 65 | 20 20 0d 0a 20 20 20 68 |ch curve| .. h|
|00001370| 61 73 20 74 68 65 20 73 | 61 6d 65 20 78 20 73 63 |as the s|ame x sc|
|00001380| 61 6c 65 20 61 6e 64 20 | 79 20 73 63 61 6c 65 20 |ale and |y scale |
|00001390| 0d 0a 20 20 20 62 75 74 | 20 68 61 76 65 20 62 65 |.. but| have be|
|000013a0| 65 6e 20 6f 66 66 73 65 | 74 20 66 72 6f 6d 20 65 |en offse|t from e|
|000013b0| 61 63 68 20 0d 0a 20 20 | 20 6f 74 68 65 72 20 69 |ach .. | other i|
|000013c0| 6e 20 74 68 65 20 79 20 | 64 69 72 65 63 74 69 6f |n the y |directio|
|000013d0| 6e 20 62 79 20 61 6e 20 | 0d 0a 20 20 20 65 71 75 |n by an |.. equ|
|000013e0| 61 6c 20 61 6d 6f 75 6e | 74 0d 0a 2a 2f 0d 0a 2f |al amoun|t..*/../|
|000013f0| 2a 20 64 65 66 69 6e 65 | 20 74 68 65 20 64 61 74 |* define| the dat|
|00001400| 61 20 61 72 72 61 79 73 | 20 2a 2f 20 20 20 0d 0a |a arrays| */ ..|
|00001410| 64 6f 75 62 6c 65 20 2a | 70 6c 64 61 74 61 31 2c |double *|pldata1,|
|00001420| 20 2a 70 6c 64 61 74 61 | 32 2c 20 2a 70 6c 64 61 | *pldata|2, *plda|
|00001430| 74 61 33 2c 20 2a 70 6c | 64 61 74 61 34 2c 20 2a |ta3, *pl|data4, *|
|00001440| 70 6c 64 61 74 61 35 3b | 0d 0a 6d 61 69 6e 28 29 |pldata5;|..main()|
|00001450| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0d 0a 20 | | .. |
|00001460| 20 7b 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | { | |
|00001470| 20 20 0d 0a 0d 0a 20 20 | 20 2f 2a 20 64 65 66 69 | .... | /* defi|
|00001480| 6e 65 20 61 20 74 69 63 | 20 6c 65 6e 67 74 68 20 |ne a tic| length |
|00001490| 20 2a 2f 0d 0a 20 20 20 | 2f 2a 20 6d 61 6a 6f 72 | */.. |/* major|
|000014a0| 20 61 6e 64 20 6d 69 6e | 6f 72 20 74 69 63 73 20 | and min|or tics |
|000014b0| 2a 2f 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |*/.. | |
|000014c0| 20 20 20 20 20 20 20 0d | 0a 20 20 20 64 6f 75 62 | .|. doub|
|000014d0| 6c 65 20 6d 61 6a 6f 72 | 74 69 63 2c 6d 69 6e 6f |le major|tic,mino|
|000014e0| 72 74 69 63 3b 0d 0a 20 | 20 20 6d 61 6a 6f 72 74 |rtic;.. | majort|
|000014f0| 69 63 3d 30 2e 32 35 3b | 20 20 0d 0a 20 20 20 6d |ic=0.25;| .. m|
|00001500| 69 6e 6f 72 74 69 63 3d | 30 2e 31 37 3b 20 20 0d |inortic=|0.17; .|
|00001510| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001520| 20 20 20 20 0d 0a 20 20 | 20 2f 2a 20 73 65 74 20 | .. | /* set |
|00001530| 75 70 20 73 6f 6d 65 20 | 64 65 66 61 75 6c 74 20 |up some |default |
|00001540| 76 61 6c 75 65 73 20 2a | 2f 0d 0a 20 20 20 20 20 |values *|/.. |
|00001550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0d 0a | | ..|
|00001560| 20 20 20 73 65 74 28 46 | 4f 4e 54 41 53 50 45 43 | set(F|ONTASPEC|
|00001570| 54 2c 31 2e 32 29 3b 0d | 0a 20 20 20 73 65 74 28 |T,1.2);.|. set(|
|00001580| 46 4f 4e 54 57 49 44 54 | 48 2c 30 2e 38 29 3b 0d |FONTWIDT|H,0.8);.|
|00001590| 0a 20 20 20 73 65 74 28 | 4c 49 4e 45 43 4f 4c 4f |. set(|LINECOLO|
|000015a0| 55 52 2c 42 4c 41 43 4b | 29 3b 0d 0a 20 20 20 73 |UR,BLACK|);.. s|
|000015b0| 65 74 28 41 58 45 53 43 | 4c 49 50 2c 4f 4e 29 3b |et(AXESC|LIP,ON);|
|000015c0| 0d 0a 20 20 20 73 65 74 | 28 4c 49 4e 45 57 49 44 |.. set|(LINEWID|
|000015d0| 54 48 2c 30 2e 30 39 29 | 3b 0d 0a 20 20 20 73 65 |TH,0.09)|;.. se|
|000015e0| 74 28 50 4c 4f 54 54 59 | 50 45 2c 4c 49 4e 45 53 |t(PLOTTY|PE,LINES|
|000015f0| 29 3b 0d 0a 0d 0a 20 20 | 20 2f 2a 20 6c 6f 61 64 |);.... | /* load|
|00001600| 20 69 6e 20 74 68 65 20 | 64 61 74 61 20 2a 2f 0d | in the |data */.|
|00001610| 0a 0d 0a 20 20 20 72 65 | 61 64 64 61 74 61 28 22 |... re|addata("|
|00001620| 64 65 6d 6f 5c 34 6b 63 | 2e 64 61 74 22 2c 70 6c |demo\4kc|.dat",pl|
|00001630| 64 61 74 61 31 29 3b 0d | 0a 20 20 20 72 65 61 64 |data1);.|. read|
|00001640| 64 61 74 61 28 22 64 65 | 6d 6f 5c 31 35 6b 63 2e |data("de|mo\15kc.|
|00001650| 64 61 74 22 2c 70 6c 64 | 61 74 61 32 29 3b 0d 0a |dat",pld|ata2);..|
|00001660| 20 20 20 72 65 61 64 64 | 61 74 61 28 22 64 65 6d | readd|ata("dem|
|00001670| 6f 5c 33 35 6b 63 2e 64 | 61 74 22 2c 70 6c 64 61 |o\35kc.d|at",plda|
|00001680| 74 61 33 29 3b 0d 0a 20 | 20 20 72 65 61 64 64 61 |ta3);.. | readda|
|00001690| 74 61 28 22 64 65 6d 6f | 5c 34 35 6b 63 2e 64 61 |ta("demo|\45kc.da|
|000016a0| 74 22 2c 70 6c 64 61 74 | 61 34 29 3b 0d 0a 20 20 |t",pldat|a4);.. |
|000016b0| 20 72 65 61 64 64 61 74 | 61 28 22 64 65 6d 6f 5c | readdat|a("demo\|
|000016c0| 36 30 6b 63 2e 64 61 74 | 22 2c 70 6c 64 61 74 61 |60kc.dat|",pldata|
|000016d0| 35 29 3b 0d 0a 0d 0a 20 | 20 20 2f 2a 20 64 65 66 |5);.... | /* def|
|000016e0| 69 6e 65 20 61 6e 20 61 | 78 69 73 20 62 6f 78 20 |ine an a|xis box |
|000016f0| 2a 2f 0d 0a 0d 0a 20 20 | 20 61 78 65 73 5f 62 6f |*/.... | axes_bo|
|00001700| 78 28 31 33 2c 31 39 2c | 37 36 35 30 2c 2d 33 30 |x(13,19,|7650,-30|
|00001710| 30 30 2c 37 39 35 30 2c | 31 32 35 30 30 30 29 3b |00,7950,|125000);|
|00001720| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00001730| 20 20 20 20 20 0d 0a 20 | 20 20 2f 2a 20 73 65 74 | .. | /* set|
|00001740| 20 75 70 20 73 6f 6d 65 | 20 6d 61 6a 6f 72 20 74 | up some| major t|
|00001750| 69 63 73 2a 2f 20 0d 0a | 0d 0a 20 20 20 73 65 74 |ics*/ ..|.. set|
|00001760| 28 54 49 43 4b 4c 45 4e | 47 54 48 2c 6d 61 6a 6f |(TICKLEN|GTH,majo|
|00001770| 72 74 69 63 29 3b 0d 0a | 0d 0a 20 20 20 2f 2a 20 |rtic);..|.. /* |
|00001780| 66 6f 72 20 74 68 65 20 | 78 2d 61 78 69 73 20 20 |for the |x-axis |
|00001790| 20 20 2a 2f 20 20 0d 0a | 0d 0a 20 20 20 74 69 63 | */ ..|.. tic|
|000017a0| 6b 6d 61 72 6b 73 28 58 | 41 58 45 53 2c 37 37 30 |kmarks(X|AXES,770|
|000017b0| 30 2c 37 38 30 30 2c 37 | 39 30 30 29 3b 0d 0a 0d |0,7800,7|900);...|
|000017c0| 0a 20 20 20 2f 2a 20 66 | 6f 72 20 74 68 65 20 79 |. /* f|or the y|
|000017d0| 2d 61 78 69 73 20 20 20 | 20 2a 2f 20 20 0d 0a 20 |-axis | */ .. |
|000017e0| 20 20 2f 2a 20 6e 6f 74 | 65 20 6f 6e 6c 79 20 64 | /* not|e only d|
|000017f0| 65 6e 6f 74 69 6e 67 20 | 74 68 65 20 7a 65 72 6f |enoting |the zero|
|00001800| 20 70 6f 69 6e 74 0d 0a | 20 20 20 66 6f 72 20 65 | point..| for e|
|00001810| 61 63 68 20 63 75 72 76 | 65 20 2a 2f 0d 0a 0d 0a |ach curv|e */....|
|00001820| 20 20 20 74 69 63 6b 6d | 61 72 6b 73 28 59 41 58 | tickm|arks(YAX|
|00001830| 45 53 2c 30 2c 35 30 30 | 30 2c 31 30 30 30 30 2c |ES,0,500|0,10000,|
|00001840| 31 35 30 30 30 2c 32 30 | 30 30 30 29 3b 0d 0a 0d |15000,20|000);...|
|00001850| 0a 20 20 20 2f 2a 20 73 | 65 74 20 75 70 20 73 6f |. /* s|et up so|
|00001860| 6d 65 20 6d 69 6e 6f 72 | 20 74 69 63 73 20 2a 2f |me minor| tics */|
|00001870| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001880| 20 0d 0a 0d 0a 20 20 20 | 73 65 74 28 4c 49 4e 45 | .... |set(LINE|
|00001890| 57 49 44 54 48 2c 30 2e | 30 35 29 3b 0d 0a 20 20 |WIDTH,0.|05);.. |
|000018a0| 20 73 65 74 28 54 49 43 | 4b 4c 45 4e 47 54 48 2c | set(TIC|KLENGTH,|
|000018b0| 6d 69 6e 6f 72 74 69 63 | 29 3b 0d 0a 0d 0a 20 20 |minortic|);.... |
|000018c0| 20 2f 2a 20 66 6f 72 20 | 74 68 65 20 78 20 61 78 | /* for |the x ax|
|000018d0| 69 73 20 2a 2f 0d 0a 0d | 0a 20 20 20 74 69 63 6b |is */...|. tick|
|000018e0| 6d 61 72 6b 73 28 58 41 | 58 45 53 2c 37 36 37 35 |marks(XA|XES,7675|
|000018f0| 2c 37 37 32 35 2c 37 37 | 35 30 2c 37 37 37 35 2c |,7725,77|50,7775,|
|00001900| 37 38 32 35 2c 37 38 35 | 30 2c 37 38 37 35 2c 37 |7825,785|0,7875,7|
|00001910| 39 32 35 29 3b 0d 0a 0d | 0a 20 20 20 2f 2a 20 70 |925);...|. /* p|
|00001920| 6c 61 63 65 20 73 6f 6d | 65 20 74 69 63 6b 6c 61 |lace som|e tickla|
|00001930| 62 65 6c 73 20 6f 6e 20 | 74 68 65 20 61 78 65 73 |bels on |the axes|
|00001940| 20 2a 2f 0d 0a 0d 0a 20 | 20 20 74 69 63 6b 6c 61 | */.... | tickla|
|00001950| 62 65 6c 28 42 4f 54 54 | 4f 4d 29 3b 0d 0a 20 20 |bel(BOTT|OM);.. |
|00001960| 20 74 69 63 6b 6c 61 62 | 65 6c 28 52 49 47 48 54 | ticklab|el(RIGHT|
|00001970| 2c 30 2c 22 20 34 4b 22 | 2c 35 30 30 30 2c 22 31 |,0," 4K"|,5000,"1|
|00001980| 35 4b 22 2c 31 30 30 30 | 30 2c 22 33 35 4b 22 2c |5K",1000|0,"35K",|
|00001990| 31 35 30 30 30 2c 22 34 | 35 4b 22 2c 32 30 30 30 |15000,"4|5K",2000|
|000019a0| 30 2c 22 36 30 4b 22 29 | 3b 0d 0a 0d 0a 20 20 20 |0,"60K")|;.... |
|000019b0| 20 2f 2a 20 70 6c 61 63 | 65 20 73 6f 6d 65 20 6c | /* plac|e some l|
|000019c0| 61 62 65 6c 73 20 6f 6e | 20 74 68 65 20 61 78 65 |abels on| the axe|
|000019d0| 73 20 2a 2f 0d 0a 0d 0a | 20 20 20 6c 61 62 65 6c |s */....| label|
|000019e0| 28 42 4f 54 54 4f 4d 2c | 22 50 68 6f 74 6f 6e 20 |(BOTTOM,|"Photon |
|000019f0| 45 6e 65 72 67 79 20 28 | 63 6d 5e 2d 31 5e 29 22 |Energy (|cm^-1^)"|
|00001a00| 29 3b 0d 0a 20 20 20 6c | 61 62 65 6c 28 4c 45 46 |);.. l|abel(LEF|
|00001a10| 54 2c 22 50 4c 20 49 6e | 74 65 6e 73 69 74 79 22 |T,"PL In|tensity"|
|00001a20| 29 3b 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0d |); | .|
|00001a30| 0a 0d 0a 20 20 20 2f 2a | 20 70 6c 61 63 65 20 73 |... /*| place s|
|00001a40| 6f 6d 65 20 63 6f 6d 6d | 65 6e 74 73 20 69 6e 20 |ome comm|ents in |
|00001a50| 74 68 65 20 66 69 67 75 | 72 65 20 2a 2f 0d 0a 0d |the figu|re */...|
|00001a60| 0a 20 20 20 74 65 78 74 | 28 33 2e 39 38 2c 32 31 |. text|(3.98,21|
|00001a70| 2e 31 31 2c 22 43 5f 36 | 30 5f 3a 5e 31 36 5e 4f |.11,"C_6|0_:^16^O|
|00001a80| 5f 32 5f 22 29 3b 0d 0a | 20 20 20 74 65 78 74 28 |_2_");..| text(|
|00001a90| 31 31 2e 31 30 2c 32 31 | 2e 31 31 2c 22 21 6c 21 |11.10,21|.11,"!l!|
|00001aa0| 5f 65 78 5f 3d 37 31 30 | 6e 6d 22 29 3b 0d 0a 0d |_ex_=710|nm");...|
|00001ab0| 0a 20 20 20 2f 2a 20 70 | 75 74 20 74 68 65 20 64 |. /* p|ut the d|
|00001ac0| 61 74 61 20 69 6e 74 6f | 20 74 68 65 20 70 69 63 |ata into| the pic|
|00001ad0| 74 75 72 65 20 2a 2f 0d | 0a 0d 0a 20 20 20 64 72 |ture */.|... dr|
|00001ae0| 61 77 64 61 74 61 28 70 | 6c 64 61 74 61 31 29 3b |awdata(p|ldata1);|
|00001af0| 0d 0a 20 20 20 20 20 20 | 20 20 20 0d 0a 20 20 20 |.. | .. |
|00001b00| 73 65 74 28 59 53 48 49 | 46 54 2c 35 30 30 30 29 |set(YSHI|FT,5000)|
|00001b10| 3b 0d 0a 20 20 20 64 72 | 61 77 64 61 74 61 28 70 |;.. dr|awdata(p|
|00001b20| 6c 64 61 74 61 32 29 3b | 0d 0a 20 20 20 73 65 74 |ldata2);|.. set|
|00001b30| 28 59 53 48 49 46 54 2c | 31 30 30 30 30 29 3b 0d |(YSHIFT,|10000);.|
|00001b40| 0a 20 20 20 64 72 61 77 | 64 61 74 61 28 70 6c 64 |. draw|data(pld|
|00001b50| 61 74 61 33 29 3b 0d 0a | 20 20 20 73 65 74 28 59 |ata3);..| set(Y|
|00001b60| 53 48 49 46 54 2c 31 35 | 30 30 30 29 3b 0d 0a 20 |SHIFT,15|000);.. |
|00001b70| 20 20 64 72 61 77 64 61 | 74 61 28 70 6c 64 61 74 | drawda|ta(pldat|
|00001b80| 61 34 29 3b 0d 0a 20 20 | 20 73 65 74 28 59 53 48 |a4);.. | set(YSH|
|00001b90| 49 46 54 2c 32 30 30 30 | 30 29 3b 0d 0a 20 20 20 |IFT,2000|0);.. |
|00001ba0| 64 72 61 77 64 61 74 61 | 28 70 6c 64 61 74 61 35 |drawdata|(pldata5|
|00001bb0| 29 3b 0d 0a 20 20 20 7d | 0d 0a 5c 65 6e 64 7b 76 |);.. }|..\end{v|
|00001bc0| 65 72 62 61 74 69 6d 7d | 0d 0a 7d 0d 0a 0d 0a 5c |erbatim}|..}....\|
|00001bd0| 6e 65 77 70 61 67 65 0d | 0a 5c 69 6e 64 65 78 7b |newpage.|.\index{|
|00001be0| 61 78 65 73 2c 20 69 6e | 76 69 73 69 62 6c 65 20 |axes, in|visible |
|00001bf0| 65 78 61 6d 70 6c 65 7d | 0d 0a 5c 73 65 63 74 69 |example}|..\secti|
|00001c00| 6f 6e 7b 69 6e 76 69 73 | 61 78 2e 73 70 74 7d 20 |on{invis|ax.spt} |
|00001c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c50| 20 20 0d 0a 0d 0a 5c 76 | 73 70 61 63 65 2a 7b 31 | ....\v|space*{1|
|00001c60| 36 2e 35 63 6d 7d 0d 0a | 5c 73 70 65 63 69 61 6c |6.5cm}..|\special|
|00001c70| 7b 70 73 66 69 6c 65 3d | 69 6e 76 69 73 61 78 2e |{psfile=|invisax.|
|00001c80| 65 70 73 20 68 73 63 61 | 6c 65 3d 36 30 20 76 73 |eps hsca|le=60 vs|
|00001c90| 63 61 6c 65 3d 36 30 20 | 68 6f 66 66 73 65 74 3d |cale=60 |hoffset=|
|00001ca0| 35 30 20 76 6f 66 66 73 | 65 74 3d 2d 35 30 7d 0d |50 voffs|et=-50}.|
|00001cb0| 0a 0d 0a 7b 5c 74 74 0d | 0a 5c 62 65 67 69 6e 7b |...{\tt.|.\begin{|
|00001cc0| 76 65 72 62 61 74 69 6d | 7d 0d 0a 2f 2a 20 54 68 |verbatim|}../* Th|
|00001cd0| 69 73 20 65 78 61 6d 70 | 6c 65 20 73 68 6f 77 73 |is examp|le shows|
|00001ce0| 20 68 6f 77 20 69 6e 76 | 69 73 69 62 6c 65 20 61 | how inv|isible a|
|00001cf0| 78 65 73 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 |xes can |be used |
|00001d00| 74 6f 20 65 73 74 61 62 | 6c 69 73 68 20 2a 2f 0d |to estab|lish */.|
|00001d10| 0a 2f 2a 20 61 6e 20 61 | 6c 74 65 72 6e 61 74 65 |./* an a|lternate|
|00001d20| 20 63 6f 6f 72 64 69 6e | 61 74 65 20 73 79 73 74 | coordin|ate syst|
|00001d30| 65 6d 20 61 6e 64 20 73 | 74 69 6c 6c 20 75 73 65 |em and s|till use|
|00001d40| 20 74 68 65 20 64 72 61 | 77 64 61 74 61 20 66 75 | the dra|wdata fu|
|00001d50| 6e 63 74 69 6f 6e 20 2a | 2f 0d 0a 2f 2a 20 74 6f |nction *|/../* to|
|00001d60| 20 64 72 61 77 20 74 68 | 65 20 63 75 72 76 65 73 | draw th|e curves|
|00001d70| 20 2a 2f 0d 0a 0d 0a 2f | 2a 64 72 61 77 73 20 71 | */..../|*draws q|
|00001d80| 75 61 6e 74 75 6d 20 77 | 65 6c 6c 73 20 61 6e 64 |uantum w|ells and|
|00001d90| 20 77 61 76 65 20 66 75 | 6e 63 74 69 6f 6e 73 20 | wave fu|nctions |
|00001da0| 2a 2f 0d 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 70 |*/..#inc|lude <sp|
|00001db0| 6c 6f 74 2e 68 3e 0d 0a | 64 6f 75 62 6c 65 20 2a |lot.h>..|double *|
|00001dc0| 64 61 74 61 31 3b 0d 0a | 64 6f 75 62 6c 65 20 2a |data1;..|double *|
|00001dd0| 64 61 74 61 32 3b 0d 0a | 64 6f 75 62 6c 65 20 2a |data2;..|double *|
|00001de0| 64 61 74 61 33 3b 0d 0a | 64 6f 75 62 6c 65 20 2a |data3;..|double *|
|00001df0| 64 61 74 61 34 3b 0d 0a | 64 6f 75 62 6c 65 20 2a |data4;..|double *|
|00001e00| 64 61 74 61 35 3b 0d 0a | 6d 61 69 6e 28 29 20 0d |data5;..|main() .|
|00001e10| 0a 20 20 20 7b 20 20 20 | 20 20 0d 0a 20 20 20 73 |. { | .. s|
|00001e20| 65 74 28 4c 49 4e 45 43 | 4f 4c 4f 55 52 2c 49 4e |et(LINEC|OLOUR,IN|
|00001e30| 56 49 53 29 3b 0d 0a 20 | 20 20 73 65 74 28 46 4f |VIS);.. | set(FO|
|00001e40| 4e 54 57 49 44 54 48 2c | 30 2e 36 29 3b 0d 0a 20 |NTWIDTH,|0.6);.. |
|00001e50| 20 20 73 65 74 28 46 4f | 4e 54 41 53 50 45 43 54 | set(FO|NTASPECT|
|00001e60| 2c 31 2e 34 29 3b 0d 0a | 20 20 20 73 65 74 28 4c |,1.4);..| set(L|
|00001e70| 49 4e 45 57 49 44 54 48 | 2c 30 2e 30 32 29 3b 0d |INEWIDTH|,0.02);.|
|00001e80| 0a 20 20 20 2f 2a 20 72 | 65 61 64 20 69 6e 20 64 |. /* r|ead in d|
|00001e90| 61 74 61 20 67 65 6e 65 | 72 61 74 65 64 20 62 79 |ata gene|rated by|
|00001ea0| 20 4d 61 74 68 65 6d 61 | 74 69 63 61 20 2a 2f 0d | Mathema|tica */.|
|00001eb0| 0a 20 20 20 72 65 61 64 | 64 61 74 61 28 22 64 65 |. read|data("de|
|00001ec0| 6d 6f 5c 63 64 71 77 5f | 77 66 63 2e 64 61 74 22 |mo\cdqw_|wfc.dat"|
|00001ed0| 2c 64 61 74 61 31 29 3b | 0d 0a 20 20 20 72 65 61 |,data1);|.. rea|
|00001ee0| 64 64 61 74 61 28 22 64 | 65 6d 6f 5c 63 64 71 77 |ddata("d|emo\cdqw|
|00001ef0| 5f 77 66 63 2e 64 61 32 | 22 2c 64 61 74 61 32 29 |_wfc.da2|",data2)|
|00001f00| 3b 0d 0a 20 20 20 72 65 | 61 64 64 61 74 61 28 22 |;.. re|addata("|
|00001f10| 64 65 6d 6f 5c 63 64 71 | 77 5f 77 66 63 2e 64 61 |demo\cdq|w_wfc.da|
|00001f20| 33 22 2c 64 61 74 61 33 | 29 3b 0d 0a 20 20 20 72 |3",data3|);.. r|
|00001f30| 65 61 64 64 61 74 61 28 | 22 64 65 6d 6f 5c 63 64 |eaddata(|"demo\cd|
|00001f40| 71 77 5f 77 66 63 2e 64 | 61 34 22 2c 64 61 74 61 |qw_wfc.d|a4",data|
|00001f50| 34 29 3b 0d 0a 20 20 20 | 72 65 61 64 64 61 74 61 |4);.. |readdata|
|00001f60| 28 22 64 65 6d 6f 5c 63 | 64 71 77 5f 77 66 63 2e |("demo\c|dqw_wfc.|
|00001f70| 64 61 35 22 2c 64 61 74 | 61 35 29 3b 0d 0a 20 20 |da5",dat|a5);.. |
|00001f80| 20 2f 2a 20 64 72 61 77 | 69 6e 67 20 74 75 72 6e | /* draw|ing turn|
|00001f90| 65 64 20 6f 75 74 20 74 | 6f 6f 20 62 69 67 20 73 |ed out t|oo big s|
|00001fa0| 6f 20 72 65 64 75 63 65 | 20 74 68 65 20 6f 76 65 |o reduce| the ove|
|00001fb0| 72 61 6c 6c 20 73 69 7a | 65 20 2a 2f 0d 0a 20 20 |rall siz|e */.. |
|00001fc0| 20 73 63 61 6c 65 28 30 | 2e 37 2c 30 2e 36 35 29 | scale(0|.7,0.65)|
|00001fd0| 3b 0d 0a 20 20 20 67 73 | 61 76 65 28 29 3b 0d 0a |;.. gs|ave();..|
|00001fe0| 20 20 20 61 78 65 73 5f | 62 6f 78 28 38 2c 31 35 | axes_|box(8,15|
|00001ff0| 2c 2d 31 38 35 2c 30 2e | 30 2c 31 38 35 2c 31 38 |,-185,0.|0,185,18|
|00002000| 38 2e 33 36 29 3b 0d 0a | 20 20 20 73 65 74 28 4c |8.36);..| set(L|
|00002010| 49 4e 45 43 4f 4c 4f 55 | 52 2c 42 4c 41 43 4b 29 |INECOLOU|R,BLACK)|
|00002020| 3b 0d 0a 20 20 20 74 72 | 61 6e 73 6c 61 74 65 28 |;.. tr|anslate(|
|00002030| 2d 31 2e 32 35 2c 32 32 | 2e 35 29 3b 0d 0a 20 20 |-1.25,22|.5);.. |
|00002040| 20 2f 2a 20 65 76 65 6e | 20 73 6f 6c 6e 73 20 74 | /* even| solns t|
|00002050| 6f 20 63 64 71 77 20 2a | 2f 0d 0a 20 20 20 2f 2a |o cdqw *|/.. /*|
|00002060| 20 20 20 6e 6f 72 6d 20 | 3d 20 31 2e 30 2f 30 2e | norm |= 1.0/0.|
|00002070| 30 30 30 30 39 31 33 34 | 20 2a 20 36 30 2e 30 3b |00009134| * 60.0;|
|00002080| 20 2a 2f 20 0d 0a 20 20 | 20 73 65 74 28 59 4d 55 | */ .. | set(YMU|
|00002090| 4c 54 2c 36 35 36 38 38 | 36 2e 29 3b 0d 0a 20 20 |LT,65688|6.);.. |
|000020a0| 20 73 65 74 28 59 53 48 | 49 46 54 2c 39 2e 31 33 | set(YSH|IFT,9.13|
|000020b0| 38 36 33 29 3b 0d 0a 20 | 20 20 64 72 61 77 64 61 |863);.. | drawda|
|000020c0| 74 61 28 64 61 74 61 31 | 29 3b 0d 0a 20 20 20 2f |ta(data1|);.. /|
|000020d0| 2a 20 20 20 6e 6f 72 6d | 20 3d 20 31 2f 2e 30 30 |* norm| = 1/.00|
|000020e0| 30 32 38 33 38 20 2a 20 | 36 30 2e 30 3b 20 20 2a |02838 * |60.0; *|
|000020f0| 2f 0d 0a 20 20 20 73 65 | 74 28 59 4d 55 4c 54 2c |/.. se|t(YMULT,|
|00002100| 32 31 31 34 31 36 2e 29 | 3b 0d 0a 20 20 20 73 65 |211416.)|;.. se|
|00002110| 74 28 59 53 48 49 46 54 | 2c 33 35 2e 38 38 35 38 |t(YSHIFT|,35.8858|
|00002120| 29 3b 0d 0a 20 20 20 64 | 72 61 77 64 61 74 61 28 |);.. d|rawdata(|
|00002130| 64 61 74 61 31 2c 30 2c | 33 29 3b 0d 0a 20 20 20 |data1,0,|3);.. |
|00002140| 2f 2a 20 20 20 6e 6f 72 | 6d 20 3d 20 31 2f 30 2e |/* nor|m = 1/0.|
|00002150| 30 30 38 31 30 39 20 2a | 20 36 30 2e 30 3b 2a 2f |008109 *| 60.0;*/|
|00002160| 0d 0a 20 20 20 73 65 74 | 28 59 4d 55 4c 54 2c 37 |.. set|(YMULT,7|
|00002170| 34 30 30 2e 29 3b 0d 0a | 20 20 20 73 65 74 28 59 |400.);..| set(Y|
|00002180| 53 48 49 46 54 2c 37 37 | 2e 30 35 33 32 29 3b 0d |SHIFT,77|.0532);.|
|00002190| 0a 20 20 20 64 72 61 77 | 64 61 74 61 28 64 61 74 |. draw|data(dat|
|000021a0| 61 33 29 3b 0d 0a 20 20 | 20 2f 2a 20 63 61 6c 6c |a3);.. | /* call|
|000021b0| 20 73 75 62 72 6f 75 74 | 69 6e 65 20 74 6f 20 64 | subrout|ine to d|
|000021c0| 72 61 77 20 71 75 61 6e | 74 75 6d 20 77 65 6c 6c |raw quan|tum well|
|000021d0| 2e 20 41 6c 73 6f 20 73 | 65 74 73 20 63 6f 6f 72 |. Also s|ets coor|
|000021e0| 64 69 6e 61 74 65 20 73 | 63 61 6c 65 20 74 6f 20 |dinate s|cale to |
|000021f0| 6d 61 74 63 68 2a 2f 0d | 0a 20 20 20 73 5f 71 77 |match*/.|. s_qw|
|00002200| 5f 62 6f 78 28 29 3b 0d | 0a 20 20 20 2f 2a 20 65 |_box();.|. /* e|
|00002210| 6e 65 72 67 79 20 65 69 | 67 65 6e 76 61 6c 75 65 |nergy ei|genvalue|
|00002220| 73 20 2a 2f 0d 0a 20 20 | 20 6d 6f 76 65 74 6f 28 |s */.. | moveto(|
|00002230| 2d 31 39 30 2c 39 2e 31 | 33 38 36 33 29 3b 0d 0a |-190,9.1|3863);..|
|00002240| 20 20 20 6c 69 6e 65 74 | 6f 28 31 39 30 2c 39 2e | linet|o(190,9.|
|00002250| 31 33 38 36 33 29 3b 0d | 0a 20 20 20 6d 6f 76 65 |13863);.|. move|
|00002260| 74 6f 28 2d 31 39 30 2c | 33 35 2e 38 38 35 38 29 |to(-190,|35.8858)|
|00002270| 3b 0d 0a 20 20 20 6c 69 | 6e 65 74 6f 28 31 39 30 |;.. li|neto(190|
|00002280| 2c 33 35 2e 38 38 35 38 | 29 3b 0d 0a 20 20 20 6d |,35.8858|);.. m|
|00002290| 6f 76 65 74 6f 28 2d 31 | 39 30 2c 37 37 2e 30 35 |oveto(-1|90,77.05|
|000022a0| 33 32 29 3b 0d 0a 20 20 | 20 6c 69 6e 65 74 6f 28 |32);.. | lineto(|
|000022b0| 31 39 30 2c 37 37 2e 30 | 35 33 32 29 3b 0d 0a 20 |190,77.0|532);.. |
|000022c0| 20 20 73 74 72 6f 6b 65 | 28 29 3b 0d 0a 20 20 20 | stroke|();.. |
|000022d0| 74 65 78 74 28 32 30 35 | 2c 39 2e 31 33 38 36 33 |text(205|,9.13863|
|000022e0| 2c 22 45 5f 30 5f 22 29 | 3b 0d 0a 20 20 20 74 65 |,"E_0_")|;.. te|
|000022f0| 78 74 28 32 30 35 2c 33 | 35 2e 38 38 35 38 2c 22 |xt(205,3|5.8858,"|
|00002300| 45 5f 32 5f 22 29 3b 0d | 0a 20 20 20 74 65 78 74 |E_2_");.|. text|
|00002310| 28 32 30 35 2c 37 37 2e | 30 35 33 32 2c 22 45 5f |(205,77.|0532,"E_|
|00002320| 34 5f 22 29 3b 0d 0a 20 | 20 20 74 65 78 74 28 30 |4_");.. | text(0|
|00002330| 2c 2d 31 35 2c 22 61 29 | 20 43 44 51 57 2c 20 65 |,-15,"a)| CDQW, e|
|00002340| 76 65 6e 20 73 6f 6c 75 | 74 69 6f 6e 73 22 2c 43 |ven solu|tions",C|
|00002350| 45 4e 54 45 52 29 3b 0d | 0a 20 20 20 67 72 65 73 |ENTER);.|. gres|
|00002360| 74 6f 72 65 28 29 3b 0d | 0a 20 20 20 2f 2a 20 6f |tore();.|. /* o|
|00002370| 64 64 20 73 6f 6c 6e 73 | 20 74 6f 20 63 64 71 77 |dd solns| to cdqw|
|00002380| 20 2a 2f 0d 0a 20 20 20 | 73 65 74 28 4c 49 4e 45 | */.. |set(LINE|
|00002390| 43 4f 4c 4f 55 52 2c 49 | 4e 56 49 53 29 3b 0d 0a |COLOUR,I|NVIS);..|
|000023a0| 20 20 20 67 73 61 76 65 | 28 29 3b 0d 0a 20 20 20 | gsave|();.. |
|000023b0| 61 78 65 73 5f 62 6f 78 | 28 38 2c 31 35 2c 2d 31 |axes_box|(8,15,-1|
|000023c0| 38 35 2c 30 2e 30 2c 31 | 38 35 2c 31 38 38 2e 33 |85,0.0,1|85,188.3|
|000023d0| 36 29 3b 0d 0a 20 20 20 | 73 65 74 28 4c 49 4e 45 |6);.. |set(LINE|
|000023e0| 43 4f 4c 4f 55 52 2c 42 | 4c 41 43 4b 29 3b 0d 0a |COLOUR,B|LACK);..|
|000023f0| 20 20 20 74 72 61 6e 73 | 6c 61 74 65 28 31 31 2c | trans|late(11,|
|00002400| 32 32 2e 35 29 3b 0d 0a | 20 20 20 73 65 74 28 59 |22.5);..| set(Y|
|00002410| 4d 55 4c 54 2c 36 35 36 | 38 38 36 2e 29 3b 0d 0a |MULT,656|886.);..|
|00002420| 20 20 20 73 65 74 28 59 | 53 48 49 46 54 2c 39 2e | set(Y|SHIFT,9.|
|00002430| 31 34 31 38 36 29 3b 0d | 0a 20 20 20 64 72 61 77 |14186);.|. draw|
|00002440| 64 61 74 61 28 64 61 74 | 61 31 2c 30 2c 32 29 3b |data(dat|a1,0,2);|
|00002450| 0d 0a 20 20 20 73 65 74 | 28 59 4d 55 4c 54 2c 32 |.. set|(YMULT,2|
|00002460| 31 31 34 31 36 2e 29 3b | 0d 0a 20 20 20 73 65 74 |11416.);|.. set|
|00002470| 28 59 53 48 49 46 54 2c | 33 35 2e 39 31 37 37 29 |(YSHIFT,|35.9177)|
|00002480| 3b 0d 0a 20 20 20 64 72 | 61 77 64 61 74 61 28 64 |;.. dr|awdata(d|
|00002490| 61 74 61 31 2c 30 2c 34 | 29 3b 0d 0a 20 20 20 73 |ata1,0,4|);.. s|
|000024a0| 65 74 28 59 4d 55 4c 54 | 2c 37 34 30 30 2e 29 3b |et(YMULT|,7400.);|
|000024b0| 0d 0a 20 20 20 73 65 74 | 28 59 53 48 49 46 54 2c |.. set|(YSHIFT,|
|000024c0| 37 37 2e 34 33 39 34 29 | 3b 0d 0a 20 20 20 64 72 |77.4394)|;.. dr|
|000024d0| 61 77 64 61 74 61 28 64 | 61 74 61 33 2c 30 2c 32 |awdata(d|ata3,0,2|
|000024e0| 29 3b 0d 0a 20 20 20 73 | 5f 71 77 5f 62 6f 78 28 |);.. s|_qw_box(|
|000024f0| 29 3b 0d 0a 20 20 20 2f | 2a 20 65 6e 65 72 67 79 |);.. /|* energy|
|00002500| 20 65 69 67 65 6e 76 61 | 6c 75 65 73 20 2a 2f 0d | eigenva|lues */.|
|00002510| 0a 20 20 20 6d 6f 76 65 | 74 6f 28 2d 31 39 30 2c |. move|to(-190,|
|00002520| 39 2e 31 34 31 38 36 29 | 3b 0d 0a 20 20 20 6c 69 |9.14186)|;.. li|
|00002530| 6e 65 74 6f 28 31 39 30 | 2c 39 2e 31 34 31 38 36 |neto(190|,9.14186|
|00002540| 29 3b 0d 0a 20 20 20 6d | 6f 76 65 74 6f 28 2d 31 |);.. m|oveto(-1|
|00002550| 39 30 2c 33 35 2e 39 31 | 37 37 29 3b 0d 0a 20 20 |90,35.91|77);.. |
|00002560| 20 6c 69 6e 65 74 6f 28 | 31 39 30 2c 33 35 2e 39 | lineto(|190,35.9|
|00002570| 31 37 37 29 3b 0d 0a 20 | 20 20 6d 6f 76 65 74 6f |177);.. | moveto|
|00002580| 28 2d 31 39 30 2c 37 37 | 2e 34 33 39 34 29 3b 0d |(-190,77|.4394);.|
|00002590| 0a 20 20 20 6c 69 6e 65 | 74 6f 28 31 39 30 2c 37 |. line|to(190,7|
|000025a0| 37 2e 34 33 39 34 29 3b | 0d 0a 20 20 20 73 74 72 |7.4394);|.. str|
|000025b0| 6f 6b 65 28 29 3b 0d 0a | 20 20 20 74 65 78 74 28 |oke();..| text(|
|000025c0| 2d 32 32 37 2c 39 2e 31 | 34 31 38 36 2c 22 45 5f |-227,9.1|4186,"E_|
|000025d0| 31 5f 22 29 3b 0d 0a 20 | 20 20 74 65 78 74 28 2d |1_");.. | text(-|
|000025e0| 32 32 37 2c 33 35 2e 39 | 31 37 37 2c 22 45 5f 33 |227,35.9|177,"E_3|
|000025f0| 5f 22 29 3b 0d 0a 20 20 | 20 74 65 78 74 28 2d 32 |_");.. | text(-2|
|00002600| 32 37 2c 37 37 2e 34 33 | 39 34 2c 22 45 5f 35 5f |27,77.43|94,"E_5_|
|00002610| 22 29 3b 0d 0a 20 20 20 | 74 65 78 74 28 32 31 37 |");.. |text(217|
|00002620| 2e 2c 35 33 2e 2c 22 31 | 30 37 6d 65 56 22 2c 43 |.,53.,"1|07meV",C|
|00002630| 45 4e 54 45 52 29 3b 0d | 0a 20 20 20 74 65 78 74 |ENTER);.|. text|
|00002640| 28 30 2c 31 32 30 2c 22 | 39 20 6e 6d 22 2c 43 45 |(0,120,"|9 nm",CE|
|00002650| 4e 54 45 52 29 3b 0d 0a | 20 20 20 74 65 78 74 28 |NTER);..| text(|
|00002660| 30 2c 2d 31 35 2c 22 62 | 29 20 43 44 51 57 2c 20 |0,-15,"b|) CDQW, |
|00002670| 6f 64 64 20 73 6f 6c 75 | 74 69 6f 6e 73 22 2c 43 |odd solu|tions",C|
|00002680| 45 4e 54 45 52 29 3b 0d | 0a 20 20 20 67 72 65 73 |ENTER);.|. gres|
|00002690| 74 6f 72 65 28 29 3b 0d | 0a 20 20 20 2f 2a 61 73 |tore();.|. /*as|
|000026a0| 79 6d 6d 65 74 72 69 63 | 20 63 6f 75 70 6c 65 64 |ymmetric| coupled|
|000026b0| 20 77 65 6c 6c 73 20 2a | 2f 0d 0a 20 20 20 73 65 | wells *|/.. se|
|000026c0| 74 28 4c 49 4e 45 43 4f | 4c 4f 55 52 2c 49 4e 56 |t(LINECO|LOUR,INV|
|000026d0| 49 53 29 3b 0d 0a 20 20 | 20 67 73 61 76 65 28 29 |IS);.. | gsave()|
|000026e0| 3b 0d 0a 20 20 20 61 78 | 65 73 5f 62 6f 78 28 38 |;.. ax|es_box(8|
|000026f0| 2c 31 35 2c 2d 31 38 35 | 2c 30 2e 30 2c 31 38 35 |,15,-185|,0.0,185|
|00002700| 2c 31 38 38 2e 33 36 29 | 3b 0d 0a 20 20 20 73 65 |,188.36)|;.. se|
|00002710| 74 28 4c 49 4e 45 43 4f | 4c 4f 55 52 2c 42 4c 41 |t(LINECO|LOUR,BLA|
|00002720| 43 4b 29 3b 0d 0a 20 20 | 20 74 72 61 6e 73 6c 61 |CK);.. | transla|
|00002730| 74 65 28 35 2e 35 2c 32 | 2e 35 29 3b 0d 0a 20 20 |te(5.5,2|.5);.. |
|00002740| 20 73 65 74 28 59 4d 55 | 4c 54 2c 31 30 30 30 2e | set(YMU|LT,1000.|
|00002750| 29 3b 0d 0a 20 20 20 73 | 65 74 28 59 53 48 49 46 |);.. s|et(YSHIF|
|00002760| 54 2c 39 30 2e 32 33 29 | 3b 0d 0a 20 20 20 73 65 |T,90.23)|;.. se|
|00002770| 74 28 58 53 48 49 46 54 | 2c 2d 39 35 2e 29 3b 0d |t(XSHIFT|,-95.);.|
|00002780| 0a 20 20 20 64 72 61 77 | 64 61 74 61 28 64 61 74 |. draw|data(dat|
|00002790| 61 34 2c 30 2c 32 29 3b | 0d 0a 20 20 20 61 5f 71 |a4,0,2);|.. a_q|
|000027a0| 77 5f 62 6f 78 28 29 3b | 0d 0a 20 20 20 6d 6f 76 |w_box();|.. mov|
|000027b0| 65 74 6f 28 2d 31 39 35 | 2c 39 30 2e 32 33 29 3b |eto(-195|,90.23);|
|000027c0| 0d 0a 20 20 20 6c 69 6e | 65 74 6f 28 31 39 30 2c |.. lin|eto(190,|
|000027d0| 39 30 2e 32 33 29 3b 0d | 0a 20 20 20 73 74 72 6f |90.23);.|. stro|
|000027e0| 6b 65 28 29 3b 0d 0a 20 | 20 20 74 65 78 74 28 32 |ke();.. | text(2|
|000027f0| 31 35 2c 39 30 2e 32 33 | 2c 22 45 5f 32 5f 22 2c |15,90.23|,"E_2_",|
|00002800| 43 45 4e 54 45 52 29 3b | 0d 0a 20 20 20 74 65 78 |CENTER);|.. tex|
|00002810| 74 28 32 38 30 2c 39 30 | 2e 32 33 2c 22 52 65 73 |t(280,90|.23,"Res|
|00002820| 6f 6e 61 6e 63 65 22 29 | 3b 0d 0a 20 20 20 74 65 |onance")|;.. te|
|00002830| 78 74 28 2d 32 37 30 2e | 2c 31 30 34 2e 2c 22 31 |xt(-270.|,104.,"1|
|00002840| 38 38 20 6d 65 56 22 2c | 43 45 4e 54 45 52 29 3b |88 meV",|CENTER);|
|00002850| 0d 0a 20 20 20 67 72 65 | 73 74 6f 72 65 28 29 3b |.. gre|store();|
|00002860| 20 20 20 0d 0a 20 20 20 | 73 65 74 28 4c 49 4e 45 | .. |set(LINE|
|00002870| 43 4f 4c 4f 55 52 2c 49 | 4e 56 49 53 29 3b 0d 0a |COLOUR,I|NVIS);..|
|00002880| 20 20 20 67 73 61 76 65 | 28 29 3b 0d 0a 20 20 20 | gsave|();.. |
|00002890| 61 78 65 73 5f 62 6f 78 | 28 38 2c 31 35 2c 2d 31 |axes_box|(8,15,-1|
|000028a0| 38 35 2c 30 2e 30 2c 31 | 38 35 2c 31 38 38 2e 33 |85,0.0,1|85,188.3|
|000028b0| 36 29 3b 0d 0a 20 20 20 | 73 65 74 28 4c 49 4e 45 |6);.. |set(LINE|
|000028c0| 43 4f 4c 4f 55 52 2c 42 | 4c 41 43 4b 29 3b 0d 0a |COLOUR,B|LACK);..|
|000028d0| 20 20 20 74 72 61 6e 73 | 6c 61 74 65 28 35 2e 35 | trans|late(5.5|
|000028e0| 2c 32 2e 35 29 3b 0d 0a | 20 20 20 73 65 74 28 58 |,2.5);..| set(X|
|000028f0| 53 48 49 46 54 2c 2d 39 | 35 2e 29 3b 0d 0a 20 20 |SHIFT,-9|5.);.. |
|00002900| 20 73 65 74 28 59 4d 55 | 4c 54 2c 2d 38 30 2e 30 | set(YMU|LT,-80.0|
|00002910| 29 3b 0d 0a 20 20 20 73 | 65 74 28 59 53 48 49 46 |);.. s|et(YSHIF|
|00002920| 54 2c 31 30 2e 32 39 29 | 3b 0d 0a 20 20 20 64 72 |T,10.29)|;.. dr|
|00002930| 61 77 64 61 74 61 28 64 | 61 74 61 35 29 3b 0d 0a |awdata(d|ata5);..|
|00002940| 20 20 20 73 65 74 28 59 | 4d 55 4c 54 2c 2d 38 30 | set(Y|MULT,-80|
|00002950| 2e 30 29 3b 0d 0a 20 20 | 20 73 65 74 28 59 53 48 |.0);.. | set(YSH|
|00002960| 49 46 54 2c 34 30 2e 38 | 31 29 3b 0d 0a 20 20 20 |IFT,40.8|1);.. |
|00002970| 64 72 61 77 64 61 74 61 | 28 64 61 74 61 35 2c 30 |drawdata|(data5,0|
|00002980| 2c 32 29 3b 0d 0a 20 20 | 20 73 65 74 28 59 4d 55 |,2);.. | set(YMU|
|00002990| 4c 54 2c 2d 32 37 35 2e | 30 29 3b 0d 0a 20 20 20 |LT,-275.|0);.. |
|000029a0| 73 65 74 28 59 53 48 49 | 46 54 2c 31 35 34 2e 31 |set(YSHI|FT,154.1|
|000029b0| 36 29 3b 0d 0a 20 20 20 | 64 72 61 77 64 61 74 61 |6);.. |drawdata|
|000029c0| 28 64 61 74 61 35 2c 30 | 2c 33 29 3b 0d 0a 20 20 |(data5,0|,3);.. |
|000029d0| 20 73 65 74 28 59 53 48 | 49 46 54 2c 31 31 36 2e | set(YSH|IFT,116.|
|000029e0| 39 37 29 3b 0d 0a 20 20 | 20 73 65 74 28 59 4d 55 |97);.. | set(YMU|
|000029f0| 4c 54 2c 35 30 30 2e 30 | 29 3b 0d 0a 20 20 20 61 |LT,500.0|);.. a|
|00002a00| 5f 71 77 5f 62 6f 78 28 | 29 3b 20 0d 0a 20 20 20 |_qw_box(|); .. |
|00002a10| 6d 6f 76 65 74 6f 28 2d | 31 39 30 2c 31 30 2e 32 |moveto(-|190,10.2|
|00002a20| 39 29 3b 0d 0a 20 20 20 | 6c 69 6e 65 74 6f 28 31 |9);.. |lineto(1|
|00002a30| 39 30 2c 31 30 2e 32 39 | 29 3b 0d 0a 20 20 20 6d |90,10.29|);.. m|
|00002a40| 6f 76 65 74 6f 28 2d 31 | 39 30 2c 34 30 2e 38 31 |oveto(-1|90,40.81|
|00002a50| 29 3b 0d 0a 20 20 20 6c | 69 6e 65 74 6f 28 31 39 |);.. l|ineto(19|
|00002a60| 30 2c 34 30 2e 38 31 29 | 3b 0d 0a 20 20 20 6d 6f |0,40.81)|;.. mo|
|00002a70| 76 65 74 6f 28 2d 31 39 | 30 2c 31 35 34 2e 31 36 |veto(-19|0,154.16|
|00002a80| 29 3b 0d 0a 20 20 20 6c | 69 6e 65 74 6f 28 31 39 |);.. l|ineto(19|
|00002a90| 30 2c 31 35 34 2e 31 36 | 29 3b 0d 0a 20 20 20 73 |0,154.16|);.. s|
|00002aa0| 74 72 6f 6b 65 28 29 3b | 0d 0a 20 20 20 74 65 78 |troke();|.. tex|
|00002ab0| 74 28 32 31 35 2c 31 30 | 2e 32 39 2c 22 45 5f 30 |t(215,10|.29,"E_0|
|00002ac0| 5f 22 2c 43 45 4e 54 45 | 52 29 3b 0d 0a 20 20 20 |_",CENTE|R);.. |
|00002ad0| 74 65 78 74 28 32 31 35 | 2c 34 30 2e 38 31 2c 22 |text(215|,40.81,"|
|00002ae0| 45 5f 31 5f 22 2c 43 45 | 4e 54 45 52 29 3b 0d 0a |E_1_",CE|NTER);..|
|00002af0| 20 20 20 74 65 78 74 28 | 32 31 35 2c 31 35 34 2e | text(|215,154.|
|00002b00| 31 36 2c 22 45 5f 35 5f | 22 2c 43 45 4e 54 45 52 |16,"E_5_|",CENTER|
|00002b10| 29 3b 0d 0a 20 20 20 74 | 65 78 74 28 30 2c 32 30 |);.. t|ext(0,20|
|00002b20| 30 2c 22 63 29 20 41 73 | 79 6d 6d 65 74 72 69 63 |0,"c) As|ymmetric|
|00002b30| 20 43 44 51 57 22 2c 43 | 45 4e 54 45 52 29 3b 0d | CDQW",C|ENTER);.|
|00002b40| 0a 20 20 20 67 72 65 73 | 74 6f 72 65 28 29 3b 0d |. gres|tore();.|
|00002b50| 0a 20 20 20 73 65 74 28 | 4c 49 4e 45 43 4f 4c 4f |. set(|LINECOLO|
|00002b60| 55 52 2c 42 4c 41 43 4b | 29 3b 0d 0a 20 20 20 73 |UR,BLACK|);.. s|
|00002b70| 65 74 28 46 4f 4e 54 57 | 49 44 54 48 2c 31 2e 29 |et(FONTW|IDTH,1.)|
|00002b80| 3b 0d 0a 20 20 20 73 65 | 74 28 46 4f 4e 54 41 53 |;.. se|t(FONTAS|
|00002b90| 50 45 43 54 2c 32 2e 35 | 29 3b 0d 0a 20 20 20 6d |PECT,2.5|);.. m|
|00002ba0| 6f 76 65 74 6f 28 32 30 | 2e 39 31 2c 33 36 2e 39 |oveto(20|.91,36.9|
|00002bb0| 29 3b 0d 0a 20 20 20 61 | 72 72 6f 77 74 6f 28 32 |);.. a|rrowto(2|
|00002bc0| 30 2e 30 2c 33 36 2e 39 | 29 3b 0d 0a 20 20 20 6d |0.0,36.9|);.. m|
|00002bd0| 6f 76 65 74 6f 28 32 30 | 2e 39 31 2c 33 36 2e 39 |oveto(20|.91,36.9|
|00002be0| 29 3b 0d 0a 20 20 20 61 | 72 72 6f 77 74 6f 28 32 |);.. a|rrowto(2|
|00002bf0| 32 2e 30 2c 33 36 2e 39 | 29 3b 0d 0a 20 20 20 6d |2.0,36.9|);.. m|
|00002c00| 6f 76 65 74 6f 28 32 35 | 2e 35 2c 33 33 2e 30 32 |oveto(25|.5,33.02|
|00002c10| 29 3b 0d 0a 20 20 20 61 | 72 72 6f 77 74 6f 28 32 |);.. a|rrowto(2|
|00002c20| 35 2e 35 2c 33 36 2e 35 | 33 29 3b 0d 0a 20 20 20 |5.5,36.5|3);.. |
|00002c30| 6d 6f 76 65 74 6f 28 32 | 35 2e 35 2c 33 31 2e 37 |moveto(2|5.5,31.7|
|00002c40| 39 29 3b 0d 0a 20 20 20 | 61 72 72 6f 77 74 6f 28 |9);.. |arrowto(|
|00002c50| 32 35 2e 35 2c 32 37 2e | 39 35 29 3b 0d 0a 20 20 |25.5,27.|95);.. |
|00002c60| 20 6d 6f 76 65 74 6f 28 | 39 2e 39 2c 31 36 2e 39 | moveto(|9.9,16.9|
|00002c70| 30 29 3b 0d 0a 20 20 20 | 61 72 72 6f 77 74 6f 28 |0);.. |arrowto(|
|00002c80| 39 2e 39 2c 32 33 2e 30 | 32 29 3b 0d 0a 20 20 20 |9.9,23.0|2);.. |
|00002c90| 6d 6f 76 65 74 6f 28 39 | 2e 39 2c 31 35 2e 37 30 |moveto(9|.9,15.70|
|00002ca0| 29 3b 0d 0a 20 20 20 61 | 72 72 6f 77 74 6f 28 39 |);.. a|rrowto(9|
|00002cb0| 2e 39 2c 37 2e 39 33 29 | 3b 0d 0a 20 20 20 6d 6f |.9,7.93)|;.. mo|
|00002cc0| 76 65 74 6f 28 32 31 2e | 34 2c 31 35 2e 31 34 29 |veto(21.|4,15.14)|
|00002cd0| 3b 0d 0a 20 20 20 61 72 | 72 6f 77 74 6f 28 32 30 |;.. ar|rowto(20|
|00002ce0| 2e 38 2c 31 35 2e 31 34 | 29 3b 0d 0a 20 20 20 73 |.8,15.14|);.. s|
|00002cf0| 74 72 6f 6b 65 28 29 3b | 0d 0a 20 20 20 7d 0d 0a |troke();|.. }..|
|00002d00| 0d 0a 69 6e 74 20 73 5f | 71 77 5f 62 6f 78 28 29 |..int s_|qw_box()|
|00002d10| 0d 0a 20 20 20 7b 0d 0a | 20 20 20 73 65 74 28 4c |.. {..| set(L|
|00002d20| 49 4e 45 57 49 44 54 48 | 2c 30 2e 30 36 29 3b 0d |INEWIDTH|,0.06);.|
|00002d30| 0a 20 20 20 63 6d 61 74 | 63 68 28 29 3b 0d 0a 20 |. cmat|ch();.. |
|00002d40| 20 20 2f 2a 20 64 72 61 | 77 20 71 75 61 6e 74 75 | /* dra|w quantu|
|00002d50| 6d 20 77 65 6c 6c 20 62 | 6f 78 20 2a 2f 0d 0a 20 |m well b|ox */.. |
|00002d60| 20 20 6d 6f 76 65 74 6f | 28 2d 32 32 35 2e 2c 31 | moveto|(-225.,1|
|00002d70| 30 37 2e 32 37 29 3b 0d | 0a 20 20 20 6c 69 6e 65 |07.27);.|. line|
|00002d80| 74 6f 28 2d 31 34 35 2e | 2c 31 30 37 2e 32 37 29 |to(-145.|,107.27)|
|00002d90| 3b 0d 0a 20 20 20 6c 69 | 6e 65 74 6f 28 2d 31 34 |;.. li|neto(-14|
|00002da0| 35 2e 2c 30 2e 29 3b 0d | 0a 20 20 20 6c 69 6e 65 |5.,0.);.|. line|
|00002db0| 74 6f 28 2d 34 35 2e 2c | 30 2e 29 3b 0d 0a 20 20 |to(-45.,|0.);.. |
|00002dc0| 20 6c 69 6e 65 74 6f 28 | 2d 34 35 2e 2c 31 30 37 | lineto(|-45.,107|
|00002dd0| 2e 32 37 29 3b 0d 0a 20 | 20 20 6c 69 6e 65 74 6f |.27);.. | lineto|
|00002de0| 28 34 35 2e 2c 31 30 37 | 2e 32 37 29 3b 0d 0a 20 |(45.,107|.27);.. |
|00002df0| 20 20 6c 69 6e 65 74 6f | 28 34 35 2e 2c 30 2e 29 | lineto|(45.,0.)|
|00002e00| 3b 0d 0a 20 20 20 6c 69 | 6e 65 74 6f 28 31 34 35 |;.. li|neto(145|
|00002e10| 2e 2c 30 2e 29 3b 0d 0a | 20 20 20 6c 69 6e 65 74 |.,0.);..| linet|
|00002e20| 6f 28 31 34 35 2e 2c 31 | 30 37 2e 32 37 29 3b 0d |o(145.,1|07.27);.|
|00002e30| 0a 20 20 20 6c 69 6e 65 | 74 6f 28 32 32 35 2e 2c |. line|to(225.,|
|00002e40| 31 30 37 2e 32 37 29 3b | 0d 0a 20 20 20 73 74 72 |107.27);|.. str|
|00002e50| 6f 6b 65 28 29 3b 0d 0a | 20 20 20 73 65 74 28 4c |oke();..| set(L|
|00002e60| 49 4e 45 57 49 44 54 48 | 2c 30 2e 30 32 29 3b 0d |INEWIDTH|,0.02);.|
|00002e70| 0a 20 20 20 7d 0d 0a 0d | 0a 69 6e 74 20 61 5f 71 |. }...|.int a_q|
|00002e80| 77 5f 62 6f 78 28 29 0d | 0a 20 20 20 7b 0d 0a 20 |w_box().|. {.. |
|00002e90| 20 20 73 65 74 28 4c 49 | 4e 45 57 49 44 54 48 2c | set(LI|NEWIDTH,|
|00002ea0| 30 2e 30 36 29 3b 0d 0a | 20 20 20 63 6d 61 74 63 |0.06);..| cmatc|
|00002eb0| 68 28 29 3b 0d 0a 20 20 | 20 2f 2a 20 64 72 61 77 |h();.. | /* draw|
|00002ec0| 20 71 75 61 6e 74 75 6d | 20 77 65 6c 6c 20 62 6f | quantum| well bo|
|00002ed0| 78 20 2a 2f 0d 0a 20 20 | 20 6d 6f 76 65 74 6f 28 |x */.. | moveto(|
|00002ee0| 2d 32 32 35 2e 2c 31 38 | 38 2e 33 36 29 3b 0d 0a |-225.,18|8.36);..|
|00002ef0| 20 20 20 6c 69 6e 65 74 | 6f 28 2d 31 34 35 2e 2c | linet|o(-145.,|
|00002f00| 31 38 38 2e 33 36 29 3b | 0d 0a 20 20 20 6c 69 6e |188.36);|.. lin|
|00002f10| 65 74 6f 28 2d 31 34 35 | 2e 2c 30 2e 29 3b 0d 0a |eto(-145|.,0.);..|
|00002f20| 20 20 20 6c 69 6e 65 74 | 6f 28 2d 34 35 2e 2c 30 | linet|o(-45.,0|
|00002f30| 2e 29 3b 0d 0a 20 20 20 | 6c 69 6e 65 74 6f 28 2d |.);.. |lineto(-|
|00002f40| 34 35 2e 2c 31 38 38 2e | 33 36 29 3b 0d 0a 20 20 |45.,188.|36);.. |
|00002f50| 20 6c 69 6e 65 74 6f 28 | 34 35 2e 2c 31 38 38 2e | lineto(|45.,188.|
|00002f60| 33 36 29 3b 0d 0a 20 20 | 20 2f 2a 20 31 38 38 2e |36);.. | /* 188.|
|00002f70| 33 36 2d 31 30 37 2e 32 | 37 20 20 2a 2f 0d 0a 20 |36-107.2|7 */.. |
|00002f80| 20 20 6c 69 6e 65 74 6f | 28 34 35 2e 2c 38 31 2e | lineto|(45.,81.|
|00002f90| 30 39 29 3b 0d 0a 20 20 | 20 6c 69 6e 65 74 6f 28 |09);.. | lineto(|
|00002fa0| 31 34 35 2e 2c 38 31 2e | 30 39 29 3b 0d 0a 20 20 |145.,81.|09);.. |
|00002fb0| 20 6c 69 6e 65 74 6f 28 | 31 34 35 2e 2c 31 38 38 | lineto(|145.,188|
|00002fc0| 2e 33 36 29 3b 0d 0a 20 | 20 20 6c 69 6e 65 74 6f |.36);.. | lineto|
|00002fd0| 28 32 32 35 2c 31 38 38 | 2e 33 36 29 3b 0d 0a 20 |(225,188|.36);.. |
|00002fe0| 20 20 73 74 72 6f 6b 65 | 28 29 3b 0d 0a 20 20 20 | stroke|();.. |
|00002ff0| 73 65 74 28 4c 49 4e 45 | 57 49 44 54 48 2c 30 2e |set(LINE|WIDTH,0.|
|00003000| 30 32 29 3b 0d 0a 20 20 | 20 7d 0d 0a 5c 65 6e 64 |02);.. | }..\end|
|00003010| 7b 76 65 72 62 61 74 69 | 6d 7d 0d 0a 7d 0d 0a 0d |{verbati|m}..}...|
|00003020| 0a 5c 6e 65 77 70 61 67 | 65 0d 0a 5c 73 65 63 74 |.\newpag|e..\sect|
|00003030| 69 6f 6e 7b 6c 61 6e 64 | 73 63 61 70 2e 73 70 74 |ion{land|scap.spt|
|00003040| 7d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |} | |
|00003050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0d 0a 0d | | ...|
|00003080| 0a 5c 76 73 70 61 63 65 | 2a 7b 30 2e 31 63 6d 7d |.\vspace|*{0.1cm}|
|00003090| 0d 0a 5c 73 70 65 63 69 | 61 6c 7b 70 73 66 69 6c |..\speci|al{psfil|
|000030a0| 65 3d 6c 61 6e 64 73 63 | 61 70 2e 65 70 73 20 68 |e=landsc|ap.eps h|
|000030b0| 73 63 61 6c 65 3d 34 30 | 20 76 73 63 61 6c 65 3d |scale=40| vscale=|
|000030c0| 34 30 20 68 6f 66 66 73 | 65 74 3d 32 33 30 20 76 |40 hoffs|et=230 v|
|000030d0| 6f 66 66 73 65 74 3d 2d | 33 35 30 7d 0d 0a 0d 0a |offset=-|350}....|
|000030e0| 7b 5c 74 74 0d 0a 5c 62 | 65 67 69 6e 7b 76 65 72 |{\tt..\b|egin{ver|
|000030f0| 62 61 74 69 6d 7d 0d 0a | 23 69 6e 63 6c 75 64 65 |batim}..|#include|
|00003100| 20 3c 73 70 6c 6f 74 2e | 68 3e 20 20 20 20 20 20 | <splot.|h> |
|00003110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003120| 20 20 20 20 20 20 20 20 | 20 20 20 20 0d 0a 64 6f | | ..do|
|00003130| 75 62 6c 65 20 2a 64 61 | 74 61 31 2c 2a 64 61 74 |uble *da|ta1,*dat|
|00003140| 61 32 3b 0d 0a 6d 61 69 | 6e 28 29 20 0d 0a 20 20 |a2;..mai|n() .. |
|00003150| 20 7b 20 20 20 0d 0a 0d | 0a 20 20 20 2f 2a 20 73 | { ...|. /* s|
|00003160| 65 6c 65 63 74 20 6c 61 | 6e 64 73 63 61 70 65 20 |elect la|ndscape |
|00003170| 6f 72 69 65 6e 74 61 74 | 69 6f 6e 20 2a 2f 0d 0a |orientat|ion */..|
|00003180| 20 20 20 73 65 74 28 50 | 41 47 45 5f 52 4f 54 2c | set(P|AGE_ROT,|
|00003190| 4f 4e 29 3b 0d 0a 20 20 | 20 73 65 74 28 4c 49 4e |ON);.. | set(LIN|
|000031a0| 45 57 49 44 54 48 2c 30 | 2e 30 39 29 3b 20 0d 0a |EWIDTH,0|.09); ..|
|000031b0| 20 20 20 61 78 65 73 5f | 62 6f 78 28 32 30 2c 31 | axes_|box(20,1|
|000031c0| 34 2c 31 2e 35 30 38 38 | 2c 30 2c 31 2e 35 31 35 |4,1.5088|,0,1.515|
|000031d0| 2c 31 2e 30 33 65 38 2c | 33 2c 33 29 3b 0d 0a 0d |,1.03e8,|3,3);...|
|000031e0| 0a 20 20 20 73 65 74 28 | 54 49 43 4b 4c 45 4e 47 |. set(|TICKLENG|
|000031f0| 54 48 2c 30 2e 35 29 3b | 0d 0a 20 20 20 74 69 63 |TH,0.5);|.. tic|
|00003200| 6b 6d 61 72 6b 73 28 58 | 41 58 45 53 2c 31 2e 35 |kmarks(X|AXES,1.5|
|00003210| 31 30 2c 31 2e 35 31 35 | 29 3b 0d 0a 0d 0a 20 20 |10,1.515|);.... |
|00003220| 20 73 65 74 28 4c 49 4e | 45 57 49 44 54 48 2c 30 | set(LIN|EWIDTH,0|
|00003230| 2e 30 36 29 3b 20 0d 0a | 20 20 20 73 65 74 28 46 |.06); ..| set(F|
|00003240| 4f 4e 54 57 49 44 54 48 | 2c 30 2e 38 29 3b 0d 0a |ONTWIDTH|,0.8);..|
|00003250| 20 20 20 2f 2a 20 75 73 | 65 20 73 68 6f 72 74 20 | /* us|e short |
|00003260| 73 71 75 61 74 20 6c 65 | 74 74 65 72 73 20 66 6f |squat le|tters fo|
|00003270| 72 20 6c 61 62 65 6c 73 | 20 2a 2f 0d 0a 20 20 20 |r labels| */.. |
|00003280| 73 65 74 28 46 4f 4e 54 | 41 53 50 45 43 54 2c 31 |set(FONT|ASPECT,1|
|00003290| 2e 31 29 3b 0d 0a 20 20 | 20 73 65 74 28 46 4f 4e |.1);.. | set(FON|
|000032a0| 54 2c 43 4f 4d 50 4c 45 | 58 29 3b 0d 0a 20 20 20 |T,COMPLE|X);.. |
|000032b0| 74 69 63 6b 6c 61 62 65 | 6c 28 4c 4f 57 45 52 2c |ticklabe|l(LOWER,|
|000032c0| 31 2e 35 31 30 2c 31 2e | 35 31 35 29 3b 0d 0a 20 |1.510,1.|515);.. |
|000032d0| 20 20 73 65 74 28 46 4f | 4e 54 57 49 44 54 48 2c | set(FO|NTWIDTH,|
|000032e0| 31 2e 30 29 3b 0d 0a 20 | 20 20 6c 61 62 65 6c 28 |1.0);.. | label(|
|000032f0| 4c 45 46 54 2c 22 52 65 | 6c 61 74 69 76 65 20 50 |LEFT,"Re|lative P|
|00003300| 4c 20 49 6e 74 65 6e 73 | 69 74 79 22 29 3b 0d 0a |L Intens|ity");..|
|00003310| 20 20 20 74 65 78 74 28 | 39 2e 30 30 2c 31 2e 39 | text(|9.00,1.9|
|00003320| 30 2c 22 50 68 6f 74 6f | 6e 20 65 6e 65 72 67 79 |0,"Photo|n energy|
|00003330| 20 28 65 56 29 22 29 3b | 0d 0a 20 20 20 74 65 78 | (eV)");|.. tex|
|00003340| 74 28 32 30 2e 30 30 2c | 31 35 2e 30 30 2c 22 31 |t(20.00,|15.00,"1|
|00003350| 32 20 54 22 29 3b 0d 0a | 20 20 20 74 65 78 74 28 |2 T");..| text(|
|00003360| 32 31 2e 30 30 2c 31 33 | 2e 30 30 2c 22 61 29 22 |21.00,13|.00,"a)"|
|00003370| 29 3b 0d 0a 20 20 20 74 | 65 78 74 28 32 31 2e 30 |);.. t|ext(21.0|
|00003380| 30 2c 37 2e 30 30 2c 22 | 62 29 22 29 3b 0d 0a 20 |0,7.00,"|b)");.. |
|00003390| 20 20 73 65 74 28 46 4f | 4e 54 57 49 44 54 48 2c | set(FO|NTWIDTH,|
|000033a0| 30 2e 37 30 29 3b 0d 0a | 20 20 20 74 65 78 74 28 |0.70);..| text(|
|000033b0| 31 33 2e 34 37 2c 39 2e | 38 34 2c 22 32 70 5f 30 |13.47,9.|84,"2p_0|
|000033c0| 5f 22 29 3b 0d 0a 20 20 | 20 74 65 78 74 28 35 2e |_");.. | text(5.|
|000033d0| 37 30 2c 38 2e 33 35 2c | 22 33 70 5f 30 5f 22 29 |70,8.35,|"3p_0_")|
|000033e0| 3b 0d 0a 20 20 20 74 65 | 78 74 28 38 2e 38 30 2c |;.. te|xt(8.80,|
|000033f0| 36 2e 34 36 2c 22 32 73 | 22 29 3b 0d 0a 20 20 20 |6.46,"2s|");.. |
|00003400| 74 65 78 74 28 34 2e 38 | 30 2c 35 2e 34 30 2c 22 |text(4.8|0,5.40,"|
|00003410| 33 64 5f 30 5f 22 29 3b | 0d 0a 20 20 20 74 65 78 |3d_0_");|.. tex|
|00003420| 74 28 33 2e 38 32 2c 35 | 2e 33 30 2c 22 33 73 22 |t(3.82,5|.30,"3s"|
|00003430| 29 3b 0d 0a 20 20 20 74 | 65 78 74 28 37 2e 36 35 |);.. t|ext(7.65|
|00003440| 2c 35 2e 37 30 2c 22 33 | 70 5f 2d 5f 22 29 3b 0d |,5.70,"3|p_-_");.|
|00003450| 0a 20 20 20 74 65 78 74 | 28 31 31 2e 36 35 2c 35 |. text|(11.65,5|
|00003460| 2e 36 30 2c 22 33 64 5f | 2d 31 5f 22 29 3b 0d 0a |.60,"3d_|-1_");..|
|00003470| 20 20 20 73 65 74 28 46 | 4f 4e 54 57 49 44 54 48 | set(F|ONTWIDTH|
|00003480| 2c 30 2e 37 35 29 3b 0d | 0a 20 20 20 74 65 78 74 |,0.75);.|. text|
|00003490| 28 31 33 2e 36 35 2c 31 | 36 2e 31 30 2c 22 61 22 |(13.65,1|6.10,"a"|
|000034a0| 29 3b 0d 0a 20 20 20 74 | 65 78 74 28 31 34 2e 37 |);.. t|ext(14.7|
|000034b0| 30 2c 31 34 2e 36 30 2c | 22 62 22 29 3b 0d 0a 20 |0,14.60,|"b");.. |
|000034c0| 20 20 74 65 78 74 28 31 | 36 2e 32 35 2c 31 33 2e | text(1|6.25,13.|
|000034d0| 37 35 2c 22 62 2a 22 29 | 3b 0d 0a 20 20 20 74 65 |75,"b*")|;.. te|
|000034e0| 78 74 28 31 36 2e 38 30 | 2c 31 33 2e 31 30 2c 22 |xt(16.80|,13.10,"|
|000034f0| 63 2a 22 29 3b 0d 0a 20 | 20 20 20 20 20 20 0d 0a |c*");.. | ..|
|00003500| 20 20 20 73 65 74 28 4c | 49 4e 45 57 49 44 54 48 | set(L|INEWIDTH|
|00003510| 2c 30 2e 30 35 29 3b 20 | 0d 0a 20 20 20 73 65 74 |,0.05); |.. set|
|00003520| 28 54 49 43 4b 4c 45 4e | 47 54 48 2c 30 2e 33 35 |(TICKLEN|GTH,0.35|
|00003530| 29 3b 0d 0a 20 20 20 74 | 69 63 6b 6d 61 72 6b 73 |);.. t|ickmarks|
|00003540| 28 58 41 58 45 53 2c 31 | 2e 35 30 39 2c 31 2e 35 |(XAXES,1|.509,1.5|
|00003550| 31 31 2c 31 2e 35 31 32 | 2c 31 2e 35 31 33 2c 31 |11,1.512|,1.513,1|
|00003560| 2e 35 31 34 2c 31 2e 35 | 31 36 29 3b 0d 0a 20 20 |.514,1.5|16);.. |
|00003570| 20 20 20 20 20 0d 0a 20 | 20 20 2f 2a 20 63 6f 6e | .. | /* con|
|00003580| 73 74 72 61 69 6e 20 70 | 6c 6f 74 20 74 6f 20 61 |strain p|lot to a|
|00003590| 78 65 73 20 62 6f 78 20 | 2a 2f 0d 0a 20 20 20 73 |xes box |*/.. s|
|000035a0| 65 74 28 41 58 45 53 43 | 4c 49 50 2c 4f 4e 29 3b |et(AXESC|LIP,ON);|
|000035b0| 0d 0a 0d 0a 20 20 20 2f | 2a 20 63 68 61 6e 67 65 |.... /|* change|
|000035c0| 20 78 20 61 78 69 73 20 | 75 6e 69 74 73 20 74 6f | x axis |units to|
|000035d0| 20 65 56 20 2a 2f 0d 0a | 20 20 20 73 65 74 28 58 | eV */..| set(X|
|000035e0| 4d 55 4c 54 2c 30 2e 31 | 32 33 39 38 34 32 65 2d |MULT,0.1|239842e-|
|000035f0| 33 29 3b 20 20 20 0d 0a | 20 20 20 20 20 20 20 0d |3); ..| .|
|00003600| 0a 20 20 20 2f 2a 20 70 | 6c 6f 74 20 66 69 72 73 |. /* p|lot firs|
|00003610| 74 20 73 70 65 63 74 72 | 75 6d 20 2a 2f 0d 0a 20 |t spectr|um */.. |
|00003620| 20 20 73 65 74 28 58 53 | 48 49 46 54 2c 30 29 3b | set(XS|HIFT,0);|
|00003630| 20 20 20 20 20 0d 0a 20 | 20 20 73 65 74 28 59 53 | .. | set(YS|
|00003640| 48 49 46 54 2c 34 37 65 | 36 29 3b 20 20 20 20 20 |HIFT,47e|6); |
|00003650| 0d 0a 20 20 20 73 65 74 | 28 59 4d 55 4c 54 2c 33 |.. set|(YMULT,3|
|00003660| 30 30 29 3b 0d 0a 20 20 | 20 72 65 61 64 64 61 74 |00);.. | readdat|
|00003670| 61 28 22 64 65 6d 6f 5c | 66 65 32 31 6d 32 33 61 |a("demo\|fe21m23a|
|00003680| 2e 64 61 74 22 2c 64 61 | 74 61 31 29 3b 0d 0a 20 |.dat",da|ta1);.. |
|00003690| 20 20 73 65 74 28 59 52 | 41 4e 47 45 2c 30 2c 39 | set(YR|ANGE,0,9|
|000036a0| 39 65 36 29 3b 0d 0a 20 | 20 20 64 72 61 77 64 61 |9e6);.. | drawda|
|000036b0| 74 61 28 64 61 74 61 31 | 2c 30 2c 31 29 3b 0d 0a |ta(data1|,0,1);..|
|000036c0| 0d 0a 20 20 20 2f 2a 20 | 70 6c 6f 74 20 73 65 63 |.. /* |plot sec|
|000036d0| 6f 6e 64 20 73 70 65 63 | 74 72 75 6d 20 73 68 69 |ond spec|trum shi|
|000036e0| 66 74 65 64 20 75 70 20 | 2a 2f 0d 0a 20 20 20 73 |fted up |*/.. s|
|000036f0| 65 74 28 59 53 48 49 46 | 54 2c 20 37 65 36 29 3b |et(YSHIF|T, 7e6);|
|00003700| 20 20 20 20 20 0d 0a 20 | 20 20 73 65 74 28 59 4d | .. | set(YM|
|00003710| 55 4c 54 2c 31 35 30 29 | 3b 0d 0a 20 20 20 72 65 |ULT,150)|;.. re|
|00003720| 61 64 64 61 74 61 28 22 | 64 65 6d 6f 5c 66 65 32 |addata("|demo\fe2|
|00003730| 32 76 33 31 61 2e 64 61 | 74 22 2c 64 61 74 61 32 |2v31a.da|t",data2|
|00003740| 29 3b 0d 0a 20 20 20 73 | 65 74 28 59 52 41 4e 47 |);.. s|et(YRANG|
|00003750| 45 2c 30 2c 34 35 65 36 | 29 3b 0d 0a 20 20 20 64 |E,0,45e6|);.. d|
|00003760| 72 61 77 64 61 74 61 28 | 64 61 74 61 32 2c 30 2c |rawdata(|data2,0,|
|00003770| 31 29 3b 0d 0a 20 20 20 | 7d 20 20 20 20 20 20 20 |1);.. |} |
|00003780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000037a0| 20 20 20 20 20 20 20 20 | 20 0d 0a 5c 65 6e 64 7b | | ..\end{|
|000037b0| 76 65 72 62 61 74 69 6d | 7d 0d 0a 7d 0d 0a 0d 0a |verbatim|}..}....|
|000037c0| 5c 6e 65 77 70 61 67 65 | 0d 0a 5c 73 65 63 74 69 |\newpage|..\secti|
|000037d0| 6f 6e 7b 69 6e 74 63 61 | 6c 63 2e 73 70 74 7d 0d |on{intca|lc.spt}.|
|000037e0| 0a 0d 0a 5c 76 73 70 61 | 63 65 2a 7b 2e 31 63 6d |...\vspa|ce*{.1cm|
|000037f0| 7d 0d 0a 5c 73 70 65 63 | 69 61 6c 7b 70 73 66 69 |}..\spec|ial{psfi|
|00003800| 6c 65 3d 69 6e 74 63 61 | 6c 63 2e 65 70 73 20 68 |le=intca|lc.eps h|
|00003810| 73 63 61 6c 65 3d 34 30 | 20 76 73 63 61 6c 65 3d |scale=40| vscale=|
|00003820| 34 30 20 68 6f 66 66 73 | 65 74 3d 32 37 35 20 76 |40 hoffs|et=275 v|
|00003830| 6f 66 66 73 65 74 3d 2d | 34 35 30 7d 0d 0a 5c 69 |offset=-|450}..\i|
|00003840| 6e 64 65 78 7b 6d 61 74 | 68 2c 20 65 78 61 6d 70 |ndex{mat|h, examp|
|00003850| 6c 65 7d 0d 0a 0d 0a 7b | 5c 74 74 0d 0a 5c 62 65 |le}....{|\tt..\be|
|00003860| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0d 0a 23 |gin{verb|atim}..#|
|00003870| 69 6e 63 6c 75 64 65 20 | 3c 73 70 6c 6f 74 2e 68 |include |<splot.h|
|00003880| 3e 0d 0a 0d 0a 2f 2a 20 | 54 68 69 73 20 65 78 61 |>..../* |This exa|
|00003890| 6d 70 6c 65 20 66 69 6c | 65 20 69 6c 6c 75 73 74 |mple fil|e illust|
|000038a0| 72 61 74 65 73 20 73 6f | 6d 65 20 6f 66 20 74 68 |rates so|me of th|
|000038b0| 65 20 69 6e 74 65 72 6e | 61 6c 20 6d 61 74 68 20 |e intern|al math |
|000038c0| 63 61 70 61 62 69 6c 69 | 74 69 65 73 20 2a 2f 20 |capabili|ties */ |
|000038d0| 0d 0a 2f 2a 20 49 6e 20 | 74 68 69 73 20 63 61 73 |../* In |this cas|
|000038e0| 65 20 20 78 2c 79 20 64 | 61 74 61 20 70 6f 69 6e |e x,y d|ata poin|
|000038f0| 74 73 20 66 6f 72 20 73 | 65 76 65 72 61 6c 20 70 |ts for s|everal p|
|00003900| 61 72 61 62 6f 6c 61 73 | 20 61 72 65 20 63 61 6c |arabolas| are cal|
|00003910| 63 75 6c 61 74 65 64 20 | 2a 2f 0d 0a 2f 2a 20 61 |culated |*/../* a|
|00003920| 6e 64 20 74 68 65 6e 20 | 64 72 61 77 6e 2e 20 41 |nd then |drawn. A|
|00003930| 6c 73 6f 20 74 68 65 20 | 70 68 6f 74 6f 6e 20 75 |lso the |photon u|
|00003940| 73 65 73 20 74 68 65 20 | 73 69 6e 65 20 66 75 6e |ses the |sine fun|
|00003950| 63 74 69 6f 6e 20 74 6f | 20 64 72 61 77 20 61 20 |ction to| draw a |
|00003960| 77 61 76 65 2e 20 2a 2f | 0d 0a 2f 2a 20 46 6f 72 |wave. */|../* For|
|00003970| 20 74 68 65 20 70 68 6f | 74 6f 6e 20 74 68 65 20 | the pho|ton the |
|00003980| 64 61 74 61 20 69 73 20 | 6e 6f 74 20 73 74 6f 72 |data is |not stor|
|00003990| 65 64 20 69 6e 20 61 6e | 20 61 72 72 61 79 2c 20 |ed in an| array, |
|000039a0| 72 61 74 68 65 72 20 74 | 68 65 20 63 61 6c 63 75 |rather t|he calcu|
|000039b0| 6c 61 74 65 64 20 2a 2f | 20 0d 0a 2f 2a 20 76 61 |lated */| ../* va|
|000039c0| 6c 75 65 73 20 61 72 65 | 20 61 64 64 65 64 20 74 |lues are| added t|
|000039d0| 6f 20 6f 66 66 73 65 74 | 73 20 67 69 76 65 6e 20 |o offset|s given |
|000039e0| 61 73 20 70 61 72 61 6d | 65 74 65 72 73 20 74 6f |as param|eters to|
|000039f0| 20 74 68 65 20 70 68 6f | 74 6f 6e 20 73 75 62 72 | the pho|ton subr|
|00003a00| 6f 75 74 69 6e 65 20 2a | 2f 0d 0a 0d 0a 2f 2a 20 |outine *|/..../* |
|00003a10| 6d 61 6b 65 20 73 70 61 | 63 65 20 66 6f 72 20 74 |make spa|ce for t|
|00003a20| 68 65 20 74 6f 20 62 65 | 20 67 65 6e 65 72 61 74 |he to be| generat|
|00003a30| 65 64 20 64 61 74 61 20 | 2a 2f 0d 0a 64 6f 75 62 |ed data |*/..doub|
|00003a40| 6c 65 20 70 64 61 74 5b | 31 30 31 5d 5b 32 5d 3b |le pdat[|101][2];|
|00003a50| 0d 0a 0d 0a 6d 61 69 6e | 28 29 0d 0a 20 20 20 7b |....main|().. {|
|00003a60| 0d 0a 20 20 20 64 6f 75 | 62 6c 65 20 78 30 2c 79 |.. dou|ble x0,y|
|00003a70| 30 3b 0d 0a 0d 0a 20 20 | 20 78 30 20 3d 20 31 30 |0;.... | x0 = 10|
|00003a80| 3b 0d 0a 20 20 20 79 30 | 20 3d 20 35 2e 35 3b 0d |;.. y0| = 5.5;.|
|00003a90| 0a 0d 0a 20 20 20 2f 2a | 20 64 72 61 77 20 70 61 |... /*| draw pa|
|00003aa0| 72 61 62 6f 6c 61 73 20 | 61 74 20 78 30 2c 79 30 |rabolas |at x0,y0|
|00003ab0| 20 20 74 6f 20 72 65 70 | 72 65 73 65 6e 74 20 62 | to rep|resent b|
|00003ac0| 61 6e 64 73 2a 2f 0d 0a | 20 20 20 73 69 62 61 6e |ands*/..| siban|
|00003ad0| 64 28 78 30 2c 79 30 29 | 3b 0d 0a 0d 0a 20 20 20 |d(x0,y0)|;.... |
|00003ae0| 2f 2a 20 64 72 61 77 20 | 63 69 72 63 6c 65 73 20 |/* draw |circles |
|00003af0| 74 6f 20 72 65 70 72 65 | 73 65 6e 74 20 68 6f 6c |to repre|sent hol|
|00003b00| 65 73 20 69 6e 20 74 68 | 65 20 76 61 6c 65 6e 63 |es in th|e valenc|
|00003b10| 65 20 62 61 6e 64 20 2a | 2f 0d 0a 20 20 20 61 72 |e band *|/.. ar|
|00003b20| 63 28 78 30 20 2d 20 30 | 2e 35 2c 79 30 20 2d 20 |c(x0 - 0|.5,y0 - |
|00003b30| 30 2e 32 35 2c 30 2e 32 | 35 2c 30 2c 33 36 30 29 |0.25,0.2|5,0,360)|
|00003b40| 3b 0d 0a 20 20 20 73 74 | 72 6f 6b 65 28 29 3b 0d |;.. st|roke();.|
|00003b50| 0a 20 20 20 61 72 63 28 | 78 30 20 2b 20 30 2e 35 |. arc(|x0 + 0.5|
|00003b60| 2c 79 30 20 2d 20 30 2e | 32 35 2c 30 2e 32 35 2c |,y0 - 0.|25,0.25,|
|00003b70| 30 2c 33 36 30 29 3b 0d | 0a 20 20 20 73 74 72 6f |0,360);.|. stro|
|00003b80| 6b 65 28 29 3b 0d 0a 0d | 0a 20 20 20 2f 2a 20 64 |ke();...|. /* d|
|00003b90| 72 61 77 20 65 6c 65 63 | 74 72 6f 6e 73 20 69 6e |raw elec|trons in|
|00003ba0| 20 74 68 65 20 63 6f 6e | 64 75 63 74 69 6f 6e 20 | the con|duction |
|00003bb0| 62 61 6e 64 20 2a 2f 0d | 0a 20 20 20 6d 6f 76 65 |band */.|. move|
|00003bc0| 74 6f 28 78 30 20 2b 20 | 34 2e 32 35 2c 79 30 20 |to(x0 + |4.25,y0 |
|00003bd0| 2b 20 33 2e 32 35 29 3b | 0d 0a 20 20 20 72 6c 69 |+ 3.25);|.. rli|
|00003be0| 6e 65 74 6f 28 2d 30 2e | 35 2c 30 29 3b 0d 0a 20 |neto(-0.|5,0);.. |
|00003bf0| 20 20 6d 6f 76 65 74 6f | 28 78 30 20 2d 20 34 2e | moveto|(x0 - 4.|
|00003c00| 32 35 2c 79 30 20 2b 20 | 33 2e 32 35 29 3b 0d 0a |25,y0 + |3.25);..|
|00003c10| 20 20 20 72 6c 69 6e 65 | 74 6f 28 30 2e 35 2c 30 | rline|to(0.5,0|
|00003c20| 29 3b 0d 0a 20 20 20 73 | 74 72 6f 6b 65 28 29 3b |);.. s|troke();|
|00003c30| 0d 0a 0d 0a 20 20 20 2f | 2a 20 64 72 61 77 20 61 |.... /|* draw a|
|00003c40| 72 72 6f 77 73 20 74 6f | 20 69 6e 64 69 63 61 74 |rrows to| indicat|
|00003c50| 65 20 6f 70 74 69 63 61 | 6c 20 74 72 61 6e 73 69 |e optica|l transi|
|00003c60| 74 69 6f 6e 73 20 2a 2f | 0d 0a 20 20 20 6d 6f 76 |tions */|.. mov|
|00003c70| 65 74 6f 28 78 30 20 2b | 20 33 2e 35 2c 79 30 20 |eto(x0 +| 3.5,y0 |
|00003c80| 2b 20 32 2e 37 35 29 3b | 0d 0a 20 20 20 61 72 72 |+ 2.75);|.. arr|
|00003c90| 6f 77 74 6f 28 78 30 20 | 2b 20 31 2c 79 30 20 2b |owto(x0 |+ 1,y0 +|
|00003ca0| 20 30 2e 32 35 29 3b 0d | 0a 20 20 20 6d 6f 76 65 | 0.25);.|. move|
|00003cb0| 74 6f 28 78 30 20 2d 20 | 33 2e 35 2c 79 30 20 2b |to(x0 - |3.5,y0 +|
|00003cc0| 20 32 2e 37 35 29 3b 0d | 0a 20 20 20 61 72 72 6f | 2.75);.|. arro|
|00003cd0| 77 74 6f 28 78 30 20 2d | 20 31 2c 79 30 20 2b 20 |wto(x0 -| 1,y0 + |
|00003ce0| 30 2e 32 35 29 3b 0d 0a | 0d 0a 20 20 20 2f 2a 20 |0.25);..|.. /* |
|00003cf0| 6c 61 62 65 6c 20 74 68 | 65 20 70 68 6f 74 6f 6e |label th|e photon|
|00003d00| 20 2a 2f 0d 0a 20 20 20 | 74 65 78 74 28 78 30 20 | */.. |text(x0 |
|00003d10| 2b 20 35 2c 20 79 30 2c | 22 68 21 77 21 20 3d 20 |+ 5, y0,|"h!w! = |
|00003d20| 32 45 5f 67 5f 22 29 3b | 0d 0a 20 20 20 2f 2a 20 |2E_g_");|.. /* |
|00003d30| 62 75 74 20 62 61 72 20 | 74 68 72 6f 75 67 68 20 |but bar |through |
|00003d40| 68 20 2a 2f 0d 0a 20 20 | 20 6d 6f 76 65 74 6f 28 |h */.. | moveto(|
|00003d50| 78 30 20 2b 20 34 2e 39 | 35 2c 79 30 20 2b 20 30 |x0 + 4.9|5,y0 + 0|
|00003d60| 2e 31 36 29 3b 0d 0a 20 | 20 20 72 6c 69 6e 65 74 |.16);.. | rlinet|
|00003d70| 6f 28 30 2e 33 2c 30 2e | 33 29 3b 0d 0a 20 20 20 |o(0.3,0.|3);.. |
|00003d80| 73 74 72 6f 6b 65 28 29 | 3b 0d 0a 0d 0a 20 20 20 |stroke()|;.... |
|00003d90| 2f 2a 20 64 72 61 77 20 | 62 61 6e 64 73 20 61 67 |/* draw |bands ag|
|00003da0| 61 69 6e 20 62 75 74 20 | 68 69 67 68 65 72 20 75 |ain but |higher u|
|00003db0| 70 20 2a 2f 0d 0a 20 20 | 20 78 30 20 3d 20 31 30 |p */.. | x0 = 10|
|00003dc0| 3b 0d 0a 20 20 20 79 30 | 20 3d 20 31 39 3b 0d 0a |;.. y0| = 19;..|
|00003dd0| 20 20 20 73 69 62 61 6e | 64 28 78 30 2c 79 30 29 | siban|d(x0,y0)|
|00003de0| 3b 0d 0a 0d 0a 20 20 20 | 2f 2a 20 64 72 61 77 20 |;.... |/* draw |
|00003df0| 73 69 6e 67 6c 65 20 68 | 6f 6c 65 20 2a 2f 0d 0a |single h|ole */..|
|00003e00| 20 20 20 61 72 63 28 78 | 30 2c 79 30 20 2d 20 30 | arc(x|0,y0 - 0|
|00003e10| 2e 32 35 2c 30 2e 32 35 | 2c 30 2c 33 36 30 29 3b |.25,0.25|,0,360);|
|00003e20| 0d 0a 20 20 20 73 74 72 | 6f 6b 65 28 29 3b 0d 0a |.. str|oke();..|
|00003e30| 0d 0a 20 20 20 2f 2a 20 | 64 72 61 77 20 73 69 6e |.. /* |draw sin|
|00003e40| 67 6c 65 20 65 6c 65 63 | 74 72 6f 6e 20 2a 2f 0d |gle elec|tron */.|
|00003e50| 0a 20 20 20 6d 6f 76 65 | 74 6f 28 78 30 20 2b 20 |. move|to(x0 + |
|00003e60| 34 2e 32 35 2c 79 30 20 | 2b 20 33 2e 32 35 29 3b |4.25,y0 |+ 3.25);|
|00003e70| 0d 0a 20 20 20 72 6c 69 | 6e 65 74 6f 28 2d 30 2e |.. rli|neto(-0.|
|00003e80| 35 2c 30 29 3b 0d 0a 20 | 20 20 73 74 72 6f 6b 65 |5,0);.. | stroke|
|00003e90| 28 29 3b 0d 0a 20 20 20 | 6d 6f 76 65 74 6f 28 78 |();.. |moveto(x|
|00003ea0| 30 20 2b 20 33 2e 35 2c | 79 30 20 2b 20 32 2e 37 |0 + 3.5,|y0 + 2.7|
|00003eb0| 35 29 3b 0d 0a 20 20 20 | 61 72 72 6f 77 74 6f 28 |5);.. |arrowto(|
|00003ec0| 78 30 20 2b 20 30 2e 35 | 2c 79 30 20 2b 20 30 2e |x0 + 0.5|,y0 + 0.|
|00003ed0| 32 35 29 3b 0d 0a 0d 0a | 20 20 20 2f 2a 20 6c 61 |25);....| /* la|
|00003ee0| 62 65 6c 20 70 68 6f 74 | 6f 6e 20 2a 2f 0d 0a 20 |bel phot|on */.. |
|00003ef0| 20 20 74 65 78 74 28 78 | 30 20 2b 20 35 2c 20 79 | text(x|0 + 5, y|
|00003f00| 30 2c 22 68 21 77 21 20 | 3d 20 45 5f 67 5f 22 29 |0,"h!w! |= E_g_")|
|00003f10| 3b 0d 0a 20 20 20 6d 6f | 76 65 74 6f 28 78 30 20 |;.. mo|veto(x0 |
|00003f20| 2b 20 34 2e 39 35 2c 79 | 30 20 2b 20 30 2e 31 36 |+ 4.95,y|0 + 0.16|
|00003f30| 29 3b 0d 0a 20 20 20 72 | 6c 69 6e 65 74 6f 28 30 |);.. r|lineto(0|
|00003f40| 2e 33 2c 30 2e 33 29 3b | 0d 0a 20 20 20 73 74 72 |.3,0.3);|.. str|
|00003f50| 6f 6b 65 28 29 3b 20 20 | 20 20 20 20 20 20 20 20 |oke(); | |
|00003f60| 20 20 20 20 20 20 0d 0a | 0d 0a 20 20 20 2f 2a 20 | ..|.. /* |
|00003f70| 61 64 64 20 74 69 74 6c | 65 73 20 2a 2f 0d 0a 20 |add titl|es */.. |
|00003f80| 20 20 74 65 78 74 28 31 | 30 2e 30 2c 32 35 2e 31 | text(1|0.0,25.1|
|00003f90| 35 2c 22 49 6e 66 72 61 | 72 65 64 20 4c 75 6d 69 |5,"Infra|red Lumi|
|00003fa0| 6e 65 73 63 65 6e 63 65 | 22 2c 43 45 4e 54 45 52 |nescence|",CENTER|
|00003fb0| 29 3b 0d 0a 20 20 20 74 | 65 78 74 28 31 30 2e 30 |);.. t|ext(10.0|
|00003fc0| 2c 31 31 2e 38 2c 22 56 | 69 73 69 62 6c 65 20 4c |,11.8,"V|isible L|
|00003fd0| 75 6d 69 6e 65 73 63 65 | 6e 63 65 22 2c 43 45 4e |uminesce|nce",CEN|
|00003fe0| 54 45 52 29 3b 0d 0a 20 | 20 20 7d 0d 0a 0d 0a 69 |TER);.. | }....i|
|00003ff0| 6e 74 20 73 69 62 61 6e | 64 28 64 6f 75 62 6c 65 |nt siban|d(double|
|00004000| 20 78 30 2c 79 30 29 0d | 0a 20 20 20 7b 0d 0a 0d | x0,y0).|. {...|
|00004010| 0a 20 20 20 2f 2a 20 64 | 72 61 77 73 20 73 74 72 |. /* d|raws str|
|00004020| 61 69 6e 65 64 20 53 69 | 47 65 20 62 61 6e 64 20 |ained Si|Ge band |
|00004030| 73 74 72 75 63 74 75 72 | 65 20 2a 2f 0d 0a 20 20 |structur|e */.. |
|00004040| 20 2f 2a 20 61 73 20 61 | 20 73 65 74 20 6f 66 20 | /* as a| set of |
|00004050| 70 61 72 61 62 6f 6c 61 | 73 20 2a 2f 0d 0a 20 20 |parabola|s */.. |
|00004060| 20 70 61 72 61 62 28 78 | 30 2c 79 30 2c 30 2e 31 | parab(x|0,y0,0.1|
|00004070| 2c 2d 30 2e 31 29 3b 0d | 0a 20 20 20 70 61 72 61 |,-0.1);.|. para|
|00004080| 62 28 78 30 2c 79 30 20 | 2d 20 31 2e 30 2c 30 2e |b(x0,y0 |- 1.0,0.|
|00004090| 30 35 2c 2d 30 2e 33 29 | 3b 0d 0a 20 20 20 70 61 |05,-0.3)|;.. pa|
|000040a0| 72 61 62 28 78 30 20 2d | 20 34 2e 30 2c 79 30 20 |rab(x0 -| 4.0,y0 |
|000040b0| 2b 20 33 2e 30 2c 30 2e | 30 35 2c 30 2e 33 29 3b |+ 3.0,0.|05,0.3);|
|000040c0| 0d 0a 20 20 20 70 61 72 | 61 62 28 78 30 20 2b 20 |.. par|ab(x0 + |
|000040d0| 34 2e 30 2c 79 30 20 2b | 20 33 2e 30 2c 30 2e 30 |4.0,y0 +| 3.0,0.0|
|000040e0| 35 2c 30 2e 33 29 3b 0d | 0a 0d 0a 20 20 20 2f 2a |5,0.3);.|... /*|
|000040f0| 20 64 72 61 77 20 61 78 | 65 73 20 2a 2f 0d 0a 20 | draw ax|es */.. |
|00004100| 20 20 6d 6f 76 65 74 6f | 28 78 30 2c 79 30 20 2d | moveto|(x0,y0 -|
|00004110| 20 34 2e 30 29 3b 0d 0a | 20 20 20 72 6c 69 6e 65 | 4.0);..| rline|
|00004120| 74 6f 28 30 2c 30 2e 33 | 29 3b 0d 0a 20 20 20 6d |to(0,0.3|);.. m|
|00004130| 6f 76 65 74 6f 28 78 30 | 2c 79 30 20 2d 20 34 2e |oveto(x0|,y0 - 4.|
|00004140| 30 29 3b 0d 0a 20 20 20 | 72 61 72 72 6f 77 74 6f |0);.. |rarrowto|
|00004150| 28 36 2c 30 29 3b 0d 0a | 20 20 20 6d 6f 76 65 74 |(6,0);..| movet|
|00004160| 6f 28 78 30 2c 79 30 20 | 2d 20 34 2e 30 29 3b 0d |o(x0,y0 |- 4.0);.|
|00004170| 0a 20 20 20 72 61 72 72 | 6f 77 74 6f 28 2d 36 2c |. rarr|owto(-6,|
|00004180| 30 29 3b 0d 0a 20 20 20 | 73 74 72 6f 6b 65 28 29 |0);.. |stroke()|
|00004190| 3b 0d 0a 20 20 20 6d 6f | 76 65 74 6f 28 78 30 20 |;.. mo|veto(x0 |
|000041a0| 2d 20 37 2c 20 79 30 29 | 3b 0d 0a 20 20 20 72 61 |- 7, y0)|;.. ra|
|000041b0| 72 72 6f 77 74 6f 28 30 | 2c 33 29 3b 0d 0a 20 20 |rrowto(0|,3);.. |
|000041c0| 20 72 61 72 72 6f 77 74 | 6f 28 30 2c 2d 33 29 3b | rarrowt|o(0,-3);|
|000041d0| 0d 0a 20 20 20 6d 6f 76 | 65 74 6f 28 78 30 20 2d |.. mov|eto(x0 -|
|000041e0| 20 37 2e 32 35 2c 79 30 | 29 3b 0d 0a 20 20 20 72 | 7.25,y0|);.. r|
|000041f0| 6c 69 6e 65 74 6f 28 30 | 2e 35 2c 30 29 3b 0d 0a |lineto(0|.5,0);..|
|00004200| 20 20 20 6d 6f 76 65 74 | 6f 28 78 30 20 2d 20 37 | movet|o(x0 - 7|
|00004210| 2e 32 35 2c 79 30 20 2b | 20 33 29 3b 0d 0a 20 20 |.25,y0 +| 3);.. |
|00004220| 20 72 6c 69 6e 65 74 6f | 28 30 2e 35 2c 30 29 3b | rlineto|(0.5,0);|
|00004230| 0d 0a 20 20 20 73 74 72 | 6f 6b 65 28 29 3b 0d 0a |.. str|oke();..|
|00004240| 0d 0a 20 20 20 2f 2a 20 | 64 72 61 77 20 61 20 70 |.. /* |draw a p|
|00004250| 68 6f 74 6f 6e 20 2a 2f | 0d 0a 20 20 20 70 68 6f |hoton */|.. pho|
|00004260| 74 6f 6e 28 78 30 20 2b | 20 34 2e 35 2c 79 30 20 |ton(x0 +| 4.5,y0 |
|00004270| 2b 20 31 2e 35 2c 30 2e | 33 2c 30 2e 33 29 3b 0d |+ 1.5,0.|3,0.3);.|
|00004280| 0a 0d 0a 20 20 20 2f 2a | 20 61 20 6b 20 76 65 63 |... /*| a k vec|
|00004290| 74 6f 72 20 6c 61 62 65 | 6c 73 20 2a 2f 0d 0a 20 |tor labe|ls */.. |
|000042a0| 20 20 74 65 78 74 28 78 | 30 2c 79 30 20 2d 20 35 | text(x|0,y0 - 5|
|000042b0| 2c 22 30 22 2c 43 45 4e | 54 45 52 29 3b 0d 0a 20 |,"0",CEN|TER);.. |
|000042c0| 20 20 74 65 78 74 28 78 | 30 20 2b 20 36 2c 79 30 | text(x|0 + 6,y0|
|000042d0| 20 2d 20 35 2c 22 6b 22 | 29 3b 0d 0a 20 20 20 74 | - 5,"k"|);.. t|
|000042e0| 65 78 74 28 78 30 20 2d | 20 37 2e 35 2c 79 30 20 |ext(x0 -| 7.5,y0 |
|000042f0| 2b 20 31 2e 35 2c 22 45 | 5f 67 5f 22 2c 52 49 47 |+ 1.5,"E|_g_",RIG|
|00004300| 48 54 29 3b 0d 0a 20 20 | 20 7d 0d 0a 0d 0a 69 6e |HT);.. | }....in|
|00004310| 74 20 70 61 72 61 62 28 | 64 6f 75 62 6c 65 20 78 |t parab(|double x|
|00004320| 30 2c 64 6f 75 62 6c 65 | 20 79 30 2c 64 6f 75 62 |0,double| y0,doub|
|00004330| 6c 65 20 64 78 2c 64 6f | 75 62 6c 65 20 61 29 0d |le dx,do|uble a).|
|00004340| 0a 20 20 20 7b 0d 0a 20 | 20 20 69 6e 74 20 69 3b |. {.. | int i;|
|00004350| 0d 0a 20 20 20 64 6f 75 | 62 6c 65 20 78 3b 0d 0a |.. dou|ble x;..|
|00004360| 20 20 20 2f 2a 20 64 72 | 61 77 73 20 61 20 70 61 | /* dr|aws a pa|
|00004370| 72 61 62 6f 6c 61 20 62 | 79 20 67 65 6e 65 72 61 |rabola b|y genera|
|00004380| 74 69 6e 67 20 2a 2f 0d | 0a 20 20 20 2f 2a 20 61 |ting */.|. /* a|
|00004390| 20 64 61 74 61 20 61 72 | 72 61 79 20 66 69 72 73 | data ar|ray firs|
|000043a0| 74 20 2a 2f 0d 0a 20 20 | 20 66 6f 72 20 28 69 20 |t */.. | for (i |
|000043b0| 3d 20 30 3b 20 69 20 3c | 3d 20 35 30 3b 69 2b 2b |= 0; i <|= 50;i++|
|000043c0| 29 0d 0a 20 20 20 20 20 | 20 7b 0d 0a 20 20 20 20 |).. | {.. |
|000043d0| 20 20 78 20 3d 20 69 20 | 2a 20 64 78 3b 0d 0a 20 | x = i |* dx;.. |
|000043e0| 20 20 20 20 20 70 64 61 | 74 5b 35 30 20 2b 20 69 | pda|t[50 + i|
|000043f0| 5d 5b 31 5d 20 3d 20 61 | 20 2a 20 78 20 2a 20 78 |][1] = a| * x * x|
|00004400| 20 2b 20 79 30 3b 20 0d | 0a 20 20 20 20 20 20 70 | + y0; .|. p|
|00004410| 64 61 74 5b 35 30 20 2d | 20 69 5d 5b 31 5d 20 3d |dat[50 -| i][1] =|
|00004420| 20 61 20 2a 20 78 20 2a | 20 78 20 2b 20 79 30 3b | a * x *| x + y0;|
|00004430| 20 0d 0a 20 20 20 20 20 | 20 70 64 61 74 5b 35 30 | .. | pdat[50|
|00004440| 20 2b 20 69 5d 5b 30 5d | 20 3d 20 78 30 20 2b 20 | + i][0]| = x0 + |
|00004450| 78 3b 0d 0a 20 20 20 20 | 20 20 70 64 61 74 5b 35 |x;.. | pdat[5|
|00004460| 30 20 2d 20 69 5d 5b 30 | 5d 20 3d 20 78 30 20 2d |0 - i][0|] = x0 -|
|00004470| 20 78 3b 0d 0a 20 20 20 | 20 20 20 7d 0d 0a 20 20 | x;.. | }.. |
|00004480| 20 6d 6f 76 65 74 6f 28 | 70 64 61 74 5b 30 5d 5b | moveto(|pdat[0][|
|00004490| 30 5d 2c 70 64 61 74 5b | 30 5d 5b 31 5d 29 3b 0d |0],pdat[|0][1]);.|
|000044a0| 0a 20 20 20 66 6f 72 20 | 28 69 20 3d 20 30 3b 69 |. for |(i = 0;i|
|000044b0| 20 3c 3d 20 31 30 30 3b | 69 2b 2b 29 0d 0a 20 20 | <= 100;|i++).. |
|000044c0| 20 20 20 20 7b 0d 0a 20 | 20 20 20 20 20 6c 69 6e | {.. | lin|
|000044d0| 65 74 6f 28 70 64 61 74 | 5b 69 5d 5b 30 5d 2c 70 |eto(pdat|[i][0],p|
|000044e0| 64 61 74 5b 69 5d 5b 31 | 5d 29 3b 0d 0a 20 20 20 |dat[i][1|]);.. |
|000044f0| 20 20 20 7d 0d 0a 20 20 | 20 73 74 72 6f 6b 65 28 | }.. | stroke(|
|00004500| 29 3b 0d 0a 20 20 20 7d | 0d 0a 0d 0a 69 6e 74 20 |);.. }|....int |
|00004510| 70 68 6f 74 6f 6e 28 64 | 6f 75 62 6c 65 20 78 30 |photon(d|ouble x0|
|00004520| 2c 64 6f 75 62 6c 65 20 | 79 30 2c 64 6f 75 62 6c |,double |y0,doubl|
|00004530| 65 20 78 73 63 61 6c 65 | 2c 64 6f 75 62 6c 65 20 |e xscale|,double |
|00004540| 79 73 63 61 6c 65 29 0d | 0a 20 20 20 7b 0d 0a 20 |yscale).|. {.. |
|00004550| 20 20 64 6f 75 62 6c 65 | 20 78 2c 79 3b 0d 0a 20 | double| x,y;.. |
|00004560| 20 20 69 6e 74 20 69 3b | 0d 0a 0d 0a 20 20 20 2f | int i;|.... /|
|00004570| 2a 20 64 72 61 77 20 61 | 20 70 68 6f 74 6f 6e 20 |* draw a| photon |
|00004580| 75 73 69 6e 67 20 74 68 | 65 20 73 69 6e 65 20 66 |using th|e sine f|
|00004590| 75 6e 63 74 69 6f 6e 20 | 2a 2f 0d 0a 20 20 20 6d |unction |*/.. m|
|000045a0| 6f 76 65 74 6f 28 78 30 | 2c 79 30 29 3b 0d 0a 20 |oveto(x0|,y0);.. |
|000045b0| 20 20 66 6f 72 20 28 69 | 20 3d 20 30 3b 69 20 3c | for (i| = 0;i <|
|000045c0| 20 35 30 3b 69 2b 2b 29 | 0d 0a 20 20 20 20 20 20 | 50;i++)|.. |
|000045d0| 7b 0d 0a 20 20 20 20 20 | 20 78 20 3d 20 69 20 2a |{.. | x = i *|
|000045e0| 20 30 2e 32 35 35 3b 0d | 0a 20 20 20 20 20 20 79 | 0.255;.|. y|
|000045f0| 20 3d 20 73 69 6e 28 78 | 29 3b 0d 0a 20 20 20 20 | = sin(x|);.. |
|00004600| 20 20 6c 69 6e 65 74 6f | 28 78 20 2a 20 78 73 63 | lineto|(x * xsc|
|00004610| 61 6c 65 20 2b 20 78 30 | 2c 79 20 2a 20 79 73 63 |ale + x0|,y * ysc|
|00004620| 61 6c 65 20 2b 20 79 30 | 29 3b 0d 0a 20 20 20 20 |ale + y0|);.. |
|00004630| 20 20 7d 0d 0a 20 20 20 | 73 65 74 28 46 4f 4e 54 | }.. |set(FONT|
|00004640| 4d 55 4c 54 2c 32 29 3b | 20 20 20 20 0d 0a 20 20 |MULT,2);| .. |
|00004650| 20 72 61 72 72 6f 77 74 | 6f 28 32 2e 35 20 2a 20 | rarrowt|o(2.5 * |
|00004660| 78 73 63 61 6c 65 2c 30 | 29 3b 0d 0a 20 20 20 73 |xscale,0|);.. s|
|00004670| 65 74 28 46 4f 4e 54 4d | 55 4c 54 2c 30 2e 35 29 |et(FONTM|ULT,0.5)|
|00004680| 3b 20 20 20 20 0d 0a 20 | 20 20 73 74 72 6f 6b 65 |; .. | stroke|
|00004690| 28 29 3b 0d 0a 20 20 20 | 7d 0d 0a 5c 65 6e 64 7b |();.. |}..\end{|
|000046a0| 76 65 72 62 61 74 69 6d | 7d 0d 0a 7d 0d 0a 0d 0a |verbatim|}..}....|
|000046b0| 5c 6e 65 77 70 61 67 65 | 0d 0a 5c 73 65 63 74 69 |\newpage|..\secti|
|000046c0| 6f 6e 7b 6c 69 6e 65 64 | 72 61 77 2e 73 70 74 7d |on{lined|raw.spt}|
|000046d0| 20 0d 0a 0d 0a 5c 76 73 | 70 61 63 65 2a 7b 31 36 | ....\vs|pace*{16|
|000046e0| 63 6d 7d 20 0d 0a 5c 73 | 70 65 63 69 61 6c 7b 70 |cm} ..\s|pecial{p|
|000046f0| 73 66 69 6c 65 3d 6c 69 | 6e 65 64 72 61 77 2e 65 |sfile=li|nedraw.e|
|00004700| 70 73 20 68 73 63 61 6c | 65 3d 36 30 20 76 73 63 |ps hscal|e=60 vsc|
|00004710| 61 6c 65 3d 36 30 20 68 | 6f 66 66 73 65 74 3d 31 |ale=60 h|offset=1|
|00004720| 20 76 6f 66 66 73 65 74 | 3d 30 7d 0d 0a 5c 69 6e | voffset|=0}..\in|
|00004730| 64 65 78 7b 64 72 61 77 | 69 6e 67 2c 20 65 78 61 |dex{draw|ing, exa|
|00004740| 6d 70 6c 65 7d 0d 0a 0d | 0a 7b 5c 74 74 0d 0a 5c |mple}...|.{\tt..\|
|00004750| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0d |begin{ve|rbatim}.|
|00004760| 0a 2f 2a 20 54 68 69 73 | 20 66 69 6c 65 20 69 6c |./* This| file il|
|00004770| 6c 75 73 74 72 61 74 65 | 73 20 68 6f 77 20 74 6f |lustrate|s how to|
|00004780| 20 67 65 6e 65 72 61 74 | 65 20 61 20 6c 69 6e 65 | generat|e a line|
|00004790| 20 64 72 61 77 69 6e 67 | 20 6f 66 20 61 70 70 61 | drawing| of appa|
|000047a0| 72 61 74 75 73 20 2a 2f | 20 0d 0a 2f 2a 20 49 74 |ratus */| ../* It|
|000047b0| 20 6d 61 6b 65 73 20 68 | 65 61 76 79 20 75 73 65 | makes h|eavy use|
|000047c0| 20 6f 66 20 67 73 61 76 | 65 28 29 20 61 6e 64 20 | of gsav|e() and |
|000047d0| 67 72 65 73 74 6f 72 65 | 28 29 20 61 6e 64 20 61 |grestore|() and a|
|000047e0| 78 65 73 20 74 72 61 6e | 73 66 6f 72 6d 61 74 69 |xes tran|sformati|
|000047f0| 6f 6e 73 2a 2f 0d 0a 2f | 2a 20 74 6f 20 64 72 61 |ons*/../|* to dra|
|00004800| 77 20 65 6c 65 6d 65 6e | 74 73 20 72 65 70 65 61 |w elemen|ts repea|
|00004810| 74 65 64 6c 79 20 69 6e | 20 64 69 66 66 65 72 65 |tedly in| differe|
|00004820| 6e 74 20 6c 6f 63 61 74 | 69 6f 6e 73 20 61 6e 64 |nt locat|ions and|
|00004830| 2f 6f 72 20 6f 72 69 65 | 6e 74 61 74 69 6f 6e 73 |/or orie|ntations|
|00004840| 20 2a 2f 0d 0a 2f 2a 20 | 54 68 69 73 20 69 73 20 | */../* |This is |
|00004850| 6a 75 73 74 20 6f 6e 65 | 20 77 61 79 20 74 6f 20 |just one| way to |
|00004860| 64 6f 20 74 68 69 73 2e | 20 2a 2f 0d 0a 0d 0a 23 |do this.| */....#|
|00004870| 69 6e 63 6c 75 64 65 20 | 3c 73 70 6c 6f 74 2e 68 |include |<splot.h|
|00004880| 3e 0d 0a 0d 0a 6d 61 69 | 6e 28 29 0d 0a 20 20 20 |>....mai|n().. |
|00004890| 7b 0d 0a 20 20 20 2f 2a | 20 69 74 20 74 75 72 6e |{.. /*| it turn|
|000048a0| 65 64 20 6f 75 74 20 74 | 6f 6f 20 62 69 67 20 69 |ed out t|oo big i|
|000048b0| 6e 20 74 68 65 20 65 6e | 64 20 73 6f 20 73 63 61 |n the en|d so sca|
|000048c0| 6c 65 20 69 74 20 62 61 | 63 6b 20 73 6f 6d 65 20 |le it ba|ck some |
|000048d0| 2a 2f 0d 0a 20 20 20 73 | 63 61 6c 65 28 30 2e 37 |*/.. s|cale(0.7|
|000048e0| 35 2c 30 2e 37 35 29 3b | 0d 0a 0d 0a 20 20 20 2f |5,0.75);|.... /|
|000048f0| 2a 20 64 72 61 77 20 44 | 65 77 61 72 20 2a 2f 0d |* draw D|ewar */.|
|00004900| 0a 20 20 20 74 61 69 6c | 28 29 3b 0d 0a 20 20 20 |. tail|();.. |
|00004910| 67 73 61 76 65 28 29 3b | 0d 0a 20 20 20 2f 2a 20 |gsave();|.. /* |
|00004920| 64 72 61 77 20 61 20 73 | 6c 69 67 68 74 6c 79 20 |draw a s|lightly |
|00004930| 62 69 67 67 65 72 20 74 | 61 69 6c 20 61 72 6f 75 |bigger t|ail arou|
|00004940| 6e 64 20 74 68 65 20 66 | 69 72 73 74 20 2a 2f 0d |nd the f|irst */.|
|00004950| 0a 20 20 20 73 63 61 6c | 65 28 31 2e 32 35 2c 31 |. scal|e(1.25,1|
|00004960| 2e 30 35 29 3b 0d 0a 20 | 20 20 74 72 61 6e 73 6c |.05);.. | transl|
|00004970| 61 74 65 28 2d 31 2e 30 | 35 2c 2d 30 2e 35 29 3b |ate(-1.0|5,-0.5);|
|00004980| 20 0d 0a 20 20 20 74 61 | 69 6c 28 29 3b 0d 0a 20 | .. ta|il();.. |
|00004990| 20 20 67 72 65 73 74 6f | 72 65 28 29 3b 0d 0a 0d | gresto|re();...|
|000049a0| 0a 20 20 20 2f 2a 20 64 | 72 61 77 20 6c 65 6e 73 |. /* d|raw lens|
|000049b0| 65 73 20 2a 2f 0d 0a 20 | 20 20 6e 65 77 70 61 74 |es */.. | newpat|
|000049c0| 68 28 29 3b 0d 0a 20 20 | 20 73 65 74 28 4c 49 4e |h();.. | set(LIN|
|000049d0| 45 43 4f 4c 4f 55 52 2c | 42 52 4f 57 4e 29 3b 0d |ECOLOUR,|BROWN);.|
|000049e0| 0a 20 20 20 67 73 61 76 | 65 28 29 3b 0d 0a 20 20 |. gsav|e();.. |
|000049f0| 20 74 72 61 6e 73 6c 61 | 74 65 28 31 32 2e 37 39 | transla|te(12.79|
|00004a00| 2c 31 30 2e 38 35 29 3b | 0d 0a 20 20 20 72 6f 74 |,10.85);|.. rot|
|00004a10| 61 74 65 28 39 30 29 3b | 0d 0a 20 20 20 73 63 61 |ate(90);|.. sca|
|00004a20| 6c 65 28 32 2c 32 29 3b | 0d 0a 20 20 20 6c 65 6e |le(2,2);|.. len|
|00004a30| 73 28 29 3b 0d 0a 20 20 | 20 67 72 65 73 74 6f 72 |s();.. | grestor|
|00004a40| 65 28 29 3b 0d 0a 20 20 | 20 67 73 61 76 65 28 29 |e();.. | gsave()|
|00004a50| 3b 0d 0a 20 20 20 74 72 | 61 6e 73 6c 61 74 65 28 |;.. tr|anslate(|
|00004a60| 31 31 2e 30 39 2c 36 2e | 32 31 29 3b 0d 0a 20 20 |11.09,6.|21);.. |
|00004a70| 20 73 63 61 6c 65 28 30 | 2e 35 2c 30 2e 35 29 3b | scale(0|.5,0.5);|
|00004a80| 0d 0a 20 20 20 6c 65 6e | 73 28 29 3b 0d 0a 20 20 |.. len|s();.. |
|00004a90| 20 67 72 65 73 74 6f 72 | 65 28 29 3b 0d 0a 0d 0a | grestor|e();....|
|00004aa0| 20 20 20 2f 2a 20 64 72 | 61 77 20 74 68 65 20 70 | /* dr|aw the p|
|00004ab0| 72 69 73 6d 20 2a 2f 0d | 0a 20 20 20 67 73 61 76 |rism */.|. gsav|
|00004ac0| 65 28 29 3b 0d 0a 20 20 | 20 74 72 61 6e 73 6c 61 |e();.. | transla|
|00004ad0| 74 65 28 31 30 2e 38 34 | 2c 31 30 2e 36 29 3b 0d |te(10.84|,10.6);.|
|00004ae0| 0a 20 20 20 70 72 69 73 | 6d 28 29 3b 0d 0a 20 20 |. pris|m();.. |
|00004af0| 20 67 72 65 73 74 6f 72 | 65 28 29 3b 0d 0a 0d 0a | grestor|e();....|
|00004b00| 20 20 20 2f 2a 20 64 72 | 61 77 20 68 65 6c 69 75 | /* dr|aw heliu|
|00004b10| 6d 20 6c 65 76 65 6c 20 | 2a 2f 0d 0a 20 20 20 73 |m level |*/.. s|
|00004b20| 65 74 28 4c 49 4e 45 43 | 4f 4c 4f 55 52 2c 42 4c |et(LINEC|OLOUR,BL|
|00004b30| 55 45 29 3b 0d 0a 20 20 | 20 6d 6f 76 65 74 6f 28 |UE);.. | moveto(|
|00004b40| 32 2e 34 34 2c 38 2e 30 | 38 29 3b 0d 0a 20 20 20 |2.44,8.0|8);.. |
|00004b50| 63 75 72 76 65 74 6f 28 | 33 2e 31 33 2c 37 2e 36 |curveto(|3.13,7.6|
|00004b60| 36 2c 33 2e 38 32 2c 38 | 2e 36 38 2c 34 2e 31 33 |6,3.82,8|.68,4.13|
|00004b70| 2c 37 2e 39 36 29 3b 0d | 0a 20 20 20 63 75 72 76 |,7.96);.|. curv|
|00004b80| 65 74 6f 28 34 2e 38 39 | 2c 38 2e 33 38 2c 35 2e |eto(4.89|,8.38,5.|
|00004b90| 33 32 2c 37 2e 37 32 2c | 35 2e 38 39 2c 38 2e 32 |32,7.72,|5.89,8.2|
|00004ba0| 30 29 3b 0d 0a 20 20 20 | 63 75 72 76 65 74 6f 28 |0);.. |curveto(|
|00004bb0| 36 2e 35 38 2c 37 2e 37 | 32 2c 37 2e 30 38 2c 38 |6.58,7.7|2,7.08,8|
|00004bc0| 2e 37 34 2c 37 2e 37 37 | 2c 38 2e 30 38 29 3b 0d |.74,7.77|,8.08);.|
|00004bd0| 0a 20 20 20 73 74 72 6f | 6b 65 28 29 3b 0d 0a 0d |. stro|ke();...|
|00004be0| 0a 20 20 20 2f 2a 20 64 | 72 61 77 20 34 35 20 64 |. /* d|raw 45 d|
|00004bf0| 65 67 72 65 65 20 66 6f | 6c 64 20 6d 69 72 72 6f |egree fo|ld mirro|
|00004c00| 72 20 2a 2f 0d 0a 20 20 | 20 73 65 74 28 4c 49 4e |r */.. | set(LIN|
|00004c10| 45 43 4f 4c 4f 55 52 2c | 42 4c 41 43 4b 29 3b 0d |ECOLOUR,|BLACK);.|
|00004c20| 0a 20 20 20 6d 6f 76 65 | 74 6f 28 34 2e 30 37 2c |. move|to(4.07,|
|00004c30| 31 31 2e 37 32 29 3b 0d | 0a 20 20 20 6c 69 6e 65 |11.72);.|. line|
|00004c40| 74 6f 28 35 2e 36 34 2c | 31 30 2e 31 35 2c 35 2e |to(5.64,|10.15,5.|
|00004c50| 34 34 2c 39 2e 39 35 2c | 33 2e 36 34 2c 31 31 2e |44,9.95,|3.64,11.|
|00004c60| 37 32 29 3b 0d 0a 20 20 | 20 63 6c 6f 73 65 70 61 |72);.. | closepa|
|00004c70| 74 68 28 29 3b 0d 0a 0d | 0a 20 20 20 2f 2a 20 64 |th();...|. /* d|
|00004c80| 72 61 77 20 64 69 61 6d | 6e 6f 6e 64 20 61 6e 76 |raw diam|nond anv|
|00004c90| 69 6c 20 63 65 6c 6c 20 | 2a 2f 0d 0a 20 20 20 6d |il cell |*/.. m|
|00004ca0| 6f 76 65 74 6f 28 33 2e | 33 38 2c 31 31 2e 37 32 |oveto(3.|38,11.72|
|00004cb0| 29 3b 0d 0a 20 20 20 6c | 69 6e 65 74 6f 28 36 2e |);.. l|ineto(6.|
|00004cc0| 38 32 2c 31 31 2e 37 32 | 2c 36 2e 38 32 2c 31 37 |82,11.72|,6.82,17|
|00004cd0| 2e 30 37 2c 37 2e 33 33 | 2c 31 37 2e 30 37 2c 37 |.07,7.33|,17.07,7|
|00004ce0| 2e 33 33 2c 31 37 2e 37 | 33 2c 32 2e 38 38 2c 31 |.33,17.7|3,2.88,1|
|00004cf0| 37 2e 37 33 2c 0d 0a 20 | 20 20 20 20 20 20 20 20 |7.73,.. | |
|00004d00| 20 32 2e 38 38 2c 31 37 | 2e 30 37 2c 33 2e 33 38 | 2.88,17|.07,3.38|
|00004d10| 2c 31 37 2e 30 37 29 3b | 0d 0a 20 20 20 63 6c 6f |,17.07);|.. clo|
|00004d20| 73 65 70 61 74 68 28 29 | 3b 0d 0a 20 20 20 6d 6f |sepath()|;.. mo|
|00004d30| 76 65 74 6f 28 33 2e 38 | 32 2c 31 37 2e 37 32 29 |veto(3.8|2,17.72)|
|00004d40| 3b 0d 0a 20 20 20 6c 69 | 6e 65 74 6f 28 33 2e 38 |;.. li|neto(3.8|
|00004d50| 32 2c 31 38 2c 36 2e 33 | 33 2c 31 38 2c 36 2e 33 |2,18,6.3|3,18,6.3|
|00004d60| 33 2c 31 37 2e 37 32 29 | 3b 0d 0a 20 20 20 73 74 |3,17.72)|;.. st|
|00004d70| 72 6f 6b 65 28 29 3b 0d | 0a 0d 0a 20 20 20 2f 2a |roke();.|... /*|
|00004d80| 20 64 72 61 77 20 70 6c | 61 74 65 20 61 6e 64 20 | draw pl|ate and |
|00004d90| 73 63 72 65 77 73 20 2a | 2f 0d 0a 20 20 20 6d 6f |screws *|/.. mo|
|00004da0| 76 65 74 6f 28 32 2e 38 | 38 2c 31 38 2e 30 29 3b |veto(2.8|8,18.0);|
|00004db0| 0d 0a 20 20 20 6c 69 6e | 65 74 6f 28 37 2e 33 33 |.. lin|eto(7.33|
|00004dc0| 2c 31 38 2e 30 2c 37 2e | 33 33 2c 31 38 2e 37 36 |,18.0,7.|33,18.76|
|00004dd0| 2c 32 2e 38 38 2c 31 38 | 2e 37 36 29 3b 0d 0a 20 |,2.88,18|.76);.. |
|00004de0| 20 20 63 6c 6f 73 65 70 | 61 74 68 28 29 3b 0d 0a | closep|ath();..|
|00004df0| 20 20 20 73 74 72 6f 6b | 65 28 29 3b 0d 0a 20 20 | strok|e();.. |
|00004e00| 20 67 73 61 76 65 28 29 | 3b 0d 0a 20 20 20 74 72 | gsave()|;.. tr|
|00004e10| 61 6e 73 6c 61 74 65 28 | 33 2e 33 38 2c 31 38 2e |anslate(|3.38,18.|
|00004e20| 37 36 29 3b 0d 0a 20 20 | 20 73 63 72 65 77 28 31 |76);.. | screw(1|
|00004e30| 2e 35 29 3b 0d 0a 20 20 | 20 74 72 61 6e 73 6c 61 |.5);.. | transla|
|00004e40| 74 65 28 33 2e 34 35 2c | 30 29 3b 0d 0a 20 20 20 |te(3.45,|0);.. |
|00004e50| 73 63 72 65 77 28 31 2e | 35 29 3b 0d 0a 20 20 20 |screw(1.|5);.. |
|00004e60| 67 72 65 73 74 6f 72 65 | 28 29 3b 0d 0a 0d 0a 20 |grestore|();.... |
|00004e70| 20 20 2f 2a 20 64 72 61 | 77 20 68 65 61 74 65 72 | /* dra|w heater|
|00004e80| 20 2a 2f 0d 0a 20 20 20 | 67 73 61 76 65 28 29 3b | */.. |gsave();|
|00004e90| 0d 0a 20 20 20 74 72 61 | 6e 73 6c 61 74 65 28 37 |.. tra|nslate(7|
|00004ea0| 2e 30 2c 31 33 2e 30 33 | 29 3b 0d 0a 20 20 20 68 |.0,13.03|);.. h|
|00004eb0| 65 61 74 65 72 28 29 3b | 0d 0a 20 20 20 74 72 61 |eater();|.. tra|
|00004ec0| 6e 73 6c 61 74 65 28 2d | 33 2e 38 2c 30 29 3b 0d |nslate(-|3.8,0);.|
|00004ed0| 0a 20 20 20 68 65 61 74 | 65 72 28 29 3b 0d 0a 20 |. heat|er();.. |
|00004ee0| 20 20 67 72 65 73 74 6f | 72 65 28 29 3b 0d 0a 0d | gresto|re();...|
|00004ef0| 0a 20 20 20 2f 2a 20 64 | 72 61 77 20 73 6c 69 74 |. /* d|raw slit|
|00004f00| 73 20 2a 2f 0d 0a 20 20 | 20 67 73 61 76 65 28 29 |s */.. | gsave()|
|00004f10| 3b 0d 0a 20 20 20 74 72 | 61 6e 73 6c 61 74 65 28 |;.. tr|anslate(|
|00004f20| 32 31 2e 38 2c 31 31 2e | 30 29 3b 0d 0a 20 20 20 |21.8,11.|0);.. |
|00004f30| 73 6c 69 74 28 29 3b 0d | 0a 20 20 20 67 72 65 73 |slit();.|. gres|
|00004f40| 74 6f 72 65 28 29 3b 0d | 0a 20 20 20 67 73 61 76 |tore();.|. gsav|
|00004f50| 65 28 29 3b 0d 0a 20 20 | 20 73 63 61 6c 65 28 31 |e();.. | scale(1|
|00004f60| 2c 2d 31 29 3b 0d 0a 20 | 20 20 74 72 61 6e 73 6c |,-1);.. | transl|
|00004f70| 61 74 65 28 32 31 2e 38 | 2c 2d 31 30 2e 36 29 3b |ate(21.8|,-10.6);|
|00004f80| 0d 0a 20 20 20 73 6c 69 | 74 28 29 3b 0d 0a 20 20 |.. sli|t();.. |
|00004f90| 20 67 72 65 73 74 6f 72 | 65 28 29 3b 0d 0a 0d 0a | grestor|e();....|
|00004fa0| 20 20 20 2f 2a 20 64 72 | 61 77 20 70 65 72 69 73 | /* dr|aw peris|
|00004fb0| 63 6f 70 65 20 2a 2f 0d | 0a 20 20 20 6d 6f 76 65 |cope */.|. move|
|00004fc0| 74 6f 28 32 32 2e 38 32 | 2c 31 30 2e 34 35 29 3b |to(22.82|,10.45);|
|00004fd0| 0d 0a 20 20 20 6c 69 6e | 65 74 6f 28 32 33 2e 35 |.. lin|eto(23.5|
|00004fe0| 37 2c 31 31 2e 31 38 29 | 3b 0d 0a 20 20 20 72 6c |7,11.18)|;.. rl|
|00004ff0| 69 6e 65 74 6f 28 30 2c | 32 2c 20 30 2e 37 35 2c |ineto(0,|2, 0.75,|
|00005000| 30 2c 20 30 2c 31 2e 35 | 2c 20 2d 32 2c 30 2c 20 |0, 0,1.5|, -2,0, |
|00005010| 30 2c 2d 31 2e 35 2c 20 | 30 2e 37 35 2c 30 2c 20 |0,-1.5, |0.75,0, |
|00005020| 30 2c 2d 32 2c 20 30 2e | 35 2c 30 29 3b 0d 0a 20 |0,-2, 0.|5,0);.. |
|00005030| 20 20 73 74 72 6f 6b 65 | 28 29 3b 0d 0a 0d 0a 20 | stroke|();.... |
|00005040| 20 20 2f 2a 20 64 72 61 | 77 20 61 72 72 6f 77 73 | /* dra|w arrows|
|00005050| 20 2a 2f 0d 0a 20 20 20 | 6d 6f 76 65 74 6f 28 32 | */.. |moveto(2|
|00005060| 35 2e 36 36 2c 31 34 2e | 30 37 29 3b 0d 0a 20 20 |5.66,14.|07);.. |
|00005070| 20 61 72 72 6f 77 74 6f | 28 32 35 2e 36 36 2c 31 | arrowto|(25.66,1|
|00005080| 34 2e 37 39 29 3b 0d 0a | 20 20 20 6d 6f 76 65 74 |4.79);..| movet|
|00005090| 6f 28 32 35 2e 36 36 2c | 31 34 2e 30 37 29 3b 0d |o(25.66,|14.07);.|
|000050a0| 0a 20 20 20 61 72 72 6f | 77 74 6f 28 32 35 2e 36 |. arro|wto(25.6|
|000050b0| 36 2c 31 33 2e 33 35 29 | 3b 0d 0a 20 20 20 73 74 |6,13.35)|;.. st|
|000050c0| 72 6f 6b 65 28 29 3b 0d | 0a 0d 0a 20 20 20 2f 2a |roke();.|... /*|
|000050d0| 20 64 72 61 77 20 73 63 | 72 65 77 20 64 72 69 76 | draw sc|rew driv|
|000050e0| 65 72 73 20 61 6e 64 20 | 6c 69 67 68 74 20 70 69 |ers and |light pi|
|000050f0| 70 65 20 2a 2f 0d 0a 20 | 20 20 6d 6f 76 65 74 6f |pe */.. | moveto|
|00005100| 28 34 2e 37 36 2c 31 38 | 2e 37 36 29 3b 0d 0a 20 |(4.76,18|.76);.. |
|00005110| 20 20 6c 69 6e 65 74 6f | 28 34 2e 37 36 2c 33 30 | lineto|(4.76,30|
|00005120| 2e 30 29 3b 0d 0a 20 20 | 20 6d 6f 76 65 74 6f 28 |.0);.. | moveto(|
|00005130| 35 2e 34 35 2c 31 38 2e | 37 36 29 3b 0d 0a 20 20 |5.45,18.|76);.. |
|00005140| 20 6c 69 6e 65 74 6f 28 | 35 2e 34 35 2c 33 30 2e | lineto(|5.45,30.|
|00005150| 30 29 3b 0d 0a 20 20 20 | 73 74 72 6f 6b 65 28 29 |0);.. |stroke()|
|00005160| 3b 0d 0a 20 20 20 67 73 | 61 76 65 28 29 3b 0d 0a |;.. gs|ave();..|
|00005170| 20 20 20 74 72 61 6e 73 | 6c 61 74 65 28 33 2e 33 | trans|late(3.3|
|00005180| 38 2c 31 38 2e 39 29 3b | 0d 0a 20 20 20 64 72 69 |8,18.9);|.. dri|
|00005190| 76 65 72 28 29 3b 0d 0a | 20 20 20 74 72 61 6e 73 |ver();..| trans|
|000051a0| 6c 61 74 65 28 33 2e 34 | 35 2c 30 29 3b 0d 0a 20 |late(3.4|5,0);.. |
|000051b0| 20 20 64 72 69 76 65 72 | 28 29 3b 0d 0a 20 20 20 | driver|();.. |
|000051c0| 67 72 65 73 74 6f 72 65 | 28 29 3b 0d 0a 0d 0a 20 |grestore|();.... |
|000051d0| 20 20 2f 2a 20 77 68 69 | 74 65 20 6f 75 74 20 73 | /* whi|te out s|
|000051e0| 6f 6d 65 20 6f 66 20 74 | 68 65 20 6c 69 6e 65 73 |ome of t|he lines|
|000051f0| 20 61 74 20 2a 2f 0d 0a | 20 20 20 2f 2a 20 74 68 | at */..| /* th|
|00005200| 65 20 74 6f 70 20 74 68 | 61 74 20 74 75 72 6e 65 |e top th|at turne|
|00005210| 64 20 6f 75 74 20 74 6f | 6f 20 6c 6f 6e 67 20 2a |d out to|o long *|
|00005220| 2f 0d 0a 20 20 20 77 68 | 69 74 65 5f 62 6f 78 28 |/.. wh|ite_box(|
|00005230| 31 2e 31 37 2c 32 39 2e | 36 37 2c 38 2e 36 31 2c |1.17,29.|67,8.61,|
|00005240| 33 31 2e 32 30 29 3b 0d | 0a 20 20 20 6e 65 77 70 |31.20);.|. newp|
|00005250| 61 74 68 28 29 3b 0d 0a | 0d 0a 20 20 20 2f 2a 20 |ath();..|.. /* |
|00005260| 64 72 61 77 20 63 6f 70 | 70 65 72 20 67 61 73 6b |draw cop|per gask|
|00005270| 65 74 20 2a 2f 0d 0a 20 | 20 20 67 73 61 76 65 28 |et */.. | gsave(|
|00005280| 29 3b 0d 0a 20 20 20 73 | 65 74 28 4c 49 4e 45 43 |);.. s|et(LINEC|
|00005290| 4f 4c 4f 55 52 2c 47 52 | 45 45 4e 29 3b 0d 0a 20 |OLOUR,GR|EEN);.. |
|000052a0| 20 20 73 65 74 28 4c 49 | 4e 45 57 49 44 54 48 2c | set(LI|NEWIDTH,|
|000052b0| 30 2e 31 30 29 3b 0d 0a | 20 20 20 6d 6f 76 65 74 |0.10);..| movet|
|000052c0| 6f 28 34 2e 35 37 2c 31 | 33 2e 37 29 3b 0d 0a 20 |o(4.57,1|3.7);.. |
|000052d0| 20 20 6c 69 6e 65 74 6f | 28 35 2e 35 37 2c 31 33 | lineto|(5.57,13|
|000052e0| 2e 37 29 3b 0d 0a 20 20 | 20 73 74 72 6f 6b 65 28 |.7);.. | stroke(|
|000052f0| 29 3b 0d 0a 20 20 20 67 | 72 65 73 74 6f 72 65 28 |);.. g|restore(|
|00005300| 29 3b 0d 0a 0d 0a 20 20 | 20 2f 2a 20 64 72 61 77 |);.... | /* draw|
|00005310| 20 64 61 73 68 65 64 20 | 6c 69 6e 65 73 20 69 6e | dashed |lines in|
|00005320| 20 64 69 61 6d 6f 6e 64 | 20 63 65 6c 6c 20 2a 2f | diamond| cell */|
|00005330| 0d 0a 20 20 20 73 65 74 | 28 4c 49 4e 45 53 54 59 |.. set|(LINESTY|
|00005340| 4c 45 2c 30 2e 35 2c 30 | 2e 32 35 29 3b 0d 0a 20 |LE,0.5,0|.25);.. |
|00005350| 20 20 6d 6f 76 65 74 6f | 28 33 2e 38 32 2c 31 37 | moveto|(3.82,17|
|00005360| 2e 37 32 29 3b 0d 0a 20 | 20 20 6c 69 6e 65 74 6f |.72);.. | lineto|
|00005370| 28 33 2e 38 32 2c 31 32 | 2e 36 30 2c 36 2e 33 33 |(3.82,12|.60,6.33|
|00005380| 2c 31 32 2e 36 30 2c 36 | 2e 33 33 2c 31 37 2e 37 |,12.60,6|.33,17.7|
|00005390| 32 29 3b 0d 0a 20 20 20 | 6d 6f 76 65 74 6f 28 33 |2);.. |moveto(3|
|000053a0| 2e 38 32 2c 31 34 2e 38 | 29 3b 0d 0a 20 20 20 6c |.82,14.8|);.. l|
|000053b0| 69 6e 65 74 6f 28 36 2e | 33 33 2c 31 34 2e 38 29 |ineto(6.|33,14.8)|
|000053c0| 3b 0d 0a 20 20 20 6d 6f | 76 65 74 6f 28 34 2e 37 |;.. mo|veto(4.7|
|000053d0| 36 2c 31 34 2e 38 29 3b | 0d 0a 20 20 20 6c 69 6e |6,14.8);|.. lin|
|000053e0| 65 74 6f 28 34 2e 37 36 | 2c 31 38 2e 37 36 29 3b |eto(4.76|,18.76);|
|000053f0| 0d 0a 20 20 20 6d 6f 76 | 65 74 6f 28 35 2e 34 35 |.. mov|eto(5.45|
|00005400| 2c 31 34 2e 38 29 3b 0d | 0a 20 20 20 6c 69 6e 65 |,14.8);.|. line|
|00005410| 74 6f 28 35 2e 34 35 2c | 31 38 2e 37 36 29 3b 0d |to(5.45,|18.76);.|
|00005420| 0a 20 20 20 6d 6f 76 65 | 74 6f 28 34 2e 37 36 2c |. move|to(4.76,|
|00005430| 31 32 2e 36 29 3b 0d 0a | 20 20 20 6c 69 6e 65 74 |12.6);..| linet|
|00005440| 6f 28 34 2e 33 38 2c 31 | 31 2e 37 32 29 3b 0d 0a |o(4.38,1|1.72);..|
|00005450| 20 20 20 6d 6f 76 65 74 | 6f 28 35 2e 34 35 2c 31 | movet|o(5.45,1|
|00005460| 32 2e 36 29 3b 0d 0a 20 | 20 20 6c 69 6e 65 74 6f |2.6);.. | lineto|
|00005470| 28 35 2e 38 33 2c 31 31 | 2e 37 32 29 3b 0d 0a 20 |(5.83,11|.72);.. |
|00005480| 20 20 73 74 72 6f 6b 65 | 28 29 3b 0d 0a 0d 0a 20 | stroke|();.... |
|00005490| 20 20 2f 2a 20 64 72 61 | 77 20 74 68 65 20 73 61 | /* dra|w the sa|
|000054a0| 70 70 68 69 72 65 20 61 | 6e 76 69 6c 73 20 2a 2f |pphire a|nvils */|
|000054b0| 0d 0a 20 20 20 67 73 61 | 76 65 28 29 3b 0d 0a 20 |.. gsa|ve();.. |
|000054c0| 20 20 74 72 61 6e 73 6c | 61 74 65 28 34 2e 33 32 | transl|ate(4.32|
|000054d0| 2c 31 32 2e 36 29 3b 0d | 0a 20 20 20 61 6e 76 69 |,12.6);.|. anvi|
|000054e0| 6c 28 29 3b 0d 0a 20 20 | 20 74 72 61 6e 73 6c 61 |l();.. | transla|
|000054f0| 74 65 28 31 2e 35 2c 32 | 2e 32 29 3b 0d 0a 20 20 |te(1.5,2|.2);.. |
|00005500| 20 72 6f 74 61 74 65 28 | 31 38 30 29 3b 0d 0a 20 | rotate(|180);.. |
|00005510| 20 20 61 6e 76 69 6c 28 | 29 3b 0d 0a 20 20 20 67 | anvil(|);.. g|
|00005520| 72 65 73 74 6f 72 65 28 | 29 3b 0d 0a 20 20 20 73 |restore(|);.. s|
|00005530| 74 72 6f 6b 65 28 29 3b | 0d 0a 0d 0a 20 20 20 2f |troke();|.... /|
|00005540| 2a 20 64 72 61 77 20 6c | 69 67 68 74 20 70 61 74 |* draw l|ight pat|
|00005550| 68 73 20 2a 2f 0d 0a 20 | 20 20 73 65 74 28 4c 49 |hs */.. | set(LI|
|00005560| 4e 45 43 4f 4c 4f 55 52 | 2c 4d 41 47 45 4e 54 41 |NECOLOUR|,MAGENTA|
|00005570| 29 3b 0d 0a 20 20 20 6d | 6f 76 65 74 6f 28 35 2e |);.. m|oveto(5.|
|00005580| 31 2c 31 33 2e 35 37 29 | 3b 0d 0a 20 20 20 6c 69 |1,13.57)|;.. li|
|00005590| 6e 65 74 6f 28 35 2e 31 | 2c 31 30 2e 38 35 2c 31 |neto(5.1|,10.85,1|
|000055a0| 31 2e 30 39 2c 31 30 2e | 38 35 2c 31 31 2e 30 39 |1.09,10.|85,11.09|
|000055b0| 2c 30 2e 30 36 29 3b 0d | 0a 20 20 20 6d 6f 76 65 |,0.06);.|. move|
|000055c0| 74 6f 28 31 33 2e 33 35 | 2c 31 32 2e 39 29 3b 0d |to(13.35|,12.9);.|
|000055d0| 0a 20 20 20 6c 69 6e 65 | 74 6f 28 34 2e 37 2c 31 |. line|to(4.7,1|
|000055e0| 31 2e 32 32 2c 35 2e 31 | 2c 31 33 2e 35 31 2c 35 |1.22,5.1|,13.51,5|
|000055f0| 2e 34 35 2c 31 30 2e 34 | 33 2c 31 33 2e 33 35 2c |.45,10.4|3,13.35,|
|00005600| 38 2e 37 34 29 3b 0d 0a | 20 20 20 6d 6f 76 65 74 |8.74);..| movet|
|00005610| 6f 28 31 33 2e 33 35 2c | 31 32 2e 39 29 3b 0d 0a |o(13.35,|12.9);..|
|00005620| 20 20 20 6c 69 6e 65 74 | 6f 28 32 31 2e 37 33 2c | linet|o(21.73,|
|00005630| 31 30 2e 38 35 2c 31 33 | 2e 33 35 2c 38 2e 37 34 |10.85,13|.35,8.74|
|00005640| 29 3b 0d 0a 20 20 20 73 | 74 72 6f 6b 65 28 29 3b |);.. s|troke();|
|00005650| 0d 0a 0d 0a 20 20 20 2f | 2a 20 61 64 64 20 63 6f |.... /|* add co|
|00005660| 6d 6d 65 6e 74 73 20 2a | 2f 0d 0a 20 20 20 73 65 |mments *|/.. se|
|00005670| 74 28 4c 49 4e 45 43 4f | 4c 4f 55 52 2c 42 4c 41 |t(LINECO|LOUR,BLA|
|00005680| 43 4b 29 3b 0d 0a 20 20 | 20 73 65 74 28 4c 49 4e |CK);.. | set(LIN|
|00005690| 45 53 54 59 4c 45 2c 30 | 29 3b 0d 0a 20 20 20 73 |ESTYLE,0|);.. s|
|000056a0| 65 74 28 46 4f 4e 54 57 | 49 44 54 48 2c 31 2e 30 |et(FONTW|IDTH,1.0|
|000056b0| 29 3b 0d 0a 20 20 20 74 | 65 78 74 28 32 2e 33 33 |);.. t|ext(2.33|
|000056c0| 2c 33 32 2e 32 39 2c 22 | 48 69 67 68 20 50 72 65 |,32.29,"|High Pre|
|000056d0| 73 73 75 72 65 2c 20 4c | 6f 77 20 54 65 6d 70 65 |ssure, L|ow Tempe|
|000056e0| 72 61 74 75 72 65 20 53 | 70 65 63 74 72 6f 73 63 |rature S|pectrosc|
|000056f0| 6f 70 79 22 29 3b 0d 0a | 20 20 20 73 65 74 28 46 |opy");..| set(F|
|00005700| 4f 4e 54 57 49 44 54 48 | 2c 30 2e 36 29 3b 0d 0a |ONTWIDTH|,0.6);..|
|00005710| 20 20 20 74 65 78 74 28 | 33 2e 35 37 2c 34 2e 35 | text(|3.57,4.5|
|00005720| 38 2c 22 4c 69 71 75 69 | 64 20 48 65 22 29 3b 0d |8,"Liqui|d He");.|
|00005730| 0a 20 20 20 74 65 78 74 | 28 32 32 2e 36 35 2c 31 |. text|(22.65,1|
|00005740| 35 2e 36 30 2c 22 43 43 | 44 22 29 3b 0d 0a 20 20 |5.60,"CC|D");.. |
|00005750| 20 74 65 78 74 28 31 39 | 2e 38 31 2c 37 2e 33 39 | text(19|.81,7.39|
|00005760| 2c 22 53 70 65 63 74 72 | 6f 6d 65 74 65 72 22 29 |,"Spectr|ometer")|
|00005770| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.. | |
|00005780| 20 74 65 78 74 28 22 20 | 20 20 53 6c 69 74 73 22 | text(" | Slits"|
|00005790| 29 3b 0d 0a 20 20 20 74 | 65 78 74 28 39 2e 35 2c |);.. t|ext(9.5,|
|000057a0| 31 36 2e 37 2c 22 53 61 | 70 70 68 69 72 65 20 41 |16.7,"Sa|pphire A|
|000057b0| 6e 76 69 6c 20 43 65 6c | 6c 22 29 3b 0d 0a 20 20 |nvil Cel|l");.. |
|000057c0| 20 74 65 78 74 28 39 2e | 35 2c 31 34 2c 22 48 65 | text(9.|5,14,"He|
|000057d0| 61 74 65 72 22 29 3b 0d | 0a 20 20 20 74 65 78 74 |ater");.|. text|
|000057e0| 28 39 2e 35 2c 32 33 2e | 38 38 2c 22 4c 69 67 68 |(9.5,23.|88,"Ligh|
|000057f0| 74 20 50 69 70 65 22 29 | 3b 0d 0a 20 20 20 74 65 |t Pipe")|;.. te|
|00005800| 78 74 28 39 2e 35 2c 32 | 37 2c 22 53 63 72 65 77 |xt(9.5,2|7,"Screw|
|00005810| 20 44 72 69 76 65 72 73 | 22 29 3b 0d 0a 0d 0a 20 | Drivers|");.... |
|00005820| 20 20 2f 2a 20 64 72 61 | 77 20 6c 69 6e 65 73 20 | /* dra|w lines |
|00005830| 74 6f 20 6c 61 62 65 6c | 6c 65 64 20 70 61 72 74 |to label|led part|
|00005840| 73 20 2a 2f 0d 0a 20 20 | 20 73 65 74 28 4c 49 4e |s */.. | set(LIN|
|00005850| 45 57 49 44 54 48 2c 30 | 2e 30 31 29 3b 0d 0a 20 |EWIDTH,0|.01);.. |
|00005860| 20 20 6d 6f 76 65 74 6f | 28 34 2e 37 36 2c 35 2e | moveto|(4.76,5.|
|00005870| 34 36 29 3b 0d 0a 20 20 | 20 6c 69 6e 65 74 6f 28 |46);.. | lineto(|
|00005880| 35 2e 36 38 2c 36 2e 39 | 31 29 3b 0d 0a 20 20 20 |5.68,6.9|1);.. |
|00005890| 6d 6f 76 65 74 6f 28 39 | 2e 31 39 2c 31 33 2e 39 |moveto(9|.19,13.9|
|000058a0| 39 29 3b 0d 0a 20 20 20 | 6c 69 6e 65 74 6f 28 37 |9);.. |lineto(7|
|000058b0| 2e 32 37 2c 31 33 2e 37 | 35 29 3b 0d 0a 20 20 20 |.27,13.7|5);.. |
|000058c0| 6d 6f 76 65 74 6f 28 39 | 2e 32 37 2c 31 36 2e 36 |moveto(9|.27,16.6|
|000058d0| 34 29 3b 0d 0a 20 20 20 | 6c 69 6e 65 74 6f 28 37 |4);.. |lineto(7|
|000058e0| 2e 30 32 2c 31 36 2e 31 | 36 29 3b 0d 0a 20 20 20 |.02,16.1|6);.. |
|000058f0| 6d 6f 76 65 74 6f 28 39 | 2e 32 37 2c 32 33 2e 39 |moveto(9|.27,23.9|
|00005900| 36 29 3b 0d 0a 20 20 20 | 6c 69 6e 65 74 6f 28 35 |6);.. |lineto(5|
|00005910| 2e 36 38 2c 32 33 2e 36 | 34 29 3b 0d 0a 20 20 20 |.68,23.6|4);.. |
|00005920| 6d 6f 76 65 74 6f 28 39 | 2e 32 37 2c 32 37 2e 30 |moveto(9|.27,27.0|
|00005930| 32 29 3b 0d 0a 20 20 20 | 6c 69 6e 65 74 6f 28 37 |2);.. |lineto(7|
|00005940| 2e 32 37 2c 32 36 2e 33 | 38 29 3b 0d 0a 20 20 20 |.27,26.3|8);.. |
|00005950| 6d 6f 76 65 74 6f 28 39 | 2e 32 37 2c 32 37 2e 30 |moveto(9|.27,27.0|
|00005960| 32 29 3b 0d 0a 20 20 20 | 6c 69 6e 65 74 6f 28 33 |2);.. |lineto(3|
|00005970| 2e 37 36 2c 32 36 2e 37 | 38 29 3b 0d 0a 20 20 20 |.76,26.7|8);.. |
|00005980| 73 74 72 6f 6b 65 28 29 | 3b 0d 0a 20 20 20 7d 0d |stroke()|;.. }.|
|00005990| 0a 20 0d 0a 69 6e 74 20 | 61 6e 76 69 6c 28 29 0d |. ..int |anvil().|
|000059a0| 0a 20 20 20 7b 0d 0a 20 | 20 20 2f 2a 20 64 72 61 |. {.. | /* dra|
|000059b0| 77 20 61 20 73 61 70 70 | 68 69 72 65 20 61 6e 76 |w a sapp|hire anv|
|000059c0| 69 6c 20 2a 2f 0d 0a 20 | 20 20 6e 65 77 70 61 74 |il */.. | newpat|
|000059d0| 68 28 29 3b 0d 0a 20 20 | 20 6d 6f 76 65 74 6f 28 |h();.. | moveto(|
|000059e0| 30 2c 30 29 3b 0d 0a 20 | 20 20 72 6c 69 6e 65 74 |0,0);.. | rlinet|
|000059f0| 6f 28 30 2c 30 2e 35 2c | 30 2e 35 2c 30 2e 35 2c |o(0,0.5,|0.5,0.5,|
|00005a00| 30 2e 35 2c 30 2c 30 2e | 35 2c 2d 30 2e 35 2c 30 |0.5,0,0.|5,-0.5,0|
|00005a10| 2c 2d 30 2e 35 29 3b 0d | 0a 20 20 20 73 74 72 6f |,-0.5);.|. stro|
|00005a20| 6b 65 28 29 3b 0d 0a 20 | 20 20 7d 0d 0a 20 0d 0a |ke();.. | }.. ..|
|00005a30| 69 6e 74 20 73 63 72 65 | 77 28 64 6f 75 62 6c 65 |int scre|w(double|
|00005a40| 20 6c 65 6e 29 0d 0a 20 | 20 20 7b 0d 0a 20 20 20 | len).. | {.. |
|00005a50| 69 6e 74 20 69 2c 6a 3b | 0d 0a 20 20 20 2f 2a 20 |int i,j;|.. /* |
|00005a60| 64 72 61 77 20 61 20 73 | 63 72 65 77 20 75 73 69 |draw a s|crew usi|
|00005a70| 6e 67 20 61 20 6c 6f 6f | 70 20 66 6f 72 20 2a 2f |ng a loo|p for */|
|00005a80| 0d 0a 20 20 20 2f 2a 20 | 74 68 65 20 74 68 72 65 |.. /* |the thre|
|00005a90| 61 64 73 20 2a 2f 0d 0a | 20 20 20 6e 65 77 70 61 |ads */..| newpa|
|00005aa0| 74 68 28 29 3b 0d 0a 20 | 20 20 6d 6f 76 65 74 6f |th();.. | moveto|
|00005ab0| 28 30 2c 30 29 3b 0d 0a | 20 20 20 72 6c 69 6e 65 |(0,0);..| rline|
|00005ac0| 74 6f 28 30 2e 32 35 2c | 30 2c 30 2c 30 2e 32 35 |to(0.25,|0,0,0.25|
|00005ad0| 2c 2d 30 2e 35 2c 30 2c | 30 2c 2d 30 2e 32 35 29 |,-0.5,0,|0,-0.25)|
|00005ae0| 3b 0d 0a 20 20 20 63 6c | 6f 73 65 70 61 74 68 28 |;.. cl|osepath(|
|00005af0| 29 3b 0d 0a 20 20 20 6d | 6f 76 65 74 6f 28 30 2e |);.. m|oveto(0.|
|00005b00| 31 35 2c 30 29 3b 0d 0a | 20 20 20 72 6c 69 6e 65 |15,0);..| rline|
|00005b10| 74 6f 28 30 2c 2d 6c 65 | 6e 2c 2d 30 2e 33 2c 30 |to(0,-le|n,-0.3,0|
|00005b20| 2c 30 2c 6c 65 6e 29 3b | 0d 0a 20 20 20 6d 6f 76 |,0,len);|.. mov|
|00005b30| 65 74 6f 28 2d 30 2e 31 | 35 2c 30 29 3b 0d 0a 20 |eto(-0.1|5,0);.. |
|00005b40| 20 20 6a 20 3d 20 28 69 | 6e 74 29 20 28 6c 65 6e | j = (i|nt) (len|
|00005b50| 20 2f 20 30 2e 32 29 3b | 0d 0a 20 20 20 66 6f 72 | / 0.2);|.. for|
|00005b60| 20 28 69 3d 30 3b 69 20 | 3c 20 6a 3b 69 2b 2b 29 | (i=0;i |< j;i++)|
|00005b70| 0d 0a 20 20 20 20 20 20 | 7b 0d 0a 20 20 20 20 20 |.. |{.. |
|00005b80| 20 72 6d 6f 76 65 74 6f | 28 30 2e 33 2c 30 29 3b | rmoveto|(0.3,0);|
|00005b90| 0d 0a 20 20 20 20 20 20 | 72 6c 69 6e 65 74 6f 28 |.. |rlineto(|
|00005ba0| 2d 30 2e 33 30 2c 2d 30 | 2e 32 30 29 3b 0d 0a 20 |-0.30,-0|.20);.. |
|00005bb0| 20 20 20 20 20 7d 0d 0a | 20 20 20 73 74 72 6f 6b | }..| strok|
|00005bc0| 65 28 29 3b 0d 0a 20 20 | 20 7d 0d 0a 20 0d 0a 69 |e();.. | }.. ..i|
|00005bd0| 6e 74 20 68 65 61 74 65 | 72 28 29 0d 0a 20 20 20 |nt heate|r().. |
|00005be0| 7b 0d 0a 20 20 20 69 6e | 74 20 69 3b 0d 0a 20 20 |{.. in|t i;.. |
|00005bf0| 20 2f 2a 20 64 72 61 77 | 20 61 20 68 65 61 74 65 | /* draw| a heate|
|00005c00| 72 20 75 73 69 6e 67 20 | 61 20 6c 6f 6f 70 20 2a |r using |a loop *|
|00005c10| 2f 0d 0a 20 20 20 2f 2a | 20 66 6f 72 20 74 68 65 |/.. /*| for the|
|00005c20| 20 77 69 6e 64 69 6e 67 | 73 20 2a 2f 0d 0a 20 20 | winding|s */.. |
|00005c30| 20 64 6f 75 62 6c 65 20 | 79 20 3d 20 30 3b 0d 0a | double |y = 0;..|
|00005c40| 20 20 20 6e 65 77 70 61 | 74 68 28 29 3b 0d 0a 20 | newpa|th();.. |
|00005c50| 20 20 6d 6f 76 65 74 6f | 28 30 2c 30 29 3b 0d 0a | moveto|(0,0);..|
|00005c60| 20 20 20 66 6f 72 20 28 | 69 3d 30 3b 69 20 3c 20 | for (|i=0;i < |
|00005c70| 35 3b 69 2b 2b 29 0d 0a | 20 20 20 20 20 20 7b 0d |5;i++)..| {.|
|00005c80| 0a 20 20 20 20 20 20 6d | 6f 76 65 74 6f 28 30 2e |. m|oveto(0.|
|00005c90| 31 2c 79 29 3b 0d 0a 20 | 20 20 20 20 20 61 72 63 |1,y);.. | arc|
|00005ca0| 6e 28 30 2c 79 2c 30 2e | 31 2c 33 36 30 2c 30 29 |n(0,y,0.|1,360,0)|
|00005cb0| 3b 0d 0a 20 20 20 20 20 | 20 79 20 3d 20 79 20 2b |;.. | y = y +|
|00005cc0| 20 30 2e 34 3b 0d 0a 20 | 20 20 20 20 20 7d 0d 0a | 0.4;.. | }..|
|00005cd0| 20 20 20 73 74 72 6f 6b | 65 28 29 3b 0d 0a 20 20 | strok|e();.. |
|00005ce0| 20 7d 0d 0a 0d 0a 69 6e | 74 20 73 6c 69 74 28 29 | }....in|t slit()|
|00005cf0| 0d 0a 20 20 20 7b 0d 0a | 20 20 20 2f 2a 20 64 72 |.. {..| /* dr|
|00005d00| 61 77 20 61 20 73 70 65 | 63 74 72 6f 6d 65 74 65 |aw a spe|ctromete|
|00005d10| 72 20 73 6c 69 74 20 2a | 2f 0d 0a 20 20 20 6e 65 |r slit *|/.. ne|
|00005d20| 77 70 61 74 68 28 29 3b | 0d 0a 20 20 20 6d 6f 76 |wpath();|.. mov|
|00005d30| 65 74 6f 28 30 2c 30 29 | 3b 0d 0a 20 20 20 72 6c |eto(0,0)|;.. rl|
|00005d40| 69 6e 65 74 6f 28 30 2c | 31 2e 35 2c 30 2e 32 35 |ineto(0,|1.5,0.25|
|00005d50| 2c 30 2c 30 2c 2d 31 2e | 32 35 29 3b 0d 0a 20 20 |,0,0,-1.|25);.. |
|00005d60| 20 63 6c 6f 73 65 70 61 | 74 68 28 29 3b 0d 0a 20 | closepa|th();.. |
|00005d70| 20 20 73 74 72 6f 6b 65 | 28 29 3b 0d 0a 20 20 20 | stroke|();.. |
|00005d80| 7d 0d 0a 0d 0a 69 6e 74 | 20 64 72 69 76 65 72 28 |}....int| driver(|
|00005d90| 29 0d 0a 20 20 20 7b 0d | 0a 20 20 20 2f 2a 20 64 |).. {.|. /* d|
|00005da0| 72 61 77 20 6c 6f 6e 67 | 20 73 63 72 65 77 20 64 |raw long| screw d|
|00005db0| 72 69 76 65 72 73 20 2a | 2f 0d 0a 20 20 20 6e 65 |rivers *|/.. ne|
|00005dc0| 77 70 61 74 68 28 29 3b | 0d 0a 20 20 20 6d 6f 76 |wpath();|.. mov|
|00005dd0| 65 74 6f 28 30 2c 30 29 | 3b 0d 0a 20 20 20 72 6c |eto(0,0)|;.. rl|
|00005de0| 69 6e 65 74 6f 28 30 2e | 31 35 2c 30 2c 30 2c 30 |ineto(0.|15,0,0,0|
|00005df0| 2e 32 35 2c 30 2e 31 2c | 30 2c 30 2c 31 30 2e 38 |.25,0.1,|0,0,10.8|
|00005e00| 29 3b 0d 0a 20 20 20 6d | 6f 76 65 74 6f 28 30 2c |);.. m|oveto(0,|
|00005e10| 30 29 3b 0d 0a 20 20 20 | 72 6c 69 6e 65 74 6f 28 |0);.. |rlineto(|
|00005e20| 2d 30 2e 31 35 2c 30 2c | 30 2c 30 2e 32 35 2c 2d |-0.15,0,|0,0.25,-|
|00005e30| 30 2e 31 2c 30 2c 30 2c | 31 30 2e 38 29 3b 0d 0a |0.1,0,0,|10.8);..|
|00005e40| 20 20 20 73 74 72 6f 6b | 65 28 29 3b 0d 0a 20 20 | strok|e();.. |
|00005e50| 20 7d 0d 0a 0d 0a 69 6e | 74 20 77 68 69 74 65 5f | }....in|t white_|
|00005e60| 62 6f 78 28 64 6f 75 62 | 6c 65 20 78 31 2c 64 6f |box(doub|le x1,do|
|00005e70| 75 62 6c 65 20 79 31 2c | 64 6f 75 62 6c 65 20 78 |uble y1,|double x|
|00005e80| 32 2c 64 6f 75 62 6c 65 | 20 79 32 29 0d 0a 20 20 |2,double| y2).. |
|00005e90| 20 7b 20 0d 0a 20 20 20 | 2f 2a 20 64 72 61 77 20 | { .. |/* draw |
|00005ea0| 61 20 77 68 69 74 65 20 | 66 69 6c 6c 65 64 20 62 |a white |filled b|
|00005eb0| 6f 78 20 66 6f 72 20 2a | 2f 0d 0a 20 20 20 2f 2a |ox for *|/.. /*|
|00005ec0| 20 77 68 69 74 65 20 6f | 75 74 20 70 75 72 70 6f | white o|ut purpo|
|00005ed0| 73 65 73 2e 20 54 68 65 | 20 70 61 72 61 6d 65 74 |ses. The| paramet|
|00005ee0| 72 73 20 2a 2f 0d 0a 20 | 20 20 2f 2a 20 70 61 73 |rs */.. | /* pas|
|00005ef0| 73 65 64 20 69 6e 20 61 | 72 65 20 74 68 65 20 62 |sed in a|re the b|
|00005f00| 6f 78 20 63 6f 72 6e 65 | 72 73 20 2a 2f 0d 0a 20 |ox corne|rs */.. |
|00005f10| 20 20 6e 65 77 70 61 74 | 68 28 29 3b 0d 0a 20 20 | newpat|h();.. |
|00005f20| 20 62 6f 78 28 78 31 2c | 79 31 2c 78 32 2c 79 32 | box(x1,|y1,x2,y2|
|00005f30| 29 3b 0d 0a 20 20 20 67 | 73 61 76 65 28 29 3b 0d |);.. g|save();.|
|00005f40| 0a 20 20 20 73 65 74 28 | 4c 49 4e 45 43 4f 4c 4f |. set(|LINECOLO|
|00005f50| 55 52 2c 57 48 49 54 45 | 29 3b 0d 0a 20 20 20 66 |UR,WHITE|);.. f|
|00005f60| 69 6c 6c 28 29 3b 0d 0a | 20 20 20 67 72 65 73 74 |ill();..| grest|
|00005f70| 6f 72 65 28 29 3b 0d 0a | 20 20 20 7d 0d 0a 0d 0a |ore();..| }....|
|00005f80| 69 6e 74 20 6c 65 6e 73 | 28 29 0d 0a 20 20 20 7b |int lens|().. {|
|00005f90| 0d 0a 20 20 20 2f 2a 20 | 64 72 61 77 20 61 20 73 |.. /* |draw a s|
|00005fa0| 70 68 65 72 69 63 61 6c | 20 6c 65 6e 73 20 75 73 |pherical| lens us|
|00005fb0| 69 6e 67 20 61 72 63 73 | 20 2a 2f 0d 0a 20 20 20 |ing arcs| */.. |
|00005fc0| 6e 65 77 70 61 74 68 28 | 29 3b 0d 0a 20 20 20 61 |newpath(|);.. a|
|00005fd0| 72 63 6e 28 30 2c 2d 34 | 2c 34 2c 31 31 30 2c 37 |rcn(0,-4|,4,110,7|
|00005fe0| 30 29 3b 0d 0a 20 20 20 | 61 72 63 6e 28 30 2c 33 |0);.. |arcn(0,3|
|00005ff0| 2e 34 35 2c 34 2c 32 39 | 30 2c 32 35 30 29 3b 0d |.45,4,29|0,250);.|
|00006000| 0a 20 20 20 63 6c 6f 73 | 65 70 61 74 68 28 29 3b |. clos|epath();|
|00006010| 0d 0a 20 20 20 73 74 72 | 6f 6b 65 28 29 3b 0d 0a |.. str|oke();..|
|00006020| 20 20 20 7d 0d 0a 0d 0a | 69 6e 74 20 70 72 69 73 | }....|int pris|
|00006030| 6d 28 29 0d 0a 20 20 20 | 7b 0d 0a 20 20 20 2f 2a |m().. |{.. /*|
|00006040| 20 64 72 61 77 20 61 20 | 70 72 69 73 6d 20 2a 2f | draw a |prism */|
|00006050| 0d 0a 20 20 20 6e 65 77 | 70 61 74 68 28 29 3b 0d |.. new|path();.|
|00006060| 0a 20 20 20 6d 6f 76 65 | 74 6f 28 30 2c 30 2e 35 |. move|to(0,0.5|
|00006070| 29 3b 0d 0a 20 20 20 72 | 6c 69 6e 65 74 6f 28 30 |);.. r|lineto(0|
|00006080| 2c 2d 30 2e 35 2c 30 2e | 35 2c 30 29 3b 0d 0a 20 |,-0.5,0.|5,0);.. |
|00006090| 20 20 63 6c 6f 73 65 70 | 61 74 68 28 29 3b 0d 0a | closep|ath();..|
|000060a0| 20 20 20 73 74 72 6f 6b | 65 28 29 3b 0d 0a 20 20 | strok|e();.. |
|000060b0| 20 7d 0d 0a 0d 0a 69 6e | 74 20 74 61 69 6c 28 29 | }....in|t tail()|
|000060c0| 0d 0a 20 20 20 7b 0d 0a | 20 20 20 2f 2a 20 64 72 |.. {..| /* dr|
|000060d0| 61 77 20 74 68 65 20 64 | 65 77 61 72 20 74 61 69 |aw the d|ewar tai|
|000060e0| 6c 20 2a 2f 0d 0a 20 20 | 20 73 65 74 28 4c 49 4e |l */.. | set(LIN|
|000060f0| 45 43 4f 4c 4f 55 52 2c | 42 4c 41 43 4b 29 3b 0d |ECOLOUR,|BLACK);.|
|00006100| 0a 20 20 20 6d 6f 76 65 | 74 6f 28 32 2e 34 34 2c |. move|to(2.44,|
|00006110| 33 30 29 3b 0d 0a 20 20 | 20 6c 69 6e 65 74 6f 28 |30);.. | lineto(|
|00006120| 32 2e 34 34 2c 36 2e 33 | 33 2c 37 2e 37 37 2c 36 |2.44,6.3|3,7.77,6|
|00006130| 2e 33 33 2c 37 2e 37 37 | 2c 33 30 29 3b 0d 0a 20 |.33,7.77|,30);.. |
|00006140| 20 20 73 74 72 6f 6b 65 | 28 29 3b 0d 0a 20 20 20 | stroke|();.. |
|00006150| 2f 2a 20 64 72 61 77 20 | 77 69 6e 64 6f 77 73 20 |/* draw |windows |
|00006160| 2a 2f 0d 0a 20 20 20 73 | 65 74 28 4c 49 4e 45 43 |*/.. s|et(LINEC|
|00006170| 4f 4c 4f 55 52 2c 42 52 | 4f 57 4e 29 3b 0d 0a 20 |OLOUR,BR|OWN);.. |
|00006180| 20 20 77 68 69 74 65 5f | 62 6f 78 28 32 2e 32 39 | white_|box(2.29|
|00006190| 2c 31 32 2e 33 30 2c 32 | 2e 35 39 2c 39 2e 34 31 |,12.30,2|.59,9.41|
|000061a0| 29 3b 0d 0a 20 20 20 73 | 74 72 6f 6b 65 28 29 3b |);.. s|troke();|
|000061b0| 0d 0a 20 20 20 77 68 69 | 74 65 5f 62 6f 78 28 37 |.. whi|te_box(7|
|000061c0| 2e 36 32 2c 31 32 2e 33 | 30 2c 37 2e 39 32 2c 39 |.62,12.3|0,7.92,9|
|000061d0| 2e 34 31 29 3b 0d 0a 20 | 20 20 73 74 72 6f 6b 65 |.41);.. | stroke|
|000061e0| 28 29 3b 0d 0a 20 20 20 | 7d 0d 0a 5c 65 6e 64 7b |();.. |}..\end{|
|000061f0| 76 65 72 62 61 74 69 6d | 7d 0d 0a 7d 0d 0a 0d 0a |verbatim|}..}....|
|00006200| 20 20 0d 0a 5c 6e 65 77 | 70 61 67 65 0d 0a 0d 0a | ..\new|page....|
|00006210| 5c 73 65 63 74 69 6f 6e | 7b 6d 75 6c 74 70 6c 6f |\section|{multplo|
|00006220| 74 2e 73 70 74 7d 20 20 | 20 20 20 20 20 20 20 20 |t.spt} | |
|00006230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006250| 20 20 20 20 20 20 20 20 | 20 0d 0a 20 0d 0a 5c 76 | | .. ..\v|
|00006260| 73 70 61 63 65 2a 7b 31 | 37 63 6d 7d 0d 0a 5c 73 |space*{1|7cm}..\s|
|00006270| 70 65 63 69 61 6c 7b 70 | 73 66 69 6c 65 3d 6d 75 |pecial{p|sfile=mu|
|00006280| 6c 74 70 6c 6f 74 2e 65 | 70 73 20 68 73 63 61 6c |ltplot.e|ps hscal|
|00006290| 65 3d 36 30 20 76 73 63 | 61 6c 65 3d 36 30 20 68 |e=60 vsc|ale=60 h|
|000062a0| 6f 66 66 73 65 74 3d 31 | 20 76 6f 66 66 73 65 74 |offset=1| voffset|
|000062b0| 3d 30 7d 0d 0a 5c 69 6e | 64 65 78 7b 6d 61 74 68 |=0}..\in|dex{math|
|000062c0| 2c 20 65 78 61 6d 70 6c | 65 7d 0d 0a 0d 0a 7b 5c |, exampl|e}....{\|
|000062d0| 74 74 0d 0a 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |tt..\beg|in{verba|
|000062e0| 74 69 6d 7d 0d 0a 23 69 | 6e 63 6c 75 64 65 20 3c |tim}..#i|nclude <|
|000062f0| 73 70 6c 6f 74 2e 68 3e | 0d 0a 0d 0a 69 6e 74 20 |splot.h>|....int |
|00006300| 69 2c 6a 3b 0d 0a 64 6f | 75 62 6c 65 20 63 61 6c |i,j;..do|uble cal|
|00006310| 63 5b 31 31 5d 5b 34 5d | 3b 0d 0a 64 6f 75 62 6c |c[11][4]|;..doubl|
|00006320| 65 20 2a 64 61 74 61 3b | 0d 0a 0d 0a 64 6f 75 62 |e *data;|....doub|
|00006330| 6c 65 20 63 61 6c 63 32 | 5b 31 31 5d 5b 34 5d 3b |le calc2|[11][4];|
|00006340| 0d 0a 64 6f 75 62 6c 65 | 20 2a 64 61 74 61 32 3b |..double| *data2;|
|00006350| 0d 0a 0d 0a 64 6f 75 62 | 6c 65 20 63 61 6c 63 33 |....doub|le calc3|
|00006360| 5b 31 31 5d 5b 34 5d 3b | 0d 0a 64 6f 75 62 6c 65 |[11][4];|..double|
|00006370| 20 2a 64 61 74 61 33 3b | 0d 0a 0d 0a 6d 61 69 6e | *data3;|....main|
|00006380| 28 29 20 0d 0a 20 20 20 | 7b 20 20 20 0d 0a 20 20 |() .. |{ .. |
|00006390| 20 2f 2a 20 72 65 61 64 | 20 69 6e 20 64 61 74 61 | /* read| in data|
|000063a0| 20 66 69 6c 65 73 20 2a | 2f 0d 0a 20 20 20 72 65 | files *|/.. re|
|000063b0| 61 64 64 61 74 61 28 22 | 64 65 6d 6f 5c 6d 75 6c |addata("|demo\mul|
|000063c0| 74 31 2e 64 61 74 22 2c | 64 61 74 61 29 3b 0d 0a |t1.dat",|data);..|
|000063d0| 20 20 20 72 65 61 64 64 | 61 74 61 28 22 64 65 6d | readd|ata("dem|
|000063e0| 6f 5c 6d 75 6c 74 32 2e | 64 61 74 22 2c 64 61 74 |o\mult2.|dat",dat|
|000063f0| 61 32 29 3b 0d 0a 20 20 | 20 72 65 61 64 64 61 74 |a2);.. | readdat|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.