home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / RLaB 1.18c / manual / maxi.tex < prev    next >
LaTeX Document  |  1994-04-27  |  1.2 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: maxi.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 6d 61 78 69 20 2d 2d |\section|{maxi --|
|00000010| 2d 20 49 6e 64 65 78 20 | 6f 66 20 6d 61 78 69 6d |- Index |of maxim|
|00000020| 75 6d 20 76 61 6c 75 65 | 7d 0d 5c 6c 61 62 65 6c |um value|}.\label|
|00000030| 7b 66 6e 3a 6d 61 78 69 | 7d 0d 5c 69 6e 64 65 78 |{fn:maxi|}.\index|
|00000040| 7b 6d 61 78 69 28 29 7d | 0d 5c 69 6e 64 65 78 7b |{maxi()}|.\index{|
|00000050| 69 6e 64 65 78 20 6f 66 | 20 6d 61 78 69 6d 75 6d |index of| maximum|
|00000060| 20 76 61 6c 75 65 7d 0d | 5c 62 65 67 69 6e 7b 72 | value}.|\begin{r|
|00000070| 61 69 6c 7d 0d 4d 61 78 | 49 20 3a 20 27 6d 61 78 |ail}.Max|I : 'max|
|00000080| 69 27 20 27 28 27 20 4d | 61 74 72 69 78 20 27 29 |i' '(' M|atrix ')|
|00000090| 27 20 3b 0d 5c 65 6e 64 | 7b 72 61 69 6c 7d 0d 0d |' ;.\end|{rail}..|
|000000a0| 5c 76 65 72 62 2b 6d 61 | 78 69 2b 20 72 65 74 75 |\verb+ma|xi+ retu|
|000000b0| 72 6e 73 20 74 68 65 20 | 69 6e 64 65 78 20 6f 66 |rns the |index of|
|000000c0| 20 74 68 65 20 6d 61 78 | 69 6d 75 6d 20 76 61 6c | the max|imum val|
|000000d0| 75 65 20 63 6f 6e 74 61 | 69 6e 65 64 20 69 6e 0d |ue conta|ined in.|
|000000e0| 6d 61 74 72 69 78 2e 20 | 49 66 20 74 68 65 20 61 |matrix. |If the a|
|000000f0| 72 67 75 6d 65 6e 74 20 | 69 73 20 61 20 72 6f 77 |rgument |is a row|
|00000100| 20 6f 72 20 63 6f 6c 75 | 6d 6e 20 76 65 63 74 6f | or colu|mn vecto|
|00000110| 72 2c 20 74 68 65 6e 20 | 74 68 65 20 69 6e 64 65 |r, then |the inde|
|00000120| 78 0d 6f 66 20 74 68 65 | 20 6c 61 72 67 65 73 74 |x.of the| largest|
|00000130| 20 76 61 6c 75 65 20 69 | 73 20 72 65 74 75 72 6e | value i|s return|
|00000140| 65 64 2e 20 49 66 20 74 | 68 65 20 61 72 67 75 6d |ed. If t|he argum|
|00000150| 65 6e 74 20 69 73 20 6e | 6f 74 20 61 20 76 65 63 |ent is n|ot a vec|
|00000160| 74 6f 72 2c 0d 74 68 65 | 6e 20 61 20 72 6f 77 20 |tor,.the|n a row |
|00000170| 76 65 63 74 6f 72 20 6f | 66 20 74 68 65 20 63 6f |vector o|f the co|
|00000180| 6c 75 6d 6e 20 69 6e 64 | 69 63 65 73 20 6f 66 20 |lumn ind|ices of |
|00000190| 74 68 65 20 6c 61 72 67 | 65 73 74 20 63 6f 6c 75 |the larg|est colu|
|000001a0| 6d 6e 20 76 61 6c 75 65 | 73 0d 6f 66 20 69 73 20 |mn value|s.of is |
|000001b0| 72 65 74 75 72 6e 65 64 | 2e 20 49 66 20 74 68 65 |returned|. If the|
|000001c0| 20 61 72 67 75 6d 65 6e | 74 20 69 73 20 63 6f 6d | argumen|t is com|
|000001d0| 70 6c 65 78 2c 20 6d 61 | 67 6e 69 74 75 64 65 73 |plex, ma|gnitudes|
|000001e0| 20 61 72 65 20 63 6f 6d | 70 61 72 65 64 2e 0d 0d | are com|pared...|
|000001f0| 0d 5c 70 61 72 61 67 72 | 61 70 68 7b 45 78 61 6d |.\paragr|aph{Exam|
|00000200| 70 6c 65 7d 0d 5c 69 6e | 64 65 78 7b 65 78 61 6d |ple}.\in|dex{exam|
|00000210| 70 6c 65 20 6f 66 20 6d | 61 78 69 28 29 7d 0d 5c |ple of m|axi()}.\|
|00000220| 69 6e 64 65 78 7b 6d 61 | 78 69 28 29 21 65 78 61 |index{ma|xi()!exa|
|00000230| 6d 70 6c 65 7d 0d 5c 62 | 65 67 69 6e 7b 76 65 72 |mple}.\b|egin{ver|
|00000240| 62 61 74 69 6d 7d 0d 3e | 20 61 20 3d 20 72 61 6e |batim}.>| a = ran|
|00000250| 64 28 33 2c 34 29 0d 20 | 61 20 3d 0d 20 20 20 20 |d(3,4). |a =. |
|00000260| 20 20 20 20 31 20 20 20 | 20 20 20 30 2e 33 33 33 | 1 | 0.333|
|00000270| 20 20 20 20 20 20 30 2e | 36 36 35 20 20 20 20 20 | 0.|665 |
|00000280| 20 30 2e 31 36 37 0d 20 | 20 20 20 30 2e 39 37 35 | 0.167. | 0.975|
|00000290| 20 20 20 20 20 30 2e 30 | 33 36 39 20 20 20 20 20 | 0.0|369 |
|000002a0| 30 2e 30 38 34 37 20 20 | 20 20 20 20 30 2e 36 35 |0.0847 | 0.65|
|000002b0| 35 0d 20 20 20 20 30 2e | 36 34 37 20 20 20 20 20 |5. 0.|647 |
|000002c0| 20 30 2e 31 36 32 20 20 | 20 20 20 20 30 2e 32 30 | 0.162 | 0.20|
|000002d0| 34 20 20 20 20 20 20 30 | 2e 31 32 39 0d 3e 20 6d |4 0|.129.> m|
|000002e0| 61 78 69 28 61 29 0d 20 | 20 20 20 20 20 20 20 31 |axi(a). | 1|
|000002f0| 20 20 20 20 20 20 20 20 | 20 20 31 20 20 20 20 20 | | 1 |
|00000300| 20 20 20 20 20 31 20 20 | 20 20 20 20 20 20 20 20 | 1 | |
|00000310| 32 0d 3e 20 61 20 3d 20 | 72 61 6e 64 28 33 2c 35 |2.> a = |rand(3,5|
|00000320| 29 0d 20 61 20 3d 0d 20 | 20 20 20 20 30 2e 39 31 |). a =. | 0.91|
|00000330| 20 20 20 20 20 20 30 2e | 32 36 35 20 20 20 20 20 | 0.|265 |
|00000340| 30 2e 30 39 31 38 20 20 | 20 20 20 20 30 2e 39 31 |0.0918 | 0.91|
|00000350| 35 20 20 20 20 20 20 30 | 2e 39 32 34 0d 20 20 20 |5 0|.924. |
|00000360| 20 30 2e 31 31 32 20 20 | 20 20 20 20 20 20 30 2e | 0.112 | 0.|
|00000370| 37 20 20 20 20 20 20 30 | 2e 39 30 32 20 20 20 20 |7 0|.902 |
|00000380| 20 20 30 2e 34 34 31 20 | 20 20 20 20 30 2e 30 38 | 0.441 | 0.08|
|00000390| 38 32 0d 20 20 20 20 30 | 2e 32 39 39 20 20 20 20 |82. 0|.299 |
|000003a0| 20 20 20 30 2e 39 35 20 | 20 20 20 20 20 20 30 2e | 0.95 | 0.|
|000003b0| 39 36 20 20 20 20 20 30 | 2e 30 37 33 35 20 20 20 |96 0|.0735 |
|000003c0| 20 20 20 30 2e 39 30 38 | 0d 3e 20 6d 61 78 69 28 | 0.908|.> maxi(|
|000003d0| 61 29 0d 20 20 20 20 20 | 20 20 20 31 20 20 20 20 |a). | 1 |
|000003e0| 20 20 20 20 20 20 33 20 | 20 20 20 20 20 20 20 20 | 3 | |
|000003f0| 20 33 20 20 20 20 20 20 | 20 20 20 20 31 20 20 20 | 3 | 1 |
|00000400| 20 20 20 20 20 20 20 31 | 0d 3e 20 6d 61 78 69 28 | 1|.> maxi(|
|00000410| 61 27 29 0d 20 20 20 20 | 20 20 20 20 35 20 20 20 |a'). | 5 |
|00000420| 20 20 20 20 20 20 20 33 | 20 20 20 20 20 20 20 20 | 3| |
|00000430| 20 20 33 0d 5c 65 6e 64 | 7b 76 65 72 62 61 74 69 | 3.\end|{verbati|
|00000440| 6d 7d 0d 0d 53 65 65 20 | 61 6c 73 6f 3a 20 50 61 |m}..See |also: Pa|
|00000450| 67 65 20 5c 70 61 67 65 | 72 65 66 7b 66 6e 3a 6d |ge \page|ref{fn:m|
|00000460| 61 78 7d 20 5c 76 65 72 | 62 2b 6d 61 78 28 29 2b |ax} \ver|b+max()+|
|00000470| 2c 0d 50 61 67 65 20 5c | 70 61 67 65 72 65 66 7b |,.Page \|pageref{|
|00000480| 66 6e 3a 6d 69 6e 7d 20 | 5c 76 65 72 62 2b 6d 69 |fn:min} |\verb+mi|
|00000490| 6e 28 29 2b 2c 0d 50 61 | 67 65 20 5c 70 61 67 65 |n()+,.Pa|ge \page|
|000004a0| 72 65 66 7b 66 6e 3a 6d | 69 6e 69 7d 20 5c 76 65 |ref{fn:m|ini} \ve|
|000004b0| 72 62 2b 6d 69 6e 69 28 | 29 2b 2e 20 0d 0d 5c 6e |rb+mini(|)+. ..\n|
|000004c0| 65 77 70 61 67 65 0d 0d | 0d 0d 0d 0d 0d |ewpage..|..... |
+--------+-------------------------+-------------------------+--------+--------+