home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6d 69 | 72 72 6f 72 21 61 64 65 |Path: mi|rror!ade|
|00000010| 6c 69 65 21 6e 65 63 6e | 74 63 21 68 75 73 63 36 |lie!necn|tc!husc6|
|00000020| 21 73 65 69 73 6d 6f 21 | 6d 75 6e 6e 61 72 69 21 |!seismo!|munnari!|
|00000030| 73 6f 75 72 63 65 73 2d | 72 65 71 75 65 73 74 0a |sources-|request.|
|00000040| 46 72 6f 6d 3a 20 73 6f | 75 72 63 65 73 2d 72 65 |From: so|urces-re|
|00000050| 71 75 65 73 74 40 6d 75 | 6e 6e 61 72 69 2e 6f 7a |quest@mu|nnari.oz|
|00000060| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 6d 6f 64 |.Newsgro|ups: mod|
|00000070| 2e 73 6f 75 72 63 65 73 | 0a 53 75 62 6a 65 63 74 |.sources|.Subject|
|00000080| 3a 20 76 30 38 69 30 38 | 31 3a 20 20 47 72 61 70 |: v08i08|1: Grap|
|00000090| 68 2b 2c 20 41 20 47 72 | 61 70 68 20 50 6c 6f 74 |h+, A Gr|aph Plot|
|000000a0| 74 69 6e 67 20 50 72 6f | 67 72 61 6d 2c 20 50 61 |ting Pro|gram, Pa|
|000000b0| 72 74 30 31 2f 30 33 0a | 4d 65 73 73 61 67 65 2d |rt01/03.|Message-|
|000000c0| 49 44 3a 20 3c 31 34 33 | 31 40 6d 75 6e 6e 61 72 |ID: <143|1@munnar|
|000000d0| 69 2e 6f 7a 3e 0a 44 61 | 74 65 3a 20 32 38 20 46 |i.oz>.Da|te: 28 F|
|000000e0| 65 62 20 38 37 20 30 37 | 3a 33 35 3a 30 38 20 47 |eb 87 07|:35:08 G|
|000000f0| 4d 54 0a 53 65 6e 64 65 | 72 3a 20 6b 72 65 40 6d |MT.Sende|r: kre@m|
|00000100| 75 6e 6e 61 72 69 2e 6f | 7a 0a 4c 69 6e 65 73 3a |unnari.o|z.Lines:|
|00000110| 20 32 31 36 37 0a 41 70 | 70 72 6f 76 65 64 3a 20 | 2167.Ap|proved: |
|00000120| 6b 72 65 40 6d 75 6e 6e | 61 72 69 2e 6f 7a 2e 61 |kre@munn|ari.oz.a|
|00000130| 75 0a 0a 53 75 62 6d 69 | 74 74 65 64 20 62 79 3a |u..Submi|tted by:|
|00000140| 20 41 6c 61 6e 20 4b 65 | 6e 74 20 3c 61 6a 6b 40 | Alan Ke|nt <ajk@|
|00000150| 67 6f 61 6e 6e 61 2e 6f | 7a 2e 61 75 3e 0a 4d 6f |goanna.o|z.au>.Mo|
|00000160| 64 2e 73 6f 75 72 63 65 | 73 3a 20 56 6f 6c 75 6d |d.source|s: Volum|
|00000170| 65 20 38 2c 20 49 73 73 | 75 65 20 38 31 0a 41 72 |e 8, Iss|ue 81.Ar|
|00000180| 63 68 69 76 65 2d 6e 61 | 6d 65 3a 20 67 72 61 70 |chive-na|me: grap|
|00000190| 68 2b 2f 50 61 72 74 30 | 31 0a 0a 23 21 20 2f 62 |h+/Part0|1..#! /b|
|000001a0| 69 6e 2f 73 68 0a 23 20 | 54 68 69 73 20 69 73 20 |in/sh.# |This is |
|000001b0| 61 20 73 68 65 6c 6c 20 | 61 72 63 68 69 76 65 2c |a shell |archive,|
|000001c0| 20 6d 65 61 6e 69 6e 67 | 3a 0a 23 20 31 2e 20 20 | meaning|:.# 1. |
|000001d0| 52 65 6d 6f 76 65 20 65 | 76 65 72 79 74 68 69 6e |Remove e|verythin|
|000001e0| 67 20 61 62 6f 76 65 20 | 74 68 65 20 23 21 20 2f |g above |the #! /|
|000001f0| 62 69 6e 2f 73 68 20 6c | 69 6e 65 2e 0a 23 20 32 |bin/sh l|ine..# 2|
|00000200| 2e 20 20 53 61 76 65 20 | 74 68 65 20 72 65 73 75 |. Save |the resu|
|00000210| 6c 74 69 6e 67 20 74 65 | 73 74 20 69 6e 20 61 20 |lting te|st in a |
|00000220| 66 69 6c 65 0a 23 20 33 | 2e 20 20 45 78 65 63 75 |file.# 3|. Execu|
|00000230| 74 65 20 74 68 65 20 66 | 69 6c 65 20 77 69 74 68 |te the f|ile with|
|00000240| 20 2f 62 69 6e 2f 73 68 | 20 28 6e 6f 74 20 63 73 | /bin/sh| (not cs|
|00000250| 68 29 20 74 6f 20 63 72 | 65 61 74 65 20 74 68 65 |h) to cr|eate the|
|00000260| 20 66 69 6c 65 73 3a 0a | 23 0a 23 09 09 52 45 41 | files:.|#.#..REA|
|00000270| 44 4d 45 0a 23 09 09 67 | 72 61 70 68 2b 2e 31 0a |DME.#..g|raph+.1.|
|00000280| 23 09 09 4d 61 6b 65 66 | 69 6c 65 0a 23 09 09 62 |#..Makef|ile.#..b|
|00000290| 61 72 5f 67 72 61 70 68 | 0a 23 09 09 62 65 73 74 |ar_graph|.#..best|
|000002a0| 5f 66 69 74 0a 23 09 09 | 67 72 61 70 68 2e 68 0a |_fit.#..|graph.h.|
|000002b0| 23 09 09 79 61 63 63 2e | 79 0a 23 0a 23 20 43 72 |#..yacc.|y.#.# Cr|
|000002c0| 65 61 74 65 64 20 62 79 | 20 61 6a 6b 20 6f 6e 20 |eated by| ajk on |
|000002d0| 57 65 64 20 46 65 62 20 | 32 35 20 30 39 3a 32 33 |Wed Feb |25 09:23|
|000002e0| 3a 30 39 20 45 53 54 20 | 31 39 38 37 0a 23 0a 69 |:09 EST |1987.#.i|
|000002f0| 66 20 74 65 73 74 20 2d | 66 20 27 52 45 41 44 4d |f test -|f 'READM|
|00000300| 45 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |E'.then.|.echo sh|
|00000310| 61 72 3a 20 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: will| not ove|
|00000320| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00000330| 20 66 69 6c 65 20 22 27 | 52 45 41 44 4d 45 27 22 | file "'|README'"|
|00000340| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 65 78 74 72 61 |.else.ec|ho extra|
|00000350| 63 74 69 6e 67 20 22 27 | 52 45 41 44 4d 45 27 22 |cting "'|README'"|
|00000360| 0a 73 65 64 20 27 73 2f | 5e 58 2f 2f 27 20 3e 52 |.sed 's/|^X//' >R|
|00000370| 45 41 44 4d 45 20 3c 3c | 27 53 48 41 52 5f 45 4f |EADME <<|'SHAR_EO|
|00000380| 46 27 0a 58 41 20 47 72 | 61 70 68 20 50 6c 6f 74 |F'.XA Gr|aph Plot|
|00000390| 20 50 72 6f 67 72 61 6d | 3a 0a 58 0a 58 49 20 68 | Program|:.X.XI h|
|000003a0| 61 76 65 20 66 6f 75 6e | 64 20 74 68 69 73 20 70 |ave foun|d this p|
|000003b0| 72 6f 67 72 61 6d 20 65 | 78 74 72 65 6d 65 6c 79 |rogram e|xtremely|
|000003c0| 20 75 73 65 66 75 6c 20 | 66 6f 72 20 67 65 6e 65 | useful |for gene|
|000003d0| 72 61 74 69 6e 67 20 6c | 69 6e 65 20 70 6c 6f 74 |rating l|ine plot|
|000003e0| 73 20 66 72 6f 6d 0a 58 | 74 61 62 6c 65 73 20 6f |s from.X|tables o|
|000003f0| 66 20 64 61 74 61 2e 20 | 49 74 20 70 72 6f 76 69 |f data. |It provi|
|00000400| 64 65 73 20 71 75 69 74 | 65 20 70 6f 77 65 72 66 |des quit|e powerf|
|00000410| 75 6c 20 6f 70 65 72 61 | 74 6f 72 73 20 74 6f 20 |ul opera|tors to |
|00000420| 6d 61 6e 69 75 70 6c 61 | 74 65 20 61 6e 64 0a 58 |maniupla|te and.X|
|00000430| 6a 6f 69 6e 20 64 69 66 | 66 65 72 65 6e 74 20 74 |join dif|ferent t|
|00000440| 61 62 6c 65 73 20 6f 66 | 20 6e 75 6d 65 72 69 63 |ables of| numeric|
|00000450| 20 64 61 74 61 2e 20 49 | 74 20 64 6f 65 73 20 6e | data. I|t does n|
|00000460| 6f 74 20 64 6f 20 62 61 | 72 20 67 72 61 70 68 73 |ot do ba|r graphs|
|00000470| 2c 20 70 69 65 20 63 68 | 61 72 74 73 0a 58 65 74 |, pie ch|arts.Xet|
|00000480| 63 2e 2c 20 61 6c 74 68 | 6f 75 67 68 20 69 74 20 |c., alth|ough it |
|00000490| 63 6f 75 6c 64 20 62 65 | 20 6d 6f 64 69 66 69 65 |could be| modifie|
|000004a0| 64 20 74 6f 20 64 6f 20 | 73 6f 20 28 61 6e 64 20 |d to do |so (and |
|000004b0| 6e 6f 2c 20 49 20 61 6d | 20 6e 6f 74 20 76 6f 6c |no, I am| not vol|
|000004c0| 75 6e 74 65 65 72 69 6e | 67 21 29 0a 58 0a 58 49 |unteerin|g!).X.XI|
|000004d0| 74 20 63 61 6e 20 61 6c | 73 6f 20 62 65 20 75 73 |t can al|so be us|
|000004e0| 65 64 20 61 73 20 61 20 | 64 65 73 6b 20 63 61 6c |ed as a |desk cal|
|000004f0| 63 75 6c 61 74 6f 72 20 | 6f 72 20 74 6f 20 70 72 |culator |or to pr|
|00000500| 69 6e 74 20 74 61 62 6c | 65 73 20 6f 66 20 72 65 |int tabl|es of re|
|00000510| 73 75 6c 74 73 0a 58 6f | 6e 20 74 68 65 20 73 63 |sults.Xo|n the sc|
|00000520| 72 65 65 6e 20 72 61 74 | 68 65 72 20 74 68 61 6e |reen rat|her than|
|00000530| 20 61 73 20 61 20 67 72 | 61 70 68 2e 20 49 20 70 | as a gr|aph. I p|
|00000540| 65 72 73 6f 6e 61 6c 6c | 79 20 70 72 65 66 65 72 |ersonall|y prefer|
|00000550| 20 69 74 20 74 6f 20 75 | 73 69 6e 67 0a 58 64 63 | it to u|sing.Xdc|
|00000560| 20 61 6e 64 20 62 63 20 | 71 75 69 74 65 20 6f 66 | and bc |quite of|
|00000570| 74 65 6e 20 28 62 75 74 | 20 74 68 65 6e 20 49 20 |ten (but| then I |
|00000580| 61 6d 20 70 72 6f 62 61 | 62 6c 79 20 62 69 61 73 |am proba|bly bias|
|00000590| 65 64 29 2e 20 4a 75 73 | 74 20 74 79 70 65 20 67 |ed). Jus|t type g|
|000005a0| 72 61 70 68 2b 0a 58 74 | 68 65 6e 20 27 70 72 69 |raph+.Xt|hen 'pri|
|000005b0| 6e 74 20 31 2f 6c 6f 67 | 28 33 29 3b 27 20 65 74 |nt 1/log|(3);' et|
|000005c0| 63 2e 20 49 20 61 6c 73 | 6f 20 75 73 65 20 69 74 |c. I als|o use it|
|000005d0| 20 69 6e 74 65 72 61 63 | 74 69 76 65 6c 79 20 74 | interac|tively t|
|000005e0| 6f 20 63 68 65 63 6b 20 | 64 61 74 61 0a 58 66 69 |o check |data.Xfi|
|000005f0| 6c 65 73 2c 20 66 69 6e | 64 20 68 6f 77 20 6d 61 |les, fin|d how ma|
|00000600| 6e 79 20 65 6e 74 72 69 | 65 73 20 68 61 76 65 20 |ny entri|es have |
|00000610| 61 20 63 6f 6c 75 6d 6e | 20 77 69 74 68 20 76 61 |a column| with va|
|00000620| 6c 75 65 73 20 69 6e 20 | 61 20 63 65 72 74 61 69 |lues in |a certai|
|00000630| 6e 20 72 61 6e 67 65 0a | 58 61 6e 64 20 73 6f 20 |n range.|Xand so |
|00000640| 6f 6e 2e 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 0a |on. For |example.|
|00000650| 58 09 64 61 74 61 20 3d | 20 72 65 61 64 20 22 64 |X.data =| read "d|
|00000660| 61 74 61 66 69 6c 65 22 | 0a 58 09 70 72 69 6e 74 |atafile"|.X.print|
|00000670| 20 63 6f 75 6e 74 20 28 | 20 64 61 74 61 20 77 68 | count (| data wh|
|00000680| 65 72 65 20 24 31 20 3e | 20 30 20 26 26 20 24 31 |ere $1 >| 0 && $1|
|00000690| 20 3c 20 31 30 29 0a 58 | 0a 58 54 68 65 20 70 72 | < 10).X|.XThe pr|
|000006a0| 6f 67 72 61 6d 20 68 65 | 72 65 20 69 73 20 6e 6f |ogram he|re is no|
|000006b0| 74 20 69 6e 74 65 72 61 | 63 74 69 76 65 20 6c 69 |t intera|ctive li|
|000006c0| 6b 65 20 47 4e 55 50 4c | 4f 54 20 62 75 74 20 61 |ke GNUPL|OT but a|
|000006d0| 6e 20 61 6c 74 65 72 6e | 61 74 69 76 65 20 77 68 |n altern|ative wh|
|000006e0| 69 63 68 0a 58 70 72 6f | 76 69 64 65 73 20 67 72 |ich.Xpro|vides gr|
|000006f0| 65 61 74 65 72 20 66 6c | 65 78 61 62 69 6c 69 74 |eater fl|exabilit|
|00000700| 79 20 69 6e 20 74 68 65 | 20 70 72 65 70 61 72 61 |y in the| prepara|
|00000710| 74 69 6f 6e 20 6f 66 20 | 64 61 74 61 20 62 65 66 |tion of |data bef|
|00000720| 6f 72 65 20 69 74 20 69 | 73 20 70 6c 6f 74 0a 58 |ore it i|s plot.X|
|00000730| 28 49 20 74 68 69 6e 6b | 29 2e 20 53 69 6e 63 65 |(I think|). Since|
|00000740| 20 69 74 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 | it can |be used |
|00000750| 69 6e 20 61 20 6e 6f 6e | 2d 69 6e 74 65 72 61 63 |in a non|-interac|
|00000760| 74 69 76 65 20 66 61 73 | 68 69 6f 6e 2c 20 69 74 |tive fas|hion, it|
|00000770| 20 63 61 6e 0a 58 62 65 | 20 75 73 65 64 20 69 6e | can.Xbe| used in|
|00000780| 20 6d 61 6b 65 66 69 6c | 65 73 20 28 49 20 75 73 | makefil|es (I us|
|00000790| 65 20 4d 61 6b 65 66 69 | 6c 65 73 20 74 6f 20 6b |e Makefi|les to k|
|000007a0| 65 65 70 20 64 6f 63 75 | 6d 65 6e 74 73 20 77 68 |eep docu|ments wh|
|000007b0| 69 63 68 20 69 6e 63 6c | 75 64 65 0a 58 67 72 61 |ich incl|ude.Xgra|
|000007c0| 70 68 73 20 75 70 20 74 | 6f 20 64 61 74 65 29 2e |phs up t|o date).|
|000007d0| 0a 58 0a 58 54 68 69 73 | 20 70 72 6f 67 72 61 6d |.X.XThis| program|
|000007e0| 20 72 65 71 75 69 72 65 | 73 20 6c 65 78 20 61 6e | require|s lex an|
|000007f0| 64 20 79 61 63 63 2c 20 | 61 6e 64 20 61 74 20 70 |d yacc, |and at p|
|00000800| 72 65 73 65 6e 74 20 68 | 61 73 20 63 61 6c 6c 73 |resent h|as calls|
|00000810| 20 74 6f 20 63 74 69 6d | 65 28 29 0a 58 61 6e 64 | to ctim|e().Xand|
|00000820| 20 67 65 74 65 6e 76 28 | 29 20 28 61 6c 74 68 6f | getenv(|) (altho|
|00000830| 75 67 68 20 74 68 65 73 | 65 20 6c 61 73 74 20 74 |ugh thes|e last t|
|00000840| 77 6f 20 63 61 6c 6c 73 | 20 61 72 65 20 6e 6f 74 |wo calls| are not|
|00000850| 20 63 72 69 74 69 63 61 | 6c 29 2e 20 49 74 20 61 | critica|l). It a|
|00000860| 6c 73 6f 0a 58 72 65 71 | 75 69 72 65 73 20 74 68 |lso.Xreq|uires th|
|00000870| 65 20 73 74 61 6e 64 61 | 72 64 20 75 6e 69 78 20 |e standa|rd unix |
|00000880| 70 6c 6f 74 28 33 58 29 | 20 6c 69 62 72 61 72 79 |plot(3X)| library|
|00000890| 2e 20 4f 75 74 70 75 74 | 20 69 73 20 69 6e 20 70 |. Output| is in p|
|000008a0| 6c 6f 74 28 35 29 20 66 | 6f 72 6d 61 74 0a 58 77 |lot(5) f|ormat.Xw|
|000008b0| 68 69 63 68 20 6d 75 73 | 74 20 62 65 20 66 65 64 |hich mus|t be fed|
|000008c0| 20 74 68 72 6f 75 67 68 | 20 61 20 66 69 6c 74 65 | through| a filte|
|000008d0| 72 20 70 72 6f 67 72 61 | 6d 20 62 65 66 6f 72 65 |r progra|m before|
|000008e0| 20 69 74 20 63 61 6e 20 | 62 65 20 64 69 73 70 6c | it can |be displ|
|000008f0| 61 79 65 64 2e 0a 58 54 | 68 65 20 6d 61 74 68 73 |ayed..XT|he maths|
|00000900| 20 6c 69 62 72 61 72 79 | 20 69 73 20 75 73 65 64 | library| is used|
|00000910| 20 65 78 74 65 6e 73 69 | 76 65 6c 79 20 74 6f 20 | extensi|vely to |
|00000920| 70 72 6f 76 69 64 65 20 | 74 68 65 20 73 61 6d 65 |provide |the same|
|00000930| 20 66 75 6e 63 74 69 6f | 6e 73 20 69 6e 0a 58 67 | functio|ns in.Xg|
|00000940| 72 61 70 68 2b 2c 20 62 | 75 74 20 74 68 65 20 61 |raph+, b|ut the a|
|00000950| 63 74 75 61 6c 20 63 6f | 64 65 20 6f 6e 6c 79 20 |ctual co|de only |
|00000960| 72 65 61 6c 6c 79 20 6e | 65 65 64 73 20 6c 6f 67 |really n|eeds log|
|00000970| 28 29 20 61 6e 64 20 70 | 6f 77 28 29 2e 0a 58 0a |() and p|ow()..X.|
|00000980| 58 49 20 68 6f 70 65 20 | 69 74 20 69 73 20 6f 66 |XI hope |it is of|
|00000990| 20 73 6f 6d 65 20 75 73 | 65 20 74 6f 20 73 6f 6d | some us|e to som|
|000009a0| 65 6f 6e 65 2e 0a 58 0a | 58 41 74 20 74 68 65 20 |eone..X.|XAt the |
|000009b0| 65 6e 64 20 6f 66 20 74 | 68 69 73 20 66 69 6c 65 |end of t|his file|
|000009c0| 20 61 72 65 20 69 6e 73 | 74 72 75 63 74 69 6f 6e | are ins|truction|
|000009d0| 73 20 66 6f 72 20 70 61 | 74 63 68 69 6e 67 20 74 |s for pa|tching t|
|000009e0| 68 69 73 20 70 72 6f 67 | 72 61 6d 0a 58 66 6f 72 |his prog|ram.Xfor|
|000009f0| 20 79 6f 75 72 20 73 79 | 73 74 65 6d 2e 0a 58 0a | your sy|stem..X.|
|00000a00| 58 42 72 69 65 66 20 48 | 69 73 74 6f 72 79 0a 58 |XBrief H|istory.X|
|00000a10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0a 58 0a |========|=====.X.|
|00000a20| 58 41 66 74 65 72 20 6e | 65 65 64 69 6e 67 20 73 |XAfter n|eeding s|
|00000a30| 6f 6d 65 20 67 72 61 70 | 68 73 20 70 6c 6f 74 74 |ome grap|hs plott|
|00000a40| 65 64 20 61 6e 64 20 66 | 69 6e 64 69 6e 67 20 74 |ed and f|inding t|
|00000a50| 68 61 74 20 74 68 65 20 | 6f 6e 6c 79 20 72 65 61 |hat the |only rea|
|00000a60| 6c 6c 79 20 61 76 61 69 | 6c 61 62 6c 65 0a 58 63 |lly avai|lable.Xc|
|00000a70| 6f 6d 6d 61 6e 64 20 49 | 20 63 6f 75 6c 64 20 66 |ommand I| could f|
|00000a80| 69 6e 64 20 77 61 73 20 | 67 72 61 70 68 28 31 29 |ind was |graph(1)|
|00000a90| 2c 20 49 20 64 65 63 69 | 64 65 64 20 74 6f 20 77 |, I deci|ded to w|
|00000aa0| 72 69 74 65 20 6d 79 20 | 6f 77 6e 2e 20 49 20 61 |rite my |own. I a|
|00000ab0| 6c 73 6f 20 66 6f 75 6e | 64 0a 58 74 68 61 74 20 |lso foun|d.Xthat |
|00000ac0| 61 77 6b 20 77 61 73 20 | 74 6f 6f 20 73 6c 6f 77 |awk was |too slow|
|00000ad0| 20 66 6f 72 20 6d 79 20 | 6c 69 6b 69 6e 67 20 77 | for my |liking w|
|00000ae0| 68 65 6e 20 74 72 79 69 | 6e 67 20 74 6f 20 65 78 |hen tryi|ng to ex|
|00000af0| 74 72 61 63 74 20 64 61 | 74 61 20 66 72 6f 6d 20 |tract da|ta from |
|00000b00| 6c 6f 74 73 0a 58 6f 66 | 20 66 69 6c 65 73 20 74 |lots.Xof| files t|
|00000b10| 6f 20 62 65 20 72 65 66 | 6f 72 6d 61 74 74 65 64 |o be ref|ormatted|
|00000b20| 20 69 6e 20 73 6f 6d 65 | 20 77 61 79 2e 20 54 68 | in some| way. Th|
|00000b30| 75 73 20 67 72 61 70 68 | 2b 20 77 61 73 20 62 6f |us graph|+ was bo|
|00000b40| 72 6e 2e 20 47 72 61 70 | 68 2b 20 72 65 71 75 69 |rn. Grap|h+ requi|
|00000b50| 72 65 73 0a 58 61 20 70 | 72 6f 67 72 61 6d 20 28 |res.Xa p|rogram (|
|00000b60| 6d 75 63 68 20 6c 69 6b | 65 20 61 20 73 68 65 6c |much lik|e a shel|
|00000b70| 6c 20 73 63 72 69 70 74 | 29 20 74 6f 20 64 72 69 |l script|) to dri|
|00000b80| 76 65 20 69 74 2e 20 49 | 74 20 61 6c 6c 6f 77 73 |ve it. I|t allows|
|00000b90| 20 66 69 6c 65 73 20 6f | 66 20 64 61 74 61 0a 58 | files o|f data.X|
|00000ba0| 74 6f 20 62 65 20 6c 6f | 61 64 65 64 20 61 73 20 |to be lo|aded as |
|00000bb0| 74 77 6f 20 64 69 6d 65 | 6e 73 69 6f 6e 61 6c 20 |two dime|nsional |
|00000bc0| 61 72 72 61 79 73 20 61 | 6e 64 20 74 68 65 6e 20 |arrays a|nd then |
|00000bd0| 61 6c 6c 6f 77 73 20 6d | 61 6e 79 20 63 6f 6d 6d |allows m|any comm|
|00000be0| 61 6e 64 73 20 74 6f 0a | 58 6d 61 6e 69 70 75 6c |ands to.|Xmanipul|
|00000bf0| 61 74 65 20 74 68 65 20 | 64 61 74 61 2e 20 46 6f |ate the |data. Fo|
|00000c00| 72 20 65 78 61 6d 70 6c | 65 0a 58 0a 58 20 20 20 |r exampl|e.X.X |
|00000c10| 20 64 61 74 61 20 3d 20 | 72 65 61 64 20 22 64 61 | data = |read "da|
|00000c20| 74 61 2e 66 69 6c 65 22 | 0a 58 20 20 20 20 67 72 |ta.file"|.X gr|
|00000c30| 61 70 68 20 64 61 74 61 | 20 77 68 65 72 65 20 24 |aph data| where $|
|00000c40| 31 20 3e 20 30 20 5b 20 | 24 32 20 2c 20 24 33 20 |1 > 0 [ |$2 , $3 |
|00000c50| 2b 20 24 34 20 5d 20 64 | 6f 74 74 65 64 20 6c 69 |+ $4 ] d|otted li|
|00000c60| 6e 65 20 6c 61 62 65 6c | 20 22 64 61 74 61 22 0a |ne label| "data".|
|00000c70| 58 0a 58 77 69 6c 6c 20 | 70 6c 6f 74 20 61 20 67 |X.Xwill |plot a g|
|00000c80| 72 61 70 68 20 6f 66 20 | 74 68 65 20 64 61 74 61 |raph of |the data|
|00000c90| 20 69 6e 20 74 68 65 20 | 66 69 6c 65 20 64 61 74 | in the |file dat|
|00000ca0| 61 2e 66 69 6c 65 20 62 | 75 74 20 77 69 6c 6c 20 |a.file b|ut will |
|00000cb0| 6f 6e 6c 79 20 70 6c 6f | 74 0a 58 70 6f 69 6e 74 |only plo|t.Xpoint|
|00000cc0| 73 20 77 68 65 72 65 20 | 74 68 65 20 66 69 72 73 |s where |the firs|
|00000cd0| 74 20 63 6f 6c 75 6d 6e | 20 69 6e 20 74 68 65 20 |t column| in the |
|00000ce0| 66 69 6c 65 20 68 61 73 | 20 76 61 6c 75 65 73 20 |file has| values |
|00000cf0| 67 72 65 61 74 65 72 20 | 74 68 61 6e 20 7a 65 72 |greater |than zer|
|00000d00| 6f 2c 0a 58 61 6e 64 20 | 74 68 65 20 64 61 74 61 |o,.Xand |the data|
|00000d10| 20 74 6f 20 70 6c 6f 74 | 20 77 69 6c 6c 20 62 65 | to plot| will be|
|00000d20| 20 63 6f 6c 75 6d 6e 20 | 32 20 28 78 29 20 76 73 | column |2 (x) vs|
|00000d30| 20 74 68 65 20 73 75 6d | 20 6f 66 20 74 68 65 20 | the sum| of the |
|00000d40| 76 61 6c 75 65 73 20 69 | 6e 0a 58 63 6f 6c 75 6d |values i|n.Xcolum|
|00000d50| 6e 20 33 20 61 6e 64 20 | 34 20 28 79 29 2e 0a 58 |n 3 and |4 (y)..X|
|00000d60| 0a 58 57 68 65 6e 20 70 | 6c 6f 74 74 69 6e 67 20 |.XWhen p|lotting |
|00000d70| 74 68 65 20 67 72 61 70 | 68 2c 20 64 69 66 66 65 |the grap|h, diffe|
|00000d80| 72 65 6e 74 20 74 79 70 | 65 73 20 6f 66 20 6c 69 |rent typ|es of li|
|00000d90| 6e 65 73 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 |nes can |be used |
|00000da0| 28 73 6f 6c 69 64 2c 0a | 58 64 6f 74 74 65 64 2c |(solid,.|Xdotted,|
|00000db0| 20 64 6f 74 20 64 61 73 | 68 65 64 2c 20 73 68 6f | dot das|hed, sho|
|00000dc0| 72 74 20 64 61 73 68 65 | 64 2c 20 6c 6f 6e 67 20 |rt dashe|d, long |
|00000dd0| 64 61 73 68 65 64 29 20 | 6f 72 20 65 61 63 68 20 |dashed) |or each |
|00000de0| 70 6f 69 6e 74 20 63 61 | 6e 20 62 65 0a 58 73 65 |point ca|n be.Xse|
|00000df0| 70 61 72 61 74 65 6c 79 | 20 6d 61 72 6b 65 64 20 |parately| marked |
|00000e00| 28 77 69 74 68 20 74 72 | 69 61 6e 67 6c 65 73 2c |(with tr|iangles,|
|00000e10| 20 73 71 75 61 72 65 73 | 2c 20 63 69 72 63 6c 65 | squares|, circle|
|00000e20| 73 2c 20 63 72 6f 73 73 | 65 73 29 2e 0a 58 41 6c |s, cross|es)..XAl|
|00000e30| 6c 20 74 68 65 20 73 63 | 61 6c 69 6e 67 20 61 6e |l the sc|aling an|
|00000e40| 64 20 6e 75 6d 62 65 72 | 69 6e 67 20 6f 66 20 74 |d number|ing of t|
|00000e50| 68 65 20 61 78 69 73 20 | 69 73 20 64 6f 6e 65 20 |he axis |is done |
|00000e60| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 0a 58 61 |automati|cally.Xa|
|00000e70| 6c 74 68 6f 75 67 68 20 | 6d 6f 73 74 20 76 61 6c |lthough |most val|
|00000e80| 75 65 73 20 63 61 6e 20 | 62 65 20 6f 76 65 72 2d |ues can |be over-|
|00000e90| 72 69 64 64 65 6e 2e 0a | 58 0a 58 54 68 65 20 70 |ridden..|X.XThe p|
|00000ea0| 72 6f 67 72 61 6d 20 61 | 6c 73 6f 20 61 6c 6c 6f |rogram a|lso allo|
|00000eb0| 77 73 20 66 75 6e 63 74 | 69 6f 6e 73 20 74 6f 20 |ws funct|ions to |
|00000ec0| 62 65 20 64 65 66 69 6e | 65 64 20 77 69 74 68 20 |be defin|ed with |
|00000ed0| 73 75 66 66 69 63 65 6e | 74 20 70 6f 77 65 72 0a |sufficen|t power.|
|00000ee0| 58 74 6f 20 64 6f 20 61 | 20 6c 65 61 73 74 2d 73 |Xto do a| least-s|
|00000ef0| 71 75 61 72 65 73 20 62 | 65 73 74 20 66 69 74 20 |quares b|est fit |
|00000f00| 61 6c 67 6f 72 69 74 68 | 6d 2e 0a 58 0a 58 54 68 |algorith|m..X.XTh|
|00000f10| 65 20 73 6f 66 74 77 61 | 72 65 20 77 61 73 20 6e |e softwa|re was n|
|00000f20| 6f 74 20 77 72 69 74 74 | 65 6e 20 66 6f 72 20 65 |ot writt|en for e|
|00000f30| 66 66 69 63 65 6e 63 79 | 20 28 69 74 20 63 61 6e |fficency| (it can|
|00000f40| 20 62 65 20 6d 65 6d 6f | 72 79 20 68 75 6e 67 72 | be memo|ry hungr|
|00000f50| 79 0a 58 61 73 20 61 6c | 6c 20 74 68 65 20 74 61 |y.Xas al|l the ta|
|00000f60| 62 6c 65 20 6f 70 65 72 | 61 74 69 6f 6e 73 20 74 |ble oper|ations t|
|00000f70| 65 6e 64 20 74 6f 20 6d | 61 6b 65 20 63 6f 70 69 |end to m|ake copi|
|00000f80| 65 73 20 77 68 65 6e 20 | 70 65 72 66 6f 72 6d 69 |es when |performi|
|00000f90| 6e 67 20 74 68 65 0a 58 | 6f 70 65 72 61 74 69 6f |ng the.X|operatio|
|00000fa0| 6e 73 29 20 62 75 74 20 | 49 20 68 61 76 65 20 6e |ns) but |I have n|
|00000fb0| 6f 74 20 66 6f 75 6e 64 | 20 6d 65 6d 6f 72 79 20 |ot found| memory |
|00000fc0| 74 6f 20 62 65 20 61 20 | 70 72 6f 62 6c 65 6d 20 |to be a |problem |
|00000fd0| 79 65 74 20 28 77 65 6c | 6c 2c 0a 58 6e 6f 74 20 |yet (wel|l,.Xnot |
|00000fe0| 6f 6e 20 6f 75 72 20 76 | 61 78 20 61 6e 79 77 61 |on our v|ax anywa|
|00000ff0| 79 21 29 0a 58 0a 58 41 | 6c 6c 20 6f 75 74 70 75 |y!).X.XA|ll outpu|
|00001000| 74 20 69 73 20 69 6e 20 | 73 74 61 6e 64 61 72 64 |t is in |standard|
|00001010| 20 70 6c 6f 74 28 31 29 | 20 66 6f 72 6d 61 74 20 | plot(1)| format |
|00001020| 61 73 20 69 74 20 75 73 | 65 73 20 74 68 65 20 2d |as it us|es the -|
|00001030| 6c 70 6c 6f 74 20 6c 69 | 62 72 61 72 69 65 73 2e |lplot li|braries.|
|00001040| 0a 58 0a 58 54 68 69 73 | 20 73 6f 66 74 77 61 72 |.X.XThis| softwar|
|00001050| 65 20 73 68 6f 75 6c 64 | 20 62 65 20 66 61 69 72 |e should| be fair|
|00001060| 6c 79 20 70 6f 72 74 61 | 62 6c 65 20 61 63 72 6f |ly porta|ble acro|
|00001070| 73 73 20 55 4e 49 58 20 | 73 79 73 74 65 6d 73 20 |ss UNIX |systems |
|00001080| 61 6c 74 68 6f 75 67 68 | 0a 58 61 20 6c 69 74 74 |although|.Xa litt|
|00001090| 6c 65 20 77 6f 72 6b 20 | 6d 61 79 20 62 65 20 72 |le work |may be r|
|000010a0| 65 71 75 69 72 65 64 20 | 66 6f 72 20 6f 74 68 65 |equired |for othe|
|000010b0| 72 20 73 79 73 74 65 6d | 73 20 28 6c 69 6b 65 20 |r system|s (like |
|000010c0| 49 42 4d 20 50 43 73 29 | 2e 0a 58 0a 58 43 4f 4d |IBM PCs)|..X.XCOM|
|000010d0| 4d 4f 4e 20 50 52 4f 42 | 4c 45 4d 53 0a 58 3d 3d |MON PROB|LEMS.X==|
|000010e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 0a 58 0a |========|=====.X.|
|000010f0| 58 54 68 65 20 61 75 74 | 6f 6d 61 74 69 63 20 73 |XThe aut|omatic s|
|00001100| 63 61 6c 69 6e 67 20 6d | 65 63 68 61 6e 69 73 6d |caling m|echanism|
|00001110| 20 73 74 69 6c 6c 20 64 | 6f 65 73 20 6e 6f 74 20 | still d|oes not |
|00001120| 61 6c 77 61 79 73 20 77 | 6f 72 6b 20 63 6f 72 72 |always w|ork corr|
|00001130| 65 63 74 6c 79 2e 0a 58 | 49 74 20 69 73 20 61 63 |ectly..X|It is ac|
|00001140| 74 75 61 6c 6c 79 20 76 | 65 72 79 20 64 69 66 66 |tually v|ery diff|
|00001150| 69 63 75 6c 74 20 74 6f | 20 64 6f 20 70 72 6f 70 |icult to| do prop|
|00001160| 65 72 6c 79 2e 20 49 66 | 20 73 74 72 61 6e 67 65 |erly. If| strange|
|00001170| 20 74 68 69 6e 67 73 20 | 61 70 70 65 61 72 0a 58 | things |appear.X|
|00001180| 74 6f 20 62 65 20 68 61 | 70 70 65 6e 69 6e 67 2c |to be ha|ppening,|
|00001190| 20 74 72 79 20 73 70 65 | 63 69 66 69 79 69 6e 67 | try spe|cifiying|
|000011a0| 20 66 72 6f 6d 20 61 6e | 64 20 74 6f 20 6f 6e 20 | from an|d to on |
|000011b0| 74 68 65 20 78 61 78 69 | 73 20 61 6e 64 20 79 61 |the xaxi|s and ya|
|000011c0| 78 69 73 0a 58 73 74 61 | 74 65 6d 65 6e 74 73 20 |xis.Xsta|tements |
|000011d0| 28 78 61 78 69 73 20 66 | 72 6f 6d 20 30 20 74 6f |(xaxis f|rom 0 to|
|000011e0| 20 31 30 30 30 29 2e 20 | 41 6c 73 6f 2c 20 74 68 | 1000). |Also, th|
|000011f0| 65 72 65 20 63 61 6e 20 | 6f 6e 6c 79 20 62 65 20 |ere can |only be |
|00001200| 6f 6e 65 20 78 61 78 69 | 73 0a 58 61 6e 64 20 79 |one xaxi|s.Xand y|
|00001210| 61 78 69 73 20 63 6f 6d | 6d 61 6e 64 20 70 65 72 |axis com|mand per|
|00001220| 20 70 6c 6f 74 20 2d 20 | 6d 75 6c 74 69 70 6c 65 | plot - |multiple|
|00001230| 20 63 6f 6d 6d 61 6e 64 | 73 20 77 69 6c 6c 20 69 | command|s will i|
|00001240| 67 6e 6f 72 65 20 70 72 | 65 63 65 65 64 69 6e 67 |gnore pr|eceeding|
|00001250| 0a 58 63 6f 6d 6d 61 6e | 64 73 2e 0a 58 0a 58 4d |.Xcomman|ds..X.XM|
|00001260| 6f 73 74 20 6f 66 20 74 | 68 65 20 61 75 74 6f 6d |ost of t|he autom|
|00001270| 61 74 69 63 20 66 65 61 | 74 75 72 65 73 20 63 61 |atic fea|tures ca|
|00001280| 6e 20 62 65 20 6f 76 65 | 72 72 69 64 65 6e 20 6d |n be ove|rriden m|
|00001290| 61 6e 75 61 6c 6c 79 2e | 0a 58 0a 58 0a 58 50 6f |anually.|.X.X.XPo|
|000012a0| 73 73 69 62 6c 65 20 50 | 61 74 63 68 69 6e 67 20 |ssible P|atching |
|000012b0| 50 72 6f 62 6c 65 6d 73 | 3a 0a 58 0a 58 6f 20 20 |Problems|:.X.Xo |
|000012c0| 20 54 68 65 20 66 69 6c | 65 20 6d 61 69 6e 2e 63 | The fil|e main.c|
|000012d0| 20 63 6f 6e 74 61 69 6e | 73 20 61 20 70 61 74 68 | contain|s a path|
|000012e0| 20 6e 61 6d 65 20 74 68 | 61 74 20 6e 65 65 64 73 | name th|at needs|
|000012f0| 20 74 6f 20 62 65 20 70 | 61 74 63 68 65 64 2e 0a | to be p|atched..|
|00001300| 58 20 20 20 20 54 68 69 | 73 20 69 73 20 62 65 63 |X Thi|s is bec|
|00001310| 61 75 73 65 20 74 68 65 | 20 70 72 6f 67 72 61 6d |ause the| program|
|00001320| 20 6c 6f 6f 6b 73 20 69 | 6e 20 73 6f 6d 65 20 73 | looks i|n some s|
|00001330| 70 65 63 69 61 6c 20 64 | 69 72 65 63 74 6f 72 69 |pecial d|irectori|
|00001340| 65 73 20 66 6f 72 0a 58 | 20 20 20 20 70 72 65 64 |es for.X| pred|
|00001350| 65 66 69 6e 65 64 20 66 | 75 6e 74 69 6f 6e 73 20 |efined f|untions |
|00001360| 28 69 66 20 79 6f 75 20 | 77 69 73 68 20 74 6f 20 |(if you |wish to |
|00001370| 69 6e 73 74 61 6c 6c 20 | 61 6e 79 29 2e 20 28 53 |install |any). (S|
|00001380| 65 65 20 47 4c 4f 42 5f | 4c 49 42 29 0a 58 20 20 |ee GLOB_|LIB).X |
|00001390| 20 20 54 68 65 20 70 61 | 74 68 20 63 61 6e 20 62 | The pa|th can b|
|000013a0| 65 20 64 65 66 69 6e 65 | 64 20 69 6e 20 74 68 65 |e define|d in the|
|000013b0| 20 4d 61 6b 65 66 69 6c | 65 20 69 6e 73 74 65 61 | Makefil|e instea|
|000013c0| 64 2e 0a 58 0a 58 6f 20 | 20 20 54 68 65 20 6c 61 |d..X.Xo | The la|
|000013d0| 73 74 20 66 75 6e 63 74 | 69 6f 6e 20 69 6e 20 6d |st funct|ion in m|
|000013e0| 61 69 6e 2e 63 20 6d 61 | 79 20 61 6c 73 6f 20 6e |ain.c ma|y also n|
|000013f0| 65 65 64 20 74 6f 20 62 | 65 20 72 65 2d 77 72 69 |eed to b|e re-wri|
|00001400| 74 74 65 6e 20 66 6f 72 | 20 79 6f 75 72 20 6d 61 |tten for| your ma|
|00001410| 63 68 69 6e 65 0a 58 20 | 20 20 20 61 73 20 69 74 |chine.X | as it|
|00001420| 20 74 72 69 65 73 20 74 | 6f 20 64 65 74 65 72 6d | tries t|o determ|
|00001430| 69 6e 65 20 77 68 61 74 | 20 63 61 75 73 65 64 20 |ine what| caused |
|00001440| 61 20 66 6c 6f 61 74 69 | 6e 67 20 65 78 63 65 70 |a floati|ng excep|
|00001450| 74 69 6f 6e 2e 20 49 74 | 20 77 69 6c 6c 0a 58 20 |tion. It| will.X |
|00001460| 20 20 20 70 72 6f 62 61 | 62 6c 79 20 77 6f 72 6b | proba|bly work|
|00001470| 20 77 69 74 68 6f 75 74 | 20 61 6e 79 20 61 6c 74 | without| any alt|
|00001480| 65 72 61 74 69 6f 6e 73 | 2e 20 49 74 20 69 73 20 |erations|. It is |
|00001490| 70 61 74 63 68 65 64 20 | 66 6f 72 20 6f 75 72 20 |patched |for our |
|000014a0| 56 41 58 20 31 31 2f 37 | 35 30 0a 58 20 20 20 20 |VAX 11/7|50.X |
|000014b0| 72 75 6e 6e 69 6e 67 20 | 42 53 44 20 34 2e 32 20 |running |BSD 4.2 |
|000014c0| 61 74 20 74 68 65 20 6d | 6f 6d 65 6e 74 2e 0a 58 |at the m|oment..X|
|000014d0| 0a 58 6f 20 20 20 54 68 | 65 20 66 69 6c 65 20 6d |.Xo Th|e file m|
|000014e0| 61 69 6e 2e 63 20 75 73 | 65 73 20 67 65 74 65 6e |ain.c us|es geten|
|000014f0| 76 28 29 20 61 6e 64 20 | 74 68 65 20 66 69 6c 65 |v() and |the file|
|00001500| 20 79 61 63 63 2e 79 20 | 75 73 65 73 20 74 69 6d | yacc.y |uses tim|
|00001510| 65 28 29 2c 0a 58 20 20 | 20 20 63 74 69 6d 65 28 |e(),.X | ctime(|
|00001520| 29 20 61 6e 64 20 73 79 | 73 74 65 6d 28 29 20 28 |) and sy|stem() (|
|00001530| 66 6f 72 20 74 68 65 20 | 73 68 65 6c 6c 20 73 74 |for the |shell st|
|00001540| 61 74 65 6d 65 6e 74 29 | 2e 0a 58 0a 58 6f 20 20 |atement)|..X.Xo |
|00001550| 20 54 68 65 20 69 6e 63 | 6c 75 64 65 20 73 74 61 | The inc|lude sta|
|00001560| 74 65 6d 65 6e 74 20 6d | 61 79 20 6e 6f 74 20 77 |tement m|ay not w|
|00001570| 6f 72 6b 20 61 73 20 69 | 74 20 69 6e 76 6f 6c 76 |ork as i|t involv|
|00001580| 65 73 20 66 69 64 64 6c | 69 6e 67 20 77 69 74 68 |es fiddl|ing with|
|00001590| 20 79 61 63 63 2e 0a 58 | 20 20 20 20 41 74 20 70 | yacc..X| At p|
|000015a0| 72 65 73 65 6e 74 20 69 | 74 20 63 68 65 77 73 20 |resent i|t chews |
|000015b0| 6f 6e 65 20 74 6f 6b 65 | 6e 20 6d 6f 72 65 20 74 |one toke|n more t|
|000015c0| 68 61 6e 20 49 20 72 65 | 61 6c 6c 79 20 77 61 6e |han I re|ally wan|
|000015d0| 74 20 69 74 20 74 6f 2e | 0a 58 0a 58 6f 20 20 20 |t it to.|.X.Xo |
|000015e0| 49 66 20 79 6f 75 72 20 | 6c 69 62 72 61 72 79 20 |If your |library |
|000015f0| 64 6f 65 73 20 6e 6f 74 | 20 63 6f 6e 74 61 69 6e |does not| contain|
|00001600| 20 72 65 6c 65 76 61 6e | 74 20 6d 61 74 68 73 20 | relevan|t maths |
|00001610| 66 75 6e 63 74 69 6f 6e | 73 2c 20 65 69 74 68 65 |function|s, eithe|
|00001620| 72 0a 58 20 20 20 20 6a | 75 73 74 20 64 65 6c 65 |r.X j|ust dele|
|00001630| 74 65 20 74 68 65 20 63 | 6f 64 65 2c 20 69 6e 73 |te the c|ode, ins|
|00001640| 65 72 74 20 61 20 64 75 | 6d 6d 79 20 66 75 6e 63 |ert a du|mmy func|
|00001650| 74 69 6f 6e 2c 20 6f 72 | 20 77 68 61 74 65 76 65 |tion, or| whateve|
|00001660| 72 2e 20 4e 6f 74 65 0a | 58 20 20 20 20 74 68 61 |r. Note.|X tha|
|00001670| 74 20 74 68 65 20 63 6f | 64 65 20 61 73 73 75 6d |t the co|de assum|
|00001680| 65 73 20 61 6c 6c 20 6d | 61 74 68 20 66 75 6e 63 |es all m|ath func|
|00001690| 74 69 6f 6e 73 20 68 61 | 76 65 20 65 78 74 65 72 |tions ha|ve exter|
|000016a0| 6e 20 64 6f 75 62 6c 65 | 20 66 75 6e 63 28 29 3b |n double| func();|
|000016b0| 0a 58 20 20 20 20 69 6e | 20 3c 6d 61 74 68 2e 68 |.X in| <math.h|
|000016c0| 3e 20 73 6f 20 69 66 20 | 74 68 65 20 66 75 6e 63 |> so if |the func|
|000016d0| 74 69 6f 6e 20 69 73 20 | 6e 6f 74 20 69 6e 20 74 |tion is |not in t|
|000016e0| 68 65 20 6c 69 62 72 61 | 72 79 2c 20 79 6f 75 20 |he libra|ry, you |
|000016f0| 77 69 6c 6c 20 0a 58 20 | 20 20 20 70 72 6f 62 61 |will .X | proba|
|00001700| 62 6c 79 20 68 61 76 65 | 20 74 6f 20 61 64 64 20 |bly have| to add |
|00001710| 79 6f 75 72 20 6f 77 6e | 20 65 78 74 65 72 6e 27 |your own| extern'|
|00001720| 73 20 77 68 65 72 65 20 | 6e 65 63 65 73 73 61 72 |s where |necessar|
|00001730| 79 2e 0a 58 0a 58 6f 20 | 20 20 64 75 6d 70 67 72 |y..X.Xo | dumpgr|
|00001740| 70 68 2e 63 20 6e 65 65 | 64 73 20 74 6f 20 6b 6e |ph.c nee|ds to kn|
|00001750| 6f 77 20 74 68 65 20 77 | 69 64 74 68 20 6f 66 20 |ow the w|idth of |
|00001760| 61 20 63 68 61 72 61 63 | 74 65 72 21 21 20 54 68 |a charac|ter!! Th|
|00001770| 69 73 20 6f 66 20 63 6f | 75 72 73 65 0a 58 20 20 |is of co|urse.X |
|00001780| 20 20 63 68 61 6e 67 65 | 73 20 70 65 72 20 6f 75 | change|s per ou|
|00001790| 74 70 75 74 20 64 65 76 | 69 63 65 2e 20 49 66 20 |tput dev|ice. If |
|000017a0| 74 68 65 20 6d 61 63 72 | 6f 20 4c 41 53 45 52 20 |the macr|o LASER |
|000017b0| 69 73 20 64 65 66 69 6e | 65 64 2c 20 69 74 20 73 |is defin|ed, it s|
|000017c0| 65 65 6d 73 0a 58 20 20 | 20 20 74 6f 20 77 6f 72 |eems.X | to wor|
|000017d0| 6b 20 6f 6b 20 77 69 74 | 68 20 6f 75 72 20 61 70 |k ok wit|h our ap|
|000017e0| 70 6c 65 20 6c 61 73 65 | 72 20 70 72 69 6e 74 65 |ple lase|r printe|
|000017f0| 72 20 28 68 65 6c 76 65 | 74 69 63 61 29 2c 20 6f |r (helve|tica), o|
|00001800| 74 68 65 72 77 69 73 65 | 0a 58 20 20 20 20 69 74 |therwise|.X it|
|00001810| 20 77 6f 72 6b 73 20 66 | 6f 72 20 61 20 74 65 6b | works f|or a tek|
|00001820| 74 72 6f 6e 69 63 73 20 | 65 6d 75 6c 61 74 6f 72 |tronics |emulator|
|00001830| 20 6f 6e 20 61 20 53 75 | 6e 20 77 65 20 68 61 76 | on a Su|n we hav|
|00001840| 65 20 68 65 72 65 2e 20 | 54 68 65 20 73 69 7a 65 |e here. |The size|
|00001850| 0a 58 20 20 20 20 6f 66 | 20 61 20 63 68 61 72 61 |.X of| a chara|
|00001860| 63 74 65 72 20 6d 75 73 | 74 20 62 65 20 6b 6e 6f |cter mus|t be kno|
|00001870| 77 6e 20 73 6f 20 74 68 | 61 74 20 63 65 6e 74 65 |wn so th|at cente|
|00001880| 72 69 6e 67 20 61 6e 64 | 20 72 69 67 68 74 20 6a |ring and| right j|
|00001890| 75 73 74 69 66 69 63 61 | 74 69 6f 6e 0a 58 20 20 |ustifica|tion.X |
|000018a0| 20 20 63 61 6e 20 62 65 | 20 64 6f 6e 65 20 28 66 | can be| done (f|
|000018b0| 6f 72 20 74 69 74 6c 65 | 73 2c 20 6e 75 6d 62 65 |or title|s, numbe|
|000018c0| 72 73 20 61 6c 6f 6e 67 | 20 61 78 69 73 20 65 74 |rs along| axis et|
|000018d0| 63 29 2e 0a 58 0a 58 6f | 20 20 20 2d 6c 70 6c 6f |c)..X.Xo| -lplo|
|000018e0| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 75 73 65 64 |t should| be used|
|000018f0| 20 69 6e 20 74 68 65 20 | 4d 61 6b 65 66 69 6c 65 | in the |Makefile|
|00001900| 20 66 6f 72 20 74 68 65 | 20 6d 6f 73 74 20 67 65 | for the| most ge|
|00001910| 6e 65 72 61 6c 20 66 6f | 72 6d 0a 58 20 20 20 20 |neral fo|rm.X |
|00001920| 6f 66 20 74 68 65 20 70 | 72 6f 67 72 61 6d 2e 20 |of the p|rogram. |
|00001930| 4f 75 74 70 75 74 20 63 | 61 6e 20 74 68 65 6e 20 |Output c|an then |
|00001940| 62 65 20 66 65 64 20 69 | 6e 74 6f 20 70 6c 6f 74 |be fed i|nto plot|
|00001950| 28 31 29 20 77 68 69 63 | 68 20 72 65 2d 6d 61 70 |(1) whic|h re-map|
|00001960| 73 0a 58 20 20 20 20 69 | 74 20 66 6f 72 20 64 69 |s.X i|t for di|
|00001970| 66 66 65 72 6e 74 20 74 | 65 72 6d 69 6e 61 6c 20 |ffernt t|erminal |
|00001980| 74 79 70 65 73 2e 20 49 | 66 20 68 6f 77 65 76 65 |types. I|f howeve|
|00001990| 72 20 74 68 65 72 65 20 | 69 73 20 6f 6e 6c 79 20 |r there |is only |
|000019a0| 6f 6e 65 20 74 65 72 6d | 69 6e 61 6c 0a 58 20 20 |one term|inal.X |
|000019b0| 20 20 79 6f 75 20 61 72 | 65 20 65 76 65 72 20 67 | you ar|e ever g|
|000019c0| 6f 69 6e 67 20 74 6f 20 | 75 73 65 20 69 74 20 6f |oing to |use it o|
|000019d0| 6e 20 28 65 67 3a 20 61 | 20 54 65 6b 74 72 6f 6e |n (eg: a| Tektron|
|000019e0| 69 63 73 20 34 30 31 34 | 29 20 74 68 65 6e 20 74 |ics 4014|) then t|
|000019f0| 68 65 72 65 0a 58 20 20 | 20 20 6d 61 79 20 62 65 |here.X | may be|
|00001a00| 20 61 20 70 6c 6f 74 20 | 6c 69 62 72 61 72 79 20 | a plot |library |
|00001a10| 61 76 61 69 6c 61 62 6c | 65 20 6f 6e 20 79 6f 75 |availabl|e on you|
|00001a20| 72 20 6d 61 63 68 69 6e | 65 20 73 6f 20 79 6f 75 |r machin|e so you|
|00001a30| 20 63 61 6e 20 75 73 65 | 0a 58 20 20 20 20 2d 6c | can use|.X -l|
|00001a40| 34 30 31 34 20 61 6e 64 | 20 6e 6f 74 20 68 61 76 |4014 and| not hav|
|00001a50| 65 20 74 6f 20 74 79 70 | 65 20 67 72 61 70 68 2b |e to typ|e graph+|
|00001a60| 20 2e 2e 2e 20 7c 20 70 | 6c 6f 74 20 2e 2e 2e 20 | ... | p|lot ... |
|00001a70| 61 6c 6c 20 74 68 65 20 | 74 69 6d 65 2e 0a 58 20 |all the |time..X |
|00001a80| 20 20 20 4f 6e 20 74 68 | 65 20 53 75 6e 20 66 6f | On th|e Sun fo|
|00001a90| 72 20 65 78 61 6d 70 6c | 65 20 74 68 65 72 65 20 |r exampl|e there |
|00001aa0| 69 73 20 61 20 74 65 6b | 74 72 6f 6e 69 63 73 20 |is a tek|tronics |
|00001ab0| 65 6d 75 6c 61 74 6f 72 | 20 77 68 69 63 68 20 49 |emulator| which I|
|00001ac0| 20 75 73 65 0a 58 20 20 | 20 20 66 6f 72 20 70 72 | use.X | for pr|
|00001ad0| 65 76 69 65 77 69 6e 67 | 20 67 72 61 70 68 73 20 |eviewing| graphs |
|00001ae0| 28 74 68 65 79 20 4e 45 | 56 45 52 20 63 6f 6d 65 |(they NE|VER come|
|00001af0| 20 6f 75 74 20 71 75 69 | 74 65 20 72 69 67 68 74 | out qui|te right|
|00001b00| 20 74 68 65 20 66 69 72 | 73 74 20 74 69 6d 65 29 | the fir|st time)|
|00001b10| 2e 0a 58 0a 58 41 6c 61 | 6e 20 4b 65 6e 74 2c 0a |..X.XAla|n Kent,.|
|00001b20| 58 44 65 70 74 20 43 6f | 6d 70 75 74 65 72 20 53 |XDept Co|mputer S|
|00001b30| 63 69 65 6e 63 65 2c 0a | 58 52 6f 79 61 6c 20 4d |cience,.|XRoyal M|
|00001b40| 65 6c 62 6f 75 72 6e 65 | 20 49 6e 73 74 69 74 75 |elbourne| Institu|
|00001b50| 74 65 20 6f 66 20 54 65 | 63 68 6e 6f 6c 6f 67 79 |te of Te|chnology|
|00001b60| 2c 0a 58 4d 65 6c 62 6f | 75 72 6e 65 2c 20 41 75 |,.XMelbo|urne, Au|
|00001b70| 73 74 72 61 6c 69 61 2e | 0a 58 0a 58 41 43 53 4e |stralia.|.X.XACSN|
|00001b80| 65 74 3a 20 61 6a 6b 40 | 67 6f 61 6e 6e 61 2e 6f |et: ajk@|goanna.o|
|00001b90| 7a 0a 58 55 55 43 50 3a | 20 7b 73 65 69 73 6d 6f |z.XUUCP:| {seismo|
|00001ba0| 2c 68 70 6c 61 62 73 2c | 6d 63 76 61 78 2c 75 6b |,hplabs,|mcvax,uk|
|00001bb0| 63 2c 6e 74 74 6c 61 62 | 7d 21 6d 75 6e 6e 61 72 |c,nttlab|}!munnar|
|00001bc0| 69 21 67 6f 61 6e 6e 61 | 2e 6f 7a 21 61 6a 6b 0a |i!goanna|.oz!ajk.|
|00001bd0| 58 41 52 50 41 3a 20 6d | 75 6e 6e 61 72 69 21 67 |XARPA: m|unnari!g|
|00001be0| 6f 61 6e 6e 61 2e 6f 7a | 21 61 6a 6b 40 53 45 49 |oanna.oz|!ajk@SEI|
|00001bf0| 53 4d 4f 2e 41 52 50 41 | 0a 53 48 41 52 5f 45 4f |SMO.ARPA|.SHAR_EO|
|00001c00| 46 0a 69 66 20 74 65 73 | 74 20 36 31 32 39 20 2d |F.if tes|t 6129 -|
|00001c10| 6e 65 20 22 60 77 63 20 | 2d 63 20 3c 20 27 52 45 |ne "`wc |-c < 'RE|
|00001c20| 41 44 4d 45 27 60 22 0a | 74 68 65 6e 0a 09 65 63 |ADME'`".|then..ec|
|00001c30| 68 6f 20 73 68 61 72 3a | 20 65 72 72 6f 72 20 74 |ho shar:| error t|
|00001c40| 72 61 6e 73 6d 69 74 74 | 69 6e 67 20 22 27 52 45 |ransmitt|ing "'RE|
|00001c50| 41 44 4d 45 27 22 20 27 | 28 73 68 6f 75 6c 64 20 |ADME'" '|(should |
|00001c60| 68 61 76 65 20 62 65 65 | 6e 20 36 31 32 39 20 63 |have bee|n 6129 c|
|00001c70| 68 61 72 61 63 74 65 72 | 73 29 27 0a 66 69 0a 66 |haracter|s)'.fi.f|
|00001c80| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 67 72 |i.if tes|t -f 'gr|
|00001c90| 61 70 68 2b 2e 31 27 0a | 74 68 65 6e 0a 09 65 63 |aph+.1'.|then..ec|
|00001ca0| 68 6f 20 73 68 61 72 3a | 20 77 69 6c 6c 20 6e 6f |ho shar:| will no|
|00001cb0| 74 20 6f 76 65 72 2d 77 | 72 69 74 65 20 65 78 69 |t over-w|rite exi|
|00001cc0| 73 74 69 6e 67 20 66 69 | 6c 65 20 22 27 67 72 61 |sting fi|le "'gra|
|00001cd0| 70 68 2b 2e 31 27 22 0a | 65 6c 73 65 0a 65 63 68 |ph+.1'".|else.ech|
|00001ce0| 6f 20 65 78 74 72 61 63 | 74 69 6e 67 20 22 27 67 |o extrac|ting "'g|
|00001cf0| 72 61 70 68 2b 2e 31 27 | 22 0a 73 65 64 20 27 73 |raph+.1'|".sed 's|
|00001d00| 2f 5e 58 2f 2f 27 20 3e | 67 72 61 70 68 2b 2e 31 |/^X//' >|graph+.1|
|00001d10| 20 3c 3c 27 53 48 41 52 | 5f 45 4f 46 27 0a 58 2e | <<'SHAR|_EOF'.X.|
|00001d20| 5c 22 20 4e 72 6f 66 66 | 20 2d 6d 61 6e 0a 58 2e |\" Nroff| -man.X.|
|00001d30| 64 65 20 53 59 0a 58 2e | 73 70 0a 58 2e 53 48 20 |de SY.X.|sp.X.SH |
|00001d40| 53 59 4e 54 41 58 0a 58 | 2e 50 50 0a 58 2e 6e 66 |SYNTAX.X|.PP.X.nf|
|00001d50| 0a 58 2e 2e 0a 58 2e 64 | 65 20 45 53 0a 58 2e 53 |.X...X.d|e ES.X.S|
|00001d60| 48 20 45 58 41 4d 50 4c | 45 53 0a 58 2e 50 50 0a |H EXAMPL|ES.X.PP.|
|00001d70| 58 2e 6e 66 0a 58 2e 2e | 0a 58 2e 64 65 20 45 45 |X.nf.X..|.X.de EE|
|00001d80| 0a 58 2e 66 69 0a 58 2e | 53 48 20 44 45 53 43 52 |.X.fi.X.|SH DESCR|
|00001d90| 49 50 54 49 4f 4e 0a 58 | 2e 2e 0a 58 2e 54 48 20 |IPTION.X|...X.TH |
|00001da0| 67 72 61 70 68 2b 20 61 | 6a 6b 20 22 33 31 20 4a |graph+ a|jk "31 J|
|00001db0| 61 6e 75 61 72 79 20 31 | 39 38 34 22 0a 58 2e 53 |anuary 1|984".X.S|
|00001dc0| 48 20 4e 41 4d 45 0a 58 | 67 72 61 70 68 2b 20 5c |H NAME.X|graph+ \|
|00001dd0| 2d 20 70 6f 77 65 72 66 | 75 6c 20 67 72 61 70 68 |- powerf|ul graph|
|00001de0| 20 67 65 6e 65 72 61 74 | 6f 72 20 70 72 6f 67 72 | generat|or progr|
|00001df0| 61 6d 0a 58 2e 53 48 20 | 53 59 4e 4f 50 53 49 53 |am.X.SH |SYNOPSIS|
|00001e00| 0a 58 2e 42 20 67 72 61 | 70 68 2b 0a 58 5b 20 63 |.X.B gra|ph+.X[ c|
|00001e10| 6f 6d 6d 61 6e 64 66 69 | 6c 65 20 7c 20 5c 2d 20 |ommandfi|le | \- |
|00001e20| 5d 0a 58 5b 20 70 61 72 | 61 6d 65 74 65 72 20 2e |].X[ par|ameter .|
|00001e30| 2e 2e 20 5d 0a 58 2e 53 | 48 20 44 45 53 43 52 49 |.. ].X.S|H DESCRI|
|00001e40| 50 54 49 4f 4e 0a 58 2e | 50 50 0a 58 2e 49 20 47 |PTION.X.|PP.X.I G|
|00001e50| 72 61 70 68 2b 0a 58 69 | 73 20 61 20 75 74 69 6c |raph+.Xi|s a util|
|00001e60| 69 74 79 20 70 72 6f 67 | 72 61 6d 20 66 6f 72 20 |ity prog|ram for |
|00001e70| 70 72 6f 64 75 63 69 6e | 67 20 67 72 61 70 68 73 |producin|g graphs|
|00001e80| 2e 0a 58 49 74 73 20 6d | 61 69 6e 20 61 64 76 61 |..XIts m|ain adva|
|00001e90| 6e 74 61 67 65 20 69 73 | 20 74 68 61 74 0a 58 69 |ntage is| that.Xi|
|00001ea0| 74 20 61 6c 6c 6f 77 73 | 20 65 61 73 79 20 6d 61 |t allows| easy ma|
|00001eb0| 6e 69 70 75 6c 61 74 69 | 6f 6e 20 6f 66 20 64 61 |nipulati|on of da|
|00001ec0| 74 61 20 75 73 69 6e 67 | 20 64 79 6e 61 6d 69 63 |ta using| dynamic|
|00001ed0| 20 74 61 62 6c 65 73 0a | 58 69 6e 20 6d 65 6d 6f | tables.|Xin memo|
|00001ee0| 72 79 20 75 73 69 6e 67 | 20 61 20 72 65 6c 61 74 |ry using| a relat|
|00001ef0| 69 6f 6e 61 6c 20 73 74 | 79 6c 65 20 6c 61 6e 67 |ional st|yle lang|
|00001f00| 75 61 67 65 20 28 70 72 | 6f 6a 65 63 74 20 65 74 |uage (pr|oject et|
|00001f10| 63 2e 29 0a 58 72 61 74 | 68 65 72 20 74 68 61 6e |c.).Xrat|her than|
|00001f20| 20 72 65 71 75 69 72 69 | 6e 67 20 61 20 6e 75 6d | requiri|ng a num|
|00001f30| 62 65 72 20 6f 66 20 73 | 65 70 61 72 61 74 65 20 |ber of s|eparate |
|00001f40| 70 72 6f 67 72 61 6d 73 | 20 70 69 70 65 64 20 74 |programs| piped t|
|00001f50| 6f 67 65 74 68 65 72 2e | 0a 58 2e 49 20 47 72 61 |ogether.|.X.I Gra|
|00001f60| 70 68 2b 0a 58 61 6c 73 | 6f 20 61 6c 6c 6f 77 73 |ph+.Xals|o allows|
|00001f70| 20 66 75 6e 63 74 69 6f | 6e 73 20 74 6f 20 62 65 | functio|ns to be|
|00001f80| 20 64 65 66 69 6e 65 64 | 20 72 65 74 75 72 6e 69 | defined| returni|
|00001f90| 6e 67 20 76 61 6c 75 65 | 73 20 6f 72 20 74 61 62 |ng value|s or tab|
|00001fa0| 6c 65 73 2e 0a 58 2e 50 | 50 0a 58 42 79 20 70 6c |les..X.P|P.XBy pl|
|00001fb0| 61 63 69 6e 67 20 74 68 | 65 20 6c 69 6e 65 0a 58 |acing th|e line.X|
|00001fc0| 2e 50 50 0a 58 2e 69 6e | 20 2b 34 0a 58 20 23 21 |.PP.X.in| +4.X #!|
|00001fd0| 20 2f 75 73 72 2f 72 6d | 69 74 2f 67 72 61 70 68 | /usr/rm|it/graph|
|00001fe0| 2b 0a 58 2e 69 6e 20 2d | 34 0a 58 2e 50 50 0a 58 |+.X.in -|4.X.PP.X|
|00001ff0| 61 74 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |at the b|eginning|
|00002000| 20 6f 66 20 61 0a 58 2e | 49 20 67 72 61 70 68 2b | of a.X.|I graph+|
|00002010| 0a 58 63 6f 6d 6d 61 6e | 64 20 66 69 6c 65 2c 20 |.Xcomman|d file, |
|00002020| 74 68 65 20 66 69 6c 65 | 20 63 61 6e 20 74 68 65 |the file| can the|
|00002030| 6e 20 62 65 20 65 78 65 | 63 75 74 65 64 0a 58 64 |n be exe|cuted.Xd|
|00002040| 69 72 65 63 74 6c 79 20 | 6c 69 6b 65 20 61 20 73 |irectly |like a s|
|00002050| 68 65 6c 6c 20 73 63 72 | 69 70 74 2c 20 61 73 73 |hell scr|ipt, ass|
|00002060| 75 6d 69 6e 67 20 74 68 | 61 74 20 74 68 65 20 62 |uming th|at the b|
|00002070| 69 6e 61 72 79 20 66 69 | 6c 65 20 69 73 20 69 6e |inary fi|le is in|
|00002080| 20 2f 75 73 72 2f 72 6d | 69 74 2e 0a 58 4f 75 74 | /usr/rm|it..XOut|
|00002090| 70 75 74 20 69 73 20 69 | 6e 20 74 68 65 20 66 6f |put is i|n the fo|
|000020a0| 72 6d 61 74 20 66 6f 72 | 20 69 6e 70 75 74 20 74 |rmat for| input t|
|000020b0| 6f 20 74 68 65 0a 58 2e | 49 52 20 70 6c 6f 74 20 |o the.X.|IR plot |
|000020c0| 28 31 29 0a 58 66 69 6c | 74 65 72 73 2e 0a 58 2e |(1).Xfil|ters..X.|
|000020d0| 50 50 0a 58 54 68 65 20 | 70 61 72 61 6d 65 74 65 |PP.XThe |paramete|
|000020e0| 72 73 20 63 61 6e 20 62 | 65 20 72 65 66 65 72 65 |rs can b|e refere|
|000020f0| 6e 63 65 64 20 69 6e 73 | 69 64 65 20 61 20 70 6c |nced ins|ide a pl|
|00002100| 6f 74 20 70 72 6f 67 72 | 61 6d 2e 20 54 68 65 20 |ot progr|am. The |
|00002110| 66 69 72 73 74 20 70 61 | 72 61 6d 65 74 65 72 0a |first pa|rameter.|
|00002120| 58 69 73 20 67 69 76 65 | 6e 20 74 68 65 20 6e 75 |Xis give|n the nu|
|00002130| 6d 62 65 72 20 31 2e 20 | 54 68 69 73 20 61 6c 6c |mber 1. |This all|
|00002140| 6f 77 73 20 66 69 6c 65 | 20 6e 61 6d 65 73 20 61 |ows file| names a|
|00002150| 6e 64 20 67 72 61 70 68 | 20 74 69 74 6c 65 73 20 |nd graph| titles |
|00002160| 74 6f 20 62 65 0a 58 70 | 61 73 73 65 64 20 74 6f |to be.Xp|assed to|
|00002170| 20 61 20 67 72 61 70 68 | 2b 20 70 72 6f 67 72 61 | a graph|+ progra|
|00002180| 6d 2e 20 28 53 65 65 20 | 73 74 72 69 6e 67 73 29 |m. (See |strings)|
|00002190| 2e 20 49 66 20 70 61 72 | 61 6d 65 74 65 72 73 20 |. If par|ameters |
|000021a0| 61 72 65 20 74 6f 20 62 | 65 0a 58 73 75 70 70 69 |are to b|e.Xsuppi|
|000021b0| 65 64 2c 20 62 75 74 20 | 74 68 65 20 61 63 74 75 |ed, but |the actu|
|000021c0| 61 6c 20 70 72 6f 67 72 | 61 6d 20 69 73 20 6f 6e |al progr|am is on|
|000021d0| 20 73 74 61 6e 64 61 72 | 64 20 69 6e 70 75 74 2c | standar|d input,|
|000021e0| 20 74 68 65 6e 20 5c 2d | 20 6d 75 73 74 0a 58 62 | then \-| must.Xb|
|000021f0| 65 20 73 70 65 63 69 66 | 69 65 64 20 66 6f 72 20 |e specif|ied for |
|00002200| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 66 69 6c 65 |the prog|ram file|
|00002210| 20 6e 61 6d 65 2e 20 27 | 70 61 72 6d 73 27 20 69 | name. '|parms' i|
|00002220| 73 20 73 65 74 20 74 6f | 20 74 68 65 20 6e 75 6d |s set to| the num|
|00002230| 62 65 72 0a 58 6f 66 20 | 70 61 72 61 6d 65 74 65 |ber.Xof |paramete|
|00002240| 72 73 2e 20 4e 6f 74 65 | 20 74 68 61 74 20 6e 75 |rs. Note| that nu|
|00002250| 6d 65 72 69 63 20 70 61 | 72 61 6d 65 74 65 72 73 |meric pa|rameters|
|00002260| 20 63 61 6e 20 62 65 20 | 68 61 6e 64 6c 65 64 20 | can be |handled |
|00002270| 62 79 20 75 73 69 6e 67 | 0a 58 74 68 65 20 76 61 |by using|.Xthe va|
|00002280| 6c 28 29 20 66 75 6e 63 | 74 69 6f 6e 2e 0a 58 2e |l() func|tion..X.|
|00002290| 50 50 0a 58 49 6e 0a 58 | 2e 49 52 20 67 72 61 70 |PP.XIn.X|.IR grap|
|000022a0| 68 2b 20 2c 0a 58 61 0a | 58 2e 49 20 74 61 62 6c |h+ ,.Xa.|X.I tabl|
|000022b0| 65 0a 58 69 73 20 61 20 | 73 69 6d 70 6c 65 20 74 |e.Xis a |simple t|
|000022c0| 77 6f 20 64 69 6d 65 6e | 73 69 6f 6e 61 6c 20 61 |wo dimen|sional a|
|000022d0| 72 72 61 79 20 6f 66 20 | 66 6c 6f 61 74 69 6e 67 |rray of |floating|
|000022e0| 20 70 6f 69 6e 74 20 6e | 75 6d 62 65 72 73 2e 0a | point n|umbers..|
|000022f0| 58 54 61 62 6c 65 73 20 | 63 61 6e 20 68 61 76 65 |XTables |can have|
|00002300| 20 61 6e 79 20 6e 75 6d | 62 65 72 20 6f 66 20 72 | any num|ber of r|
|00002310| 6f 77 73 20 61 6e 64 20 | 63 6f 6c 75 6d 6e 73 2e |ows and |columns.|
|00002320| 0a 58 44 61 74 61 20 74 | 6f 20 62 65 20 70 6c 6f |.XData t|o be plo|
|00002330| 74 74 65 64 20 69 73 20 | 75 73 75 61 6c 6c 79 20 |tted is |usually |
|00002340| 6b 65 70 74 20 69 6e 20 | 66 69 6c 65 73 20 69 6e |kept in |files in|
|00002350| 20 61 20 6d 75 6c 74 69 | 63 6f 6c 75 6d 6e 20 66 | a multi|column f|
|00002360| 6f 72 6d 61 74 0a 58 77 | 69 74 68 20 65 61 63 68 |ormat.Xw|ith each|
|00002370| 20 6c 69 6e 65 20 72 65 | 70 72 65 73 65 6e 74 69 | line re|presenti|
|00002380| 6e 67 20 6f 6e 65 20 70 | 69 65 63 65 20 6f 66 20 |ng one p|iece of |
|00002390| 72 65 6c 61 74 65 64 20 | 64 61 74 61 20 28 73 61 |related |data (sa|
|000023a0| 79 20 72 65 73 75 6c 74 | 73 0a 58 66 72 6f 6d 20 |y result|s.Xfrom |
|000023b0| 6f 6e 65 20 65 78 70 65 | 72 69 6d 65 6e 74 29 2e |one expe|riment).|
|000023c0| 20 41 6e 20 0a 58 2e 49 | 20 61 77 6b 0a 58 70 72 | An .X.I| awk.Xpr|
|000023d0| 6f 67 72 61 6d 20 63 61 | 6e 20 62 65 20 75 73 65 |ogram ca|n be use|
|000023e0| 64 20 74 6f 20 65 78 74 | 72 61 63 74 20 64 61 74 |d to ext|ract dat|
|000023f0| 61 20 66 72 6f 6d 20 61 | 20 63 6f 6d 70 6c 65 78 |a from a| complex|
|00002400| 6c 79 20 73 74 72 75 63 | 74 75 72 65 64 20 64 61 |ly struc|tured da|
|00002410| 74 61 0a 58 66 69 6c 65 | 20 6f 72 20 66 72 6f 6d |ta.Xfile| or from|
|00002420| 20 66 69 6c 65 73 20 63 | 6f 6e 74 61 69 6e 69 6e | files c|ontainin|
|00002430| 67 20 74 65 78 74 20 61 | 6e 64 20 72 65 66 6f 72 |g text a|nd refor|
|00002440| 6d 61 74 20 69 6e 74 6f | 20 63 6f 6c 75 6d 6e 73 |mat into| columns|
|00002450| 20 6f 66 20 64 61 74 61 | 0a 58 69 66 20 6e 65 63 | of data|.Xif nec|
|00002460| 65 73 73 61 72 79 2e 0a | 58 2e 49 20 47 72 61 70 |essary..|X.I Grap|
|00002470| 68 2b 0a 58 64 6f 65 73 | 20 6e 6f 74 20 61 6c 6c |h+.Xdoes| not all|
|00002480| 6f 77 20 74 65 78 74 20 | 74 6f 0a 58 62 65 20 72 |ow text |to.Xbe r|
|00002490| 65 61 64 20 5c 2d 20 6f | 6e 6c 79 20 66 6c 6f 61 |ead \- o|nly floa|
|000024a0| 74 69 6e 67 20 70 6f 69 | 6e 74 20 64 61 74 61 2e |ting poi|nt data.|
|000024b0| 0a 58 2e 50 50 0a 58 41 | 6e 79 77 68 65 72 65 20 |.X.PP.XA|nywhere |
|000024c0| 61 0a 58 2e 49 20 73 74 | 72 69 6e 67 0a 58 63 61 |a.X.I st|ring.Xca|
|000024d0| 6e 20 61 70 70 65 61 72 | 2c 20 61 20 73 74 72 69 |n appear|, a stri|
|000024e0| 6e 67 20 65 78 70 72 65 | 73 73 69 6f 6e 20 69 73 |ng expre|ssion is|
|000024f0| 20 61 6c 6c 6f 77 65 64 | 2e 0a 58 41 20 73 74 72 | allowed|..XA str|
|00002500| 69 6e 67 20 65 78 70 72 | 65 73 73 69 6f 6e 20 63 |ing expr|ession c|
|00002510| 61 6e 20 63 6f 6e 73 69 | 73 74 20 6f 66 20 61 20 |an consi|st of a |
|00002520| 6c 69 73 74 20 6f 66 20 | 63 6f 6e 63 61 74 65 6e |list of |concaten|
|00002530| 61 74 65 64 20 73 74 72 | 69 6e 67 73 0a 58 73 65 |ated str|ings.Xse|
|00002540| 70 65 61 72 61 74 65 64 | 20 62 79 20 2b 20 73 79 |pearated| by + sy|
|00002550| 6d 62 6f 6c 73 2e 0a 58 | 4c 69 74 65 72 61 6c 20 |mbols..X|Literal |
|00002560| 73 74 72 69 6e 67 73 0a | 58 61 72 65 20 65 6e 63 |strings.|Xare enc|
|00002570| 6c 6f 73 65 64 20 69 6e | 20 64 6f 75 62 6c 65 20 |losed in| double |
|00002580| 71 75 6f 74 65 73 20 28 | 22 29 2e 0a 58 54 6f 20 |quotes (|")..XTo |
|00002590| 65 6d 62 65 64 20 61 20 | 64 6f 75 62 6c 65 20 71 |embed a |double q|
|000025a0| 75 6f 74 65 20 69 6e 20 | 74 68 65 20 73 74 72 69 |uote in |the stri|
|000025b0| 6e 67 2c 20 70 6c 61 63 | 65 20 74 77 6f 20 64 6f |ng, plac|e two do|
|000025c0| 75 62 6c 65 20 71 75 6f | 74 65 73 0a 58 69 6d 6d |uble quo|tes.Ximm|
|000025d0| 65 64 69 61 74 65 6c 79 | 20 61 64 6a 61 63 65 6e |ediately| adjacen|
|000025e0| 74 20 74 6f 20 65 61 63 | 68 20 6f 74 68 65 72 2e |t to eac|h other.|
|000025f0| 0a 58 41 6c 74 65 72 6e | 61 74 69 76 65 73 20 66 |.XAltern|atives f|
|00002600| 6f 72 20 6c 69 74 65 72 | 61 6c 20 73 74 72 69 6e |or liter|al strin|
|00002610| 67 73 20 69 6e 63 6c 75 | 64 65 20 74 68 65 20 77 |gs inclu|de the w|
|00002620| 6f 72 64 0a 58 2e 49 20 | 70 61 72 61 6d 65 74 65 |ord.X.I |paramete|
|00002630| 72 0a 58 66 6f 6c 6c 6f | 77 65 64 20 62 79 20 74 |r.Xfollo|wed by t|
|00002640| 68 65 20 70 61 72 61 6d | 65 74 65 72 20 6e 75 6d |he param|eter num|
|00002650| 62 65 72 20 28 74 68 65 | 20 66 69 72 73 74 20 70 |ber (the| first p|
|00002660| 61 72 61 6d 65 74 65 72 | 20 69 73 20 6e 75 6d 62 |arameter| is numb|
|00002670| 65 72 20 31 29 2e 0a 58 | 54 68 65 20 72 65 73 65 |er 1)..X|The rese|
|00002680| 72 76 65 64 20 77 6f 72 | 64 0a 58 2e 49 20 64 61 |rved wor|d.X.I da|
|00002690| 74 65 0a 58 72 65 74 75 | 72 6e 73 20 61 20 73 74 |te.Xretu|rns a st|
|000026a0| 72 69 6e 67 20 77 68 69 | 63 68 20 63 6f 6e 73 69 |ring whi|ch consi|
|000026b0| 73 74 73 20 6f 66 20 74 | 68 65 0a 58 63 75 72 72 |sts of t|he.Xcurr|
|000026c0| 65 6e 74 20 74 69 6d 65 | 20 61 6e 64 20 64 61 74 |ent time| and dat|
|000026d0| 65 20 28 55 4e 49 58 20 | 66 6f 72 6d 61 74 29 2e |e (UNIX |format).|
|000026e0| 0a 58 54 68 65 20 66 75 | 6e 63 74 69 6f 6e 0a 58 |.XThe fu|nction.X|
|000026f0| 2e 49 20 76 61 6c 28 73 | 74 72 69 6e 67 29 0a 58 |.I val(s|tring).X|
|00002700| 72 65 74 75 72 6e 73 20 | 74 68 65 20 6e 75 6d 65 |returns |the nume|
|00002710| 72 69 63 20 76 61 6c 75 | 65 20 6f 66 20 61 20 73 |ric valu|e of a s|
|00002720| 74 72 69 6e 67 2e 0a 58 | 54 68 65 20 66 75 6e 63 |tring..X|The func|
|00002730| 74 69 6f 6e 0a 58 2e 49 | 20 73 74 72 28 65 78 70 |tion.X.I| str(exp|
|00002740| 72 29 0a 58 72 65 74 75 | 72 6e 73 20 61 20 73 74 |r).Xretu|rns a st|
|00002750| 72 69 6e 67 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |ring con|taining |
|00002760| 74 68 65 20 72 65 73 75 | 6c 74 20 6f 66 20 70 72 |the resu|lt of pr|
|00002770| 69 6e 74 66 28 22 25 67 | 22 2c 65 78 70 72 29 2e |intf("%g|",expr).|
|00002780| 0a 58 54 68 65 20 66 75 | 6e 63 74 69 6f 6e 0a 58 |.XThe fu|nction.X|
|00002790| 2e 49 20 73 74 72 28 66 | 6f 72 6d 61 74 2c 65 78 |.I str(f|ormat,ex|
|000027a0| 70 72 29 0a 58 61 6c 6c | 6f 77 73 20 79 6f 75 72 |pr).Xall|ows your|
|000027b0| 20 6f 77 6e 20 70 72 69 | 6e 74 66 20 66 6f 72 6d | own pri|ntf form|
|000027c0| 61 74 20 74 6f 20 62 65 | 20 75 73 65 64 2e 0a 58 |at to be| used..X|
|000027d0| 2e 50 50 0a 58 41 0a 58 | 2e 49 20 67 72 61 70 68 |.PP.XA.X|.I graph|
|000027e0| 2b 0a 58 70 72 6f 67 72 | 61 6d 20 63 6f 6e 73 69 |+.Xprogr|am consi|
|000027f0| 73 74 73 20 6f 66 20 61 | 20 6e 75 6d 62 65 72 20 |sts of a| number |
|00002800| 6f 66 20 73 74 61 74 65 | 6d 65 6e 74 73 2e 0a 58 |of state|ments..X|
|00002810| 2e 53 48 20 53 54 41 54 | 45 4d 45 4e 54 53 0a 58 |.SH STAT|EMENTS.X|
|00002820| 2e 50 50 0a 58 54 68 65 | 20 27 3b 27 20 69 73 20 |.PP.XThe| ';' is |
|00002830| 74 72 65 61 74 65 64 20 | 61 73 20 61 20 6e 75 6c |treated |as a nul|
|00002840| 6c 20 73 74 61 74 65 6d | 65 6e 74 2e 20 49 74 20 |l statem|ent. It |
|00002850| 63 61 6e 20 62 65 20 75 | 73 65 64 20 61 74 20 62 |can be u|sed at b|
|00002860| 65 74 77 65 65 6e 20 6f | 74 68 65 72 0a 58 73 74 |etween o|ther.Xst|
|00002870| 61 74 65 6d 65 6e 74 73 | 20 69 66 20 64 65 73 69 |atements| if desi|
|00002880| 72 65 64 2e 20 57 68 65 | 6e 20 67 72 61 70 68 2b |red. Whe|n graph+|
|00002890| 20 69 73 20 75 73 65 64 | 20 69 6e 74 65 72 61 63 | is used| interac|
|000028a0| 74 69 76 65 6c 79 20 28 | 69 65 2e 20 74 79 70 65 |tively (|ie. type|
|000028b0| 0a 58 67 72 61 70 68 2b | 20 77 69 74 68 20 6e 6f |.Xgraph+| with no|
|000028c0| 20 70 61 72 61 6d 65 74 | 65 72 73 29 20 63 6f 6d | paramet|ers) com|
|000028d0| 6d 61 6e 64 73 20 63 61 | 6e 20 62 65 20 65 6e 74 |mands ca|n be ent|
|000028e0| 65 72 65 64 20 62 75 74 | 20 64 75 65 20 74 6f 20 |ered but| due to |
|000028f0| 74 68 65 0a 58 6c 6f 6f | 6b 2d 61 68 65 61 64 20 |the.Xloo|k-ahead |
|00002900| 70 61 72 73 65 72 2c 20 | 74 68 65 20 6e 65 78 74 |parser, |the next|
|00002910| 20 73 74 61 74 65 6d 65 | 6e 74 20 6d 75 73 74 20 | stateme|nt must |
|00002920| 62 65 20 65 6e 74 65 72 | 65 64 20 62 65 66 6f 72 |be enter|ed befor|
|00002930| 65 20 74 68 65 0a 58 65 | 78 69 73 74 69 6e 67 20 |e the.Xe|xisting |
|00002940| 6f 6e 65 20 69 73 20 70 | 72 6f 63 65 73 73 65 64 |one is p|rocessed|
|00002950| 2e 20 41 64 64 69 6e 67 | 20 61 20 3b 20 74 6f 20 |. Adding| a ; to |
|00002960| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 63 |the end |of the c|
|00002970| 6f 6d 6d 61 6e 64 0a 58 | 74 68 65 6e 20 63 61 75 |ommand.X|then cau|
|00002980| 73 65 73 20 74 68 65 20 | 70 61 72 73 65 72 20 74 |ses the |parser t|
|00002990| 6f 20 72 65 61 6c 69 73 | 65 20 74 68 61 74 20 74 |o realis|e that t|
|000029a0| 68 65 20 65 6e 64 20 6f | 66 20 61 20 73 74 61 74 |he end o|f a stat|
|000029b0| 65 6d 65 6e 74 20 68 61 | 73 0a 58 62 65 65 6e 20 |ement ha|s.Xbeen |
|000029c0| 72 65 61 63 68 65 64 2e | 20 4e 6f 74 65 20 61 6c |reached.| Note al|
|000029d0| 73 6f 20 74 68 61 74 20 | 64 75 65 20 74 6f 20 70 |so that |due to p|
|000029e0| 72 6f 62 6c 65 6d 73 20 | 77 69 74 68 20 79 61 63 |roblems |with yac|
|000029f0| 63 28 31 29 2c 20 74 68 | 65 0a 58 69 6e 63 6c 75 |c(1), th|e.Xinclu|
|00002a00| 64 65 20 73 74 61 74 65 | 6d 65 6e 74 20 72 65 71 |de state|ment req|
|00002a10| 75 69 72 65 73 20 61 20 | 3b 20 61 66 74 65 72 20 |uires a |; after |
|00002a20| 69 74 20 28 73 65 65 20 | 62 65 6c 6f 77 29 2e 0a |it (see |below)..|
|00002a30| 58 2e 53 59 0a 58 61 73 | 73 75 6d 65 20 3c 65 78 |X.SY.Xas|sume <ex|
|00002a40| 70 72 3e 20 3c 73 74 72 | 69 6e 67 3e 0a 58 2e 45 |pr> <str|ing>.X.E|
|00002a50| 53 0a 58 61 73 73 75 6d | 65 20 70 61 72 6d 73 3d |S.Xassum|e parms=|
|00002a60| 33 20 22 33 20 70 61 72 | 61 6d 65 74 65 72 73 20 |3 "3 par|ameters |
|00002a70| 65 78 70 65 63 74 65 64 | 3a 20 22 2b 73 74 72 28 |expected|: "+str(|
|00002a80| 70 61 72 6d 73 29 2b 22 | 20 70 61 72 61 6d 65 74 |parms)+"| paramet|
|00002a90| 65 72 73 20 67 69 76 65 | 6e 22 0a 58 61 73 73 75 |ers give|n".Xassu|
|00002aa0| 6d 65 20 63 6f 75 6e 74 | 28 64 61 74 61 29 20 3e |me count|(data) >|
|00002ab0| 20 30 20 22 64 61 74 61 | 20 74 61 62 6c 65 20 65 | 0 "data| table e|
|00002ac0| 6d 70 74 79 22 0a 58 2e | 45 45 0a 58 2e 50 50 0a |mpty".X.|EE.X.PP.|
|00002ad0| 58 2e 49 20 41 73 73 75 | 6d 65 0a 58 61 62 6f 72 |X.I Assu|me.Xabor|
|00002ae0| 74 73 20 61 20 67 72 61 | 70 68 2b 20 70 72 6f 67 |ts a gra|ph+ prog|
|00002af0| 72 61 6d 20 69 66 20 74 | 68 65 20 65 78 70 72 65 |ram if t|he expre|
|00002b00| 73 73 69 6f 6e 20 65 76 | 61 6c 75 61 74 65 73 20 |ssion ev|aluates |
|00002b10| 74 6f 20 66 61 6c 73 65 | 2e 0a 58 54 68 69 73 20 |to false|..XThis |
|00002b20| 61 6c 6c 6f 77 73 20 73 | 69 6d 70 6c 65 20 63 68 |allows s|imple ch|
|00002b30| 65 63 6b 73 20 66 6f 72 | 20 74 61 62 6c 65 20 73 |ecks for| table s|
|00002b40| 69 7a 65 73 2c 20 6e 75 | 6d 62 65 72 73 20 6f 66 |izes, nu|mbers of|
|00002b50| 20 70 61 72 61 6d 65 74 | 65 72 73 0a 58 65 74 63 | paramet|ers.Xetc|
|00002b60| 2e 20 74 6f 20 62 65 20 | 69 6e 73 65 72 74 65 64 |. to be |inserted|
|00002b70| 20 69 6e 20 61 20 70 72 | 6f 67 72 61 6d 20 61 6e | in a pr|ogram an|
|00002b80| 64 20 61 6e 20 65 72 72 | 6f 72 20 6d 65 73 73 61 |d an err|or messa|
|00002b90| 67 65 20 74 6f 20 62 65 | 0a 58 70 72 69 6e 74 65 |ge to be|.Xprinte|
|00002ba0| 64 2e 0a 58 2e 53 59 0a | 58 3c 74 61 62 5f 69 64 |d..X.SY.|X<tab_id|
|00002bb0| 65 6e 74 3e 20 3d 20 3c | 74 61 62 6c 65 3e 0a 58 |ent> = <|table>.X|
|00002bc0| 2e 45 53 0a 58 64 61 74 | 61 20 3d 20 72 65 61 64 |.ES.Xdat|a = read|
|00002bd0| 20 22 64 61 74 61 2e 66 | 69 6c 65 22 0a 58 2e 45 | "data.f|ile".X.E|
|00002be0| 45 0a 58 2e 50 50 0a 58 | 44 65 66 69 6e 65 73 20 |E.X.PP.X|Defines |
|00002bf0| 74 68 65 20 69 64 65 6e | 74 69 66 69 65 72 20 0a |the iden|tifier .|
|00002c00| 58 2e 49 20 74 61 62 5f | 69 64 65 6e 74 0a 58 74 |X.I tab_|ident.Xt|
|00002c10| 6f 20 68 61 76 65 20 74 | 68 65 20 73 70 65 63 69 |o have t|he speci|
|00002c20| 66 69 65 64 20 74 61 62 | 6c 65 20 6f 66 20 76 61 |fied tab|le of va|
|00002c30| 6c 75 65 73 2e 0a 58 54 | 61 62 6c 65 20 69 64 65 |lues..XT|able ide|
|00002c40| 6e 74 69 66 69 65 72 73 | 20 6d 61 79 20 62 65 20 |ntifiers| may be |
|00002c50| 72 65 66 65 72 72 65 64 | 20 74 6f 20 69 6e 0a 58 |referred| to in.X|
|00002c60| 2e 49 20 74 61 62 6c 65 | 0a 58 65 78 70 72 65 73 |.I table|.Xexpres|
|00002c70| 73 69 6f 6e 73 2e 20 49 | 6e 20 74 68 65 20 64 65 |sions. I|n the de|
|00002c80| 63 6c 61 72 61 74 69 6f | 6e 2c 0a 58 2e 49 20 74 |claratio|n,.X.I t|
|00002c90| 61 62 5f 69 64 65 6e 74 | 0a 58 6d 75 73 74 20 6e |ab_ident|.Xmust n|
|00002ca0| 6f 74 20 68 61 76 65 20 | 62 65 65 6e 20 61 6c 72 |ot have |been alr|
|00002cb0| 65 61 64 79 0a 58 64 65 | 66 69 6e 65 64 20 75 6e |eady.Xde|fined un|
|00002cc0| 6c 65 73 73 20 69 74 20 | 68 61 73 20 61 6c 72 65 |less it |has alre|
|00002cd0| 61 64 79 20 62 65 65 6e | 20 64 65 66 69 6e 65 64 |ady been| defined|
|00002ce0| 20 61 73 20 61 20 74 61 | 62 6c 65 2e 0a 58 2e 53 | as a ta|ble..X.S|
|00002cf0| 59 0a 58 3c 76 61 72 5f | 69 64 65 6e 74 3e 20 3d |Y.X<var_|ident> =|
|00002d00| 20 3c 65 78 70 72 3e 0a | 58 2e 45 53 0a 58 70 69 | <expr>.|X.ES.Xpi|
|00002d10| 20 3d 20 33 2e 31 34 31 | 35 0a 58 2e 45 45 0a 58 | = 3.141|5.X.EE.X|
|00002d20| 2e 50 50 0a 58 53 69 6d | 69 6c 61 72 20 74 6f 20 |.PP.XSim|ilar to |
|00002d30| 61 20 74 61 62 6c 65 20 | 64 65 63 6c 61 72 61 74 |a table |declarat|
|00002d40| 69 6f 6e 2c 20 65 78 63 | 65 70 74 20 74 68 61 74 |ion, exc|ept that|
|00002d50| 20 74 68 65 20 69 64 65 | 6e 74 69 66 69 65 72 20 | the ide|ntifier |
|00002d60| 68 61 73 20 61 20 73 69 | 6e 67 6c 65 0a 58 6e 75 |has a si|ngle.Xnu|
|00002d70| 6d 65 72 69 63 20 76 61 | 6c 75 65 20 61 73 73 69 |meric va|lue assi|
|00002d80| 67 6e 65 64 20 74 6f 20 | 69 74 20 69 6e 73 74 65 |gned to |it inste|
|00002d90| 61 64 20 6f 66 20 61 20 | 63 6f 6d 70 6c 65 74 65 |ad of a |complete|
|00002da0| 20 74 61 62 6c 65 2e 0a | 58 2e 53 59 20 0a 58 3c | table..|X.SY .X<|
|00002db0| 69 64 65 6e 74 3e 20 28 | 20 3c 64 65 63 5f 70 61 |ident> (| <dec_pa|
|00002dc0| 72 6d 5f 6c 69 73 74 3e | 20 29 20 3d 20 3c 65 78 |rm_list>| ) = <ex|
|00002dd0| 70 72 3e 0a 58 3c 69 64 | 65 6e 74 3e 20 28 20 3c |pr>.X<id|ent> ( <|
|00002de0| 64 65 63 5f 70 61 72 6d | 5f 6c 69 73 74 3e 20 29 |dec_parm|_list> )|
|00002df0| 20 3d 20 3c 74 61 62 6c | 65 3e 0a 58 2e 45 53 0a | = <tabl|e>.X.ES.|
|00002e00| 58 23 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |X# this |function|
|00002e10| 20 72 65 74 75 72 6e 73 | 20 74 68 65 20 72 61 74 | returns| the rat|
|00002e20| 69 6f 20 6f 66 20 74 77 | 6f 20 6e 75 6d 62 65 72 |io of tw|o number|
|00002e30| 73 0a 58 0a 58 61 20 3d | 20 30 0a 58 62 20 3d 20 |s.X.Xa =| 0.Xb = |
|00002e40| 30 0a 58 72 61 74 69 6f | 28 61 2c 62 29 20 3d 20 |0.Xratio|(a,b) = |
|00002e50| 61 2f 62 0a 58 0a 58 23 | 20 74 68 69 73 20 66 75 |a/b.X.X#| this fu|
|00002e60| 6e 63 74 69 6f 6e 20 6c | 69 6d 69 74 20 72 65 74 |nction l|imit ret|
|00002e70| 75 72 6e 73 20 61 20 74 | 61 62 6c 65 20 6f 66 20 |urns a t|able of |
|00002e80| 76 61 6c 75 65 73 20 77 | 68 65 72 65 20 63 6f 6c |values w|here col|
|00002e90| 75 6d 6e 0a 58 23 20 31 | 20 69 73 20 6c 65 73 73 |umn.X# 1| is less|
|00002ea0| 20 74 68 61 6e 20 74 68 | 65 20 73 70 65 63 69 66 | than th|e specif|
|00002eb0| 69 65 64 20 6c 69 6d 69 | 74 0a 58 0a 58 6c 69 6d |ied limi|t.X.Xlim|
|00002ec0| 69 74 5f 76 61 6c 20 3d | 20 30 20 20 20 20 20 23 |it_val =| 0 #|
|00002ed0| 20 64 65 63 6c 61 72 65 | 20 70 61 72 61 6d 65 74 | declare| paramet|
|00002ee0| 65 72 73 0a 58 6c 69 6d | 69 74 5f 74 61 62 20 3d |ers.Xlim|it_tab =|
|00002ef0| 20 7b 7b 30 7d 7d 20 20 | 23 20 64 65 63 6c 61 72 | {{0}} |# declar|
|00002f00| 65 73 20 61 20 74 61 62 | 6c 65 0a 58 6c 69 6d 69 |es a tab|le.Xlimi|
|00002f10| 74 20 28 20 6c 69 6d 69 | 74 5f 74 61 62 20 2c 20 |t ( limi|t_tab , |
|00002f20| 6c 69 6d 69 74 5f 76 61 | 6c 20 29 20 3d 20 6c 69 |limit_va|l ) = li|
|00002f30| 6d 69 74 5f 74 61 62 20 | 77 68 65 72 65 20 24 31 |mit_tab |where $1|
|00002f40| 20 3c 20 6c 69 6d 69 74 | 5f 76 61 6c 0a 58 2e 45 | < limit|_val.X.E|
|00002f50| 45 0a 58 2e 50 50 0a 58 | 44 65 63 6c 61 72 65 73 |E.X.PP.X|Declares|
|00002f60| 20 61 20 66 75 6e 63 74 | 69 6f 6e 20 77 68 69 63 | a funct|ion whic|
|00002f70| 68 20 72 65 74 75 72 6e | 73 20 0a 58 61 20 73 69 |h return|s .Xa si|
|00002f80| 6d 70 6c 65 20 76 61 6c | 75 65 20 6f 72 20 61 20 |mple val|ue or a |
|00002f90| 74 61 62 6c 65 20 6f 66 | 20 76 61 6c 75 65 73 2e |table of| values.|
|00002fa0| 0a 58 46 75 6e 63 74 69 | 6f 6e 20 69 64 65 6e 74 |.XFuncti|on ident|
|00002fb0| 69 66 69 65 72 73 20 63 | 61 6e 20 6e 65 76 65 72 |ifiers c|an never|
|00002fc0| 20 62 65 20 72 65 64 65 | 66 69 6e 65 64 2e 0a 58 | be rede|fined..X|
|00002fd0| 54 68 65 20 70 61 72 61 | 6d 65 74 65 72 20 6c 69 |The para|meter li|
|00002fe0| 73 74 73 20 63 6f 6e 73 | 69 73 74 20 6f 66 20 61 |sts cons|ist of a|
|00002ff0| 20 63 6f 6d 6d 61 20 73 | 65 70 61 72 61 74 65 64 | comma s|eparated|
|00003000| 20 6c 69 73 74 20 6f 66 | 0a 58 2e 49 20 74 61 62 | list of|.X.I tab|
|00003010| 5f 69 64 65 6e 74 0a 58 | 6f 72 0a 58 2e 49 20 76 |_ident.X|or.X.I v|
|00003020| 61 72 5f 69 64 65 6e 74 | 0a 58 69 64 65 6e 74 69 |ar_ident|.Xidenti|
|00003030| 66 65 72 73 0a 58 2e 42 | 20 22 77 68 69 63 68 20 |fers.X.B| "which |
|00003040| 6d 75 73 74 20 68 61 76 | 65 20 62 65 65 6e 20 70 |must hav|e been p|
|00003050| 72 65 76 69 6f 75 73 6c | 79 20 64 65 66 69 6e 65 |reviousl|y define|
|00003060| 64 22 0a 58 28 73 65 65 | 20 61 62 6f 76 65 20 65 |d".X(see| above e|
|00003070| 78 61 6d 70 6c 65 29 2e | 0a 58 54 68 65 73 65 20 |xample).|.XThese |
|00003080| 69 64 65 6e 74 69 66 69 | 65 72 73 20 77 69 6c 6c |identifi|ers will|
|00003090| 20 61 63 74 20 61 73 20 | 70 61 72 61 6d 65 74 65 | act as |paramete|
|000030a0| 72 73 20 74 6f 20 74 68 | 65 20 66 75 6e 63 74 69 |rs to th|e functi|
|000030b0| 6f 6e 73 20 69 6e 20 74 | 68 65 20 66 6f 6c 6c 6f |ons in t|he follo|
|000030c0| 77 69 6e 67 0a 58 77 61 | 79 2e 20 57 68 65 6e 20 |wing.Xwa|y. When |
|000030d0| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |the func|tion is |
|000030e0| 63 61 6c 6c 65 64 2c 20 | 74 68 65 20 69 64 65 6e |called, |the iden|
|000030f0| 74 69 66 69 65 72 73 20 | 61 72 65 20 72 65 64 65 |tifiers |are rede|
|00003100| 63 6c 61 72 65 64 20 77 | 69 74 68 0a 58 74 68 65 |clared w|ith.Xthe|
|00003110| 20 70 61 72 61 6d 65 74 | 65 72 20 76 61 6c 75 65 | paramet|er value|
|00003120| 73 2e 20 43 61 72 65 20 | 6d 75 73 74 20 62 65 20 |s. Care |must be |
|00003130| 74 61 6b 65 6e 20 66 6f | 72 20 6e 65 73 74 65 64 |taken fo|r nested|
|00003140| 20 66 75 6e 63 74 69 6f | 6e 20 63 61 6c 6c 73 20 | functio|n calls |
|00003150| 61 73 20 69 66 20 74 68 | 65 79 0a 58 75 73 65 20 |as if th|ey.Xuse |
|00003160| 74 68 65 20 73 61 6d 65 | 20 69 64 65 6e 74 69 66 |the same| identif|
|00003170| 69 65 72 20 6e 61 6d 65 | 73 20 66 6f 72 20 70 61 |ier name|s for pa|
|00003180| 72 61 6d 65 74 65 72 73 | 2c 20 74 68 65 20 70 61 |rameters|, the pa|
|00003190| 72 61 6d 65 74 65 72 73 | 20 74 6f 20 66 75 6e 63 |rameters| to func|
|000031a0| 74 69 6f 6e 0a 58 41 20 | 6d 69 67 68 74 20 62 65 |tion.XA |might be|
|000031b0| 20 63 68 61 6e 67 65 64 | 20 61 66 74 65 72 20 72 | changed| after r|
|000031c0| 65 74 75 72 6e 69 6e 67 | 20 66 72 6f 6d 20 61 20 |eturning| from a |
|000031d0| 63 61 6c 6c 20 74 6f 20 | 66 75 6e 63 74 69 6f 6e |call to |function|
|000031e0| 20 42 2e 0a 58 49 74 20 | 69 73 20 63 6f 6d 6d 6f | B..XIt |is commo|
|000031f0| 6e 20 74 6f 20 64 65 63 | 6c 61 72 65 20 73 70 65 |n to dec|lare spe|
|00003200| 63 69 61 6c 20 76 61 72 | 69 61 62 6c 65 73 20 66 |cial var|iables f|
|00003210| 6f 72 20 70 61 72 61 6d | 65 74 65 72 73 20 74 6f |or param|eters to|
|00003220| 20 66 75 6e 63 74 69 6f | 6e 73 0a 58 69 6d 6d 65 | functio|ns.Ximme|
|00003230| 64 69 61 74 65 6c 79 20 | 62 65 66 6f 72 65 20 74 |diately |before t|
|00003240| 68 65 20 61 63 74 75 61 | 6c 20 66 75 6e 63 74 69 |he actua|l functi|
|00003250| 6f 6e 20 74 6f 20 62 65 | 20 63 65 72 74 61 69 6e |on to be| certain|
|00003260| 20 6f 66 20 74 68 65 20 | 70 61 72 61 6d 65 74 65 | of the |paramete|
|00003270| 72 20 74 79 70 65 2e 0a | 58 2e 53 59 0a 58 69 6e |r type..|X.SY.Xin|
|00003280| 63 6c 75 64 65 20 3c 73 | 74 72 69 6e 67 3e 20 3b |clude <s|tring> ;|
|00003290| 0a 58 2e 45 53 0a 58 69 | 6e 63 6c 75 64 65 20 22 |.X.ES.Xi|nclude "|
|000032a0| 62 61 72 5f 63 68 61 72 | 74 2e 67 22 20 3b 0a 58 |bar_char|t.g" ;.X|
|000032b0| 2e 45 45 0a 58 2e 50 50 | 0a 58 54 68 65 0a 58 2e |.EE.X.PP|.XThe.X.|
|000032c0| 49 20 69 6e 63 6c 75 64 | 65 0a 58 73 74 61 74 65 |I includ|e.Xstate|
|000032d0| 6d 65 6e 74 20 61 6c 6c | 6f 77 73 20 61 6e 6f 74 |ment all|ows anot|
|000032e0| 68 65 72 20 66 69 6c 65 | 20 6f 66 0a 58 2e 49 20 |her file| of.X.I |
|000032f0| 67 72 61 70 68 2b 0a 58 | 63 6f 6d 6d 61 6e 64 73 |graph+.X|commands|
|00003300| 20 74 6f 20 62 65 20 69 | 6e 63 6c 75 64 65 64 2e | to be i|ncluded.|
|00003310| 20 54 68 69 73 20 69 73 | 20 75 73 65 66 75 6c 20 | This is| useful |
|00003320| 66 6f 72 20 69 6e 63 6c | 75 64 69 6e 67 20 66 75 |for incl|uding fu|
|00003330| 6e 63 74 69 6f 6e 20 64 | 65 63 6c 61 72 61 74 69 |nction d|eclarati|
|00003340| 6f 6e 73 2e 0a 58 54 68 | 65 20 3b 20 69 73 20 6e |ons..XTh|e ; is n|
|00003350| 65 65 64 65 64 20 6f 6e | 6c 79 20 62 65 63 61 75 |eeded on|ly becau|
|00003360| 73 65 20 6f 66 20 74 68 | 65 20 63 75 72 72 65 6e |se of th|e curren|
|00003370| 74 20 69 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |t implem|entation|
|00003380| 20 6f 66 20 74 68 65 20 | 70 61 72 73 65 72 2e 0a | of the |parser..|
|00003390| 58 57 68 65 6e 20 61 6e | 20 69 6e 63 6c 75 64 65 |XWhen an| include|
|000033a0| 20 69 73 20 64 6f 6e 65 | 2c 20 6f 6e 65 20 74 6f | is done|, one to|
|000033b0| 6b 65 6e 20 61 66 74 65 | 72 20 74 68 65 20 73 74 |ken afte|r the st|
|000033c0| 72 69 6e 67 20 69 73 20 | 61 63 63 69 64 65 6e 74 |ring is |accident|
|000033d0| 6c 79 20 6c 6f 73 74 2e | 0a 58 54 68 69 73 20 6d |ly lost.|.XThis m|
|000033e0| 61 79 20 6e 6f 74 20 62 | 65 20 63 6f 6e 73 69 73 |ay not b|e consis|
|000033f0| 74 61 6e 74 20 61 63 72 | 6f 73 73 20 69 6d 70 6c |tant acr|oss impl|
|00003400| 65 6d 65 6e 74 61 74 69 | 6f 6e 73 20 6f 66 20 79 |ementati|ons of y|
|00003410| 61 63 63 20 61 6e 64 20 | 6c 65 78 2e 0a 58 2e 53 |acc and |lex..X.S|
|00003420| 59 0a 58 73 68 65 6c 6c | 20 3c 73 74 72 69 6e 67 |Y.Xshell| <string|
|00003430| 3e 0a 58 2e 45 53 0a 58 | 73 68 65 6c 6c 20 22 61 |>.X.ES.X|shell "a|
|00003440| 77 6b 20 2d 66 20 63 6f | 6d 70 6c 65 78 2e 61 77 |wk -f co|mplex.aw|
|00003450| 6b 20 70 72 65 6c 69 6d | 66 69 6c 65 20 3e 20 66 |k prelim|file > f|
|00003460| 69 6e 61 6c 66 69 6c 65 | 22 0a 58 64 61 74 61 20 |inalfile|".Xdata |
|00003470| 3d 20 72 65 61 64 20 22 | 66 69 6e 61 6c 66 69 6c |= read "|finalfil|
|00003480| 65 22 0a 58 2e 45 45 0a | 58 2e 50 50 0a 58 54 68 |e".X.EE.|X.PP.XTh|
|00003490| 65 0a 58 2e 49 20 73 68 | 65 6c 6c 0a 58 63 6f 6d |e.X.I sh|ell.Xcom|
|000034a0| 6d 61 6e 64 20 61 6c 6c | 6f 77 73 20 61 20 63 6f |mand all|ows a co|
|000034b0| 6d 6d 61 6e 64 20 74 6f | 20 62 65 20 70 61 73 73 |mmand to| be pass|
|000034c0| 65 64 20 74 6f 20 74 68 | 65 20 73 68 65 6c 6c 20 |ed to th|e shell |
|000034d0| 27 73 68 27 2e 0a 58 54 | 68 69 73 20 63 61 6e 20 |'sh'..XT|his can |
|000034e0| 62 65 20 75 73 65 64 0a | 58 74 6f 20 67 65 6e 65 |be used.|Xto gene|
|000034f0| 72 61 74 65 20 61 20 66 | 69 6c 65 20 74 6f 20 62 |rate a f|ile to b|
|00003500| 65 20 72 65 61 64 20 62 | 79 20 69 6e 63 6c 75 64 |e read b|y includ|
|00003510| 69 6e 67 20 61 6e 20 6f | 75 74 70 75 74 20 72 65 |ing an o|utput re|
|00003520| 64 69 72 65 63 74 69 6f | 6e 2e 0a 58 2e 53 59 0a |directio|n..X.SY.|
|00003530| 58 70 72 69 6e 74 20 3c | 74 61 62 6c 65 3e 7c 3c |Xprint <|table>|<|
|00003540| 65 78 70 72 3e 7c 3c 73 | 74 72 69 6e 67 3e 0a 58 |expr>|<s|tring>.X|
|00003550| 70 72 69 6e 74 20 3e 20 | 3c 73 74 72 69 6e 67 3e |print > |<string>|
|00003560| 20 3c 74 61 62 6c 65 3e | 7c 3c 65 78 70 72 3e 7c | <table>||<expr>||
|00003570| 3c 73 74 72 69 6e 67 3e | 0a 58 70 72 69 6e 74 20 |<string>|.Xprint |
|00003580| 3e 3e 20 3c 73 74 72 69 | 6e 67 3e 20 3c 74 61 62 |>> <stri|ng> <tab|
|00003590| 6c 65 3e 7c 3c 65 78 70 | 72 3e 7c 3c 73 74 72 69 |le>|<exp|r>|<stri|
|000035a0| 6e 67 3e 0a 58 2e 45 53 | 0a 58 70 72 69 6e 74 20 |ng>.X.ES|.Xprint |
|000035b0| 22 73 61 76 69 6e 67 20 | 64 61 74 61 20 74 6f 20 |"saving |data to |
|000035c0| 66 69 6c 65 20 63 6f 70 | 79 2e 6f 66 2e 64 61 74 |file cop|y.of.dat|
|000035d0| 61 22 20 20 23 20 70 72 | 69 6e 74 20 6d 65 73 73 |a" # pr|int mess|
|000035e0| 61 67 65 20 6f 6e 20 73 | 63 72 65 65 6e 0a 58 70 |age on s|creen.Xp|
|000035f0| 72 69 6e 74 20 3e 20 22 | 63 6f 70 79 2e 6f 66 2e |rint > "|copy.of.|
|00003600| 64 61 74 61 22 20 64 61 | 74 61 20 20 23 20 73 61 |data" da|ta # sa|
|00003610| 76 65 20 64 61 74 61 20 | 6f 6e 20 61 20 66 69 6c |ve data |on a fil|
|00003620| 65 0a 58 70 72 69 6e 74 | 20 3e 3e 20 22 63 6f 70 |e.Xprint| >> "cop|
|00003630| 79 2e 6f 66 2e 64 61 74 | 61 22 20 6d 6f 72 65 5f |y.of.dat|a" more_|
|00003640| 64 61 74 61 20 20 23 20 | 61 70 70 65 6e 64 20 73 |data # |append s|
|00003650| 6f 6d 65 20 6d 6f 72 65 | 20 64 61 74 61 0a 58 2e |ome more| data.X.|
|00003660| 45 45 0a 58 2e 50 50 0a | 58 54 68 65 0a 58 2e 49 |EE.X.PP.|XThe.X.I|
|00003670| 20 70 72 69 6e 74 0a 58 | 63 6f 6d 6d 61 6e 64 20 | print.X|command |
|00003680| 63 61 6e 20 68 61 76 65 | 20 69 74 73 20 6f 75 74 |can have| its out|
|00003690| 70 75 74 20 72 65 64 69 | 72 65 63 74 65 64 20 28 |put redi|rected (|
|000036a0| 6f 76 65 72 77 72 69 74 | 65 20 6f 72 20 61 70 70 |overwrit|e or app|
|000036b0| 65 6e 64 29 20 74 6f 20 | 61 0a 58 66 69 6c 65 20 |end) to |a.Xfile |
|000036c0| 63 61 6c 6c 65 64 0a 58 | 2e 49 20 3c 73 74 72 69 |called.X|.I <stri|
|000036d0| 6e 67 3e 0a 58 61 6e 64 | 20 70 72 69 6e 74 20 6f |ng>.Xand| print o|
|000036e0| 75 74 20 61 20 74 61 62 | 6c 65 2c 20 74 68 65 20 |ut a tab|le, the |
|000036f0| 72 65 73 75 6c 74 20 6f | 66 20 61 6e 20 65 78 70 |result o|f an exp|
|00003700| 72 65 73 73 69 6f 6e 20 | 6f 72 20 61 20 73 69 6d |ression |or a sim|
|00003710| 70 6c 65 20 73 74 72 69 | 6e 67 2e 0a 58 49 66 20 |ple stri|ng..XIf |
|00003720| 74 77 6f 20 70 72 69 6e | 74 73 20 74 6f 20 74 68 |two prin|ts to th|
|00003730| 65 20 73 61 6d 65 20 66 | 69 6c 65 20 61 72 65 20 |e same f|ile are |
|00003740| 75 73 65 64 2c 20 6d 61 | 6b 65 20 73 75 72 65 20 |used, ma|ke sure |
|00003750| 74 68 65 20 73 65 63 6f | 6e 64 20 69 73 20 61 6e |the seco|nd is an|
|00003760| 64 0a 58 61 70 70 65 6e | 64 20 72 65 64 69 72 65 |d.Xappen|d redire|
|00003770| 63 74 20 28 3e 3e 29 2e | 0a 58 2e 53 59 0a 58 73 |ct (>>).|.X.SY.Xs|
|00003780| 61 76 65 20 3c 74 61 62 | 6c 65 3e 20 61 73 20 3c |ave <tab|le> as <|
|00003790| 73 74 72 69 6e 67 3e 0a | 58 2e 45 53 0a 58 64 61 |string>.|X.ES.Xda|
|000037a0| 74 61 20 3d 20 72 65 61 | 64 20 22 74 65 78 74 2e |ta = rea|d "text.|
|000037b0| 64 61 74 61 22 0a 58 73 | 61 76 65 20 64 61 74 61 |data".Xs|ave data|
|000037c0| 20 61 73 20 22 64 61 74 | 61 2e 62 69 6e 61 72 79 | as "dat|a.binary|
|000037d0| 22 0a 58 70 72 69 6e 74 | 20 3e 20 22 74 65 78 74 |".Xprint| > "text|
|000037e0| 2e 64 61 74 61 22 20 6c | 6f 61 64 20 22 64 61 74 |.data" l|oad "dat|
|000037f0| 61 2e 62 69 6e 61 72 79 | 22 20 20 23 20 63 6f 6e |a.binary|" # con|
|00003800| 76 65 72 74 73 20 61 20 | 62 69 6e 61 72 79 20 66 |verts a |binary f|
|00003810| 69 6c 65 20 62 61 63 6b | 20 74 6f 20 74 65 78 74 |ile back| to text|
|00003820| 0a 58 2e 45 45 0a 58 2e | 50 50 0a 58 54 68 65 0a |.X.EE.X.|PP.XThe.|
|00003830| 58 2e 49 20 73 61 76 65 | 0a 58 63 6f 6d 6d 61 6e |X.I save|.Xcomman|
|00003840| 64 20 73 61 76 65 73 20 | 74 68 65 20 74 61 62 6c |d saves |the tabl|
|00003850| 65 20 6f 66 20 64 61 74 | 61 20 69 6e 20 62 69 6e |e of dat|a in bin|
|00003860| 61 72 79 20 66 6f 72 6d | 61 74 20 66 6f 72 20 66 |ary form|at for f|
|00003870| 61 73 74 65 72 20 6c 6f | 61 64 69 6e 67 0a 58 77 |aster lo|ading.Xw|
|00003880| 69 74 68 20 74 68 65 0a | 58 2e 49 20 6c 6f 61 64 |ith the.|X.I load|
|00003890| 0a 58 63 6f 6d 6d 61 6e | 64 2e 20 54 68 69 73 20 |.Xcomman|d. This |
|000038a0| 69 73 20 75 73 65 66 75 | 6c 20 77 68 65 6e 20 61 |is usefu|l when a|
|000038b0| 20 6c 61 72 67 65 20 64 | 61 74 61 66 69 6c 65 20 | large d|atafile |
|000038c0| 69 73 20 74 6f 20 62 65 | 20 72 65 61 64 20 61 20 |is to be| read a |
|000038d0| 6e 75 6d 62 65 72 0a 58 | 6f 66 20 74 69 6d 65 73 |number.X|of times|
|000038e0| 20 62 79 20 64 69 66 66 | 65 72 65 6e 74 20 70 6c | by diff|erent pl|
|000038f0| 6f 74 20 70 72 6f 67 72 | 61 6d 73 20 61 73 20 74 |ot progr|ams as t|
|00003900| 68 65 20 62 69 6e 61 72 | 79 20 66 69 6c 65 20 63 |he binar|y file c|
|00003910| 61 6e 20 62 65 20 6c 6f | 61 64 65 64 0a 58 6d 75 |an be lo|aded.Xmu|
|00003920| 63 68 20 6d 6f 72 65 20 | 71 75 69 63 6b 6c 79 20 |ch more |quickly |
|00003930| 74 68 61 6e 20 74 65 78 | 74 75 61 6c 20 76 65 72 |than tex|tual ver|
|00003940| 73 69 6f 6e 73 2e 20 49 | 74 20 69 73 20 61 6c 73 |sions. I|t is als|
|00003950| 6f 20 70 6f 73 73 69 62 | 6c 65 20 74 68 61 74 0a |o possib|le that.|
|00003960| 58 74 68 65 20 62 69 6e | 61 72 79 20 66 69 6c 65 |Xthe bin|ary file|
|00003970| 20 77 69 6c 6c 20 72 65 | 71 75 69 72 65 20 6c 65 | will re|quire le|
|00003980| 73 73 20 64 69 73 6b 20 | 73 70 61 63 65 2e 20 54 |ss disk |space. T|
|00003990| 68 65 20 66 6f 72 6d 61 | 74 20 6f 66 20 74 68 65 |he forma|t of the|
|000039a0| 0a 58 62 69 6e 61 72 79 | 20 66 69 6c 65 20 69 73 |.Xbinary| file is|
|000039b0| 20 73 69 6d 70 6c 79 20 | 74 77 6f 20 69 6e 74 65 | simply |two inte|
|000039c0| 67 65 72 73 20 28 6e 75 | 6d 62 65 72 20 6f 66 20 |gers (nu|mber of |
|000039d0| 63 6f 6c 75 6d 6e 73 20 | 61 6e 64 20 6e 75 6d 62 |columns |and numb|
|000039e0| 65 72 0a 58 6f 66 20 72 | 6f 77 73 29 20 66 6f 6c |er.Xof r|ows) fol|
|000039f0| 6c 6f 77 65 64 20 62 79 | 20 61 6c 6c 20 74 68 65 |lowed by| all the|
|00003a00| 20 64 61 74 61 20 28 64 | 6f 75 62 6c 65 73 29 2e | data (d|oubles).|
|00003a10| 0a 58 54 68 65 20 64 61 | 74 61 20 69 73 20 77 72 |.XThe da|ta is wr|
|00003a20| 69 74 74 65 6e 20 6f 75 | 74 20 63 6f 6c 75 6d 6e |itten ou|t column|
|00003a30| 20 62 79 20 63 6f 6c 75 | 6d 6e 20 73 6f 20 74 68 | by colu|mn so th|
|00003a40| 65 20 66 69 72 73 74 20 | 64 6f 75 62 6c 65 20 69 |e first |double i|
|00003a50| 73 0a 58 74 68 65 20 66 | 69 72 73 74 20 76 61 6c |s.Xthe f|irst val|
|00003a60| 75 65 20 69 6e 20 74 68 | 65 20 66 69 72 73 74 20 |ue in th|e first |
|00003a70| 63 6f 6c 75 6d 6e 2c 20 | 74 68 65 20 73 65 63 6f |column, |the seco|
|00003a80| 6e 64 20 76 61 6c 75 65 | 20 69 73 20 74 68 65 0a |nd value| is the.|
|00003a90| 58 73 65 63 6f 6e 64 20 | 76 61 6c 75 65 20 69 6e |Xsecond |value in|
|00003aa0| 20 74 68 65 20 66 69 72 | 73 74 20 63 6f 6c 75 6d | the fir|st colum|
|00003ab0| 6e 20 61 6e 64 20 73 6f | 20 6f 6e 2e 0a 58 42 69 |n and so| on..XBi|
|00003ac0| 6e 61 72 79 20 66 69 6c | 65 73 20 6d 61 79 20 6e |nary fil|es may n|
|00003ad0| 6f 74 20 62 65 20 74 72 | 61 6e 73 70 6f 72 74 61 |ot be tr|ansporta|
|00003ae0| 62 6c 65 20 61 63 72 6f | 73 73 20 6d 61 63 68 69 |ble acro|ss machi|
|00003af0| 6e 65 73 2e 0a 58 2e 53 | 59 0a 58 67 72 61 70 68 |nes..X.S|Y.Xgraph|
|00003b00| 20 3c 74 61 62 6c 65 3e | 20 5b 20 3c 6f 70 74 69 | <table>| [ <opti|
|00003b10| 6f 6e 3e 20 2e 2e 2e 20 | 5d 0a 58 3c 6f 70 74 69 |on> ... |].X<opti|
|00003b20| 6f 6e 3e 20 3d 20 6e 6f | 7c 73 6f 6c 69 64 7c 64 |on> = no||solid|d|
|00003b30| 6f 74 74 65 64 7c 73 68 | 6f 72 74 64 61 73 68 65 |otted|sh|ortdashe|
|00003b40| 64 7c 6c 6f 6e 67 64 61 | 73 68 65 64 7c 64 6f 74 |d|longda|shed|dot|
|00003b50| 64 61 73 68 65 64 20 6c | 69 6e 65 0a 58 3c 6f 70 |dashed l|ine.X<op|
|00003b60| 74 69 6f 6e 3e 20 3d 20 | 6e 6f 7c 74 72 69 61 6e |tion> = |no|trian|
|00003b70| 67 6c 65 7c 63 69 72 63 | 6c 65 7c 73 71 75 61 72 |gle|circ|le|squar|
|00003b80| 65 7c 63 72 6f 73 73 7c | 70 6c 75 73 20 70 6f 69 |e|cross||plus poi|
|00003b90| 6e 74 73 0a 58 3c 6f 70 | 74 69 6f 6e 3e 20 3d 20 |nts.X<op|tion> = |
|00003ba0| 6c 61 62 65 6c 20 3c 73 | 74 72 69 6e 67 3e 0a 58 |label <s|tring>.X|
|00003bb0| 3c 6f 70 74 69 6f 6e 3e | 20 3d 20 6c 65 67 65 6e |<option>| = legen|
|00003bc0| 64 20 3c 73 74 72 69 6e | 67 3e 0a 58 2e 45 53 0a |d <strin|g>.X.ES.|
|00003bd0| 58 67 72 61 70 68 20 64 | 61 74 61 0a 58 67 72 61 |Xgraph d|ata.Xgra|
|00003be0| 70 68 20 64 61 74 61 32 | 20 64 6f 74 74 65 64 20 |ph data2| dotted |
|00003bf0| 6c 69 6e 65 0a 58 67 72 | 61 70 68 20 64 61 74 61 |line.Xgr|aph data|
|00003c00| 33 20 64 6f 74 64 61 73 | 68 65 64 20 6c 69 6e 65 |3 dotdas|hed line|
|00003c10| 20 6c 61 62 65 6c 20 22 | 64 61 74 61 33 22 0a 58 | label "|data3".X|
|00003c20| 67 72 61 70 68 20 64 61 | 74 61 20 6e 6f 20 6c 69 |graph da|ta no li|
|00003c30| 6e 65 20 63 72 6f 73 73 | 20 70 6f 69 6e 74 73 20 |ne cross| points |
|00003c40| 63 69 72 63 6c 65 20 70 | 6f 69 6e 74 73 20 23 20 |circle p|oints # |
|00003c50| 70 75 74 20 61 20 63 69 | 72 63 6c 65 20 61 6e 64 |put a ci|rcle and|
|00003c60| 20 63 72 6f 73 73 0a 58 | 67 72 61 70 68 20 7b 7b | cross.X|graph {{|
|00003c70| 31 30 2c 32 30 7d 7d 20 | 6c 61 62 65 6c 20 22 74 |10,20}} |label "t|
|00003c80| 65 78 74 20 61 74 20 31 | 30 2c 32 30 22 0a 58 2e |ext at 1|0,20".X.|
|00003c90| 45 45 0a 58 2e 50 50 0a | 58 54 68 65 0a 58 2e 49 |EE.X.PP.|XThe.X.I|
|00003ca0| 20 67 72 61 70 68 20 74 | 61 62 6c 65 0a 58 63 6f | graph t|able.Xco|
|00003cb0| 6d 6d 61 6e 64 20 73 70 | 65 63 69 66 69 65 73 20 |mmand sp|ecifies |
|00003cc0| 64 65 74 61 69 6c 73 20 | 6f 66 20 61 6e 20 61 63 |details |of an ac|
|00003cd0| 74 75 61 6c 20 67 72 61 | 70 68 20 74 6f 20 70 6c |tual gra|ph to pl|
|00003ce0| 6f 74 2e 20 54 68 65 20 | 74 61 62 6c 65 20 73 70 |ot. The |table sp|
|00003cf0| 65 63 69 66 69 65 64 0a | 58 6d 75 73 74 20 68 61 |ecified.|Xmust ha|
|00003d00| 76 65 20 65 78 61 63 74 | 6c 79 20 74 77 6f 20 63 |ve exact|ly two c|
|00003d10| 6f 6c 75 6d 6e 73 2c 20 | 74 68 65 20 66 69 72 73 |olumns, |the firs|
|00003d20| 74 20 63 6f 6c 75 6d 6e | 20 62 65 69 6e 67 20 66 |t column| being f|
|00003d30| 6f 72 20 78 20 63 6f 6f | 72 64 69 6e 61 74 61 74 |or x coo|rdinatat|
|00003d40| 65 73 20 61 6e 64 0a 58 | 74 68 65 20 73 65 63 6f |es and.X|the seco|
|00003d50| 6e 64 20 66 6f 72 20 79 | 20 63 6f 6f 72 64 69 6e |nd for y| coordin|
|00003d60| 61 74 65 73 2e 20 4d 75 | 6c 74 69 70 6c 65 0a 58 |ates. Mu|ltiple.X|
|00003d70| 2e 49 20 67 72 61 70 68 | 0a 58 63 6f 6d 6d 61 6e |.I graph|.Xcomman|
|00003d80| 64 73 20 77 69 6c 6c 20 | 63 61 75 73 65 20 6d 75 |ds will |cause mu|
|00003d90| 6c 74 69 70 6c 65 20 67 | 72 61 70 68 73 20 74 6f |ltiple g|raphs to|
|00003da0| 20 62 65 20 64 72 61 77 | 6e 20 6f 6e 20 74 68 65 | be draw|n on the|
|00003db0| 20 73 61 6d 65 20 61 78 | 69 73 2e 0a 58 2e 50 50 | same ax|is..X.PP|
|00003dc0| 0a 58 54 68 65 20 67 72 | 61 70 68 20 6f 70 74 69 |.XThe gr|aph opti|
|00003dd0| 6f 6e 73 20 61 6c 6c 6f | 77 20 74 68 65 20 74 79 |ons allo|w the ty|
|00003de0| 70 65 20 6f 66 20 6c 69 | 6e 65 20 74 6f 20 64 72 |pe of li|ne to dr|
|00003df0| 61 77 20 74 68 65 20 67 | 72 61 70 68 20 74 6f 0a |aw the g|raph to.|
|00003e00| 58 62 65 20 73 70 65 63 | 69 66 69 65 64 20 28 64 |Xbe spec|ified (d|
|00003e10| 65 66 61 75 6c 74 20 69 | 73 20 73 6f 6c 69 64 29 |efault i|s solid)|
|00003e20| 20 61 6e 64 20 66 6f 72 | 20 61 20 6c 61 62 65 6c | and for| a label|
|00003e30| 20 74 6f 20 62 65 20 70 | 72 69 6e 74 65 64 20 6f | to be p|rinted o|
|00003e40| 6e 20 74 68 65 0a 58 66 | 69 6e 61 6c 20 67 72 61 |n the.Xf|inal gra|
|00003e50| 70 68 20 61 66 74 65 72 | 20 74 68 65 20 6c 61 73 |ph after| the las|
|00003e60| 74 20 70 6f 69 6e 74 20 | 6f 66 20 74 68 65 20 64 |t point |of the d|
|00003e70| 61 74 61 2e 20 4e 6f 74 | 65 20 74 68 61 74 20 74 |ata. Not|e that t|
|00003e80| 65 78 74 20 63 61 6e 20 | 62 65 0a 58 70 6f 73 69 |ext can |be.Xposi|
|00003e90| 74 69 6f 6e 65 64 20 61 | 6e 79 77 68 65 72 65 20 |tioned a|nywhere |
|00003ea0| 6f 6e 20 61 20 67 72 61 | 70 68 20 62 79 20 75 73 |on a gra|ph by us|
|00003eb0| 69 6e 67 20 61 20 63 6f | 6e 73 74 61 6e 74 20 74 |ing a co|nstant t|
|00003ec0| 61 62 6c 65 20 61 6e 64 | 20 61 20 6c 61 62 65 6c |able and| a label|
|00003ed0| 0a 58 28 61 73 20 69 6e | 20 74 68 65 20 65 78 61 |.X(as in| the exa|
|00003ee0| 6d 70 6c 65 20 61 62 6f | 76 65 29 2e 0a 58 2e 50 |mple abo|ve)..X.P|
|00003ef0| 50 0a 58 54 68 65 0a 58 | 2e 49 20 6c 65 67 65 6e |P.XThe.X|.I legen|
|00003f00| 64 0a 58 6f 70 74 69 6f | 6e 20 63 61 6e 20 62 65 |d.Xoptio|n can be|
|00003f10| 20 75 73 65 64 20 69 6e | 73 74 65 61 64 20 6f 66 | used in|stead of|
|00003f20| 20 74 68 65 20 6c 61 62 | 65 6c 20 6f 70 74 69 6f | the lab|el optio|
|00003f30| 6e 20 69 66 20 61 20 73 | 65 70 61 72 61 74 65 20 |n if a s|eparate |
|00003f40| 6c 65 67 65 6e 64 0a 58 | 69 73 20 77 61 6e 74 65 |legend.X|is wante|
|00003f50| 64 2e 20 54 68 65 20 6c | 61 62 65 6c 20 6f 70 74 |d. The l|abel opt|
|00003f60| 69 6f 6e 20 6f 66 74 65 | 6e 20 66 61 69 6c 73 20 |ion ofte|n fails |
|00003f70| 77 68 65 6e 20 6d 6f 72 | 65 20 74 68 61 6e 20 6f |when mor|e than o|
|00003f80| 6e 65 20 67 72 61 70 68 | 20 65 6e 64 0a 58 61 74 |ne graph| end.Xat|
|00003f90| 20 74 68 65 20 73 61 6d | 65 20 70 6f 69 6e 74 20 | the sam|e point |
|00003fa0| 63 61 75 73 69 6e 67 20 | 74 68 65 20 6c 61 62 65 |causing |the labe|
|00003fb0| 6c 73 20 74 6f 20 62 65 | 20 6f 76 65 72 77 72 69 |ls to be| overwri|
|00003fc0| 74 74 65 6e 20 6d 61 6b | 69 6e 67 20 74 68 65 6d |tten mak|ing them|
|00003fd0| 0a 58 75 6e 72 65 61 64 | 61 62 6c 65 2e 20 54 68 |.Xunread|able. Th|
|00003fe0| 65 0a 58 2e 49 20 70 75 | 74 0a 58 2e 49 20 6c 65 |e.X.I pu|t.X.I le|
|00003ff0| 67 65 6e 64 0a 58 2e 49 | 20 61 74 0a 58 73 74 61 |gend.X.I| at.Xsta|
|00004000| 74 65 6d 65 6e 74 20 63 | 61 6e 20 62 65 20 75 73 |tement c|an be us|
|00004010| 65 64 20 74 6f 20 70 6f | 73 69 74 69 6f 6e 20 74 |ed to po|sition t|
|00004020| 68 65 20 6c 65 67 65 6e | 64 20 6f 6e 20 74 68 65 |he legen|d on the|
|00004030| 20 67 72 61 70 68 20 28 | 74 68 65 20 6c 65 67 65 | graph (|the lege|
|00004040| 6e 64 0a 58 63 61 6e 6e | 6f 74 20 62 65 20 70 75 |nd.Xcann|ot be pu|
|00004050| 74 20 62 65 6c 6f 77 20 | 74 68 65 20 67 72 61 70 |t below |the grap|
|00004060| 68 29 2e 0a 58 2e 50 50 | 0a 58 54 68 65 20 70 6f |h)..X.PP|.XThe po|
|00004070| 69 6e 74 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |int info|rmation |
|00004080| 28 63 69 72 63 6c 65 2c | 20 74 72 69 61 6e 67 6c |(circle,| triangl|
|00004090| 65 20 65 74 63 29 20 69 | 73 20 64 72 61 77 6e 20 |e etc) i|s drawn |
|000040a0| 70 65 72 20 70 6f 69 6e | 74 20 69 6e 20 74 68 65 |per poin|t in the|
|000040b0| 0a 58 67 72 61 70 68 2e | 20 54 68 65 0a 58 2e 49 |.Xgraph.| The.X.I|
|000040c0| 20 22 6e 6f 20 6c 69 6e | 65 22 0a 58 6f 70 74 69 | "no lin|e".Xopti|
|000040d0| 6f 6e 20 6d 75 73 74 20 | 62 65 20 75 73 65 64 20 |on must |be used |
|000040e0| 69 66 20 6f 6e 6c 79 20 | 74 68 65 20 70 6f 69 6e |if only |the poin|
|000040f0| 74 73 20 61 72 65 20 74 | 6f 20 62 65 0a 58 6d 61 |ts are t|o be.Xma|
|00004100| 72 6b 65 64 2e 20 54 68 | 65 20 64 65 66 61 75 6c |rked. Th|e defaul|
|00004110| 74 20 70 6f 69 6e 74 73 | 20 76 61 6c 75 65 20 69 |t points| value i|
|00004120| 73 20 0a 58 2e 49 20 22 | 6e 6f 20 70 6f 69 6e 74 |s .X.I "|no point|
|00004130| 73 2e 22 0a 58 4e 6f 74 | 65 20 74 68 61 74 20 6d |s.".XNot|e that m|
|00004140| 75 6c 74 69 70 6c 65 0a | 58 70 6f 69 6e 74 73 20 |ultiple.|Xpoints |
|00004150| 6f 70 74 69 6f 6e 73 20 | 6f 6e 20 74 68 65 20 73 |options |on the s|
|00004160| 61 6d 65 20 67 72 61 70 | 68 20 73 74 61 74 65 6d |ame grap|h statem|
|00004170| 65 6e 74 20 77 69 6c 6c | 20 63 61 75 73 65 20 74 |ent will| cause t|
|00004180| 68 65 20 64 69 66 66 65 | 72 65 6e 74 0a 58 74 79 |he diffe|rent.Xty|
|00004190| 70 65 73 20 6f 66 20 70 | 6f 69 6e 74 73 20 74 6f |pes of p|oints to|
|000041a0| 20 62 65 20 73 75 70 65 | 72 69 6d 70 6f 73 65 64 | be supe|rimposed|
|000041b0| 2e 20 54 68 69 73 20 6d | 65 61 6e 73 20 61 20 63 |. This m|eans a c|
|000041c0| 72 6f 73 73 65 64 20 63 | 69 72 63 6c 65 20 63 61 |rossed c|ircle ca|
|000041d0| 6e 0a 58 62 65 20 64 6f | 6e 65 20 75 73 69 6e 67 |n.Xbe do|ne using|
|000041e0| 20 0a 58 2e 49 20 22 63 | 72 6f 73 73 65 64 20 70 | .X.I "c|rossed p|
|000041f0| 6f 69 6e 74 73 20 63 69 | 72 63 6c 65 20 70 6f 69 |oints ci|rcle poi|
|00004200| 6e 74 73 2e 22 0a 58 4e | 6f 74 65 20 74 68 61 74 |nts.".XN|ote that|
|00004210| 20 6f 6e 6c 79 20 6f 6e | 65 20 6c 69 6e 65 20 74 | only on|e line t|
|00004220| 79 70 65 20 63 61 6e 20 | 62 65 20 73 70 65 63 69 |ype can |be speci|
|00004230| 66 69 65 64 20 68 6f 77 | 65 76 65 72 2e 0a 58 2e |fied how|ever..X.|
|00004240| 53 59 0a 58 67 72 61 70 | 68 20 6c 61 62 65 6c 20 |SY.Xgrap|h label |
|00004250| 3c 73 74 72 69 6e 67 3e | 0a 58 2e 45 53 0a 58 67 |<string>|.X.ES.Xg|
|00004260| 72 61 70 68 20 6c 61 62 | 65 6c 20 22 53 74 61 74 |raph lab|el "Stat|
|00004270| 69 73 74 69 63 73 20 66 | 6f 72 20 74 68 65 20 79 |istics f|or the y|
|00004280| 65 61 72 20 31 39 38 36 | 20 20 22 20 2b 20 64 61 |ear 1986| " + da|
|00004290| 74 65 0a 58 2e 45 45 0a | 58 2e 50 50 0a 58 41 6c |te.X.EE.|X.PP.XAl|
|000042a0| 6c 6f 77 73 20 61 20 6c | 61 62 65 6c 20 74 6f 20 |lows a l|abel to |
|000042b0| 62 65 20 70 6c 61 63 65 | 64 20 61 74 20 74 68 65 |be place|d at the|
|000042c0| 20 74 6f 70 20 6f 66 20 | 74 68 65 20 67 72 61 70 | top of |the grap|
|000042d0| 68 2e 0a 58 49 66 20 74 | 68 69 73 20 63 6f 6d 6d |h..XIf t|his comm|
|000042e0| 61 6e 64 20 69 73 20 6e | 6f 74 20 73 70 65 63 69 |and is n|ot speci|
|000042f0| 66 69 65 64 2c 20 6e 6f | 20 6c 61 62 65 6c 0a 58 |fied, no| label.X|
|00004300| 69 73 20 70 72 69 6e 74 | 65 64 2e 20 4e 6f 74 65 |is print|ed. Note|
|00004310| 20 74 68 61 74 20 74 68 | 65 20 73 74 72 69 6e 67 | that th|e string|
|00004320| 20 28 61 73 20 6c 69 6b | 65 20 61 6c 6c 20 6f 74 | (as lik|e all ot|
|00004330| 68 65 72 20 73 74 72 69 | 6e 67 73 29 0a 58 63 61 |her stri|ngs).Xca|
|00004340| 6e 20 62 65 20 61 20 63 | 6f 6e 63 61 74 65 6e 61 |n be a c|oncatena|
|00004350| 74 69 6f 6e 20 6f 66 20 | 6c 69 74 65 72 61 6c 20 |tion of |literal |
|00004360| 73 74 72 69 6e 67 73 20 | 61 6e 64 20 6f 74 68 65 |strings |and othe|
|00004370| 72 0a 58 62 75 69 6c 74 | 20 69 6e 20 6f 70 65 72 |r.Xbuilt| in oper|
|00004380| 61 74 6f 72 73 20 28 6c | 69 6b 65 0a 58 2e 49 52 |ators (l|ike.X.IR|
|00004390| 20 64 61 74 65 20 29 2e | 0a 58 2e 53 59 0a 58 78 | date ).|.X.SY.Xx|
|000043a0| 61 78 69 73 20 5b 20 3c | 61 78 69 73 5f 6f 70 74 |axis [ <|axis_opt|
|000043b0| 69 6f 6e 3e 20 2e 2e 2e | 20 5d 0a 58 79 61 78 69 |ion> ...| ].Xyaxi|
|000043c0| 73 20 5b 20 3c 61 78 69 | 73 5f 6f 70 74 69 6f 6e |s [ <axi|s_option|
|000043d0| 3e 20 2e 2e 2e 20 5d 0a | 58 3c 61 78 69 73 5f 6f |> ... ].|X<axis_o|
|000043e0| 70 74 69 6f 6e 3e 20 63 | 61 6e 20 62 65 20 6f 6e |ption> c|an be on|
|000043f0| 65 20 6f 66 0a 58 20 20 | 20 20 6c 61 62 65 6c 20 |e of.X | label |
|00004400| 3c 73 74 72 69 6e 67 3e | 09 28 64 65 66 61 75 6c |<string>|.(defaul|
|00004410| 74 20 6e 6f 6e 65 29 0a | 58 20 20 20 20 66 6f 72 |t none).|X for|
|00004420| 6d 61 74 20 3c 73 74 72 | 69 6e 67 3e 09 28 64 65 |mat <str|ing>.(de|
|00004430| 66 61 75 6c 74 20 64 65 | 70 65 6e 64 73 20 6f 6e |fault de|pends on|
|00004440| 20 72 61 6e 67 65 20 6f | 66 20 64 61 74 61 29 0a | range o|f data).|
|00004450| 58 20 20 20 20 61 75 74 | 6f 7c 6e 6f 20 73 63 61 |X aut|o|no sca|
|00004460| 6c 65 09 28 64 65 66 61 | 75 6c 74 20 61 75 74 6f |le.(defa|ult auto|
|00004470| 20 73 63 61 6c 65 29 0a | 58 20 20 20 20 66 72 61 | scale).|X fra|
|00004480| 6d 65 7c 67 72 69 64 7c | 6f 75 74 6c 69 6e 65 7c |me|grid||outline||
|00004490| 6e 6f 20 61 78 69 73 09 | 28 64 65 66 61 75 6c 74 |no axis.|(default|
|000044a0| 20 67 72 69 64 20 61 78 | 69 73 29 0a 58 20 20 20 | grid ax|is).X |
|000044b0| 20 6c 6f 67 61 72 69 74 | 68 6d 69 63 7c 6c 69 6e | logarit|hmic|lin|
|000044c0| 65 61 72 09 28 64 65 66 | 61 75 6c 74 20 6c 69 6e |ear.(def|ault lin|
|000044d0| 65 61 72 29 0a 58 20 20 | 20 20 66 72 6f 6d 20 3c |ear).X | from <|
|000044e0| 65 78 70 72 3e 20 74 6f | 20 3c 65 78 70 72 3e 0a |expr> to| <expr>.|
|000044f0| 58 20 20 20 20 74 69 63 | 6b 20 73 69 7a 65 20 3c |X tic|k size <|
|00004500| 65 78 70 72 3e 20 5b 20 | 70 6f 77 65 72 20 3c 65 |expr> [ |power <e|
|00004510| 78 70 72 3e 20 5d 0a 58 | 2e 45 53 0a 58 23 20 78 |xpr> ].X|.ES.X# x|
|00004520| 61 78 69 73 20 77 69 6c | 6c 20 68 61 76 65 20 61 |axis wil|l have a|
|00004530| 6c 6c 20 76 61 6c 75 65 | 73 20 6d 61 72 6b 65 64 |ll value|s marked|
|00004540| 20 61 6e 64 20 76 65 72 | 74 69 63 61 6c 20 6c 69 | and ver|tical li|
|00004550| 6e 65 73 20 64 72 61 77 | 6e 20 6f 76 65 72 20 74 |nes draw|n over t|
|00004560| 68 65 0a 58 23 20 77 68 | 6f 6c 65 20 67 72 61 70 |he.X# wh|ole grap|
|00004570| 68 20 70 65 72 20 74 69 | 63 6b 20 76 61 6c 75 65 |h per ti|ck value|
|00004580| 0a 58 78 61 78 69 73 20 | 6c 61 62 65 6c 20 22 59 |.Xxaxis |label "Y|
|00004590| 65 61 72 22 20 66 6f 72 | 6d 61 74 20 22 25 34 66 |ear" for|mat "%4f|
|000045a0| 22 0a 58 20 20 20 20 66 | 72 6f 6d 20 31 39 38 30 |".X f|rom 1980|
|000045b0| 20 74 6f 20 31 39 38 36 | 20 74 69 63 6b 20 73 69 | to 1986| tick si|
|000045c0| 7a 65 20 31 0a 58 23 20 | 79 61 78 69 73 20 77 69 |ze 1.X# |yaxis wi|
|000045d0| 6c 6c 20 68 61 76 65 20 | 6f 6e 6c 79 20 74 68 65 |ll have |only the|
|000045e0| 20 74 69 63 6b 20 76 61 | 6c 75 65 73 20 64 72 61 | tick va|lues dra|
|000045f0| 77 6e 20 28 6e 6f 20 68 | 6f 72 69 7a 6f 6e 74 61 |wn (no h|orizonta|
|00004600| 6c 20 6c 69 6e 65 73 29 | 0a 58 23 20 54 68 65 20 |l lines)|.X# The |
|00004610| 64 61 74 61 20 77 69 6c | 6c 20 62 65 20 6d 61 64 |data wil|l be mad|
|00004620| 65 20 6c 6f 67 61 72 74 | 68 6d 69 63 20 61 6e 64 |e logart|hmic and|
|00004630| 20 74 68 65 20 6c 61 62 | 65 6c 20 77 69 6c 6c 20 | the lab|el will |
|00004640| 62 65 20 73 70 69 6c 74 | 20 6f 76 65 72 0a 58 23 |be spilt| over.X#|
|00004650| 20 74 77 6f 20 6c 69 6e | 65 73 3a 20 22 50 6f 70 | two lin|es: "Pop|
|00004660| 75 6c 61 74 69 6f 6e 22 | 20 61 6e 64 20 22 70 65 |ulation"| and "pe|
|00004670| 72 20 79 65 61 72 22 0a | 58 79 61 78 69 73 20 66 |r year".|Xyaxis f|
|00004680| 72 61 6d 65 20 61 78 69 | 73 20 6c 6f 67 61 72 69 |rame axi|s logari|
|00004690| 74 68 6d 69 63 20 6c 61 | 62 65 6c 20 22 50 6f 70 |thmic la|bel "Pop|
|000046a0| 75 6c 61 74 69 6f 6e 20 | 70 65 72 7e 79 65 61 72 |ulation |per~year|
|000046b0| 22 0a 58 0a 58 23 20 61 | 6e 6f 74 68 65 72 20 65 |".X.X# a|nother e|
|000046c0| 78 61 6d 70 6c 65 20 77 | 69 74 68 20 74 69 63 6b |xample w|ith tick|
|000046d0| 73 0a 58 79 61 78 69 73 | 20 74 69 63 6b 20 73 69 |s.Xyaxis| tick si|
|000046e0| 7a 65 20 32 20 70 6f 77 | 65 72 20 33 20 20 23 20 |ze 2 pow|er 3 # |
|000046f0| 74 69 63 6b 73 20 61 72 | 65 20 72 65 61 6c 6c 79 |ticks ar|e really|
|00004700| 20 6f 66 20 73 69 7a 65 | 20 32 30 30 30 20 28 32 | of size| 2000 (2|
|00004710| 20 78 20 31 30 5e 33 29 | 0a 58 2e 45 45 0a 58 2e | x 10^3)|.X.EE.X.|
|00004720| 50 50 0a 58 54 68 65 0a | 58 2e 49 20 78 61 78 69 |PP.XThe.|X.I xaxi|
|00004730| 73 0a 58 61 6e 64 0a 58 | 2e 49 20 79 61 78 69 73 |s.Xand.X|.I yaxis|
|00004740| 0a 58 73 74 61 74 65 6d | 65 6e 74 73 20 61 6c 6c |.Xstatem|ents all|
|00004750| 6f 77 20 64 65 74 61 69 | 6c 73 20 74 6f 20 62 65 |ow detai|ls to be|
|00004760| 20 73 70 65 63 69 66 69 | 65 64 20 6f 6e 20 68 6f | specifi|ed on ho|
|00004770| 77 20 74 68 65 20 78 20 | 61 6e 64 20 79 20 61 78 |w the x |and y ax|
|00004780| 69 73 20 6c 69 6e 65 73 | 0a 58 66 6f 72 20 74 68 |is lines|.Xfor th|
|00004790| 65 20 67 72 61 70 68 20 | 66 72 61 6d 65 20 73 68 |e graph |frame sh|
|000047a0| 6f 75 6c 64 20 62 65 20 | 64 72 61 77 6e 2e 0a 58 |ould be |drawn..X|
|000047b0| 2e 50 50 0a 58 54 68 65 | 0a 58 2e 49 20 6c 61 62 |.PP.XThe|.X.I lab|
|000047c0| 65 6c 0a 58 6f 70 74 69 | 6f 6e 20 69 73 20 75 73 |el.Xopti|on is us|
|000047d0| 65 64 20 74 6f 20 64 65 | 66 69 6e 65 20 77 68 61 |ed to de|fine wha|
|000047e0| 74 20 6c 61 62 65 6c 20 | 74 6f 20 70 6c 61 63 65 |t label |to place|
|000047f0| 20 6f 6e 20 74 68 65 20 | 61 78 69 73 2e 0a 58 4f | on the |axis..XO|
|00004800| 6e 20 74 68 65 20 59 20 | 61 78 69 73 2c 20 74 68 |n the Y |axis, th|
|00004810| 65 20 77 6f 72 64 73 20 | 28 73 65 70 61 72 61 74 |e words |(separat|
|00004820| 65 64 20 62 79 20 62 6c | 61 6e 6b 73 29 20 61 72 |ed by bl|anks) ar|
|00004830| 65 20 70 6c 61 63 65 64 | 20 6f 6e 20 73 65 70 61 |e placed| on sepa|
|00004840| 72 61 74 65 20 6c 69 6e | 65 73 0a 58 6f 6e 65 20 |rate lin|es.Xone |
|00004850| 61 62 6f 76 65 20 74 68 | 65 20 6f 74 68 65 72 2e |above th|e other.|
|00004860| 20 54 6f 20 70 6c 61 63 | 65 20 74 77 6f 20 77 6f | To plac|e two wo|
|00004870| 72 64 73 20 6f 6e 20 74 | 68 65 20 73 61 6d 65 20 |rds on t|he same |
|00004880| 6c 69 6e 65 0a 58 28 66 | 6f 72 20 65 78 61 6d 70 |line.X(f|or examp|
|00004890| 6c 65 20 69 66 20 74 68 | 65 72 65 20 61 72 65 20 |le if th|ere are |
|000048a0| 74 77 6f 20 73 68 6f 72 | 74 20 77 6f 72 64 73 29 |two shor|t words)|
|000048b0| 20 75 73 65 20 61 20 27 | 7e 27 20 69 6e 73 74 65 | use a '|~' inste|
|000048c0| 61 64 0a 58 6f 66 20 61 | 20 73 70 61 63 65 2e 20 |ad.Xof a| space. |
|000048d0| 57 68 65 6e 20 74 68 65 | 20 6c 61 62 65 6c 20 69 |When the| label i|
|000048e0| 73 20 70 72 69 6e 74 65 | 64 2c 20 74 68 65 20 27 |s printe|d, the '|
|000048f0| 7e 27 20 77 69 6c 6c 20 | 62 65 20 63 68 61 6e 67 |~' will |be chang|
|00004900| 65 64 0a 58 69 6e 74 6f | 20 61 20 62 6c 61 6e 6b |ed.Xinto| a blank|
|00004910| 2e 0a 58 54 68 65 20 62 | 65 73 74 20 77 61 79 20 |..XThe b|est way |
|00004920| 74 6f 20 77 72 69 74 65 | 20 74 68 65 20 6c 61 62 |to write| the lab|
|00004930| 65 6c 20 77 6f 75 6c 64 | 20 62 65 20 62 79 20 72 |el would| be by r|
|00004940| 6f 74 61 74 69 6e 67 20 | 74 68 65 20 74 65 78 74 |otating |the text|
|00004950| 0a 58 62 79 20 39 30 20 | 64 65 67 72 65 65 73 2c |.Xby 90 |degrees,|
|00004960| 20 62 75 74 20 74 68 65 | 20 70 6c 6f 74 28 31 29 | but the| plot(1)|
|00004970| 20 66 6f 72 6d 61 74 20 | 64 6f 65 73 20 6e 6f 74 | format |does not|
|00004980| 20 61 6c 6c 6f 77 20 74 | 68 69 73 2e 0a 58 2e 50 | allow t|his..X.P|
|00004990| 50 0a 58 54 68 65 0a 58 | 2e 49 20 66 6f 72 6d 61 |P.XThe.X|.I forma|
|000049a0| 74 0a 58 6f 70 74 69 6f | 6e 20 61 6c 6c 6f 77 73 |t.Xoptio|n allows|
|000049b0| 20 61 20 70 72 69 6e 74 | 66 20 66 6f 72 6d 61 74 | a print|f format|
|000049c0| 20 73 74 72 69 6e 67 20 | 66 6f 72 20 61 20 6c 6f | string |for a lo|
|000049d0| 6e 67 20 66 6c 6f 61 74 | 69 6e 67 20 70 6f 69 6e |ng float|ing poin|
|000049e0| 74 20 6e 75 6d 62 65 72 | 0a 58 28 27 64 6f 75 62 |t number|.X('doub|
|000049f0| 6c 65 27 20 69 6e 20 74 | 68 65 20 27 43 27 20 70 |le' in t|he 'C' p|
|00004a00| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 6c 61 6e 67 75 |rogrammi|ng langu|
|00004a10| 61 67 65 29 0a 58 66 6f | 72 20 70 72 69 6e 74 69 |age).Xfo|r printi|
|00004a20| 6e 67 20 74 68 65 20 6e | 75 6d 62 65 72 73 20 6f |ng the n|umbers o|
|00004a30| 6e 20 74 68 65 20 74 69 | 63 6b 73 20 61 6c 6f 6e |n the ti|cks alon|
|00004a40| 67 20 74 68 65 20 61 78 | 69 73 2e 20 4e 6f 20 63 |g the ax|is. No c|
|00004a50| 68 65 63 6b 69 6e 67 20 | 6f 66 0a 58 74 68 69 73 |hecking |of.Xthis|
|00004a60| 20 66 6f 72 6d 61 74 20 | 73 74 72 69 6e 67 20 69 | format |string i|
|00004a70| 73 20 6d 61 64 65 2e 20 | 54 68 65 20 64 65 66 61 |s made. |The defa|
|00004a80| 75 6c 74 20 66 6f 72 6d | 61 74 20 69 73 20 67 65 |ult form|at is ge|
|00004a90| 6e 65 72 61 6c 6c 79 20 | 61 63 63 65 70 74 61 62 |nerally |acceptab|
|00004aa0| 6c 65 2e 0a 58 2e 50 50 | 0a 58 54 68 65 0a 58 2e |le..X.PP|.XThe.X.|
|00004ab0| 49 20 73 63 61 6c 65 0a | 58 6f 70 74 69 6f 6e 20 |I scale.|Xoption |
|00004ac0| 61 6c 6c 6f 77 73 20 74 | 68 65 20 76 61 6c 75 65 |allows t|he value|
|00004ad0| 73 20 61 6c 6f 6e 67 20 | 74 68 65 20 61 78 69 73 |s along |the axis|
|00004ae0| 20 74 6f 20 62 65 20 61 | 75 74 6f 6d 61 74 69 63 | to be a|utomatic|
|00004af0| 61 6c 6c 79 20 73 63 61 | 6c 65 64 20 62 79 0a 58 |ally sca|led by.X|
|00004b00| 6c 61 62 65 6c 69 6e 67 | 20 74 68 65 20 61 78 69 |labeling| the axi|
|00004b10| 73 20 61 73 20 27 78 20 | 31 30 5e 6e 27 20 77 68 |s as 'x |10^n' wh|
|00004b20| 65 72 65 20 6e 20 69 73 | 20 74 68 65 20 70 6f 77 |ere n is| the pow|
|00004b30| 65 72 2e 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |er. For |example,|
|00004b40| 0a 58 66 6f 72 20 76 61 | 6c 75 65 73 20 66 72 6f |.Xfor va|lues fro|
|00004b50| 6d 20 30 20 74 6f 20 31 | 30 30 30 30 20 6d 61 79 |m 0 to 1|0000 may|
|00004b60| 20 62 65 20 73 68 6f 77 | 6e 20 6f 6e 20 74 68 65 | be show|n on the|
|00004b70| 20 74 69 63 6b 73 20 61 | 73 20 66 72 6f 6d 20 30 | ticks a|s from 0|
|00004b80| 20 74 6f 20 31 30 2e 30 | 0a 58 77 69 74 68 20 61 | to 10.0|.Xwith a|
|00004b90| 20 66 61 63 74 6f 72 20 | 6f 66 20 31 30 5e 33 2e | factor |of 10^3.|
|00004ba0| 20 54 68 65 20 64 65 66 | 61 75 6c 74 20 69 73 20 | The def|ault is |
|00004bb0| 74 6f 0a 58 2e 49 20 61 | 75 74 6f 0a 58 2e 49 20 |to.X.I a|uto.X.I |
|00004bc0| 73 63 61 6c 65 0a 58 62 | 75 74 20 74 68 65 0a 58 |scale.Xb|ut the.X|
|00004bd0| 2e 49 20 6e 6f 0a 58 2e | 49 20 73 63 61 6c 65 0a |.I no.X.|I scale.|
|00004be0| 58 6f 70 74 69 6f 6e 20 | 63 61 6e 20 69 6e 68 69 |Xoption |can inhi|
|00004bf0| 62 69 74 20 74 68 69 73 | 2e 0a 58 2e 50 50 0a 58 |bit this|..X.PP.X|
|00004c00| 54 68 65 0a 58 2e 49 20 | 61 78 69 73 0a 58 6f 70 |The.X.I |axis.Xop|
|00004c10| 74 69 6f 6e 20 61 6c 6c | 6f 77 73 20 64 69 66 66 |tion all|ows diff|
|00004c20| 65 72 65 6e 74 20 66 6f | 72 6d 73 20 6f 66 20 61 |erent fo|rms of a|
|00004c30| 78 69 73 20 6c 69 6e 65 | 73 20 74 6f 20 62 65 20 |xis line|s to be |
|00004c40| 64 72 61 77 6e 2e 0a 58 | 4e 6f 72 6d 61 6c 6c 79 |drawn..X|Normally|
|00004c50| 20 62 6f 74 68 20 61 78 | 69 73 20 77 69 6c 6c 20 | both ax|is will |
|00004c60| 62 65 20 67 69 76 65 6e | 20 74 68 65 20 73 61 6d |be given| the sam|
|00004c70| 65 20 61 78 69 73 20 74 | 79 70 65 2c 20 62 75 74 |e axis t|ype, but|
|00004c80| 20 74 68 69 73 0a 58 69 | 73 20 6e 6f 74 20 6e 65 | this.Xi|s not ne|
|00004c90| 63 65 73 73 61 72 79 2e | 0a 58 54 68 65 0a 58 2e |cessary.|.XThe.X.|
|00004ca0| 49 20 66 72 61 6d 65 0a | 58 6f 70 74 69 6f 6e 20 |I frame.|Xoption |
|00004cb0| 73 69 6d 70 6c 79 20 64 | 72 61 77 73 20 61 20 73 |simply d|raws a s|
|00004cc0| 69 6e 67 6c 65 20 6c 69 | 6e 65 20 61 6c 6f 6e 67 |ingle li|ne along|
|00004cd0| 20 77 68 69 63 68 20 74 | 69 63 6b 73 20 61 72 65 | which t|icks are|
|00004ce0| 20 70 6c 61 63 65 20 77 | 69 74 68 0a 58 6e 75 6d | place w|ith.Xnum|
|00004cf0| 65 72 69 63 20 76 61 6c | 75 65 73 2e 0a 58 54 68 |eric val|ues..XTh|
|00004d00| 65 0a 58 2e 49 20 67 72 | 69 64 0a 58 6f 70 74 69 |e.X.I gr|id.Xopti|
|00004d10| 6f 6e 20 64 72 61 77 73 | 20 61 20 67 72 69 64 20 |on draws| a grid |
|00004d20| 6f 76 65 72 20 74 68 65 | 20 77 68 6f 6c 65 20 67 |over the| whole g|
|00004d30| 72 61 70 68 2e 0a 58 54 | 68 65 0a 58 2e 49 20 6f |raph..XT|he.X.I o|
|00004d40| 75 74 6c 69 6e 65 0a 58 | 6f 70 74 69 6f 6e 20 69 |utline.X|option i|
|00004d50| 73 20 76 65 72 79 20 73 | 69 6d 69 6c 61 72 20 74 |s very s|imilar t|
|00004d60| 6f 20 74 68 65 20 0a 58 | 2e 49 20 66 72 61 6d 65 |o the .X|.I frame|
|00004d70| 0a 58 6f 70 74 69 6f 6e | 20 62 75 74 20 61 20 73 |.Xoption| but a s|
|00004d80| 65 63 6f 6e 64 20 6c 69 | 6e 65 20 69 73 20 64 72 |econd li|ne is dr|
|00004d90| 61 77 6e 20 6f 6e 20 74 | 68 65 20 66 61 72 20 73 |awn on t|he far s|
|00004da0| 69 64 65 20 6f 66 20 74 | 68 65 20 67 72 61 70 68 |ide of t|he graph|
|00004db0| 2e 0a 58 49 66 20 74 68 | 69 73 20 6f 70 74 69 6f |..XIf th|is optio|
|00004dc0| 6e 20 69 73 20 75 73 65 | 64 20 6f 6e 20 62 6f 74 |n is use|d on bot|
|00004dd0| 68 20 61 78 69 73 20 6f | 72 20 77 69 74 68 20 61 |h axis o|r with a|
|00004de0| 20 67 72 69 64 20 6f 6e | 20 74 68 65 20 6f 74 68 | grid on| the oth|
|00004df0| 65 72 20 61 78 69 73 2c | 0a 58 74 68 65 20 67 72 |er axis,|.Xthe gr|
|00004e00| 61 70 68 20 77 69 6c 6c | 20 61 70 70 65 61 72 20 |aph will| appear |
|00004e10| 74 6f 20 62 65 20 65 6e | 63 6c 6f 73 65 64 20 69 |to be en|closed i|
|00004e20| 6e 20 61 20 62 6f 78 2e | 0a 58 49 66 20 6e 6f 20 |n a box.|.XIf no |
|00004e30| 61 78 69 73 20 28 61 6e | 64 20 6e 6f 20 6e 75 6d |axis (an|d no num|
|00004e40| 62 65 72 69 6e 67 29 20 | 69 73 20 64 65 73 69 72 |bering) |is desir|
|00004e50| 65 64 2c 20 75 73 65 20 | 74 68 65 0a 58 2e 49 20 |ed, use |the.X.I |
|00004e60| 6e 6f 0a 58 6f 70 74 69 | 6f 6e 2e 0a 58 54 68 65 |no.Xopti|on..XThe|
|00004e70| 20 62 65 73 74 20 77 61 | 79 20 74 6f 20 66 69 6e | best wa|y to fin|
|00004e80| 64 20 6f 75 74 20 77 68 | 61 74 20 74 68 65 73 65 |d out wh|at these|
|00004e90| 20 64 6f 20 65 78 61 63 | 74 6c 79 20 69 73 20 74 | do exac|tly is t|
|00004ea0| 6f 20 65 78 70 65 72 69 | 6d 65 6e 74 2e 0a 58 2e |o experi|ment..X.|
|00004eb0| 50 50 0a 58 54 68 65 0a | 58 2e 49 20 6c 69 6e 65 |PP.XThe.|X.I line|
|00004ec0| 61 72 0a 58 61 6e 64 0a | 58 2e 49 20 6c 6f 67 61 |ar.Xand.|X.I loga|
|00004ed0| 72 69 74 68 6d 69 63 0a | 58 6f 70 74 69 6f 6e 73 |rithmic.|Xoptions|
|00004ee0| 20 61 6c 6c 6f 77 20 61 | 20 73 69 6d 70 6c 65 20 | allow a| simple |
|00004ef0| 6c 69 6e 65 61 72 20 28 | 64 65 66 61 75 6c 74 29 |linear (|default)|
|00004f00| 20 6f 72 20 6c 6f 67 61 | 72 69 74 68 6d 69 63 20 | or loga|rithmic |
|00004f10| 67 72 61 70 68 20 74 6f | 20 62 65 0a 58 70 6c 6f |graph to| be.Xplo|
|00004f20| 74 74 65 64 2e 0a 58 2e | 50 50 0a 58 54 68 65 0a |tted..X.|PP.XThe.|
|00004f30| 58 2e 49 20 66 72 6f 6d | 0a 58 63 6c 61 75 73 65 |X.I from|.Xclause|
|00004f40| 20 61 6c 6c 6f 77 73 20 | 74 68 65 20 72 61 6e 67 | allows |the rang|
|00004f50| 65 20 6f 66 20 76 61 6c | 75 65 73 20 66 6f 72 20 |e of val|ues for |
|00004f60| 74 68 65 20 61 78 69 73 | 20 74 6f 20 62 65 20 73 |the axis| to be s|
|00004f70| 70 65 63 69 66 69 65 64 | 2e 0a 58 42 79 20 64 65 |pecified|..XBy de|
|00004f80| 66 61 75 6c 74 20 74 68 | 69 73 20 69 73 20 63 61 |fault th|is is ca|
|00004f90| 6c 63 75 6c 61 74 65 64 | 20 66 72 6f 6d 20 74 68 |lculated| from th|
|00004fa0| 65 20 67 72 61 70 68 73 | 20 74 6f 20 62 65 20 70 |e graphs| to be p|
|00004fb0| 6c 6f 74 74 65 64 20 62 | 79 0a 58 64 65 74 65 72 |lotted b|y.Xdeter|
|00004fc0| 6d 69 6e 69 6e 67 20 74 | 68 65 20 6d 69 6e 69 6d |mining t|he minim|
|00004fd0| 75 6d 20 61 6e 64 20 6d | 61 78 69 6d 75 6d 20 76 |um and m|aximum v|
|00004fe0| 61 6c 75 65 73 2e 0a 58 | 2e 50 50 0a 58 54 68 65 |alues..X|.PP.XThe|
|00004ff0| 0a 58 2e 49 20 74 69 63 | 6b 0a 58 2e 49 20 73 69 |.X.I tic|k.X.I si|
|00005000| 7a 65 0a 58 63 6c 61 75 | 73 65 20 61 6c 6c 6f 77 |ze.Xclau|se allow|
|00005010| 73 20 74 68 65 20 74 69 | 63 6b 20 73 69 7a 65 73 |s the ti|ck sizes|
|00005020| 20 74 6f 20 62 65 20 73 | 70 65 63 69 66 69 65 64 | to be s|pecified|
|00005030| 2e 20 4e 6f 72 6d 61 6c | 6c 79 20 74 68 69 73 20 |. Normal|ly this |
|00005040| 6f 70 74 69 6f 6e 20 77 | 6f 75 6c 64 0a 58 6e 6f |option w|ould.Xno|
|00005050| 74 20 62 65 20 75 73 65 | 64 20 61 73 20 67 72 61 |t be use|d as gra|
|00005060| 70 68 2b 20 74 72 69 65 | 73 20 74 6f 20 61 75 74 |ph+ trie|s to aut|
|00005070| 6f 6d 61 74 69 63 61 6c | 6c 79 20 63 61 6c 63 75 |omatical|ly calcu|
|00005080| 6c 61 74 65 20 61 20 6e | 69 63 65 20 6c 6f 6f 6b |late a n|ice look|
|00005090| 69 6e 67 0a 58 76 61 6c | 75 65 20 66 6f 72 20 74 |ing.Xval|ue for t|
|000050a0| 68 65 20 74 69 63 6b 20 | 73 69 7a 65 20 61 6e 64 |he tick |size and|
|000050b0| 20 70 6f 77 65 72 20 28 | 62 61 73 65 64 20 6f 6e | power (|based on|
|000050c0| 20 68 6f 77 20 6d 75 63 | 68 20 77 69 6c 6c 20 66 | how muc|h will f|
|000050d0| 69 74 20 6f 6e 20 74 68 | 65 20 6f 75 74 70 75 74 |it on th|e output|
|000050e0| 29 2e 0a 58 46 72 61 63 | 74 69 6f 6e 73 20 66 6f |)..XFrac|tions fo|
|000050f0| 72 20 74 69 63 6b 20 73 | 69 7a 65 73 20 28 65 67 |r tick s|izes (eg|
|00005100| 20 31 2e 33 33 33 33 33 | 29 20 64 6f 20 6e 6f 74 | 1.33333|) do not|
|00005110| 20 77 6f 72 6b 20 77 65 | 6c 6c 20 61 6e 64 20 64 | work we|ll and d|
|00005120| 75 65 20 74 6f 20 72 6f | 75 6e 64 69 6e 67 0a 58 |ue to ro|unding.X|
|00005130| 70 72 6f 62 6c 65 6d 73 | 20 6d 61 79 20 63 61 75 |problems| may cau|
|00005140| 73 65 20 74 69 63 6b 20 | 6d 61 72 6b 73 20 74 6f |se tick |marks to|
|00005150| 20 62 65 20 73 6b 69 70 | 70 65 64 20 61 6c 6f 6e | be skip|ped alon|
|00005160| 67 20 74 68 65 20 61 78 | 69 73 2e 20 52 6f 75 6e |g the ax|is. Roun|
|00005170| 64 20 6e 75 6d 62 65 72 | 73 0a 58 73 68 6f 75 6c |d number|s.Xshoul|
|00005180| 64 20 62 65 20 73 61 66 | 65 2e 0a 58 49 66 0a 58 |d be saf|e..XIf.X|
|00005190| 2e 49 20 70 6f 77 65 72 | 0a 58 69 73 20 6e 6f 74 |.I power|.Xis not|
|000051a0| 20 73 70 65 63 69 66 69 | 65 64 2c 20 74 68 65 6e | specifi|ed, then|
|000051b0| 20 69 74 20 69 73 20 64 | 65 66 61 75 6c 74 65 64 | it is d|efaulted|
|000051c0| 20 74 6f 20 30 2e 20 49 | 66 20 61 20 76 61 6c 75 | to 0. I|f a valu|
|000051d0| 65 20 6f 66 20 73 61 79 | 20 33 20 69 73 20 75 73 |e of say| 3 is us|
|000051e0| 65 64 2c 0a 58 74 68 65 | 6e 20 74 68 65 20 74 69 |ed,.Xthe|n the ti|
|000051f0| 63 6b 20 76 61 6c 75 65 | 73 20 77 69 6c 6c 20 72 |ck value|s will r|
|00005200| 65 61 6c 6c 79 20 62 65 | 20 74 68 65 20 74 69 63 |eally be| the tic|
|00005210| 6b 20 73 69 7a 65 20 73 | 70 65 63 69 66 69 65 64 |k size s|pecified|
|00005220| 20 62 79 20 31 30 5e 33 | 20 61 6e 64 0a 58 74 68 | by 10^3| and.Xth|
|00005230| 65 20 70 6f 77 65 72 20 | 77 69 6c 6c 20 62 65 20 |e power |will be |
|00005240| 70 72 69 6e 74 65 64 20 | 62 65 6c 6f 77 20 74 68 |printed |below th|
|00005250| 65 20 61 78 69 73 20 6c | 61 62 65 6c 20 69 6e 20 |e axis l|abel in |
|00005260| 74 68 65 20 66 6f 72 6d | 20 27 78 20 31 30 5e 33 |the form| 'x 10^3|
|00005270| 27 2e 0a 58 2e 53 59 0a | 58 70 75 74 20 6c 65 67 |'..X.SY.|Xput leg|
|00005280| 65 6e 64 20 61 74 20 74 | 6f 70 7c 6d 69 64 64 6c |end at t|op|middl|
|00005290| 65 7c 62 6f 74 74 6f 6d | 20 6c 65 66 74 7c 63 65 |e|bottom| left|ce|
|000052a0| 6e 74 65 72 7c 72 69 67 | 68 74 0a 58 2e 45 53 0a |nter|rig|ht.X.ES.|
|000052b0| 58 67 72 61 70 68 20 64 | 61 74 61 31 20 64 6f 74 |Xgraph d|ata1 dot|
|000052c0| 74 65 64 20 6c 69 6e 65 | 20 6c 65 67 65 6e 64 20 |ted line| legend |
|000052d0| 22 67 72 61 70 68 20 31 | 22 0a 58 67 72 61 70 68 |"graph 1|".Xgraph|
|000052e0| 20 64 61 74 61 32 20 73 | 6f 6c 69 64 20 6c 69 6e | data2 s|olid lin|
|000052f0| 65 20 6c 65 67 65 6e 64 | 20 22 67 72 61 70 68 20 |e legend| "graph |
|00005300| 32 22 0a 58 70 75 74 20 | 6c 65 67 65 6e 64 20 61 |2".Xput |legend a|
|00005310| 74 20 62 6f 74 74 6f 6d | 20 6c 65 66 74 0a 58 70 |t bottom| left.Xp|
|00005320| 6c 6f 74 0a 58 2e 45 45 | 0a 58 2e 50 50 0a 58 54 |lot.X.EE|.X.PP.XT|
|00005330| 68 65 0a 58 2e 49 20 70 | 75 74 0a 58 2e 49 20 6c |he.X.I p|ut.X.I l|
|00005340| 65 67 65 6e 64 0a 58 2e | 49 20 61 74 0a 58 73 74 |egend.X.|I at.Xst|
|00005350| 61 74 65 6d 65 6e 74 20 | 69 73 20 75 73 65 64 20 |atement |is used |
|00005360| 74 6f 20 70 6f 73 69 74 | 69 6f 6e 20 74 68 65 20 |to posit|ion the |
|00005370| 6c 65 67 65 6e 64 20 6f | 6e 20 74 68 65 20 67 72 |legend o|n the gr|
|00005380| 61 70 68 2e 20 54 68 65 | 20 6c 65 67 65 6e 64 0a |aph. The| legend.|
|00005390| 58 28 61 74 20 70 72 65 | 73 65 6e 74 29 20 69 73 |X(at pre|sent) is|
|000053a0| 20 64 72 61 77 6e 20 6f | 6e 20 74 6f 70 20 6f 66 | drawn o|n top of|
|000053b0| 20 74 68 65 20 61 63 74 | 75 61 6c 20 67 72 61 70 | the act|ual grap|
|000053c0| 68 20 28 75 6e 64 65 72 | 6e 65 61 74 68 20 6d 61 |h (under|neath ma|
|000053d0| 79 0a 58 62 65 20 62 65 | 74 74 65 72 2c 20 62 75 |y.Xbe be|tter, bu|
|000053e0| 74 20 69 73 20 68 61 72 | 64 65 72 20 64 75 65 20 |t is har|der due |
|000053f0| 74 6f 20 74 68 65 20 77 | 61 79 20 74 68 65 20 70 |to the w|ay the p|
|00005400| 6c 6f 74 28 31 29 20 66 | 75 6e 63 74 69 6f 6e 73 |lot(1) f|unctions|
|00005410| 20 77 6f 72 6b 29 2e 0a | 58 54 68 65 20 74 6f 70 | work)..|XThe top|
|00005420| 2f 6d 69 64 64 6c 65 2f | 62 6f 74 74 6f 6d 20 6f |/middle/|bottom o|
|00005430| 70 74 69 6f 6e 20 73 65 | 6c 65 63 74 73 20 74 68 |ption se|lects th|
|00005440| 65 20 76 65 72 69 63 61 | 6c 20 70 6f 73 69 74 69 |e verica|l positi|
|00005450| 6f 6e 69 6e 67 20 61 6e | 64 0a 58 74 68 65 20 6c |oning an|d.Xthe l|
|00005460| 65 66 74 2f 63 65 6e 74 | 65 72 2f 72 69 67 68 74 |eft/cent|er/right|
|00005470| 20 6f 70 74 69 6f 6e 20 | 73 65 6c 65 63 74 73 20 | option |selects |
|00005480| 74 68 65 20 68 6f 72 69 | 7a 6f 6e 74 61 6c 20 70 |the hori|zontal p|
|00005490| 6f 73 69 74 69 6f 6e 69 | 6e 67 2e 0a 58 54 68 65 |ositioni|ng..XThe|
|000054a0| 20 64 65 66 61 75 6c 74 | 20 70 6f 73 69 74 69 6f | default| positio|
|000054b0| 6e 20 69 73 20 74 68 65 | 20 74 6f 70 20 72 69 67 |n is the| top rig|
|000054c0| 68 74 20 63 6f 72 6e 65 | 72 20 6f 66 20 74 68 65 |ht corne|r of the|
|000054d0| 20 67 72 61 70 68 2e 0a | 58 2e 53 59 0a 58 70 6c | graph..|X.SY.Xpl|
|000054e0| 6f 74 0a 58 2e 45 53 0a | 58 67 72 61 70 68 20 64 |ot.X.ES.|Xgraph d|
|000054f0| 61 74 61 31 20 73 6f 6c | 69 64 20 6c 69 6e 65 0a |ata1 sol|id line.|
|00005500| 58 67 72 61 70 68 20 64 | 61 74 61 32 20 64 6f 74 |Xgraph d|ata2 dot|
|00005510| 74 65 64 20 6c 69 6e 65 | 0a 58 70 6c 6f 74 0a 58 |ted line|.Xplot.X|
|00005520| 67 72 61 70 68 20 64 61 | 74 61 33 20 64 6f 74 74 |graph da|ta3 dott|
|00005530| 65 64 20 6c 69 6e 65 0a | 58 2e 45 45 0a 58 2e 50 |ed line.|X.EE.X.P|
|00005540| 50 0a 58 54 68 65 0a 58 | 2e 49 20 70 6c 6f 74 0a |P.XThe.X|.I plot.|
|00005550| 58 63 6f 6d 6d 61 6e 64 | 20 67 65 6e 65 72 61 74 |Xcommand| generat|
|00005560| 65 73 20 61 20 70 6c 6f | 74 20 6f 66 20 61 6c 6c |es a plo|t of all|
|00005570| 20 74 68 65 20 67 72 61 | 70 68 20 73 74 61 74 65 | the gra|ph state|
|00005580| 6d 65 6e 74 73 20 64 6f | 6e 65 20 73 6f 20 66 61 |ments do|ne so fa|
|00005590| 72 2e 0a 58 41 6e 79 20 | 66 6f 6c 6c 6f 77 69 6e |r..XAny |followin|
|000055a0| 67 20 67 72 61 70 68 20 | 63 6f 6d 6d 61 6e 64 73 |g graph |commands|
|000055b0| 20 77 69 6c 6c 20 61 70 | 70 65 61 72 20 6f 6e 20 | will ap|pear on |
|000055c0| 74 68 65 20 6e 65 78 74 | 20 70 6c 6f 74 2e 0a 58 |the next| plot..X|
|000055d0| 41 20 70 6c 6f 74 20 63 | 6f 6d 6d 61 6e 64 20 69 |A plot c|ommand i|
|000055e0| 73 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |s automa|tically |
|000055f0| 70 65 72 66 6f 72 6d 65 | 64 20 61 74 20 74 68 65 |performe|d at the|
|00005600| 20 76 65 72 79 20 65 6e | 64 20 6f 66 0a 58 61 20 | very en|d of.Xa |
|00005610| 63 6f 6d 6d 61 6e 64 20 | 66 69 6c 65 20 69 66 20 |command |file if |
|00005620| 61 6e 79 20 67 72 61 70 | 68 20 73 74 61 74 65 6d |any grap|h statem|
|00005630| 65 6e 74 73 20 68 61 76 | 65 20 62 65 65 6e 20 66 |ents hav|e been f|
|00005640| 6f 75 6e 64 2e 0a 58 2e | 53 48 20 54 41 42 4c 45 |ound..X.|SH TABLE|
|00005650| 53 0a 58 2e 50 50 0a 58 | 41 20 3c 74 61 62 6c 65 |S.X.PP.X|A <table|
|00005660| 3e 20 63 61 6e 20 62 65 | 20 61 6e 20 65 78 70 72 |> can be| an expr|
|00005670| 65 73 73 69 6f 6e 20 6d | 61 64 65 20 75 70 20 66 |ession m|ade up f|
|00005680| 72 6f 6d 20 61 6e 79 20 | 6f 66 20 74 68 65 20 66 |rom any |of the f|
|00005690| 6f 6c 6c 6f 77 69 6e 67 | 0a 58 73 75 62 2d 65 78 |ollowing|.Xsub-ex|
|000056a0| 70 72 65 73 73 69 6f 6e | 73 2e 20 54 68 65 73 65 |pression|s. These|
|000056b0| 20 75 73 75 61 6c 6c 79 | 20 61 70 70 65 61 72 20 | usually| appear |
|000056c0| 64 69 72 65 63 74 6c 79 | 20 69 6e 0a 58 2e 49 20 |directly| in.X.I |
|000056d0| 67 72 61 70 68 0a 58 73 | 74 61 74 65 6d 65 6e 74 |graph.Xs|tatement|
|000056e0| 73 2c 20 6f 72 20 77 68 | 65 6e 20 61 73 73 69 67 |s, or wh|en assig|
|000056f0| 6e 65 64 20 74 6f 20 61 | 20 74 61 62 6c 65 20 76 |ned to a| table v|
|00005700| 61 72 69 61 62 6c 65 2e | 0a 58 2e 53 59 0a 58 72 |ariable.|.X.SY.Xr|
|00005710| 65 61 64 20 3c 66 69 6c | 65 5f 6e 61 6d 65 5f 73 |ead <fil|e_name_s|
|00005720| 74 72 69 6e 67 3e 0a 58 | 72 65 61 64 20 3c 63 6f |tring>.X|read <co|
|00005730| 6c 73 5f 65 78 70 72 3e | 20 62 79 20 3c 72 6f 77 |ls_expr>| by <row|
|00005740| 73 5f 65 78 70 72 3e 20 | 3c 66 69 6c 65 5f 6e 61 |s_expr> |<file_na|
|00005750| 6d 65 5f 73 74 72 69 6e | 67 3e 0a 58 2e 45 53 0a |me_strin|g>.X.ES.|
|00005760| 58 64 61 74 61 20 3d 20 | 72 65 61 64 20 22 64 61 |Xdata = |read "da|
|00005770| 74 61 2e 66 69 6c 65 22 | 0a 58 67 72 61 70 68 20 |ta.file"|.Xgraph |
|00005780| 72 65 61 64 20 32 20 62 | 79 20 32 30 30 20 22 64 |read 2 b|y 200 "d|
|00005790| 61 74 61 2e 66 69 6c 65 | 22 20 23 20 49 20 6b 6e |ata.file|" # I kn|
|000057a0| 6f 77 20 74 68 65 20 66 | 69 6c 65 20 69 73 20 32 |ow the f|ile is 2|
|000057b0| 20 63 6f 6c 75 6d 73 20 | 62 79 20 32 30 30 20 6c | colums |by 200 l|
|000057c0| 69 6e 65 73 0a 58 64 61 | 74 61 20 3d 20 72 65 61 |ines.Xda|ta = rea|
|000057d0| 64 20 70 61 72 61 6d 65 | 74 65 72 20 32 20 2b 20 |d parame|ter 2 + |
|000057e0| 22 2e 64 61 74 22 0a 58 | 2e 45 45 0a 58 2e 50 50 |".dat".X|.EE.X.PP|
|000057f0| 0a 58 54 68 65 0a 58 2e | 49 20 72 65 61 64 0a 58 |.XThe.X.|I read.X|
|00005800| 63 6f 6d 6d 61 6e 64 20 | 72 65 61 64 73 20 61 20 |command |reads a |
|00005810| 74 61 62 6c 65 20 66 72 | 6f 6d 20 61 20 66 69 6c |table fr|om a fil|
|00005820| 65 2e 20 42 6c 61 6e 6b | 20 6c 69 6e 65 73 0a 58 |e. Blank| lines.X|
|00005830| 61 6e 64 20 61 6c 6c 20 | 63 68 61 72 61 63 74 65 |and all |characte|
|00005840| 72 73 20 66 72 6f 6d 20 | 23 20 74 6f 20 74 68 65 |rs from |# to the|
|00005850| 20 65 6e 64 20 6f 66 20 | 6c 69 6e 65 20 61 72 65 | end of |line are|
|00005860| 20 69 67 6e 6f 72 65 20 | 28 61 6c 6c 6f 77 69 6e | ignore |(allowin|
|00005870| 67 0a 58 63 6f 6d 6d 65 | 6e 74 73 20 74 6f 20 62 |g.Xcomme|nts to b|
|00005880| 65 20 70 75 74 20 69 6e | 20 64 61 74 61 20 66 69 |e put in| data fi|
|00005890| 6c 65 73 29 2e 20 54 68 | 65 20 6e 75 6d 62 65 72 |les). Th|e number|
|000058a0| 0a 58 6f 66 20 63 6f 6c | 75 6d 6e 73 20 69 6e 20 |.Xof col|umns in |
|000058b0| 74 68 65 20 74 61 62 6c | 65 20 69 73 20 64 65 74 |the tabl|e is det|
|000058c0| 65 72 6d 69 6e 65 64 20 | 62 79 20 72 65 61 64 69 |ermined |by readi|
|000058d0| 6e 67 20 74 68 65 20 66 | 69 72 73 74 20 6e 6f 6e |ng the f|irst non|
|000058e0| 2d 62 6c 61 6e 6b 0a 58 | 6c 69 6e 65 20 69 6e 20 |-blank.X|line in |
|000058f0| 74 68 65 20 66 69 6c 65 | 2e 20 54 68 65 20 6e 75 |the file|. The nu|
|00005900| 6d 62 65 72 20 6f 66 20 | 72 6f 77 73 20 69 73 20 |mber of |rows is |
|00005910| 64 65 74 65 72 6d 69 6e | 65 64 20 62 79 20 63 6f |determin|ed by co|
|00005920| 75 6e 74 69 6e 67 0a 58 | 74 68 65 20 6e 75 6d 62 |unting.X|the numb|
|00005930| 65 72 20 6f 66 20 6e 6f | 6e 2d 62 6c 61 6e 6b 20 |er of no|n-blank |
|00005940| 6c 69 6e 65 73 20 69 6e | 20 74 68 65 20 66 69 6c |lines in| the fil|
|00005950| 65 2e 20 54 6f 20 72 65 | 61 64 20 61 20 66 69 6c |e. To re|ad a fil|
|00005960| 65 2c 20 74 77 6f 20 70 | 61 73 73 65 73 0a 58 61 |e, two p|asses.Xa|
|00005970| 72 65 20 6d 61 64 65 20 | 5c 2d 20 74 68 65 20 66 |re made |\- the f|
|00005980| 69 72 73 74 20 74 6f 20 | 64 65 74 65 72 6d 69 6e |irst to |determin|
|00005990| 65 20 74 68 65 20 74 61 | 62 6c 65 20 73 69 7a 65 |e the ta|ble size|
|000059a0| 20 73 6f 20 61 20 74 61 | 62 6c 65 20 63 61 6e 20 | so a ta|ble can |
|000059b0| 62 65 0a 58 61 6c 6c 6f | 63 61 74 65 64 20 65 6e |be.Xallo|cated en|
|000059c0| 6f 75 67 68 20 6d 65 6d | 6f 72 79 2c 20 61 6e 64 |ough mem|ory, and|
|000059d0| 20 61 20 73 65 63 6f 6e | 64 20 74 6f 20 72 65 61 | a secon|d to rea|
|000059e0| 64 20 74 68 65 20 61 63 | 74 75 61 6c 20 76 61 6c |d the ac|tual val|
|000059f0| 75 65 73 2e 0a 58 2e 50 | 50 0a 58 54 68 65 20 73 |ues..X.P|P.XThe s|
|00005a00| 65 63 6f 6e 64 20 66 6f | 72 6d 20 6f 66 20 74 68 |econd fo|rm of th|
|00005a10| 65 0a 58 2e 49 20 72 65 | 61 64 0a 58 63 6f 6d 6d |e.X.I re|ad.Xcomm|
|00005a20| 61 6e 64 20 61 6c 6c 6f | 77 73 20 74 68 65 20 64 |and allo|ws the d|
|00005a30| 69 6d 65 6e 73 69 6f 6e | 73 20 6f 66 20 74 68 65 |imension|s of the|
|00005a40| 20 74 61 62 6c 65 20 74 | 6f 20 62 65 20 70 72 65 | table t|o be pre|
|00005a50| 73 70 65 63 69 66 69 65 | 64 20 73 6f 20 74 68 61 |specifie|d so tha|
|00005a60| 74 0a 58 6f 6e 6c 79 20 | 6f 6e 65 20 70 61 73 73 |t.Xonly |one pass|
|00005a70| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 20 69 73 20 | of the |file is |
|00005a80| 6e 65 65 64 65 64 2e 20 | 54 68 69 73 20 6d 61 6b |needed. |This mak|
|00005a90| 65 73 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 73 |es the c|ommand s|
|00005aa0| 6c 69 67 68 74 6c 79 0a | 58 66 61 73 74 65 72 20 |lightly.|Xfaster |
|00005ab0| 62 75 74 20 6d 75 63 68 | 20 6c 65 73 73 20 66 6c |but much| less fl|
|00005ac0| 65 78 69 62 6c 65 20 74 | 6f 20 63 68 61 6e 67 65 |exible t|o change|
|00005ad0| 73 20 69 6e 20 74 68 65 | 20 64 61 74 61 20 66 69 |s in the| data fi|
|00005ae0| 6c 65 2e 20 54 68 65 20 | 66 69 72 73 74 0a 58 2e |le. The |first.X.|
|00005af0| 49 20 65 78 70 72 0a 58 | 73 70 65 63 69 66 69 65 |I expr.X|specifie|
|00005b00| 73 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |s the nu|mber of |
|00005b10| 63 6f 6c 75 6d 6e 73 20 | 28 77 68 69 63 68 20 6d |columns |(which m|
|00005b20| 75 73 74 20 62 65 20 63 | 6f 72 72 65 63 74 29 0a |ust be c|orrect).|
|00005b30| 58 61 6e 64 20 74 68 65 | 20 73 65 63 6f 6e 64 20 |Xand the| second |
|00005b40| 73 70 65 63 69 66 69 65 | 73 20 74 68 65 20 6e 75 |specifie|s the nu|
|00005b50| 6d 62 65 72 20 6f 66 20 | 72 6f 77 73 20 28 77 68 |mber of |rows (wh|
|00005b60| 69 63 68 20 63 61 6e 20 | 62 65 20 74 6f 6f 20 6c |ich can |be too l|
|00005b70| 61 72 67 65 20 5c 2d 0a | 58 74 68 65 20 74 61 62 |arge \-.|Xthe tab|
|00005b80| 6c 65 20 69 73 20 73 69 | 6d 70 6c 79 20 74 72 75 |le is si|mply tru|
|00005b90| 6e 63 61 74 65 64 20 61 | 6c 74 68 6f 75 67 68 20 |ncated a|lthough |
|00005ba0| 65 6e 6f 75 67 68 20 6d | 65 6d 6f 72 79 20 69 73 |enough m|emory is|
|00005bb0| 20 61 6c 6c 6f 63 61 74 | 65 64 20 66 6f 72 0a 58 | allocat|ed for.X|
|00005bc0| 74 68 65 20 66 75 6c 6c | 20 74 61 62 6c 65 2e 0a |the full| table..|
|00005bd0| 58 2e 50 50 0a 58 54 68 | 65 20 61 62 69 6c 69 74 |X.PP.XTh|e abilit|
|00005be0| 79 20 74 6f 20 63 72 65 | 61 74 65 20 73 74 72 69 |y to cre|ate stri|
|00005bf0| 6e 67 73 20 66 72 6f 6d | 20 63 6f 6e 63 61 74 65 |ngs from| concate|
|00005c00| 6e 61 74 69 6f 6e 73 20 | 6f 66 20 73 75 62 2d 73 |nations |of sub-s|
|00005c10| 74 72 69 6e 67 73 0a 58 | 69 73 20 76 65 72 79 20 |trings.X|is very |
|00005c20| 75 73 65 66 75 6c 20 77 | 68 65 6e 20 73 70 65 63 |useful w|hen spec|
|00005c30| 69 66 79 69 6e 67 20 61 | 20 66 69 6c 65 6e 61 6d |ifying a| filenam|
|00005c40| 65 2e 20 49 6e 20 70 61 | 72 74 69 63 75 6c 61 72 |e. In pa|rticular|
|00005c50| 2c 20 74 68 65 0a 58 61 | 62 69 6c 69 74 79 20 74 |, the.Xa|bility t|
|00005c60| 6f 20 65 78 74 72 61 63 | 74 20 70 61 72 61 6d 65 |o extrac|t parame|
|00005c70| 74 65 72 73 20 74 6f 20 | 74 68 65 20 63 6f 6d 6d |ters to |the comm|
|00005c80| 61 6e 64 20 61 6c 6c 6f | 77 73 20 74 68 65 20 73 |and allo|ws the s|
|00005c90| 61 6d 65 0a 58 70 6c 6f | 74 20 70 72 6f 67 72 61 |ame.Xplo|t progra|
|00005ca0| 6d 20 74 6f 20 62 65 20 | 75 73 65 64 20 77 69 74 |m to be |used wit|
|00005cb0| 68 20 73 65 76 65 72 61 | 6c 20 64 61 74 61 20 66 |h severa|l data f|
|00005cc0| 69 6c 65 73 2e 0a 58 2e | 53 59 0a 58 6c 6f 61 64 |iles..X.|SY.Xload|
|00005cd0| 20 3c 73 74 72 69 6e 67 | 3e 0a 58 2e 45 53 0a 58 | <string|>.X.ES.X|
|00005ce0| 64 61 74 61 20 3d 20 6c | 6f 61 64 20 22 64 61 74 |data = l|oad "dat|
|00005cf0| 61 2e 66 69 6c 65 22 0a | 58 2e 45 45 0a 58 2e 50 |a.file".|X.EE.X.P|
|00005d00| 50 0a 58 2e 49 20 6c 6f | 61 64 0a 58 69 73 20 76 |P.X.I lo|ad.Xis v|
|00005d10| 65 72 79 20 73 69 6d 69 | 6c 61 72 20 74 6f 0a 58 |ery simi|lar to.X|
|00005d20| 2e 49 20 72 65 61 64 0a | 58 65 78 63 65 70 74 20 |.I read.|Xexcept |
|00005d30| 74 68 61 74 20 69 74 20 | 6c 6f 61 64 73 20 61 20 |that it |loads a |
|00005d40| 62 69 6e 61 72 79 20 66 | 69 6c 65 20 73 61 76 65 |binary f|ile save|
|00005d50| 64 20 77 69 74 68 20 74 | 68 65 0a 58 2e 49 20 73 |d with t|he.X.I s|
|00005d60| 61 76 65 0a 58 63 6f 6d | 6d 61 6e 64 2e 20 54 68 |ave.Xcom|mand. Th|
|00005d70| 65 20 62 69 6e 61 72 79 | 20 66 69 6c 65 20 66 6f |e binary| file fo|
|00005d80| 72 6d 61 74 20 69 73 20 | 64 65 73 63 72 69 62 65 |rmat is |describe|
|00005d90| 64 20 75 6e 64 65 72 20 | 74 68 65 0a 58 2e 49 20 |d under |the.X.I |
|00005da0| 73 61 76 65 0a 58 63 6f | 6d 6d 61 6e 64 2e 0a 58 |save.Xco|mmand..X|
|00005db0| 2e 53 59 0a 58 7b 20 7b | 20 3c 65 78 70 72 3e 20 |.SY.X{ {| <expr> |
|00005dc0| 2c 20 3c 65 78 70 72 3e | 20 2c 20 2e 2e 2e 20 7d |, <expr>| , ... }|
|00005dd0| 20 7b 20 3c 65 78 70 72 | 3e 20 2c 20 3c 65 78 70 | { <expr|> , <exp|
|00005de0| 72 3e 20 2c 20 2e 2e 2e | 20 7d 20 2e 2e 2e 20 7d |r> , ...| } ... }|
|00005df0| 0a 58 2e 45 53 0a 58 63 | 6f 6e 73 74 5f 74 61 62 |.X.ES.Xc|onst_tab|
|00005e00| 6c 65 20 3d 20 7b 20 7b | 30 2c 30 7d 20 7b 31 2c |le = { {|0,0} {1,|
|00005e10| 32 7d 20 7b 33 2c 31 30 | 7d 20 7b 34 2c 32 30 7d |2} {3,10|} {4,20}|
|00005e20| 20 7d 20 23 20 32 20 63 | 6f 6c 73 2c 20 34 20 72 | } # 2 c|ols, 4 r|
|00005e30| 6f 77 73 0a 58 63 61 6c | 63 5f 74 61 62 6c 65 20 |ows.Xcal|c_table |
|00005e40| 3d 20 7b 20 7b 30 2c 6c | 6f 67 28 30 29 7d 20 7b |= { {0,l|og(0)} {|
|00005e50| 31 30 2c 6c 6f 67 28 31 | 30 29 7d 20 7b 31 30 30 |10,log(1|0)} {100|
|00005e60| 2c 6c 6f 67 28 31 30 30 | 29 7d 20 7d 0a 58 67 72 |,log(100|)} }.Xgr|
|00005e70| 61 70 68 20 7b 7b 31 30 | 2c 32 30 7d 7d 20 6c 61 |aph {{10|,20}} la|
|00005e80| 62 65 6c 20 22 6c 61 62 | 65 6c 20 61 74 20 31 30 |bel "lab|el at 10|
|00005e90| 2c 32 30 20 6f 6e 20 67 | 72 61 70 68 22 0a 58 2e |,20 on g|raph".X.|
|00005ea0| 45 45 0a 58 2e 50 50 0a | 58 42 72 61 63 65 73 20 |EE.X.PP.|XBraces |
|00005eb0| 61 6c 6c 6f 77 20 61 20 | 74 61 62 6c 65 20 6f 66 |allow a |table of|
|00005ec0| 20 65 78 70 72 65 73 73 | 69 6f 6e 73 20 74 6f 20 | express|ions to |
|00005ed0| 62 65 20 73 70 65 63 69 | 66 69 65 64 2e 0a 58 4f |be speci|fied..XO|
|00005ee0| 6e 65 20 73 65 74 20 6f | 66 20 62 72 61 63 65 73 |ne set o|f braces|
|00005ef0| 20 73 75 72 72 6f 75 6e | 64 0a 58 74 68 65 20 77 | surroun|d.Xthe w|
|00005f00| 68 6f 6c 65 20 74 61 62 | 6c 65 2c 20 65 61 63 68 |hole tab|le, each|
|00005f10| 20 72 6f 77 20 69 6e 20 | 74 68 65 20 74 61 62 6c | row in |the tabl|
|00005f20| 65 20 62 65 69 6e 67 20 | 73 70 65 63 69 66 69 65 |e being |specifie|
|00005f30| 64 20 62 79 20 61 20 63 | 6f 6d 6d 61 0a 58 73 65 |d by a c|omma.Xse|
|00005f40| 70 61 72 61 74 65 64 20 | 6c 69 73 74 20 6f 66 20 |parated |list of |
|00005f50| 65 78 70 72 65 73 73 69 | 6f 6e 73 20 73 75 72 72 |expressi|ons surr|
|00005f60| 6f 75 6e 64 65 64 20 69 | 6e 20 6f 6e 65 20 73 65 |ounded i|n one se|
|00005f70| 74 20 6f 66 20 62 72 61 | 63 65 73 20 70 65 72 20 |t of bra|ces per |
|00005f80| 72 6f 77 2e 0a 58 2e 53 | 59 0a 58 67 65 6e 65 72 |row..X.S|Y.Xgener|
|00005f90| 61 74 65 20 66 72 6f 6d | 20 3c 65 78 70 72 3e 20 |ate from| <expr> |
|00005fa0| 74 6f 20 3c 65 78 70 72 | 3e 20 3c 69 6e 74 65 72 |to <expr|> <inter|
|00005fb0| 76 61 6c 3e 0a 58 3c 69 | 6e 74 65 72 76 61 6c 3e |val>.X<i|nterval>|
|00005fc0| 20 3d 20 77 69 74 68 20 | 3c 65 78 70 72 3e 20 69 | = with |<expr> i|
|00005fd0| 6e 74 65 72 76 61 6c 73 | 0a 58 3c 69 6e 74 65 72 |ntervals|.X<inter|
|00005fe0| 76 61 6c 3e 20 3d 20 69 | 6e 74 65 72 76 61 6c 20 |val> = i|nterval |
|00005ff0| 73 69 7a 65 20 3c 65 78 | 70 72 3e 0a 58 2e 45 53 |size <ex|pr>.X.ES|
|00006000| 0a 58 74 61 62 5f 73 69 | 7a 65 20 3d 20 31 30 0a |.Xtab_si|ze = 10.|
|00006010| 58 6c 6f 67 5f 74 61 62 | 6c 65 20 3d 20 67 65 6e |Xlog_tab|le = gen|
|00006020| 65 72 61 74 65 20 66 72 | 6f 6d 20 31 20 74 6f 20 |erate fr|om 1 to |
|00006030| 74 61 62 5f 73 69 7a 65 | 20 69 6e 74 65 72 76 61 |tab_size| interva|
|00006040| 6c 20 73 69 7a 65 20 31 | 20 5b 20 24 31 20 2c 20 |l size 1| [ $1 , |
|00006050| 6c 6f 67 28 24 31 29 20 | 5d 0a 58 73 69 6e 67 6c |log($1) |].Xsingl|
|00006060| 65 5f 63 6f 6c 5f 74 61 | 62 6c 65 20 3d 20 67 65 |e_col_ta|ble = ge|
|00006070| 6e 65 72 61 74 65 20 66 | 72 6f 6d 20 31 20 74 6f |nerate f|rom 1 to|
|00006080| 20 31 30 30 20 77 69 74 | 68 20 31 31 20 69 6e 74 | 100 wit|h 11 int|
|00006090| 65 72 76 61 6c 73 0a 58 | 2e 45 45 0a 58 2e 50 50 |ervals.X|.EE.X.PP|
|000060a0| 0a 58 54 68 65 0a 58 2e | 49 20 67 65 6e 65 72 61 |.XThe.X.|I genera|
|000060b0| 74 65 0a 58 63 6f 6d 6d | 61 6e 64 20 67 65 6e 65 |te.Xcomm|and gene|
|000060c0| 72 61 74 65 73 20 61 20 | 73 69 6e 67 6c 65 20 63 |rates a |single c|
|000060d0| 6f 6c 75 6d 6e 20 74 61 | 62 6c 65 20 6f 66 20 76 |olumn ta|ble of v|
|000060e0| 61 6c 75 65 73 20 69 6e | 20 74 68 65 20 73 70 65 |alues in| the spe|
|000060f0| 63 69 66 69 65 64 20 66 | 72 6f 6d 5c 2d 74 6f 0a |cified f|rom\-to.|
|00006100| 58 72 61 6e 67 65 20 75 | 73 69 6e 67 20 74 68 65 |Xrange u|sing the|
|00006110| 20 73 70 65 63 69 66 69 | 65 64 20 69 6e 74 65 72 | specifi|ed inter|
|00006120| 76 61 6c 20 64 65 74 61 | 69 6c 73 2e 0a 58 2e 53 |val deta|ils..X.S|
|00006130| 59 0a 58 3c 74 61 62 6c | 65 3e 20 61 70 70 65 6e |Y.X<tabl|e> appen|
|00006140| 64 20 3c 74 61 62 6c 65 | 3e 0a 58 2e 45 53 0a 58 |d <table|>.X.ES.X|
|00006150| 74 6f 74 61 6c 5f 64 61 | 74 20 3d 20 64 61 74 31 |total_da|t = dat1|
|00006160| 20 61 70 70 65 6e 64 20 | 64 61 74 32 0a 58 2e 45 | append |dat2.X.E|
|00006170| 45 0a 58 2e 50 50 0a 58 | 54 68 65 0a 58 2e 49 20 |E.X.PP.X|The.X.I |
|00006180| 61 70 70 65 6e 64 0a 58 | 63 6f 6d 6d 61 6e 64 20 |append.X|command |
|00006190| 61 70 70 65 6e 64 73 20 | 74 68 65 20 73 65 63 6f |appends |the seco|
|000061a0| 6e 64 0a 58 2e 49 20 74 | 61 62 6c 65 0a 58 74 6f |nd.X.I t|able.Xto|
|000061b0| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 74 68 65 20 | the end| of the |
|000061c0| 66 69 72 73 74 0a 58 2e | 49 20 74 61 62 6c 65 2e |first.X.|I table.|
|000061d0| 0a 58 42 6f 74 68 20 74 | 61 62 6c 65 73 20 6d 75 |.XBoth t|ables mu|
|000061e0| 73 74 20 68 61 76 65 20 | 74 68 65 20 73 61 6d 65 |st have |the same|
|000061f0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 63 6f 6c 75 6d | number |of colum|
|00006200| 6e 73 2e 0a 58 2e 53 59 | 0a 58 3c 74 61 62 6c 65 |ns..X.SY|.X<table|
|00006210| 3e 20 61 64 6a 61 63 65 | 6e 74 20 3c 74 61 62 6c |> adjace|nt <tabl|
|00006220| 65 3e 0a 58 2e 45 53 0a | 58 77 69 64 65 5f 74 61 |e>.X.ES.|Xwide_ta|
|00006230| 6c 65 20 3d 20 64 61 74 | 31 20 61 64 6a 61 63 65 |le = dat|1 adjace|
|00006240| 6e 74 20 64 61 74 32 0a | 58 2e 45 45 0a 58 2e 50 |nt dat2.|X.EE.X.P|
|00006250| 50 0a 58 54 68 65 0a 58 | 2e 49 20 61 64 6a 61 63 |P.XThe.X|.I adjac|
|00006260| 65 6e 74 0a 58 63 6f 6d | 6d 61 6e 64 20 69 73 20 |ent.Xcom|mand is |
|00006270| 73 69 6d 69 6c 61 72 20 | 74 6f 20 74 68 65 0a 58 |similar |to the.X|
|00006280| 2e 49 20 61 70 70 65 6e | 64 0a 58 63 6f 6d 6d 61 |.I appen|d.Xcomma|
|00006290| 6e 64 2c 20 62 75 74 20 | 69 74 20 6a 6f 69 6e 73 |nd, but |it joins|
|000062a0| 20 74 61 62 6c 65 73 20 | 68 6f 72 69 7a 6f 6e 74 | tables |horizont|
|000062b0| 61 6c 6c 79 20 69 6e 73 | 74 65 61 64 20 6f 66 20 |ally ins|tead of |
|000062c0| 76 65 72 74 69 63 61 6c | 6c 79 2e 0a 58 42 6f 74 |vertical|ly..XBot|
|000062d0| 68 20 74 61 62 6c 65 73 | 20 63 61 6e 20 68 61 76 |h tables| can hav|
|000062e0| 65 20 64 69 66 66 65 72 | 65 6e 74 20 6e 75 6d 62 |e differ|ent numb|
|000062f0| 65 72 73 20 6f 66 20 63 | 6f 6c 75 6d 6e 73 2c 20 |ers of c|olumns, |
|00006300| 62 75 74 20 6d 75 73 74 | 20 68 61 76 65 20 74 68 |but must| have th|
|00006310| 65 0a 58 73 61 6d 65 20 | 6e 75 6d 62 65 72 20 6f |e.Xsame |number o|
|00006320| 66 20 72 6f 77 73 2e 0a | 58 2e 53 59 0a 58 3c 74 |f rows..|X.SY.X<t|
|00006330| 61 62 6c 65 3e 20 5b 20 | 3c 65 78 70 72 3e 20 2c |able> [ |<expr> ,|
|00006340| 20 3c 65 78 70 72 3e 20 | 2c 20 2e 2e 2e 20 5d 0a | <expr> |, ... ].|
|00006350| 58 2e 45 53 0a 58 67 72 | 61 70 68 20 61 6c 6c 5f |X.ES.Xgr|aph all_|
|00006360| 64 61 74 61 20 5b 20 24 | 31 20 2c 20 24 33 20 5d |data [ $|1 , $3 ]|
|00006370| 20 23 20 70 6c 6f 74 20 | 63 6f 6c 75 6d 6e 73 20 | # plot |columns |
|00006380| 31 20 76 73 20 33 0a 58 | 67 72 61 70 68 20 61 6c |1 vs 3.X|graph al|
|00006390| 6c 5f 64 61 74 61 20 5b | 20 24 30 20 2c 20 28 24 |l_data [| $0 , ($|
|000063a0| 31 2b 24 33 29 2f 32 20 | 5d 20 23 20 70 6c 6f 74 |1+$3)/2 |] # plot|
|000063b0| 20 74 68 65 20 61 76 65 | 72 61 67 65 20 6f 66 20 | the ave|rage of |
|000063c0| 63 6f 6c 75 6d 6e 20 31 | 20 61 6e 64 20 33 0a 58 |column 1| and 3.X|
|000063d0| 2e 45 45 0a 58 2e 50 50 | 0a 58 54 68 65 20 70 72 |.EE.X.PP|.XThe pr|
|000063e0| 6f 6a 65 63 74 69 6f 6e | 20 63 6f 6d 6d 61 6e 64 |ojection| command|
|000063f0| 20 28 73 71 75 61 72 65 | 20 62 72 61 63 6b 65 74 | (square| bracket|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.