home *** CD-ROM | disk | FTP | other *** search
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: scalars.tex
Confidence | Program | Detection | Match Type | Support
|
---|
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 |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 63 68 61 70 74 65 72 | 7b 53 63 61 6c 61 72 73 |\chapter|{Scalars|
|00000010| 7d 0d 5c 69 6e 64 65 78 | 7b 73 63 61 6c 61 72 7c |}.\index|{scalar||
|00000020| 28 7d 0d 5c 73 65 63 74 | 69 6f 6e 7b 43 72 65 61 |(}.\sect|ion{Crea|
|00000030| 74 69 6e 67 20 53 63 61 | 6c 61 72 73 7d 0d 0d 5c |ting Sca|lars}..\|
|00000040| 73 65 63 74 69 6f 6e 7b | 53 63 61 6c 61 72 20 4f |section{|Scalar O|
|00000050| 70 65 72 61 74 69 6f 6e | 73 7d 0d 0d 5c 52 4c 61 |peration|s}..\RLa|
|00000060| 42 5c 20 68 61 73 20 61 | 20 77 69 64 65 20 72 61 |B\ has a| wide ra|
|00000070| 6e 67 65 20 6f 66 20 6f | 70 65 72 61 74 6f 72 73 |nge of o|perators|
|00000080| 20 74 6f 20 61 63 74 20 | 75 70 6f 6e 20 73 63 61 | to act |upon sca|
|00000090| 6c 61 72 73 2e 20 20 54 | 68 65 20 75 6e 61 72 79 |lars. T|he unary|
|000000a0| 0d 6f 70 65 72 61 74 6f | 72 73 20 64 65 66 69 6e |.operato|rs defin|
|000000b0| 65 64 20 6f 6e 20 73 63 | 61 6c 61 72 73 20 61 72 |ed on sc|alars ar|
|000000c0| 65 3a 0d 0d 20 20 20 5c | 62 65 67 69 6e 7b 64 65 |e:.. \|begin{de|
|000000d0| 73 63 72 69 70 74 69 6f | 6e 7d 0d 20 20 20 20 20 |scriptio|n}. |
|000000e0| 20 20 20 5c 69 74 65 6d | 5b 2d 2d 5d 20 55 6e 61 | \item|[--] Una|
|000000f0| 72 79 20 6e 65 67 61 74 | 69 6f 6e 20 69 73 20 74 |ry negat|ion is t|
|00000100| 68 65 20 68 69 67 68 65 | 73 74 20 70 72 69 6f 72 |he highe|st prior|
|00000110| 69 74 79 20 6f 70 65 72 | 61 74 6f 72 2e 20 0d 20 |ity oper|ator. . |
|00000120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 49 | | I|
|00000130| 74 20 69 73 20 74 68 65 | 20 73 61 6d 65 20 61 73 |t is the| same as|
|00000140| 20 6d 75 6c 74 69 70 6c | 79 69 6e 67 20 74 68 65 | multipl|ying the|
|00000150| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 6f 6e 20 74 | express|ion on t|
|00000160| 68 65 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |he. | |
|00000170| 20 20 20 72 69 67 68 74 | 20 6f 66 20 74 68 65 20 | right| of the |
|00000180| 6f 70 65 72 61 74 6f 72 | 20 62 79 20 24 2d 31 24 |operator| by $-1$|
|00000190| 2e 0d 0d 20 20 20 20 20 | 20 20 20 5c 69 74 65 6d |... | \item|
|000001a0| 5b 2b 2b 5d 20 20 49 6e | 63 72 65 6d 65 6e 74 73 |[++] In|crements|
|000001b0| 20 74 68 65 20 6f 70 65 | 72 61 6e 64 2e 20 20 4f | the ope|rand. O|
|000001c0| 70 65 72 61 74 65 73 20 | 6f 6e 20 74 68 65 20 6f |perates |on the o|
|000001d0| 70 65 72 61 6e 64 0d 20 | 20 20 20 20 20 20 20 20 |perand. | |
|000001e0| 20 20 20 20 20 20 20 74 | 6f 20 74 68 65 20 6c 65 | t|o the le|
|000001f0| 66 74 20 6f 66 20 74 68 | 65 20 6f 70 65 72 61 74 |ft of th|e operat|
|00000200| 6f 72 2e 20 49 66 0d 20 | 20 20 20 20 20 20 20 20 |or. If. | |
|00000210| 20 20 20 20 20 20 20 74 | 68 65 20 69 6d 61 67 69 | t|he imagi|
|00000220| 6e 61 72 79 20 70 61 72 | 74 20 6f 66 20 74 68 65 |nary par|t of the|
|00000230| 20 6f 70 65 72 61 6e 64 | 20 69 73 20 7a 65 72 6f | operand| is zero|
|00000240| 2c 20 6f 6e 6c 79 20 74 | 68 65 0d 20 20 20 20 20 |, only t|he. |
|00000250| 20 20 20 20 20 20 20 20 | 20 20 20 72 65 61 6c 20 | | real |
|00000260| 70 61 72 74 20 69 73 20 | 69 6e 63 72 65 6d 65 6e |part is |incremen|
|00000270| 74 65 64 2c 20 6f 74 68 | 65 72 77 69 73 65 20 62 |ted, oth|erwise b|
|00000280| 6f 74 68 20 72 65 61 6c | 20 61 6e 64 0d 20 20 20 |oth real| and. |
|00000290| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 6d 61 | | ima|
|000002a0| 67 69 6e 61 72 79 20 70 | 61 72 74 73 20 61 72 65 |ginary p|arts are|
|000002b0| 20 69 6e 63 72 65 6d 65 | 6e 74 65 64 2e 0d 0d 20 | increme|nted... |
|000002c0| 20 20 20 20 20 20 20 5c | 69 74 65 6d 5b 2d 2d 20 | \|item[-- |
|000002d0| 2d 2d 5d 20 20 44 65 63 | 72 65 6d 65 6e 74 73 20 |--] Dec|rements |
|000002e0| 74 68 65 20 6f 70 65 72 | 61 6e 64 2e 20 20 4f 70 |the oper|and. Op|
|000002f0| 65 72 61 74 65 73 20 6f | 6e 20 74 68 65 20 6f 70 |erates o|n the op|
|00000300| 65 72 61 6e 64 0d 20 20 | 20 20 20 20 20 20 20 20 |erand. | |
|00000310| 20 20 20 20 20 20 74 6f | 20 74 68 65 20 6c 65 66 | to| the lef|
|00000320| 74 20 6f 66 20 74 68 65 | 20 6f 70 65 72 61 74 6f |t of the| operato|
|00000330| 72 2e 20 49 66 0d 20 20 | 20 20 20 20 20 20 20 20 |r. If. | |
|00000340| 20 20 20 20 20 20 74 68 | 65 20 69 6d 61 67 69 6e | th|e imagin|
|00000350| 61 72 79 20 70 61 72 74 | 20 6f 66 20 74 68 65 20 |ary part| of the |
|00000360| 6f 70 65 72 61 6e 64 20 | 69 73 20 7a 65 72 6f 2c |operand |is zero,|
|00000370| 20 6f 6e 6c 79 20 74 68 | 65 0d 20 20 20 20 20 20 | only th|e. |
|00000380| 20 20 20 20 20 20 20 20 | 20 20 72 65 61 6c 20 70 | | real p|
|00000390| 61 72 74 20 69 73 20 64 | 65 63 72 65 6d 65 6e 74 |art is d|ecrement|
|000003a0| 65 64 2c 20 6f 74 68 65 | 72 77 69 73 65 20 62 6f |ed, othe|rwise bo|
|000003b0| 74 68 20 72 65 61 6c 20 | 61 6e 64 0d 20 20 20 20 |th real |and. |
|000003c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 69 6d 61 67 | | imag|
|000003d0| 69 6e 61 72 79 20 70 61 | 72 74 73 20 61 72 65 20 |inary pa|rts are |
|000003e0| 64 65 63 72 65 6d 65 6e | 74 65 64 2e 0d 0d 20 20 |decremen|ted... |
|000003f0| 20 5c 65 6e 64 7b 64 65 | 73 63 72 69 70 74 69 6f | \end{de|scriptio|
|00000400| 6e 7d 0d 0d 4c 65 74 73 | 20 6c 6f 6f 6b 20 61 74 |n}..Lets| look at|
|00000410| 20 74 68 65 20 76 61 72 | 69 6f 75 73 20 62 69 6e | the var|ious bin|
|00000420| 61 72 79 20 6f 70 65 72 | 61 74 69 6f 6e 73 2c 20 |ary oper|ations, |
|00000430| 66 6f 72 20 5c 76 65 72 | 62 2b 41 20 62 69 6e 6f |for \ver|b+A bino|
|00000440| 70 20 42 2b 3a 0d 0d 20 | 20 20 5c 62 65 67 69 6e |p B+:.. | \begin|
|00000450| 7b 64 65 73 63 72 69 70 | 74 69 6f 6e 7d 0d 20 20 |{descrip|tion}. |
|00000460| 20 20 20 5c 69 74 65 6d | 5b 2b 5d 20 41 64 64 73 | \item|[+] Adds|
|00000470| 20 74 68 65 20 6f 70 65 | 72 61 6e 64 73 2e 0d 0d | the ope|rands...|
|00000480| 20 20 20 20 20 5c 69 74 | 65 6d 5b 2d 2d 5d 20 53 | \it|em[--] S|
|00000490| 75 62 74 72 61 63 74 73 | 20 74 68 65 20 73 65 63 |ubtracts| the sec|
|000004a0| 6f 6e 64 20 6f 70 65 72 | 61 6e 64 20 66 72 6f 6d |ond oper|and from|
|000004b0| 20 74 68 65 20 66 69 72 | 73 74 20 6f 70 65 72 61 | the fir|st opera|
|000004c0| 6e 64 2e 0d 0d 20 20 20 | 20 20 5c 69 74 65 6d 5b |nd... | \item[|
|000004d0| 2a 5d 20 4d 75 6c 74 69 | 70 6c 69 65 73 20 74 68 |*] Multi|plies th|
|000004e0| 65 20 6f 70 65 72 61 6e | 64 73 20 74 6f 67 65 74 |e operan|ds toget|
|000004f0| 68 65 72 2e 20 0d 0d 20 | 20 20 20 20 5c 69 74 65 |her. .. | \ite|
|00000500| 6d 5b 2f 5d 20 44 69 76 | 69 64 65 73 20 74 68 65 |m[/] Div|ides the|
|00000510| 20 66 69 72 73 74 20 6f | 70 65 72 61 6e 64 20 62 | first o|perand b|
|00000520| 79 20 74 68 65 20 73 65 | 63 6f 6e 64 20 6f 70 65 |y the se|cond ope|
|00000530| 72 61 6e 64 2e 0d 0d 20 | 20 20 20 20 5c 69 74 65 |rand... | \ite|
|00000540| 6d 5b 24 5c 73 65 74 6d | 69 6e 75 73 24 5d 20 44 |m[$\setm|inus$] D|
|00000550| 69 76 69 64 65 73 20 74 | 68 65 20 66 69 72 73 74 |ivides t|he first|
|00000560| 20 6f 70 65 72 61 6e 64 | 20 62 79 20 74 68 65 20 | operand| by the |
|00000570| 73 65 63 6f 6e 64 20 6f | 70 65 72 61 6e 64 2e 20 |second o|perand. |
|00000580| 54 68 69 73 0d 69 73 20 | 74 68 65 20 73 61 6d 65 |This.is |the same|
|00000590| 20 61 73 20 74 68 65 20 | 72 69 67 68 74 20 64 69 | as the |right di|
|000005a0| 76 69 73 69 6f 6e 20 6f | 70 65 72 61 74 6f 72 20 |vision o|perator |
|000005b0| 6f 6e 20 73 63 61 6c 61 | 72 73 20 2d 2d 2d 20 69 |on scala|rs --- i|
|000005c0| 74 20 64 69 66 66 65 72 | 73 20 6f 6e 6c 79 0d 6f |t differ|s only.o|
|000005d0| 6e 20 6d 61 74 72 69 63 | 65 73 2e 0d 0d 20 20 20 |n matric|es... |
|000005e0| 20 20 5c 69 74 65 6d 5b | 2e 2f 5d 20 44 69 76 69 | \item[|./] Divi|
|000005f0| 64 65 73 20 74 68 65 20 | 66 69 72 73 74 20 6f 70 |des the |first op|
|00000600| 65 72 61 6e 64 20 62 79 | 20 74 68 65 20 73 65 63 |erand by| the sec|
|00000610| 6f 6e 64 20 6f 70 65 72 | 61 6e 64 2e 20 54 68 69 |ond oper|and. Thi|
|00000620| 73 0d 69 73 20 74 68 65 | 20 73 61 6d 65 20 61 73 |s.is the| same as|
|00000630| 20 74 68 65 20 72 69 67 | 68 74 20 64 69 76 69 73 | the rig|ht divis|
|00000640| 69 6f 6e 20 6f 70 65 72 | 61 74 6f 72 20 6f 6e 20 |ion oper|ator on |
|00000650| 73 63 61 6c 61 72 73 20 | 2d 2d 2d 20 69 74 20 64 |scalars |--- it d|
|00000660| 69 66 66 65 72 73 20 6f | 6e 6c 79 0d 6f 6e 20 6d |iffers o|nly.on m|
|00000670| 61 74 72 69 63 65 73 2e | 0d 0d 20 20 20 20 20 5c |atrices.|.. \|
|00000680| 69 74 65 6d 5b 24 2e 5c | 73 65 74 6d 69 6e 75 73 |item[$.\|setminus|
|00000690| 24 5d 20 44 69 76 69 64 | 65 73 20 74 68 65 20 66 |$] Divid|es the f|
|000006a0| 69 72 73 74 20 6f 70 65 | 72 61 6e 64 20 62 79 20 |irst ope|rand by |
|000006b0| 74 68 65 20 73 65 63 6f | 6e 64 20 6f 70 65 72 61 |the seco|nd opera|
|000006c0| 6e 64 2e 20 54 68 69 73 | 0d 69 73 20 74 68 65 20 |nd. This|.is the |
|000006d0| 73 61 6d 65 20 61 73 20 | 74 68 65 20 72 69 67 68 |same as |the righ|
|000006e0| 74 20 64 69 76 69 73 69 | 6f 6e 20 6f 70 65 72 61 |t divisi|on opera|
|000006f0| 74 6f 72 20 6f 6e 20 73 | 63 61 6c 61 72 73 20 2d |tor on s|calars -|
|00000700| 2d 2d 20 69 74 20 64 69 | 66 66 65 72 73 20 6f 6e |-- it di|ffers on|
|00000710| 6c 79 0d 6f 6e 20 6d 61 | 74 72 69 63 65 73 2e 0d |ly.on ma|trices..|
|00000720| 0d 20 20 20 20 20 5c 69 | 74 65 6d 5b 2e 2a 5d 20 |. \i|tem[.*] |
|00000730| 4d 75 6c 74 69 70 6c 69 | 65 73 20 74 68 65 20 6f |Multipli|es the o|
|00000740| 70 65 72 61 6e 64 73 20 | 74 6f 67 65 74 68 65 72 |perands |together|
|00000750| 2e 20 54 68 69 73 20 69 | 73 20 74 68 65 20 73 61 |. This i|s the sa|
|00000760| 6d 65 0d 61 73 20 74 68 | 65 20 5c 76 65 72 62 2b |me.as th|e \verb+|
|00000770| 2a 2b 20 6f 70 65 72 61 | 74 6f 72 20 6f 6e 20 73 |*+ opera|tor on s|
|00000780| 63 61 6c 61 72 73 20 2d | 2d 2d 20 69 74 20 64 69 |calars -|-- it di|
|00000790| 66 66 65 72 73 20 6f 6e | 6c 79 20 6f 6e 20 6d 61 |ffers on|ly on ma|
|000007a0| 74 72 69 63 65 73 2e 0d | 0d 0d 20 20 20 20 20 5c |trices..|.. \|
|000007b0| 69 74 65 6d 5b 24 7b 7d | 5e 5c 77 65 64 67 65 7b |item[${}|^\wedge{|
|000007c0| 7d 24 5d 20 7b 5c 76 65 | 72 62 2b 41 5e 42 2b 7d |}$] {\ve|rb+A^B+}|
|000007d0| 20 72 61 69 73 65 73 20 | 5c 76 65 72 62 2b 41 2b | raises |\verb+A+|
|000007e0| 20 74 6f 20 74 68 65 20 | 5c 76 65 72 62 2b 42 2b | to the |\verb+B+|
|000007f0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 |. | p|
|00000800| 6f 77 65 72 2e 20 0d 0d | 20 20 20 20 20 5c 69 74 |ower. ..| \it|
|00000810| 65 6d 5b 24 7b 2e 7d 5e | 5c 77 65 64 67 65 7b 7d |em[${.}^|\wedge{}|
|00000820| 24 5d 20 7b 5c 76 65 72 | 62 2b 41 2e 5e 42 2b 7d |$] {\ver|b+A.^B+}|
|00000830| 20 72 61 69 73 65 73 20 | 5c 76 65 72 62 2b 41 2b | raises |\verb+A+|
|00000840| 20 74 6f 20 74 68 65 0d | 20 20 20 20 20 20 20 20 | to the.| |
|00000850| 20 20 20 20 20 20 5c 76 | 65 72 62 2b 42 2b 20 70 | \v|erb+B+ p|
|00000860| 6f 77 65 72 2e 20 20 54 | 68 69 73 20 69 73 20 74 |ower. T|his is t|
|00000870| 68 65 20 73 61 6d 65 20 | 61 73 20 74 68 65 20 6e |he same |as the n|
|00000880| 6f 72 6d 61 6c 20 70 6f | 77 65 72 0d 20 20 20 20 |ormal po|wer. |
|00000890| 20 20 20 20 20 20 20 20 | 20 20 6f 70 65 72 61 74 | | operat|
|000008a0| 6f 72 20 6f 6e 20 73 63 | 61 6c 61 72 73 20 2d 2d |or on sc|alars --|
|000008b0| 2d 20 69 74 20 64 69 66 | 66 65 72 73 20 6f 6e 6c |- it dif|fers onl|
|000008c0| 79 20 6f 6e 20 6d 61 74 | 72 69 63 65 73 2e 0d 0d |y on mat|rices...|
|000008d0| 20 20 20 5c 65 6e 64 7b | 64 65 73 63 72 69 70 74 | \end{|descript|
|000008e0| 69 6f 6e 7d 0d 0d 54 68 | 65 20 6f 70 65 72 61 74 |ion}..Th|e operat|
|000008f0| 6f 72 73 20 74 68 61 74 | 20 61 72 65 20 64 65 6e |ors that| are den|
|00000900| 6f 74 65 64 20 62 79 20 | 74 77 6f 20 73 79 6d 62 |oted by |two symb|
|00000910| 6f 6c 73 20 73 68 6f 75 | 6c 64 20 6e 6f 74 0d 68 |ols shou|ld not.h|
|00000920| 61 76 65 20 61 6e 79 20 | 77 68 69 74 65 20 73 70 |ave any |white sp|
|00000930| 61 63 65 20 28 6f 72 20 | 61 6e 79 20 6f 74 68 65 |ace (or |any othe|
|00000940| 72 20 63 68 61 72 61 63 | 74 65 72 73 29 20 62 65 |r charac|ters) be|
|00000950| 74 77 65 65 6e 20 74 68 | 65 0d 74 77 6f 20 73 79 |tween th|e.two sy|
|00000960| 6d 62 6f 6c 73 2e 0d 0d | 0d 0d 5c 73 65 63 74 69 |mbols...|..\secti|
|00000970| 6f 6e 7b 52 65 6c 61 74 | 69 6f 6e 61 6c 20 4f 70 |on{Relat|ional Op|
|00000980| 65 72 61 74 69 6f 6e 73 | 7d 0d 0d 5c 52 4c 61 42 |erations|}..\RLaB|
|00000990| 5c 20 72 65 6c 61 74 69 | 6f 6e 61 6c 2c 20 65 71 |\ relati|onal, eq|
|000009a0| 75 61 6c 69 74 79 20 61 | 6e 64 20 6c 6f 67 69 63 |uality a|nd logic|
|000009b0| 61 6c 20 6f 70 65 72 61 | 74 6f 72 73 20 72 65 74 |al opera|tors ret|
|000009c0| 75 72 6e 20 24 31 24 20 | 69 66 20 74 68 65 0d 65 |urn $1$ |if the.e|
|000009d0| 78 70 72 65 73 73 69 6f | 6e 20 69 73 20 74 72 75 |xpressio|n is tru|
|000009e0| 65 2c 20 61 6e 64 20 24 | 30 24 20 69 66 20 74 68 |e, and $|0$ if th|
|000009f0| 65 20 65 78 70 72 65 73 | 73 69 6f 6e 20 69 73 20 |e expres|sion is |
|00000a00| 66 61 6c 73 65 2e 0d 0d | 54 68 65 20 5c 52 4c 61 |false...|The \RLa|
|00000a10| 42 5c 20 72 65 6c 61 74 | 69 6f 6e 61 6c 20 6f 70 |B\ relat|ional op|
|00000a20| 65 72 61 74 6f 72 73 20 | 61 72 65 0d 0d 5c 62 65 |erators |are..\be|
|00000a30| 67 69 6e 7b 64 65 73 63 | 72 69 70 74 69 6f 6e 7d |gin{desc|ription}|
|00000a40| 0d 5c 69 74 65 6d 5b 24 | 3c 24 5d 20 74 72 75 65 |.\item[$|<$] true|
|00000a50| 20 69 66 20 74 68 65 20 | 65 78 70 72 65 73 73 69 | if the |expressi|
|00000a60| 6f 6e 20 6f 6e 20 74 68 | 65 20 6c 65 66 74 20 68 |on on th|e left h|
|00000a70| 61 6e 64 20 73 69 64 65 | 20 69 73 0d 20 20 20 20 |and side| is. |
|00000a80| 20 20 6c 65 73 73 20 74 | 68 61 6e 20 74 68 65 20 | less t|han the |
|00000a90| 65 78 70 72 65 73 73 69 | 6f 6e 20 6f 6e 20 74 68 |expressi|on on th|
|00000aa0| 65 20 72 69 67 68 74 20 | 68 61 6e 64 20 73 69 64 |e right |hand sid|
|00000ab0| 65 2e 20 20 20 0d 5c 69 | 74 65 6d 5b 24 3c 20 3d |e. .\i|tem[$< =|
|00000ac0| 24 5d 20 74 72 75 65 20 | 69 66 20 74 68 65 20 65 |$] true |if the e|
|00000ad0| 78 70 72 65 73 73 69 6f | 6e 20 6f 6e 20 74 68 65 |xpressio|n on the|
|00000ae0| 20 6c 65 66 74 20 68 61 | 6e 64 20 73 69 64 65 20 | left ha|nd side |
|00000af0| 69 73 0d 20 20 20 20 20 | 20 6c 65 73 73 20 74 68 |is. | less th|
|00000b00| 61 6e 20 6f 72 20 65 71 | 75 61 6c 20 74 6f 20 74 |an or eq|ual to t|
|00000b10| 68 65 20 65 78 70 72 65 | 73 73 69 6f 6e 20 6f 6e |he expre|ssion on|
|00000b20| 20 74 68 65 20 72 69 67 | 68 74 20 68 61 6e 64 20 | the rig|ht hand |
|00000b30| 73 69 64 65 2e 20 20 20 | 0d 5c 69 74 65 6d 5b 24 |side. |.\item[$|
|00000b40| 3e 24 5d 20 74 72 75 65 | 20 69 66 20 74 68 65 20 |>$] true| if the |
|00000b50| 65 78 70 72 65 73 73 69 | 6f 6e 20 6f 6e 20 74 68 |expressi|on on th|
|00000b60| 65 20 6c 65 66 74 20 68 | 61 6e 64 20 73 69 64 65 |e left h|and side|
|00000b70| 20 69 73 0d 20 20 20 20 | 20 20 67 72 65 61 74 65 | is. | greate|
|00000b80| 72 20 74 68 61 6e 20 74 | 68 65 20 65 78 70 72 65 |r than t|he expre|
|00000b90| 73 73 69 6f 6e 20 6f 6e | 20 74 68 65 20 72 69 67 |ssion on| the rig|
|00000ba0| 68 74 20 68 61 6e 64 20 | 73 69 64 65 2e 20 20 20 |ht hand |side. |
|00000bb0| 0d 5c 69 74 65 6d 5b 24 | 3e 20 3d 24 5d 20 74 72 |.\item[$|> =$] tr|
|00000bc0| 75 65 20 69 66 20 74 68 | 65 20 65 78 70 72 65 73 |ue if th|e expres|
|00000bd0| 73 69 6f 6e 20 6f 6e 20 | 74 68 65 20 6c 65 66 74 |sion on |the left|
|00000be0| 20 68 61 6e 64 20 73 69 | 64 65 20 69 73 0d 20 20 | hand si|de is. |
|00000bf0| 20 20 20 20 67 72 65 61 | 74 65 72 20 74 68 61 6e | grea|ter than|
|00000c00| 20 6f 72 20 65 71 75 61 | 6c 20 74 6f 20 74 68 65 | or equa|l to the|
|00000c10| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 6f 6e 20 74 | express|ion on t|
|00000c20| 68 65 20 72 69 67 68 74 | 20 68 61 6e 64 20 73 69 |he right| hand si|
|00000c30| 64 65 2e 20 20 20 0d 5c | 65 6e 64 7b 64 65 73 63 |de. .\|end{desc|
|00000c40| 72 69 70 74 69 6f 6e 7d | 0d 0d 20 20 20 20 20 20 |ription}|.. |
|00000c50| 20 20 54 68 65 20 72 65 | 6c 61 74 69 6f 6e 61 6c | The re|lational|
|00000c60| 20 6f 70 65 72 61 74 6f | 72 73 20 61 6c 6c 20 68 | operato|rs all h|
|00000c70| 61 76 65 20 74 68 65 20 | 73 61 6d 65 20 70 72 65 |ave the |same pre|
|00000c80| 63 65 64 65 6e 63 65 2e | 20 20 49 66 20 74 68 65 |cedence.| If the|
|00000c90| 0d 65 78 70 72 65 73 73 | 69 6f 6e 20 6f 6e 20 65 |.express|ion on e|
|00000ca0| 69 74 68 65 72 20 73 69 | 64 65 20 69 73 20 63 6f |ither si|de is co|
|00000cb0| 6d 70 6c 65 78 2c 20 74 | 68 65 6e 20 63 6f 6d 70 |mplex, t|hen comp|
|00000cc0| 61 72 69 73 6f 6e 20 69 | 73 20 64 6f 6e 65 20 6f |arison i|s done o|
|00000cd0| 6e 20 6d 61 67 6e 69 74 | 75 64 65 73 2e 0d 20 20 |n magnit|udes.. |
|00000ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0d 20 | | . |
|00000cf0| 20 20 20 20 20 20 20 52 | 4c 61 42 20 65 71 75 61 | R|LaB equa|
|00000d00| 6c 69 74 79 20 6f 70 65 | 72 61 74 6f 72 73 20 61 |lity ope|rators a|
|00000d10| 72 65 20 5c 76 65 72 62 | 2b 3d 3d 2b 2c 20 77 68 |re \verb|+==+, wh|
|00000d20| 69 63 68 20 69 73 20 74 | 68 65 20 74 65 73 74 20 |ich is t|he test |
|00000d30| 66 6f 72 0d 65 71 75 61 | 6c 69 74 79 2c 20 61 6e |for.equa|lity, an|
|00000d40| 64 20 5c 76 65 72 62 2b | 21 3d 2b 2c 20 77 68 69 |d \verb+|!=+, whi|
|00000d50| 63 68 20 69 73 20 74 68 | 65 20 74 65 73 74 20 66 |ch is th|e test f|
|00000d60| 6f 72 20 6e 6f 6e 2d 65 | 71 75 61 6c 69 74 79 2e |or non-e|quality.|
|00000d70| 20 20 54 68 65 0d 65 71 | 75 61 6c 69 74 79 20 6f | The.eq|uality o|
|00000d80| 70 65 72 61 74 6f 72 73 | 20 68 61 76 65 20 74 68 |perators| have th|
|00000d90| 65 20 73 61 6d 65 20 70 | 72 65 63 65 64 65 6e 63 |e same p|recedenc|
|00000da0| 65 2c 20 61 6e 64 20 61 | 72 65 20 6a 75 73 74 20 |e, and a|re just |
|00000db0| 62 65 6c 6f 77 20 74 68 | 65 0d 72 65 6c 61 74 69 |below th|e.relati|
|00000dc0| 6f 6e 61 6c 20 6f 70 65 | 72 61 74 6f 72 73 2c 20 |onal ope|rators, |
|00000dd0| 69 6e 20 74 65 72 6d 73 | 20 6f 66 20 70 72 65 63 |in terms| of prec|
|00000de0| 65 64 65 6e 63 65 2e 20 | 0d 0d 20 20 20 20 20 20 |edence. |.. |
|00000df0| 20 20 5c 52 4c 61 42 5c | 20 6c 6f 67 69 63 61 6c | \RLaB\| logical|
|00000e00| 20 6f 70 65 72 61 74 6f | 72 73 20 61 72 65 20 5c | operato|rs are \|
|00000e10| 76 65 72 62 2b 26 26 2b | 2c 20 77 68 69 63 68 20 |verb+&&+|, which |
|00000e20| 69 73 20 6c 6f 67 69 63 | 61 6c 20 61 6e 64 2c 0d |is logic|al and,.|
|00000e30| 61 6e 64 20 5c 76 65 72 | 62 2b 7c 7c 2b 2c 20 77 |and \ver|b+||+, w|
|00000e40| 68 69 63 68 20 69 73 20 | 6c 6f 67 69 63 61 6c 20 |hich is |logical |
|00000e50| 6f 72 2e 20 4c 6f 67 69 | 63 61 6c 20 41 4e 44 20 |or. Logi|cal AND |
|00000e60| 6f 70 65 72 61 74 69 6f | 6e 20 68 61 73 20 68 69 |operatio|n has hi|
|00000e70| 67 68 65 72 0d 70 72 65 | 63 65 64 65 6e 63 65 20 |gher.pre|cedence |
|00000e80| 74 68 61 6e 20 6c 6f 67 | 69 63 61 6c 20 4f 52 2e |than log|ical OR.|
|00000e90| 20 42 6f 74 68 20 6c 6f | 67 69 63 61 6c 20 6f 70 | Both lo|gical op|
|00000ea0| 65 72 61 74 6f 72 73 20 | 61 72 65 20 6c 6f 77 65 |erators |are lowe|
|00000eb0| 72 20 69 6e 0d 70 72 65 | 63 65 64 65 6e 63 65 20 |r in.pre|cedence |
|00000ec0| 74 68 61 6e 20 74 68 65 | 20 65 71 75 61 6c 69 74 |than the| equalit|
|00000ed0| 79 20 6f 70 65 72 61 74 | 6f 72 73 2e 0d 0d 20 20 |y operat|ors... |
|00000ee0| 20 20 20 20 20 20 54 68 | 65 20 6c 6f 67 69 63 61 | Th|e logica|
|00000ef0| 6c 20 6f 70 65 72 61 74 | 6f 72 73 20 65 76 61 6c |l operat|ors eval|
|00000f00| 75 61 74 65 20 6c 65 66 | 74 2d 74 6f 2d 72 69 67 |uate lef|t-to-rig|
|00000f10| 68 74 2c 20 68 6f 77 65 | 76 65 72 0d 65 76 61 6c |ht, howe|ver.eval|
|00000f20| 75 61 74 69 6f 6e 20 64 | 6f 65 73 20 6e 6f 74 20 |uation d|oes not |
|00000f30| 73 74 6f 70 20 61 73 20 | 73 6f 6f 6e 20 61 73 20 |stop as |soon as |
|00000f40| 74 68 65 20 72 65 73 75 | 6c 74 20 69 73 20 6b 6e |the resu|lt is kn|
|00000f50| 6f 77 6e 2c 20 61 73 20 | 69 6e 20 43 2e 20 46 75 |own, as |in C. Fu|
|00000f60| 6c 6c 0d 65 76 61 6c 75 | 61 74 69 6f 6e 20 69 6e |ll.evalu|ation in|
|00000f70| 20 72 65 71 75 69 72 65 | 64 20 62 65 63 61 75 73 | require|d becaus|
|00000f80| 65 20 74 68 65 20 6f 70 | 65 72 61 6e 64 73 20 61 |e the op|erands a|
|00000f90| 72 65 20 6e 6f 74 20 72 | 65 73 74 72 69 63 74 65 |re not r|estricte|
|00000fa0| 64 20 74 6f 0d 62 65 69 | 6e 67 20 73 69 6d 70 6c |d to.bei|ng simpl|
|00000fb0| 65 20 73 63 61 6c 61 72 | 73 20 71 75 61 6e 74 69 |e scalar|s quanti|
|00000fc0| 74 69 65 73 2e 20 43 61 | 73 65 73 20 77 68 65 72 |ties. Ca|ses wher|
|00000fd0| 65 20 74 68 65 20 6f 70 | 65 72 61 6e 64 73 20 61 |e the op|erands a|
|00000fe0| 72 65 20 6d 61 74 72 69 | 63 65 73 0d 72 65 71 75 |re matri|ces.requ|
|00000ff0| 69 72 65 73 20 74 68 61 | 74 20 66 75 6c 6c 20 6f |ires tha|t full o|
|00001000| 70 65 72 61 6e 64 20 65 | 76 61 6c 75 61 74 69 6f |perand e|valuatio|
|00001010| 6e 20 6f 63 63 75 72 2e | 0d 0d 5c 73 65 63 74 69 |n occur.|..\secti|
|00001020| 6f 6e 7b 53 63 61 6c 61 | 72 20 46 75 6e 63 74 69 |on{Scala|r Functi|
|00001030| 6f 6e 73 7d 0d 0d 0d 5c | 73 75 62 73 65 63 74 69 |ons}...\|subsecti|
|00001040| 6f 6e 7b 52 61 6e 64 6f | 6d 20 6e 75 6d 62 65 72 |on{Rando|m number|
|00001050| 73 7d 0d 4f 6e 65 20 6f | 66 20 74 68 65 20 6d 6f |s}.One o|f the mo|
|00001060| 73 74 20 66 6c 65 78 69 | 62 6c 65 20 66 65 61 74 |st flexi|ble feat|
|00001070| 75 72 65 73 20 69 6e 20 | 5c 52 4c 61 42 5c 20 69 |ures in |\RLaB\ i|
|00001080| 73 20 74 68 65 20 77 61 | 79 20 69 74 20 63 61 6e |s the wa|y it can|
|00001090| 20 67 65 6e 65 72 61 74 | 65 0d 72 61 6e 64 6f 6d | generat|e.random|
|000010a0| 20 6e 75 6d 62 65 72 73 | 2e 20 20 54 68 65 72 65 | numbers|. There|
|000010b0| 20 61 72 65 20 6f 6e 6c | 79 20 74 77 6f 20 66 75 | are onl|y two fu|
|000010c0| 6e 63 74 69 6f 6e 73 20 | 75 73 65 64 20 69 6e 20 |nctions |used in |
|000010d0| 72 61 6e 64 6f 6d 20 6e | 75 6d 62 65 72 0d 63 72 |random n|umber.cr|
|000010e0| 65 61 74 69 6f 6e 20 2d | 2d 2d 20 5c 76 65 72 62 |eation -|-- \verb|
|000010f0| 2b 72 61 6e 64 2b 2c 20 | 61 6e 64 20 5c 76 65 72 |+rand+, |and \ver|
|00001100| 62 2b 73 72 61 6e 64 2b | 2e 20 20 0d 0d 5c 76 65 |b+srand+|. ..\ve|
|00001110| 72 62 2b 73 72 61 6e 64 | 2b 20 28 53 65 65 20 50 |rb+srand|+ (See P|
|00001120| 61 67 65 7e 5c 70 61 67 | 65 72 65 66 7b 66 6e 3a |age~\pag|eref{fn:|
|00001130| 73 72 61 6e 64 7d 29 2c | 20 69 73 20 75 73 65 64 |srand}),| is used|
|00001140| 20 74 6f 20 73 65 74 20 | 74 68 65 20 73 65 65 64 | to set |the seed|
|00001150| 0d 76 61 6c 75 65 20 74 | 68 61 74 20 74 68 65 20 |.value t|hat the |
|00001160| 6e 75 6d 62 65 72 73 20 | 61 72 65 20 70 72 6f 64 |numbers |are prod|
|00001170| 75 63 65 64 20 66 72 6f | 6d 2e 20 20 55 73 69 6e |uced fro|m. Usin|
|00001180| 67 20 74 68 65 20 73 61 | 6d 65 20 73 65 65 64 20 |g the sa|me seed |
|00001190| 76 61 6c 75 65 0d 65 61 | 63 68 20 74 69 6d 65 20 |value.ea|ch time |
|000011a0| 77 69 6c 6c 20 70 72 6f | 64 75 63 65 20 74 68 65 |will pro|duce the|
|000011b0| 20 73 61 6d 65 20 73 65 | 71 75 65 6e 63 65 20 6f | same se|quence o|
|000011c0| 66 20 72 61 6e 64 6f 6d | 20 6e 75 6d 62 65 72 73 |f random| numbers|
|000011d0| 2e 20 20 59 6f 75 0d 73 | 68 6f 75 6c 64 20 75 73 |. You.s|hould us|
|000011e0| 65 20 5c 76 65 72 62 2b | 73 72 61 6e 64 28 60 60 |e \verb+|srand(``|
|000011f0| 63 6c 6f 63 6b 27 27 29 | 2b 20 69 66 20 79 6f 75 |clock'')|+ if you|
|00001200| 20 77 61 6e 74 20 61 20 | 75 6e 69 71 75 65 20 73 | want a |unique s|
|00001210| 65 71 75 65 6e 63 65 2e | 0d 0d 5c 76 65 72 62 2b |equence.|..\verb+|
|00001220| 72 61 6e 64 2b 20 20 69 | 73 20 74 68 65 20 66 75 |rand+ i|s the fu|
|00001230| 6e 63 74 69 6f 6e 20 74 | 68 61 74 0d 61 63 74 75 |nction t|hat.actu|
|00001240| 61 6c 6c 79 20 20 70 72 | 6f 64 75 63 65 73 20 74 |ally pr|oduces t|
|00001250| 68 65 20 72 61 6e 64 6f | 6d 20 76 61 6c 75 65 73 |he rando|m values|
|00001260| 2e 20 20 59 6f 75 20 63 | 61 6e 20 63 68 6f 6f 73 |. You c|an choos|
|00001270| 65 20 6d 61 6e 79 20 64 | 69 66 66 65 72 65 6e 74 |e many d|ifferent|
|00001280| 0d 64 69 73 74 72 69 62 | 75 74 69 6f 6e 73 2c 20 |.distrib|utions, |
|00001290| 74 68 6f 75 67 68 20 74 | 68 65 20 75 6e 69 66 6f |though t|he unifo|
|000012a0| 72 6d 20 61 6e 64 20 6e | 6f 72 6d 61 6c 20 64 69 |rm and n|ormal di|
|000012b0| 73 74 72 69 62 75 74 69 | 6f 6e 73 20 61 72 65 20 |stributi|ons are |
|000012c0| 6c 69 6b 65 6c 79 0d 74 | 6f 20 62 65 20 6f 66 20 |likely.t|o be of |
|000012d0| 6d 6f 73 74 20 75 73 65 | 2e 20 20 41 20 63 6f 6d |most use|. A com|
|000012e0| 70 6c 65 74 65 20 6c 69 | 73 74 20 6f 66 20 64 69 |plete li|st of di|
|000012f0| 73 74 72 69 62 75 74 69 | 6f 6e 73 20 69 73 20 67 |stributi|ons is g|
|00001300| 69 76 65 6e 20 6f 6e 0d | 50 61 67 65 7e 5c 70 61 |iven on.|Page~\pa|
|00001310| 67 65 72 65 66 7b 66 6e | 3a 72 61 6e 64 7d 2e 20 |geref{fn|:rand}. |
|00001320| 0d 0d 0d 5c 69 6e 64 65 | 78 7b 73 63 61 6c 61 72 |...\inde|x{scalar|
|00001330| 7c 29 7d 0d 0d 0d 0d 0d | 0d ||)}.....|. |
+--------+-------------------------+-------------------------+--------+--------+