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: finite.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 73 65 63 74 69 6f 6e | 7b 66 69 6e 69 74 65 20 |\section|{finite |
|00000010| 2d 2d 2d 20 54 65 73 74 | 20 66 6f 72 20 66 69 6e |--- Test| for fin|
|00000020| 69 74 65 20 76 61 6c 75 | 65 73 7d 0d 5c 6c 61 62 |ite valu|es}.\lab|
|00000030| 65 6c 7b 66 6e 3a 66 69 | 6e 69 74 65 7d 0d 5c 69 |el{fn:fi|nite}.\i|
|00000040| 6e 64 65 78 7b 66 69 6e | 69 74 65 28 29 7d 0d 5c |ndex{fin|ite()}.\|
|00000050| 69 6e 64 65 78 7b 74 65 | 73 74 20 66 6f 72 20 66 |index{te|st for f|
|00000060| 69 6e 69 74 65 20 76 61 | 6c 75 65 73 7d 0d 5c 69 |inite va|lues}.\i|
|00000070| 6e 64 65 78 7b 69 6e 66 | 69 6e 69 74 65 20 76 61 |ndex{inf|inite va|
|00000080| 6c 75 65 73 7d 0d 5c 62 | 65 67 69 6e 7b 72 61 69 |lues}.\b|egin{rai|
|00000090| 6c 7d 0d 46 69 6e 69 74 | 65 20 3a 20 27 66 69 6e |l}.Finit|e : 'fin|
|000000a0| 69 74 65 27 20 27 28 27 | 20 28 20 53 63 61 6c 61 |ite' '('| ( Scala|
|000000b0| 72 20 7c 20 4d 61 74 72 | 69 78 20 29 20 27 29 27 |r | Matr|ix ) ')'|
|000000c0| 20 3b 0d 5c 65 6e 64 7b | 72 61 69 6c 7d 0d 0d 54 | ;.\end{|rail}..T|
|000000d0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 74 65 73 |his func|tion tes|
|000000e0| 74 73 20 74 68 65 20 61 | 72 67 75 6d 65 6e 74 20 |ts the a|rgument |
|000000f0| 66 6f 72 20 76 61 6c 75 | 65 73 20 74 68 61 74 20 |for valu|es that |
|00000100| 61 72 65 20 6e 6f 74 20 | 66 69 6e 69 74 65 2e 20 |are not |finite. |
|00000110| 49 66 20 74 68 65 0d 61 | 72 67 75 6d 65 6e 74 20 |If the.a|rgument |
|00000120| 69 73 20 73 63 61 6c 61 | 72 2c 20 69 74 20 72 65 |is scala|r, it re|
|00000130| 74 75 72 6e 73 20 24 30 | 24 20 69 66 20 74 68 65 |turns $0|$ if the|
|00000140| 20 61 72 67 75 6d 65 6e | 74 20 69 73 20 66 69 6e | argumen|t is fin|
|00000150| 69 74 65 20 28 69 2e 65 | 2e 20 6e 6f 74 0d 49 6e |ite (i.e|. not.In|
|00000160| 66 20 6f 72 20 4e 61 4e | 29 20 61 6e 64 20 61 20 |f or NaN|) and a |
|00000170| 24 31 24 20 69 66 20 69 | 74 20 69 73 20 65 69 74 |$1$ if i|t is eit|
|00000180| 68 65 72 20 49 6e 66 20 | 6f 72 20 4e 61 4e 2e 20 |her Inf |or NaN. |
|00000190| 20 49 66 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 | If the |argument|
|000001a0| 20 69 73 0d 61 20 6d 61 | 74 72 69 78 2c 20 74 68 | is.a ma|trix, th|
|000001b0| 65 6e 20 5c 76 65 72 62 | 2b 66 69 6e 69 74 65 2b |en \verb|+finite+|
|000001c0| 20 72 65 74 75 72 6e 73 | 20 61 20 6d 61 74 72 69 | returns| a matri|
|000001d0| 78 20 6f 66 20 74 68 65 | 20 73 61 6d 65 20 64 69 |x of the| same di|
|000001e0| 6d 65 6e 73 69 6f 6e 73 | 0d 61 73 20 74 68 65 20 |mensions|.as the |
|000001f0| 61 72 67 75 6d 65 6e 74 | 2c 20 77 69 74 68 20 74 |argument|, with t|
|00000200| 68 65 20 74 65 73 74 20 | 70 65 72 66 6f 72 6d 65 |he test |performe|
|00000210| 64 20 6f 6e 20 65 61 63 | 68 20 65 6c 65 6d 65 6e |d on eac|h elemen|
|00000220| 74 2e 0d 0d 24 5c 4c 6f | 6e 67 72 69 67 68 74 61 |t...$\Lo|ngrighta|
|00000230| 72 72 6f 77 24 20 54 68 | 69 73 20 69 73 20 6e 6f |rrow$ Th|is is no|
|00000240| 74 20 61 6e 20 5c 52 4c | 61 42 5c 20 62 75 69 6c |t an \RL|aB\ buil|
|00000250| 74 2d 69 6e 20 66 75 6e | 63 74 69 6f 6e 2e 20 20 |t-in fun|ction. |
|00000260| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 0d 69 73 |This fun|ction.is|
|00000270| 20 6e 6f 72 6d 61 6c 6c | 79 20 6c 6f 61 64 65 64 | normall|y loaded|
|00000280| 20 6f 6e 20 73 74 61 72 | 74 2d 75 70 20 66 72 6f | on star|t-up fro|
|00000290| 6d 20 74 68 65 20 5c 76 | 65 72 62 2b 66 69 6e 69 |m the \v|erb+fini|
|000002a0| 74 65 2e 72 2b 20 66 69 | 6c 65 20 69 6e 20 74 68 |te.r+ fi|le in th|
|000002b0| 65 0d 73 74 61 6e 64 61 | 72 64 20 5c 76 65 72 62 |e.standa|rd \verb|
|000002c0| 2b 72 6c 69 62 2b 20 64 | 69 72 65 63 74 6f 72 79 |+rlib+ d|irectory|
|000002d0| 2e 20 55 73 65 20 6f 66 | 20 74 68 65 20 5c 76 65 |. Use of| the \ve|
|000002e0| 72 62 2b 2d 72 2b 20 6f | 70 74 69 6f 6e 2c 20 69 |rb+-r+ o|ption, i|
|000002f0| 6e 63 6f 72 72 65 63 74 | 6c 79 20 0d 73 65 74 74 |ncorrect|ly .sett|
|00000300| 69 6e 67 20 74 68 65 20 | 5c 76 65 72 62 2b 52 4c |ing the |\verb+RL|
|00000310| 41 42 5f 4c 49 42 5f 44 | 49 52 2b 20 65 6e 76 69 |AB_LIB_D|IR+ envi|
|00000320| 72 6f 6e 6d 65 6e 74 61 | 6c 20 76 61 72 69 61 62 |ronmenta|l variab|
|00000330| 6c 65 2c 20 6f 72 20 6d | 6f 64 69 66 79 69 6e 67 |le, or m|odifying|
|00000340| 0d 5c 76 65 72 62 2b 66 | 69 6e 69 74 65 2e 72 2b |.\verb+f|inite.r+|
|00000350| 20 6d 61 79 20 6d 61 6b | 65 20 74 68 69 73 20 66 | may mak|e this f|
|00000360| 75 6e 63 74 69 6f 6e 20 | 75 6e 61 76 61 69 6c 61 |unction |unavaila|
|00000370| 62 6c 65 2e 0d 0d 5c 70 | 61 72 61 67 72 61 70 68 |ble...\p|aragraph|
|00000380| 7b 45 78 61 6d 70 6c 65 | 7d 0d 5c 69 6e 64 65 78 |{Example|}.\index|
|00000390| 7b 65 78 61 6d 70 6c 65 | 20 6f 66 20 66 69 6e 69 |{example| of fini|
|000003a0| 74 65 28 29 7d 0d 5c 69 | 6e 64 65 78 7b 66 69 6e |te()}.\i|ndex{fin|
|000003b0| 69 74 65 28 29 21 65 78 | 61 6d 70 6c 65 7d 0d 5c |ite()!ex|ample}.\|
|000003c0| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0d |begin{ve|rbatim}.|
|000003d0| 3e 20 63 20 3d 20 69 6e | 66 28 29 3b 0d 3e 20 64 |> c = in|f();.> d|
|000003e0| 20 3d 20 6e 61 6e 28 29 | 3b 0d 3e 20 65 20 3d 20 | = nan()|;.> e = |
|000003f0| 33 2b 34 6a 3b 0d 3e 20 | 66 69 6e 69 74 65 28 63 |3+4j;.> |finite(c|
|00000400| 29 0d 30 0d 3e 20 66 69 | 6e 69 74 65 28 64 29 0d |).0.> fi|nite(d).|
|00000410| 30 0d 3e 20 66 69 6e 69 | 74 65 28 65 29 0d 31 0d |0.> fini|te(e).1.|
|00000420| 3e 20 66 20 3d 20 5b 20 | 2d 63 2c 64 2c 30 2c 32 |> f = [ |-c,d,0,2|
|00000430| 2c 69 6e 66 28 29 5d 0d | 66 20 3d 0d 2d 49 6e 66 |,inf()].|f =.-Inf|
|00000440| 69 6e 69 74 79 20 20 20 | 20 20 20 20 20 4e 61 4e |inity | NaN|
|00000450| 20 20 20 20 20 20 20 20 | 20 20 30 20 20 20 20 20 | | 0 |
|00000460| 20 20 20 20 20 32 20 20 | 20 49 6e 66 69 6e 69 74 | 2 | Infinit|
|00000470| 79 0d 3e 20 66 69 6e 69 | 74 65 28 66 29 0d 20 20 |y.> fini|te(f). |
|00000480| 20 20 20 20 20 20 30 20 | 20 20 20 20 20 20 20 20 | 0 | |
|00000490| 20 30 20 20 20 20 20 20 | 20 20 20 20 31 20 20 20 | 0 | 1 |
|000004a0| 20 20 20 20 20 20 20 31 | 20 20 20 20 20 20 20 20 | 1| |
|000004b0| 20 20 30 20 0d 5c 65 6e | 64 7b 76 65 72 62 61 74 | 0 .\en|d{verbat|
|000004c0| 69 6d 7d 0d 0d 53 65 65 | 20 61 6c 73 6f 3a 20 50 |im}..See| also: P|
|000004d0| 61 67 65 7e 5c 70 61 67 | 65 72 65 66 7b 66 6e 3a |age~\pag|eref{fn:|
|000004e0| 69 6e 66 7d 20 5c 76 65 | 72 62 2b 69 6e 66 28 29 |inf} \ve|rb+inf()|
|000004f0| 2b 2c 0d 50 61 67 65 7e | 5c 70 61 67 65 72 65 66 |+,.Page~|\pageref|
|00000500| 7b 66 6e 3a 69 73 69 6e | 66 7d 20 5c 76 65 72 62 |{fn:isin|f} \verb|
|00000510| 2b 69 73 69 6e 66 28 29 | 2b 2c 0d 50 61 67 65 7e |+isinf()|+,.Page~|
|00000520| 5c 70 61 67 65 72 65 66 | 7b 66 6e 3a 69 73 6e 61 |\pageref|{fn:isna|
|00000530| 6e 7d 20 5c 76 65 72 62 | 2b 69 73 6e 61 6e 28 29 |n} \verb|+isnan()|
|00000540| 2b 2c 0d 50 61 67 65 7e | 5c 70 61 67 65 72 65 66 |+,.Page~|\pageref|
|00000550| 7b 66 6e 3a 6e 61 6e 7d | 20 5c 76 65 72 62 2b 6e |{fn:nan}| \verb+n|
|00000560| 61 6e 28 29 2b 2e 0d 0d | 5c 6e 65 77 70 61 67 65 |an()+...|\newpage|
|00000570| 0d 0d 0d 0d | |.... | |
+--------+-------------------------+-------------------------+--------+--------+