home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / RLaB 1.18c / manual / format.tex < prev    next >
LaTeX Document  |  1994-05-01  |  1.6 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: format.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[CR] default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 66 6f 72 6d 61 74 20 |\section|{format |
|00000010| 2d 2d 2d 20 43 68 61 6e | 67 65 20 6f 75 74 70 75 |--- Chan|ge outpu|
|00000020| 74 20 66 6f 72 6d 61 74 | 7d 0d 5c 6c 61 62 65 6c |t format|}.\label|
|00000030| 7b 66 6e 3a 66 6f 72 6d | 61 74 7d 0d 5c 69 6e 64 |{fn:form|at}.\ind|
|00000040| 65 78 7b 66 6f 72 6d 61 | 74 28 29 7d 0d 5c 69 6e |ex{forma|t()}.\in|
|00000050| 64 65 78 7b 63 68 61 6e | 67 69 6e 67 20 6f 75 74 |dex{chan|ging out|
|00000060| 70 75 74 20 66 6f 72 6d | 61 74 7d 0d 5c 69 6e 64 |put form|at}.\ind|
|00000070| 65 78 7b 6e 75 6d 65 72 | 69 63 20 66 6f 72 6d 61 |ex{numer|ic forma|
|00000080| 74 74 69 6e 67 7d 0d 5c | 69 6e 64 65 78 7b 6f 75 |tting}.\|index{ou|
|00000090| 74 70 75 74 20 66 6f 72 | 6d 61 74 7d 0d 5c 62 65 |tput for|mat}.\be|
|000000a0| 67 69 6e 7b 72 61 69 6c | 7d 0d 46 6f 72 6d 61 74 |gin{rail|}.Format|
|000000b0| 20 3a 20 27 66 6f 72 6d | 61 74 27 20 27 28 27 20 | : 'form|at' '(' |
|000000c0| 28 20 28 29 20 7c 20 28 | 20 53 63 61 6c 61 72 20 |( () | (| Scalar |
|000000d0| 29 20 7c 20 28 20 53 63 | 61 6c 61 72 20 27 2c 27 |) | ( Sc|alar ','|
|000000e0| 20 53 63 61 6c 61 72 20 | 29 20 29 20 27 29 27 20 | Scalar |) ) ')' |
|000000f0| 3b 0d 5c 65 6e 64 7b 72 | 61 69 6c 7d 0d 0d 5c 76 |;.\end{r|ail}..\v|
|00000100| 65 72 62 2b 66 6f 72 6d | 61 74 2b 20 63 68 61 6e |erb+form|at+ chan|
|00000110| 67 65 73 20 74 68 65 20 | 77 61 79 20 69 6e 20 77 |ges the |way in w|
|00000120| 68 69 63 68 20 6e 75 6d | 62 65 72 73 20 61 72 65 |hich num|bers are|
|00000130| 20 64 69 73 70 6c 61 79 | 65 64 2e 20 20 49 66 20 | display|ed. If |
|00000140| 69 74 0d 69 73 20 69 6e | 76 6f 6b 65 64 20 77 69 |it.is in|voked wi|
|00000150| 74 68 20 6e 6f 20 61 72 | 67 75 6d 65 6e 74 73 2c |th no ar|guments,|
|00000160| 20 74 68 65 6e 20 6f 75 | 74 70 75 74 20 66 6f 72 | then ou|tput for|
|00000170| 6d 61 74 20 69 73 20 72 | 65 73 65 74 20 74 6f 20 |mat is r|eset to |
|00000180| 74 68 65 0d 64 65 66 61 | 75 6c 74 20 76 61 6c 75 |the.defa|ult valu|
|00000190| 65 73 2e 20 20 49 66 20 | 79 6f 75 20 73 75 70 70 |es. If |you supp|
|000001a0| 6c 79 20 61 20 73 69 6e | 67 6c 65 20 61 72 67 75 |ly a sin|gle argu|
|000001b0| 6d 65 6e 74 2c 20 74 68 | 61 74 20 69 73 20 74 68 |ment, th|at is th|
|000001c0| 65 20 6e 65 77 0d 70 72 | 65 63 69 73 69 6f 6e 2c |e new.pr|ecision,|
|000001d0| 20 77 68 69 63 68 20 69 | 73 20 74 68 65 20 6e 75 | which i|s the nu|
|000001e0| 6d 62 65 72 20 6f 66 20 | 64 69 67 69 74 73 20 74 |mber of |digits t|
|000001f0| 6f 20 74 68 65 20 72 69 | 67 68 74 20 6f 66 20 74 |o the ri|ght of t|
|00000200| 68 65 20 64 65 63 69 6d | 61 6c 0d 70 6c 61 63 65 |he decim|al.place|
|00000210| 2e 20 20 49 66 20 79 6f | 75 20 73 75 70 70 6c 79 |. If yo|u supply|
|00000220| 20 74 77 6f 20 61 72 67 | 75 6d 65 6e 74 73 2c 20 | two arg|uments, |
|00000230| 74 68 65 6e 20 74 68 65 | 20 66 69 72 73 74 20 69 |then the| first i|
|00000240| 73 20 74 68 65 20 6e 65 | 77 20 77 69 64 74 68 2c |s the ne|w width,|
|00000250| 0d 61 6e 64 20 74 68 65 | 20 73 65 63 6f 6e 64 20 |.and the| second |
|00000260| 69 73 20 74 68 65 20 6e | 65 77 20 70 72 65 63 69 |is the n|ew preci|
|00000270| 73 69 6f 6e 2e 20 20 57 | 69 64 74 68 20 69 73 20 |sion. W|idth is |
|00000280| 74 68 65 20 74 6f 74 61 | 6c 20 6e 75 6d 62 65 72 |the tota|l number|
|00000290| 20 6f 66 0d 63 68 61 72 | 61 63 74 65 72 73 20 72 | of.char|acters r|
|000002a0| 65 71 75 69 72 65 73 2c | 20 69 6e 63 6c 75 64 69 |equires,| includi|
|000002b0| 6e 67 20 61 20 64 65 63 | 69 6d 61 6c 20 70 6f 69 |ng a dec|imal poi|
|000002c0| 6e 74 2e 20 20 54 68 65 | 20 64 65 66 61 75 6c 74 |nt. The| default|
|000002d0| 20 76 61 6c 75 65 20 69 | 73 0d 61 20 77 69 64 74 | value i|s.a widt|
|000002e0| 68 20 69 73 20 6e 69 6e | 65 2c 20 61 6e 64 20 61 |h is nin|e, and a|
|000002f0| 20 70 72 65 63 69 73 69 | 6f 6e 20 6f 66 20 74 68 | precisi|on of th|
|00000300| 72 65 65 2e 0d 0d 5c 70 | 61 72 61 67 72 61 70 68 |ree...\p|aragraph|
|00000310| 7b 45 78 61 6d 70 6c 65 | 7d 0d 5c 69 6e 64 65 78 |{Example|}.\index|
|00000320| 7b 65 78 61 6d 70 6c 65 | 20 6f 66 20 66 6f 72 6d |{example| of form|
|00000330| 61 74 28 29 7d 0d 5c 69 | 6e 64 65 78 7b 66 6f 72 |at()}.\i|ndex{for|
|00000340| 6d 61 74 28 29 21 65 78 | 61 6d 70 6c 65 7d 0d 5c |mat()!ex|ample}.\|
|00000350| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0d |begin{ve|rbatim}.|
|00000360| 3e 20 61 20 3d 20 72 61 | 6e 64 28 32 2c 33 29 2a |> a = ra|nd(2,3)*|
|00000370| 31 30 30 2b 72 61 6e 64 | 28 32 2c 33 29 2a 31 30 |100+rand|(2,3)*10|
|00000380| 30 6a 3b 0d 3e 20 61 0d | 20 61 20 3d 0d 20 6d 61 |0j;.> a.| a =. ma|
|00000390| 74 72 69 78 20 63 6f 6c | 75 6d 6e 73 20 31 20 74 |trix col|umns 1 t|
|000003a0| 68 72 75 20 33 0d 20 20 | 20 20 20 20 20 20 20 20 |hru 3. | |
|000003b0| 20 20 33 38 2e 37 20 2b | 20 39 38 2e 38 69 20 20 | 38.7 +| 98.8i |
|000003c0| 20 20 20 20 20 20 20 20 | 20 20 36 36 2e 35 20 2b | | 66.5 +|
|000003d0| 20 35 31 2e 38 69 20 20 | 20 20 20 20 20 20 20 20 | 51.8i | |
|000003e0| 20 20 38 2e 35 39 20 2b | 20 39 38 2e 39 69 0d 20 | 8.59 +| 98.9i. |
|000003f0| 20 20 20 20 20 20 20 20 | 20 20 20 34 2e 39 32 20 | | 4.92 |
|00000400| 2b 20 32 35 2e 35 69 20 | 20 20 20 20 20 20 20 20 |+ 25.5i | |
|00000410| 20 20 20 38 2e 38 35 20 | 2b 20 32 31 2e 37 69 20 | 8.85 |+ 21.7i |
|00000420| 20 20 20 20 20 20 20 20 | 20 20 20 33 33 2e 34 20 | | 33.4 |
|00000430| 2b 20 34 39 2e 31 69 0d | 0d 3e 20 66 6f 72 6d 61 |+ 49.1i.|.> forma|
|00000440| 74 28 38 29 3b 0d 3e 20 | 61 0d 20 61 20 3d 0d 20 |t(8);.> |a. a =. |
|00000450| 6d 61 74 72 69 78 20 63 | 6f 6c 75 6d 6e 73 20 31 |matrix c|olumns 1|
|00000460| 20 74 68 72 75 20 32 0d | 20 20 20 20 20 20 33 38 | thru 2.| 38|
|00000470| 2e 37 32 33 35 36 39 20 | 2b 20 39 38 2e 37 38 37 |.723569 |+ 98.787|
|00000480| 32 37 35 69 20 20 20 20 | 20 20 36 36 2e 35 30 32 |275i | 66.502|
|00000490| 30 37 33 20 2b 20 35 31 | 2e 37 38 36 30 36 32 69 |073 + 51|.786062i|
|000004a0| 0d 20 20 20 20 20 20 34 | 2e 39 31 35 33 32 38 36 |. 4|.9153286|
|000004b0| 20 2b 20 32 35 2e 34 39 | 31 35 37 35 69 20 20 20 | + 25.49|1575i |
|000004c0| 20 20 20 38 2e 38 34 37 | 33 33 30 32 20 2b 20 32 | 8.847|3302 + 2|
|000004d0| 31 2e 37 32 38 38 39 32 | 69 0d 0d 20 6d 61 74 72 |1.728892|i.. matr|
|000004e0| 69 78 20 63 6f 6c 75 6d | 6e 73 20 33 20 74 68 72 |ix colum|ns 3 thr|
|000004f0| 75 20 33 0d 20 20 20 20 | 20 20 38 2e 35 39 30 30 |u 3. | 8.5900|
|00000500| 31 37 39 20 2b 20 39 38 | 2e 39 31 39 30 35 32 69 |179 + 98|.919052i|
|00000510| 0d 20 20 20 20 20 20 33 | 33 2e 34 34 39 34 38 39 |. 3|3.449489|
|00000520| 20 2b 20 34 39 2e 31 33 | 35 31 31 33 69 0d 3e 20 | + 49.13|5113i.> |
|00000530| 66 6f 72 6d 61 74 28 31 | 30 2c 35 29 0d 20 20 20 |format(1|0,5). |
|00000540| 20 20 20 20 20 20 31 0d | 3e 20 61 0d 20 61 20 3d | 1.|> a. a =|
|00000550| 0d 20 6d 61 74 72 69 78 | 20 63 6f 6c 75 6d 6e 73 |. matrix| columns|
|00000560| 20 31 20 74 68 72 75 20 | 32 0d 20 20 20 20 20 20 | 1 thru |2. |
|00000570| 20 20 20 20 33 38 2e 37 | 32 34 20 2b 20 39 38 2e | 38.7|24 + 98.|
|00000580| 37 38 37 69 20 20 20 20 | 20 20 20 20 20 20 36 36 |787i | 66|
|00000590| 2e 35 30 32 20 2b 20 35 | 31 2e 37 38 36 69 0d 20 |.502 + 5|1.786i. |
|000005a0| 20 20 20 20 20 20 20 20 | 20 34 2e 39 31 35 33 20 | | 4.9153 |
|000005b0| 2b 20 32 35 2e 34 39 32 | 69 20 20 20 20 20 20 20 |+ 25.492|i |
|000005c0| 20 20 20 38 2e 38 34 37 | 33 20 2b 20 32 31 2e 37 | 8.847|3 + 21.7|
|000005d0| 32 39 69 0d 0d 20 6d 61 | 74 72 69 78 20 63 6f 6c |29i.. ma|trix col|
|000005e0| 75 6d 6e 73 20 33 20 74 | 68 72 75 20 33 0d 20 20 |umns 3 t|hru 3. |
|000005f0| 20 20 20 20 20 20 20 20 | 20 20 38 2e 35 39 20 2b | | 8.59 +|
|00000600| 20 39 38 2e 39 31 39 69 | 0d 20 20 20 20 20 20 20 | 98.919i|. |
|00000610| 20 20 20 33 33 2e 34 34 | 39 20 2b 20 34 39 2e 31 | 33.44|9 + 49.1|
|00000620| 33 35 69 0d 0d 5c 65 6e | 64 7b 76 65 72 62 61 74 |35i..\en|d{verbat|
|00000630| 69 6d 7d 0d 0d 5c 6e 65 | 77 70 61 67 65 0d 0d 0d |im}..\ne|wpage...|
|00000640| 0d 0d 0d | |... | |
+--------+-------------------------+-------------------------+--------+--------+