home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / progs / pari / pari_137 / tex / tutorial.tex / node4_ct.html < prev    next >
LaTeX Document  |  1992-05-20  |  17.3 KB

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: node4_ct.html

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
90% dexvert Hypertext Markup Language File (text/html) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file HTML document text default (weak)
99% file LaTeX document text default
98% file exported SGML document text default
97% file exported SGML document, ASCII text default
80% TrID HyperText Markup Language with DOCTYPE default
19% TrID HyperText Markup Language default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% gt2 HTML (Hyper Text Markup Language) Datei default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/html default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 54 68 | 65 20 72 65 73 74 20 6f |ts of Th|e rest o|
|000000b0| 66 20 74 68 65 20 50 41 | 52 49 20 74 79 70 65 73 |f the PA|RI types|
|000000c0| 3c 2f 54 49 54 4c 45 3e | 0a 0a 3c 4d 45 54 41 20 |</TITLE>|..<META |
|000000d0| 48 54 54 50 2d 45 51 55 | 49 56 3d 22 43 6f 6e 74 |HTTP-EQU|IV="Cont|
|000000e0| 65 6e 74 2d 54 79 70 65 | 22 20 43 4f 4e 54 45 4e |ent-Type|" CONTEN|
|000000f0| 54 3d 22 74 65 78 74 2f | 68 74 6d 6c 3b 20 63 68 |T="text/|html; ch|
|00000100| 61 72 73 65 74 3d 75 74 | 66 2d 38 22 3e 0a 3c 4d |arset=ut|f-8">.<M|
|00000110| 45 54 41 20 4e 41 4d 45 | 3d 22 76 69 65 77 70 6f |ETA NAME|="viewpo|
|00000120| 72 74 22 20 43 4f 4e 54 | 45 4e 54 3d 22 77 69 64 |rt" CONT|ENT="wid|
|00000130| 74 68 3d 64 65 76 69 63 | 65 2d 77 69 64 74 68 2c |th=devic|e-width,|
|00000140| 20 69 6e 69 74 69 61 6c | 2d 73 63 61 6c 65 3d 31 | initial|-scale=1|
|00000150| 2e 30 22 3e 0a 3c 4d 45 | 54 41 20 4e 41 4d 45 3d |.0">.<ME|TA NAME=|
|00000160| 22 47 65 6e 65 72 61 74 | 6f 72 22 20 43 4f 4e 54 |"Generat|or" CONT|
|00000170| 45 4e 54 3d 22 4c 61 54 | 65 58 32 48 54 4d 4c 20 |ENT="LaT|eX2HTML |
|00000180| 76 32 30 32 32 22 3e 0a | 0a 3c 4c 49 4e 4b 20 52 |v2022">.|.<LINK R|
|00000190| 45 4c 3d 22 53 54 59 4c | 45 53 48 45 45 54 22 20 |EL="STYL|ESHEET" |
|000001a0| 48 52 45 46 3d 22 74 75 | 74 6f 72 69 61 6c 2e 63 |HREF="tu|torial.c|
|000001b0| 73 73 22 3e 0a 0a 3c 4c | 49 4e 4b 20 52 45 4c 3d |ss">..<L|INK REL=|
|000001c0| 22 6e 65 78 74 22 20 48 | 52 45 46 3d 22 6e 6f 64 |"next" H|REF="nod|
|000001d0| 65 35 5f 6d 6e 2e 68 74 | 6d 6c 22 3e 0a 3c 4c 49 |e5_mn.ht|ml">.<LI|
|000001e0| 4e 4b 20 52 45 4c 3d 22 | 70 72 65 76 69 6f 75 73 |NK REL="|previous|
|000001f0| 22 20 48 52 45 46 3d 22 | 6e 6f 64 65 33 5f 6d 6e |" HREF="|node3_mn|
|00000200| 2e 68 74 6d 6c 22 3e 0a | 3c 4c 49 4e 4b 20 52 45 |.html">.|<LINK RE|
|00000210| 4c 3d 22 75 70 22 20 48 | 52 45 46 3d 22 6e 6f 64 |L="up" H|REF="nod|
|00000220| 65 31 5f 6d 6e 2e 68 74 | 6d 6c 22 3e 0a 3c 4c 49 |e1_mn.ht|ml">.<LI|
|00000230| 4e 4b 20 52 45 4c 3d 22 | 6e 65 78 74 22 20 48 52 |NK REL="|next" HR|
|00000240| 45 46 3d 22 6e 6f 64 65 | 35 5f 6d 6e 2e 68 74 6d |EF="node|5_mn.htm|
|00000250| 6c 22 3e 0a 3c 2f 48 45 | 41 44 3e 0a 20 0a 3c 42 |l">.</HE|AD>. .<B|
|00000260| 4f 44 59 20 62 67 63 6f | 6c 6f 72 3d 22 23 66 66 |ODY bgco|lor="#ff|
|00000270| 66 66 66 66 22 20 74 65 | 78 74 3d 22 23 30 30 30 |ffff" te|xt="#000|
|00000280| 30 30 30 22 20 6c 69 6e | 6b 3d 22 23 39 39 34 34 |000" lin|k="#9944|
|00000290| 45 45 22 20 76 6c 69 6e | 6b 3d 22 23 30 30 30 30 |EE" vlin|k="#0000|
|000002a0| 66 66 22 20 61 6c 69 6e | 6b 3d 22 23 30 30 66 66 |ff" alin|k="#00ff|
|000002b0| 30 30 22 3e 0a 0a 3c 48 | 31 3e 3c 41 20 49 44 3d |00">..<H|1><A ID=|
|000002c0| 22 53 45 43 54 49 4f 4e | 30 30 31 33 30 30 30 30 |"SECTION|00130000|
|000002d0| 30 30 30 30 30 30 30 30 | 30 30 30 30 22 3e 0a 54 |00000000|0000">.T|
|000002e0| 68 65 20 72 65 73 74 20 | 6f 66 20 74 68 65 20 50 |he rest |of the P|
|000002f0| 41 52 49 20 74 79 70 65 | 73 3c 2f 41 3e 0a 3c 2f |ARI type|s</A>.</|
|00000300| 48 31 3e 0a 0a 3c 50 3e | 0a 4c 65 74 27 73 20 68 |H1>..<P>|.Let's h|
|00000310| 61 6e 64 6c 65 20 66 69 | 72 73 74 20 73 6f 6d 65 |andle fi|rst some|
|00000320| 20 6d 6f 72 65 20 74 68 | 65 20 62 61 73 69 63 20 | more th|e basic |
|00000330| 50 41 52 49 20 74 79 70 | 65 73 2e 0a 0a 3c 50 3e |PARI typ|es...<P>|
|00000340| 0a 54 79 70 65 20 3c 54 | 54 3e 70 3d 78 2a 65 78 |.Type <T|T>p=x*ex|
|00000350| 70 28 2d 78 29 3c 2f 54 | 54 3e 2e 20 41 73 20 65 |p(-x)</T|T>. As e|
|00000360| 78 70 65 63 74 65 64 2c | 20 79 6f 75 20 67 65 74 |xpected,| you get|
|00000370| 20 74 68 65 20 70 6f 77 | 65 72 20 73 65 72 69 65 | the pow|er serie|
|00000380| 73 20 65 78 70 61 6e 73 | 69 6f 6e 0a 74 6f 20 31 |s expans|ion.to 1|
|00000390| 36 20 74 65 72 6d 73 20 | 28 69 66 20 79 6f 75 20 |6 terms |(if you |
|000003a0| 68 61 76 65 20 6e 6f 74 | 20 63 68 61 6e 67 65 64 |have not| changed|
|000003b0| 20 74 68 65 20 64 65 66 | 61 75 6c 74 29 2e 20 4e | the def|ault). N|
|000003c0| 6f 77 20 74 79 70 65 0a | 3c 54 54 3e 70 72 3d 72 |ow type.|<TT>pr=r|
|000003d0| 65 76 65 72 73 65 28 70 | 29 3c 2f 54 54 3e 2e 20 |everse(p|)</TT>. |
|000003e0| 59 6f 75 20 61 72 65 20 | 61 73 6b 69 6e 67 20 68 |You are |asking h|
|000003f0| 65 72 65 20 66 6f 72 20 | 74 68 65 20 3c 49 3e 72 |ere for |the <I>r|
|00000400| 65 76 65 72 73 69 6f 6e | 3c 2f 49 3e 20 6f 66 20 |eversion|</I> of |
|00000410| 74 68 65 0a 70 6f 77 65 | 72 20 73 65 72 69 65 73 |the.powe|r series|
|00000420| 20 3c 49 3e 70 3c 2f 49 | 3e 2c 20 69 6e 20 6f 74 | <I>p</I|>, in ot|
|00000430| 68 65 72 20 77 6f 72 64 | 73 20 74 68 65 20 69 6e |her word|s the in|
|00000440| 76 65 72 73 65 20 66 75 | 6e 63 74 69 6f 6e 2e 20 |verse fu|nction. |
|00000450| 54 68 69 73 20 69 73 20 | 70 6f 73 73 69 62 6c 65 |This is |possible|
|00000460| 20 6f 6e 6c 79 0a 66 6f | 72 20 70 6f 77 65 72 20 | only.fo|r power |
|00000470| 73 65 72 69 65 73 20 77 | 68 6f 73 65 20 66 69 72 |series w|hose fir|
|00000480| 73 74 20 6e 6f 6e 2d 7a | 65 72 6f 20 63 6f 65 66 |st non-z|ero coef|
|00000490| 66 69 63 69 65 6e 74 20 | 69 73 20 74 68 61 74 20 |ficient |is that |
|000004a0| 6f 66 20 3c 49 3e 78 3c | 2f 49 3e 3c 53 55 50 3e |of <I>x<|/I><SUP>|
|000004b0| 31 3c 2f 53 55 50 3e 2e | 0a 54 6f 20 63 68 65 63 |1</SUP>.|.To chec|
|000004c0| 6b 20 74 68 65 20 63 6f | 72 72 65 63 74 6e 65 73 |k the co|rrectnes|
|000004d0| 73 20 6f 66 20 74 68 65 | 20 72 65 73 75 6c 74 2c |s of the| result,|
|000004e0| 20 79 6f 75 20 63 61 6e | 20 74 79 70 65 20 3c 54 | you can| type <T|
|000004f0| 54 3e 73 75 62 73 74 28 | 70 2c 78 2c 70 72 29 3c |T>subst(|p,x,pr)<|
|00000500| 2f 54 54 3e 0a 6f 72 20 | 3c 54 54 3e 73 75 62 73 |/TT>.or |<TT>subs|
|00000510| 74 28 70 72 2c 78 2c 70 | 29 3c 2f 54 54 3e 20 61 |t(pr,x,p|)</TT> a|
|00000520| 6e 64 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 67 65 |nd you s|hould ge|
|00000530| 74 20 62 61 63 6b 20 3c | 54 54 3e 78 2b 4f 28 78 |t back <|TT>x+O(x|
|00000540| 26 23 37 31 30 3b 31 37 | 29 3c 2f 54 54 3e 2e 0a |&#710;17|)</TT>..|
|00000550| 0a 3c 50 3e 0a 4e 6f 77 | 20 74 68 65 20 63 6f 65 |.<P>.Now| the coe|
|00000560| 66 66 69 63 69 65 6e 74 | 73 20 6f 66 20 3c 54 54 |fficient|s of <TT|
|00000570| 3e 70 72 3c 2f 54 54 3e | 20 6f 62 65 79 20 61 20 |>pr</TT>| obey a |
|00000580| 76 65 72 79 20 73 69 6d | 70 6c 65 20 66 6f 72 6d |very sim|ple form|
|00000590| 75 6c 61 2e 20 46 69 72 | 73 74 2c 20 77 65 20 77 |ula. Fir|st, we w|
|000005a0| 6f 75 6c 64 0a 6c 69 6b | 65 20 74 6f 20 6d 75 6c |ould.lik|e to mul|
|000005b0| 74 69 70 6c 79 20 74 68 | 65 20 63 6f 65 66 66 69 |tiply th|e coeffi|
|000005c0| 63 69 65 6e 74 20 6f 66 | 20 3c 54 54 3e 78 26 23 |cient of| <TT>x&#|
|000005d0| 37 31 30 3b 6e 3c 2f 54 | 54 3e 20 62 79 20 3c 54 |710;n</T|T> by <T|
|000005e0| 54 3e 6e 21 3c 2f 54 54 | 3e 20 28 69 6e 20 74 68 |T>n!</TT|> (in th|
|000005f0| 65 20 63 61 73 65 20 6f | 66 20 74 68 65 0a 65 78 |e case o|f the.ex|
|00000600| 70 6f 6e 65 6e 74 69 61 | 6c 20 66 75 6e 63 74 69 |ponentia|l functi|
|00000610| 6f 6e 2c 20 74 68 69 73 | 20 77 6f 75 6c 64 20 73 |on, this| would s|
|00000620| 69 6d 70 6c 69 66 79 20 | 74 68 69 6e 67 73 20 63 |implify |things c|
|00000630| 6f 6e 73 69 64 65 72 61 | 62 6c 79 21 29 2e 20 54 |onsidera|bly!). T|
|00000640| 68 65 20 50 41 52 49 0a | 66 75 6e 63 74 69 6f 6e |he PARI.|function|
|00000650| 20 3c 54 54 3e 6c 61 70 | 6c 61 63 65 3c 2f 54 54 | <TT>lap|lace</TT|
|00000660| 3e 20 64 6f 65 73 20 6a | 75 73 74 20 74 68 61 74 |> does j|ust that|
|00000670| 2e 20 53 6f 20 74 79 70 | 65 20 3c 54 54 3e 70 73 |. So typ|e <TT>ps|
|00000680| 3d 6c 61 70 6c 61 63 65 | 28 70 72 29 3c 2f 54 54 |=laplace|(pr)</TT|
|00000690| 3e 2e 20 54 68 65 0a 63 | 6f 65 66 66 69 63 69 65 |>. The.c|oefficie|
|000006a0| 6e 74 73 20 6e 6f 77 20 | 62 65 63 6f 6d 65 20 69 |nts now |become i|
|000006b0| 6e 74 65 67 65 72 73 2c | 20 77 68 69 63 68 20 63 |ntegers,| which c|
|000006c0| 61 6e 20 62 65 20 69 6d | 6d 65 64 69 61 74 65 6c |an be im|mediatel|
|000006d0| 79 20 72 65 63 6f 67 6e | 69 7a 65 64 20 62 79 0a |y recogn|ized by.|
|000006e0| 69 6e 73 70 65 63 74 69 | 6f 6e 2e 20 54 68 65 20 |inspecti|on. The |
|000006f0| 63 6f 65 66 66 69 63 69 | 65 6e 74 20 6f 66 20 3c |coeffici|ent of <|
|00000700| 54 54 3e 78 26 23 37 31 | 30 3b 6e 3c 2f 54 54 3e |TT>x&#71|0;n</TT>|
|00000710| 20 69 73 20 6e 6f 77 20 | 65 71 75 61 6c 20 74 6f | is now |equal to|
|00000720| 20 3c 21 2d 2d 20 4d 41 | 54 48 0a 20 24 5c 74 65 | <!-- MA|TH. $\te|
|00000730| 78 74 7b 6e 7d 5e 7b 5c | 74 65 78 74 7b 6e 2d 31 |xt{n}^{\|text{n-1|
|00000740| 7d 7d 24 0a 20 2d 2d 3e | 0a 6e 3c 53 55 50 3e 6e |}}$. -->|.n<SUP>n|
|00000750| 2d 31 3c 2f 53 55 50 3e | 2e 20 49 6e 20 6f 74 68 |-1</SUP>|. In oth|
|00000760| 65 72 20 77 6f 72 64 73 | 2c 20 77 65 20 68 61 76 |er words|, we hav|
|00000770| 65 20 0a 0a 3c 50 3e 3c | 21 2d 2d 20 4d 41 54 48 |e ..<P><|!-- MATH|
|00000780| 0a 20 5c 62 65 67 69 6e | 7b 64 69 73 70 6c 61 79 |. \begin|{display|
|00000790| 6d 61 74 68 7d 0a 5c 74 | 65 78 74 7b 70 72 7d 3d |math}.\t|ext{pr}=|
|000007a0| 5c 73 75 6d 5f 7b 7b 5c | 72 6d 20 6e 7d 5c 67 65 |\sum_{{\|rm n}\ge|
|000007b0| 31 7d 5c 64 66 72 61 63 | 7b 7b 5c 72 6d 20 6e 7d |1}\dfrac|{{\rm n}|
|000007c0| 5e 7b 7b 5c 72 6d 20 6e | 7d 2d 31 7d 7d 7b 7b 5c |^{{\rm n|}-1}}{{\|
|000007d0| 72 6d 20 6e 7d 21 7d 58 | 5e 7b 7b 5c 72 6d 20 6e |rm n}!}X|^{{\rm n|
|000007e0| 7d 7d 2e 0a 5c 65 6e 64 | 7b 64 69 73 70 6c 61 79 |}}..\end|{display|
|000007f0| 6d 61 74 68 7d 0a 20 2d | 2d 3e 0a 3c 2f 50 3e 0a |math}. -|->.</P>.|
|00000800| 3c 44 49 56 20 41 4c 49 | 47 4e 3d 22 43 45 4e 54 |<DIV ALI|GN="CENT|
|00000810| 45 52 22 3e 0a 70 72 20 | 3d 20 3c 49 4d 47 0a 20 |ER">.pr |= <IMG. |
|00000820| 53 54 59 4c 45 3d 22 68 | 65 69 67 68 74 3a 20 31 |STYLE="h|eight: 1|
|00000830| 39 36 2e 32 35 65 78 3b | 20 76 65 72 74 69 63 61 |96.25ex;| vertica|
|00000840| 6c 2d 61 6c 69 67 6e 3a | 20 2d 33 2e 34 33 65 78 |l-align:| -3.43ex|
|00000850| 3b 20 22 20 53 52 43 3d | 22 69 6d 67 32 2e 70 6e |; " SRC=|"img2.pn|
|00000860| 67 22 0a 20 41 4c 54 3d | 22 24 5c 64 69 73 70 6c |g". ALT=|"$\displ|
|00000870| 61 79 73 74 79 6c 65 20 | 5c 73 75 6d 5f 7b 7b 7b |aystyle |\sum_{{{|
|00000880| 5c 72 6d 20 6e 7d 5c 67 | 65 31 7d 7d 5e 7b 7d 24 |\rm n}\g|e1}}^{}$|
|00000890| 22 3e 3c 49 4d 47 0a 20 | 53 54 59 4c 45 3d 22 68 |"><IMG. |STYLE="h|
|000008a0| 65 69 67 68 74 3a 20 35 | 2e 33 32 65 78 3b 20 76 |eight: 5|.32ex; v|
|000008b0| 65 72 74 69 63 61 6c 2d | 61 6c 69 67 6e 3a 20 31 |ertical-|align: 1|
|000008c0| 37 33 2e 30 31 65 78 3b | 20 22 20 53 52 43 3d 22 |73.01ex;| " SRC="|
|000008d0| 69 6d 67 33 2e 70 6e 67 | 22 0a 20 41 4c 54 3d 22 |img3.png|". ALT="|
|000008e0| 24 5c 64 69 73 70 6c 61 | 79 73 74 79 6c 65 20 7b |$\displa|ystyle {|
|000008f0| 5c 64 66 72 61 63 7b 7b | 7b 5c 72 6d 20 6e 7d 5e |\dfrac{{|{\rm n}^|
|00000900| 7b 7b 5c 72 6d 20 6e 7d | 2d 31 7d 7d 7d 7b 7b 7b |{{\rm n}|-1}}}{{{|
|00000910| 5c 72 6d 20 6e 7d 21 7d | 7d 7d 24 22 3e 3c 49 3e |\rm n}!}|}}$"><I>|
|00000920| 58 3c 2f 49 3e 3c 53 55 | 50 3e 6e 3c 2f 53 55 50 |X</I><SU|P>n</SUP|
|00000930| 3e 2e 0a 3c 2f 44 49 56 | 3e 3c 50 3e 3c 2f 50 3e |>..</DIV|><P></P>|
|00000940| 0a 44 6f 20 79 6f 75 20 | 6b 6e 6f 77 20 68 6f 77 |.Do you |know how|
|00000950| 20 74 6f 0a 70 72 6f 76 | 65 20 74 68 69 73 3f 20 | to.prov|e this? |
|00000960| 28 49 66 20 79 6f 75 20 | 68 61 76 65 20 6e 65 76 |(If you |have nev|
|00000970| 65 72 20 73 65 65 6e 20 | 74 68 69 73 2c 20 74 68 |er seen |this, th|
|00000980| 65 20 70 72 6f 6f 66 20 | 69 73 20 64 69 66 66 69 |e proof |is diffi|
|00000990| 63 75 6c 74 2e 29 0a 0a | 3c 50 3e 3c 2f 50 3e 0a |cult.)..|<P></P>.|
|000009a0| 4f 66 20 63 6f 75 72 73 | 65 20 50 41 52 49 20 6b |Of cours|e PARI k|
|000009b0| 6e 6f 77 73 20 61 62 6f | 75 74 20 76 65 63 74 6f |nows abo|ut vecto|
|000009c0| 72 73 20 28 72 6f 77 73 | 20 61 6e 64 20 63 6f 6c |rs (rows| and col|
|000009d0| 75 6d 6e 73 20 61 72 65 | 20 64 69 73 74 69 6e 67 |umns are| disting|
|000009e0| 75 69 73 68 65 64 2c 20 | 65 76 65 6e 0a 74 68 6f |uished, |even.tho|
|000009f0| 75 67 68 20 6d 61 74 68 | 65 6d 61 74 69 63 61 6c |ugh math|ematical|
|00000a00| 6c 79 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 64 |ly there| is no d|
|00000a10| 69 66 66 65 72 65 6e 63 | 65 29 20 61 6e 64 20 6d |ifferenc|e) and m|
|00000a20| 61 74 72 69 63 65 73 2e | 20 54 79 70 65 20 66 6f |atrices.| Type fo|
|00000a30| 72 20 65 78 61 6d 70 6c | 65 0a 3c 54 54 3e 5b 31 |r exampl|e.<TT>[1|
|00000a40| 2c 32 2c 33 2c 34 5d 3c | 2f 54 54 3e 2e 20 54 68 |,2,3,4]<|/TT>. Th|
|00000a50| 69 73 20 67 69 76 65 73 | 20 74 68 65 20 72 6f 77 |is gives| the row|
|00000a60| 20 76 65 63 74 6f 72 20 | 77 68 6f 73 65 20 63 6f | vector |whose co|
|00000a70| 6f 72 64 69 6e 61 74 65 | 73 20 61 72 65 20 31 2c |ordinate|s are 1,|
|00000a80| 20 32 2c 20 33 20 61 6e | 64 20 34 2e 0a 49 66 20 | 2, 3 an|d 4..If |
|00000a90| 79 6f 75 20 77 61 6e 74 | 20 61 20 63 6f 6c 75 6d |you want| a colum|
|00000aa0| 6e 20 76 65 63 74 6f 72 | 2c 20 74 79 70 65 20 3c |n vector|, type <|
|00000ab0| 54 54 3e 5b 31 2c 32 2c | 33 2c 34 5d 26 23 37 33 |TT>[1,2,|3,4]&#73|
|00000ac0| 32 3b 3c 2f 54 54 3e 2c | 20 74 68 65 20 74 69 6c |2;</TT>,| the til|
|00000ad0| 64 65 20 6d 65 61 6e 69 | 6e 67 20 6f 66 0a 63 6f |de meani|ng of.co|
|00000ae0| 75 72 73 65 20 74 72 61 | 6e 73 70 6f 73 65 2e 20 |urse tra|nspose. |
|00000af0| 59 6f 75 20 64 6f 6e 27 | 74 20 73 65 65 20 6d 75 |You don'|t see mu|
|00000b00| 63 68 20 64 69 66 66 65 | 72 65 6e 63 65 20 69 6e |ch diffe|rence in|
|00000b10| 20 74 68 65 20 6f 75 74 | 70 75 74 2c 20 65 78 63 | the out|put, exc|
|00000b20| 65 70 74 20 66 6f 72 20 | 74 68 65 0a 74 69 6c 64 |ept for |the.tild|
|00000b30| 65 20 61 74 20 74 68 65 | 20 65 6e 64 2e 20 48 6f |e at the| end. Ho|
|00000b40| 77 65 76 65 72 2c 20 6e | 6f 77 20 74 79 70 65 20 |wever, n|ow type |
|00000b50| 3c 54 54 3e 62 3c 2f 54 | 54 3e 3a 20 6c 6f 20 61 |<TT>b</T|T>: lo a|
|00000b60| 6e 64 20 62 65 68 6f 6c | 64 2c 20 74 68 65 20 76 |nd behol|d, the v|
|00000b70| 65 63 74 6f 72 0a 64 6f | 65 73 20 62 65 63 6f 6d |ector.do|es becom|
|00000b80| 65 20 61 20 63 6f 6c 75 | 6d 6e 2e 20 54 68 69 73 |e a colu|mn. This|
|00000b90| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 75 73 65 64 | command| is used|
|00000ba0| 20 6d 61 69 6e 6c 79 20 | 66 6f 72 20 74 68 69 73 | mainly |for this|
|00000bb0| 20 70 75 72 70 6f 73 65 | 2e 0a 0a 3c 50 3e 0a 54 | purpose|...<P>.T|
|00000bc0| 79 70 65 20 3c 54 54 3e | 6d 3d 5b 61 2c 62 2c 63 |ype <TT>|m=[a,b,c|
|00000bd0| 3b 64 2c 65 2c 66 5d 3c | 2f 54 54 3e 2e 20 59 6f |;d,e,f]<|/TT>. Yo|
|00000be0| 75 20 68 61 76 65 20 6a | 75 73 74 20 65 6e 74 65 |u have j|ust ente|
|00000bf0| 72 65 64 20 61 20 6d 61 | 74 72 69 78 20 77 69 74 |red a ma|trix wit|
|00000c00| 68 20 32 20 72 6f 77 73 | 20 61 6e 64 20 33 0a 63 |h 2 rows| and 3.c|
|00000c10| 6f 6c 75 6d 6e 73 2e 20 | 4e 6f 74 65 20 74 68 61 |olumns. |Note tha|
|00000c20| 74 20 74 68 65 20 6d 61 | 74 72 69 78 20 69 73 20 |t the ma|trix is |
|00000c30| 65 6e 74 65 72 65 64 20 | 62 79 20 3c 49 3e 72 6f |entered |by <I>ro|
|00000c40| 77 73 3c 2f 49 3e 20 61 | 6e 64 20 74 68 65 20 72 |ws</I> a|nd the r|
|00000c50| 6f 77 73 20 61 72 65 0a | 73 65 70 61 72 61 74 65 |ows are.|separate|
|00000c60| 64 20 62 79 20 73 65 6d | 69 63 6f 6c 6f 6e 73 20 |d by sem|icolons |
|00000c70| 60 60 3b 27 27 2e 20 54 | 68 65 20 6d 61 74 72 69 |``;''. T|he matri|
|00000c80| 78 20 69 73 20 70 72 69 | 6e 74 65 64 20 6e 61 74 |x is pri|nted nat|
|00000c90| 75 72 61 6c 6c 79 20 69 | 6e 20 61 20 72 65 63 74 |urally i|n a rect|
|00000ca0| 61 6e 67 6c 65 0a 73 68 | 61 70 65 2e 20 49 66 20 |angle.sh|ape. If |
|00000cb0| 79 6f 75 20 77 61 6e 74 | 20 69 74 20 70 72 69 6e |you want| it prin|
|00000cc0| 74 65 64 20 68 6f 72 69 | 7a 6f 6e 74 61 6c 6c 79 |ted hori|zontally|
|00000cd0| 20 6a 75 73 74 20 61 73 | 20 79 6f 75 20 74 79 70 | just as| you typ|
|00000ce0| 65 64 20 69 74 2c 20 74 | 79 70 65 0a 3c 54 54 3e |ed it, t|ype.<TT>|
|00000cf0| 72 3c 2f 54 54 3e 2c 20 | 6f 72 20 69 66 20 79 6f |r</TT>, |or if yo|
|00000d00| 75 20 77 61 6e 74 20 74 | 68 69 73 20 74 79 70 65 |u want t|his type|
|00000d10| 20 6f 66 20 70 72 69 6e | 74 69 6e 67 20 74 6f 20 | of prin|ting to |
|00000d20| 62 65 20 74 68 65 20 70 | 65 72 6d 61 6e 65 6e 74 |be the p|ermanent|
|00000d30| 20 64 65 66 61 75 6c 74 | 0a 74 79 70 65 20 3c 54 | default|.type <T|
|00000d40| 54 3e 70 3c 2f 54 54 3e | 20 74 77 69 63 65 20 28 |T>p</TT>| twice (|
|00000d50| 74 68 65 20 66 69 72 73 | 74 20 74 69 6d 65 20 70 |the firs|t time p|
|00000d60| 75 74 73 20 47 50 20 69 | 6e 20 61 20 6d 6f 64 65 |uts GP i|n a mode|
|00000d70| 20 77 68 69 63 68 20 69 | 6e 20 74 68 65 20 70 72 | which i|n the pr|
|00000d80| 65 73 65 6e 74 0a 76 65 | 72 73 69 6f 6e 20 79 6f |esent.ve|rsion yo|
|00000d90| 75 20 64 6f 20 6e 6f 74 | 20 77 61 6e 74 20 74 6f |u do not| want to|
|00000da0| 20 75 73 65 29 2e 20 54 | 79 70 65 20 3c 54 54 3e | use). T|ype <TT>|
|00000db0| 70 3c 2f 54 54 3e 20 61 | 20 74 68 69 72 64 20 74 |p</TT> a| third t|
|00000dc0| 69 6d 65 20 69 66 20 79 | 6f 75 20 77 61 6e 74 0a |ime if y|ou want.|
|00000dd0| 74 6f 20 63 6f 6d 65 20 | 62 61 63 6b 20 74 6f 20 |to come |back to |
|00000de0| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 64 65 66 |the orig|inal def|
|00000df0| 61 75 6c 74 2e 0a 0a 3c | 50 3e 0a 4e 6f 77 20 74 |ault...<|P>.Now t|
|00000e00| 79 70 65 20 3c 54 54 3e | 6d 5b 31 2c 32 5d 3c 2f |ype <TT>|m[1,2]</|
|00000e10| 54 54 3e 2c 20 3c 54 54 | 3e 6d 5b 31 2c 5d 3c 2f |TT>, <TT|>m[1,]</|
|00000e20| 54 54 3e 2c 20 3c 54 54 | 3e 6d 5b 2c 32 5d 3c 2f |TT>, <TT|>m[,2]</|
|00000e30| 54 54 3e 2e 20 41 72 65 | 20 65 78 70 6c 61 6e 61 |TT>. Are| explana|
|00000e40| 74 69 6f 6e 73 20 6e 65 | 63 65 73 73 61 72 79 3f |tions ne|cessary?|
|00000e50| 0a 28 49 6e 20 61 6e 20 | 65 78 70 72 65 73 73 69 |.(In an |expressi|
|00000e60| 6f 6e 20 73 75 63 68 20 | 61 73 20 3c 54 54 3e 6d |on such |as <TT>m|
|00000e70| 5b 6a 2c 6b 5d 3c 2f 54 | 54 3e 2c 20 74 68 65 20 |[j,k]</T|T>, the |
|00000e80| 3c 54 54 3e 6a 3c 2f 54 | 54 3e 20 61 6c 77 61 79 |<TT>j</T|T> alway|
|00000e90| 73 20 72 65 66 65 72 73 | 20 74 6f 20 74 68 65 0a |s refers| to the.|
|00000ea0| 72 6f 77 20 6e 75 6d 62 | 65 72 2c 20 61 6e 64 20 |row numb|er, and |
|00000eb0| 74 68 65 20 3c 54 54 3e | 6b 3c 2f 54 54 3e 20 74 |the <TT>|k</TT> t|
|00000ec0| 6f 20 74 68 65 20 63 6f | 6c 75 6d 6e 20 6e 75 6d |o the co|lumn num|
|00000ed0| 62 65 72 2c 20 61 6e 64 | 20 74 68 65 20 66 69 72 |ber, and| the fir|
|00000ee0| 73 74 20 69 6e 64 65 78 | 20 69 73 0a 61 6c 77 61 |st index| is.alwa|
|00000ef0| 79 73 20 31 2c 20 6e 65 | 76 65 72 20 30 2e 20 54 |ys 1, ne|ver 0. T|
|00000f00| 68 69 73 20 64 65 66 61 | 75 6c 74 20 63 61 6e 6e |his defa|ult cann|
|00000f10| 6f 74 20 62 65 20 63 68 | 61 6e 67 65 64 2e 29 0a |ot be ch|anged.).|
|00000f20| 0a 3c 50 3e 0a 45 76 65 | 6e 20 62 65 74 74 65 72 |.<P>.Eve|n better|
|00000f30| 2c 20 74 79 70 65 20 3c | 54 54 3e 6d 5b 31 2c 32 |, type <|TT>m[1,2|
|00000f40| 5d 3d 35 3b 6d 3c 2f 54 | 54 3e 20 28 74 68 65 20 |]=5;m</T|T> (the |
|00000f50| 73 65 6d 69 63 6f 6c 6f | 6e 20 61 6c 6c 6f 77 73 |semicolo|n allows|
|00000f60| 20 75 73 20 74 6f 20 70 | 75 74 20 73 65 76 65 72 | us to p|ut sever|
|00000f70| 61 6c 0a 69 6e 73 74 72 | 75 63 74 69 6f 6e 73 20 |al.instr|uctions |
|00000f80| 6f 6e 20 74 68 65 20 73 | 61 6d 65 20 6c 69 6e 65 |on the s|ame line|
|00000f90| 2e 20 49 74 20 69 73 20 | 61 6e 20 61 62 73 6f 6c |. It is |an absol|
|00000fa0| 75 74 65 20 6e 65 63 65 | 73 73 69 74 79 20 77 68 |ute nece|ssity wh|
|00000fb0| 65 6e 20 77 65 20 70 72 | 6f 67 72 61 6d 0a 69 6e |en we pr|ogram.in|
|00000fc0| 20 47 50 29 2e 20 4e 6f | 77 20 74 79 70 65 20 3c | GP). No|w type <|
|00000fd0| 54 54 3e 6d 5b 31 2c 5d | 3d 5b 31 35 2c 2d 31 37 |TT>m[1,]|=[15,-17|
|00000fe0| 5d 3c 2f 54 54 3e 2e 20 | 4e 6f 20 70 72 6f 62 6c |]</TT>. |No probl|
|00000ff0| 65 6d 2e 20 46 69 6e 61 | 6c 6c 79 20 74 79 70 65 |em. Fina|lly type|
|00001000| 0a 3c 54 54 3e 6d 5b 2c | 32 5d 3d 5b 6a 2c 6b 5d |.<TT>m[,|2]=[j,k]|
|00001010| 3c 2f 54 54 3e 2e 20 59 | 6f 75 20 68 61 76 65 20 |</TT>. Y|ou have |
|00001020| 61 6e 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |an error| message|
|00001030| 20 73 69 6e 63 65 20 79 | 6f 75 20 68 61 76 65 20 | since y|ou have |
|00001040| 74 79 70 65 64 20 61 20 | 72 6f 77 0a 76 65 63 74 |typed a |row.vect|
|00001050| 6f 72 2c 20 77 68 69 6c | 65 20 3c 54 54 3e 6d 5b |or, whil|e <TT>m[|
|00001060| 2c 32 5d 3c 2f 54 54 3e | 20 69 73 20 61 20 63 6f |,2]</TT>| is a co|
|00001070| 6c 75 6d 6e 20 76 65 63 | 74 6f 72 2e 20 49 66 20 |lumn vec|tor. If |
|00001080| 79 6f 75 20 74 79 70 65 | 20 69 6e 73 74 65 61 64 |you type| instead|
|00001090| 0a 3c 54 54 3e 6d 5b 2c | 32 5d 3d 5b 6a 2c 6b 5d |.<TT>m[,|2]=[j,k]|
|000010a0| 26 23 37 33 32 3b 3c 2f | 54 54 3e 20 69 74 20 77 |&#732;</|TT> it w|
|000010b0| 6f 72 6b 73 2e 0a 0a 3c | 50 3e 3c 2f 50 3e 0a 54 |orks...<|P></P>.T|
|000010c0| 79 70 65 20 6e 6f 77 20 | 3c 54 54 3e 68 3d 68 69 |ype now |<TT>h=hi|
|000010d0| 6c 62 65 72 74 28 32 30 | 29 3c 2f 54 54 3e 2e 20 |lbert(20|)</TT>. |
|000010e0| 59 6f 75 20 67 65 74 20 | 74 68 65 20 73 6f 2d 63 |You get |the so-c|
|000010f0| 61 6c 6c 65 64 20 60 60 | 48 69 6c 62 65 72 74 20 |alled ``|Hilbert |
|00001100| 6d 61 74 72 69 78 27 27 | 20 77 68 6f 73 65 20 0a |matrix''| whose .|
|00001110| 63 6f 65 66 66 69 63 69 | 65 6e 74 20 6f 66 20 72 |coeffici|ent of r|
|00001120| 6f 77 20 3c 54 54 3e 69 | 3c 2f 54 54 3e 20 61 6e |ow <TT>i|</TT> an|
|00001130| 64 20 63 6f 6c 75 6d 6e | 20 3c 54 54 3e 6a 3c 2f |d column| <TT>j</|
|00001140| 54 54 3e 20 69 73 20 65 | 71 75 61 6c 20 74 6f 0a |TT> is e|qual to.|
|00001150| 3c 54 54 3e 31 2f 28 69 | 2b 6a 2d 31 29 3c 2f 54 |<TT>1/(i|+j-1)</T|
|00001160| 54 3e 2e 20 49 6e 63 69 | 64 65 6e 74 61 6c 6c 79 |T>. Inci|dentally|
|00001170| 2c 20 74 68 65 20 6d 61 | 74 72 69 78 20 3c 54 54 |, the ma|trix <TT|
|00001180| 3e 68 3c 2f 54 54 3e 20 | 74 61 6b 65 73 20 74 6f |>h</TT> |takes to|
|00001190| 6f 0a 6d 75 63 68 20 72 | 6f 6f 6d 2e 20 49 66 20 |o.much r|oom. If |
|000011a0| 79 6f 75 20 64 6f 6e 27 | 74 20 77 61 6e 74 20 74 |you don'|t want t|
|000011b0| 6f 20 73 65 65 20 69 74 | 2c 20 73 69 6d 70 6c 79 |o see it|, simply|
|000011c0| 20 74 79 70 65 20 61 20 | 73 65 6d 69 2d 63 6f 6c | type a |semi-col|
|000011d0| 6f 6e 20 60 60 3b 27 27 | 20 61 74 20 74 68 65 0a |on ``;''| at the.|
|000011e0| 65 6e 64 20 6f 66 20 74 | 68 65 20 6c 69 6e 65 20 |end of t|he line |
|000011f0| 28 3c 54 54 3e 68 3d 68 | 69 6c 62 65 72 74 28 32 |(<TT>h=h|ilbert(2|
|00001200| 30 29 3b 3c 2f 54 54 3e | 29 2e 20 54 68 69 73 20 |0);</TT>|). This |
|00001210| 69 73 20 61 6e 20 65 78 | 61 6d 70 6c 65 20 6f 66 |is an ex|ample of|
|00001220| 20 61 20 60 60 70 72 65 | 63 6f 6d 70 75 74 65 64 | a ``pre|computed|
|00001230| 27 27 0a 6d 61 74 72 69 | 78 2c 20 62 75 69 6c 74 |''.matri|x, built|
|00001240| 2d 69 6e 20 50 41 52 49 | 2e 20 54 68 65 72 65 20 |-in PARI|. There |
|00001250| 61 72 65 20 6f 6e 6c 79 | 20 61 20 66 65 77 2e 20 |are only| a few. |
|00001260| 57 65 20 77 69 6c 6c 20 | 73 65 65 20 6c 61 74 65 |We will |see late|
|00001270| 72 20 61 6e 20 65 78 61 | 6d 70 6c 65 0a 6f 66 20 |r an exa|mple.of |
|00001280| 61 20 6d 75 63 68 20 6d | 6f 72 65 20 67 65 6e 65 |a much m|ore gene|
|00001290| 72 61 6c 20 63 6f 6e 73 | 74 72 75 63 74 69 6f 6e |ral cons|truction|
|000012a0| 2e 0a 0a 3c 50 3e 0a 57 | 68 61 74 20 69 73 20 69 |...<P>.W|hat is i|
|000012b0| 6e 74 65 72 65 73 74 69 | 6e 67 20 61 62 6f 75 74 |nteresti|ng about|
|000012c0| 20 48 69 6c 62 65 72 74 | 20 6d 61 74 72 69 63 65 | Hilbert| matrice|
|000012d0| 73 20 69 73 20 74 68 61 | 74 20 66 69 72 73 74 20 |s is tha|t first |
|000012e0| 74 68 65 69 72 20 69 6e | 76 65 72 73 65 73 20 61 |their in|verses a|
|000012f0| 6e 64 0a 64 65 74 65 72 | 6d 69 6e 61 6e 74 73 20 |nd.deter|minants |
|00001300| 63 61 6e 20 62 65 20 63 | 6f 6d 70 75 74 65 64 20 |can be c|omputed |
|00001310| 65 78 70 6c 69 63 69 74 | 6c 79 20 28 61 6e 64 20 |explicit|ly (and |
|00001320| 74 68 65 20 69 6e 76 65 | 72 73 65 20 68 61 73 20 |the inve|rse has |
|00001330| 69 6e 74 65 67 65 72 0a | 63 6f 65 66 66 69 63 69 |integer.|coeffici|
|00001340| 65 6e 74 73 29 2c 20 61 | 6e 64 20 73 65 63 6f 6e |ents), a|nd secon|
|00001350| 64 20 74 68 65 79 20 61 | 72 65 20 6e 75 6d 65 72 |d they a|re numer|
|00001360| 69 63 61 6c 6c 79 20 76 | 65 72 79 20 75 6e 73 74 |ically v|ery unst|
|00001370| 61 62 6c 65 2c 20 77 68 | 69 63 68 20 6d 61 6b 65 |able, wh|ich make|
|00001380| 0a 74 68 65 6d 20 61 20 | 73 65 76 65 72 65 20 74 |.them a |severe t|
|00001390| 65 73 74 20 66 6f 72 20 | 6c 69 6e 65 61 72 20 61 |est for |linear a|
|000013a0| 6c 67 65 62 72 61 20 70 | 61 63 6b 61 67 65 73 20 |lgebra p|ackages |
|000013b0| 69 6e 20 6e 75 6d 65 72 | 69 63 61 6c 20 61 6e 61 |in numer|ical ana|
|000013c0| 6c 79 73 69 73 2e 0a 4f | 66 20 63 6f 75 72 73 65 |lysis..O|f course|
|000013d0| 20 77 69 74 68 20 50 41 | 52 49 2c 20 6e 6f 20 73 | with PA|RI, no s|
|000013e0| 75 63 68 20 70 72 6f 62 | 6c 65 6d 20 63 61 6e 20 |uch prob|lem can |
|000013f0| 6f 63 63 75 72 3a 20 73 | 69 6e 63 65 20 74 68 65 |occur: s|ince the|
|00001400| 20 63 6f 65 66 66 69 63 | 69 65 6e 74 73 20 61 72 | coeffic|ients ar|
|00001410| 65 0a 67 69 76 65 6e 20 | 61 73 20 72 61 74 69 6f |e.given |as ratio|
|00001420| 6e 61 6c 20 6e 75 6d 62 | 65 72 73 2c 20 74 68 65 |nal numb|ers, the|
|00001430| 20 63 6f 6d 70 75 74 61 | 74 69 6f 6e 20 77 69 6c | computa|tion wil|
|00001440| 6c 20 62 65 20 64 6f 6e | 65 20 65 78 61 63 74 6c |l be don|e exactl|
|00001450| 79 2c 20 73 6f 20 74 68 | 65 72 65 0a 63 61 6e 6e |y, so th|ere.cann|
|00001460| 6f 74 20 62 65 20 61 6e | 79 20 6e 75 6d 65 72 69 |ot be an|y numeri|
|00001470| 63 61 6c 20 65 72 72 6f | 72 2e 20 54 72 79 20 69 |cal erro|r. Try i|
|00001480| 74 2e 20 54 79 70 65 20 | 3c 54 54 3e 64 3d 64 65 |t. Type |<TT>d=de|
|00001490| 74 28 68 29 3c 2f 54 54 | 3e 20 28 79 6f 75 20 68 |t(h)</TT|> (you h|
|000014a0| 61 76 65 20 74 6f 20 62 | 65 0a 61 20 6c 69 74 74 |ave to b|e.a litt|
|000014b0| 6c 65 20 70 61 74 69 65 | 6e 74 2c 20 74 68 69 73 |le patie|nt, this|
|000014c0| 20 69 73 20 71 75 69 74 | 65 20 61 20 63 6f 6d 70 | is quit|e a comp|
|000014d0| 6c 69 63 61 74 65 64 20 | 63 6f 6d 70 75 74 61 74 |licated |computat|
|000014e0| 69 6f 6e 29 2e 20 54 68 | 65 20 72 65 73 75 6c 74 |ion). Th|e result|
|000014f0| 20 69 73 0a 61 20 72 61 | 74 69 6f 6e 61 6c 20 6e | is.a ra|tional n|
|00001500| 75 6d 62 65 72 20 28 6f | 66 20 63 6f 75 72 73 65 |umber (o|f course|
|00001510| 29 20 6f 66 20 6e 75 6d | 65 72 61 74 6f 72 20 65 |) of num|erator e|
|00001520| 71 75 61 6c 20 74 6f 20 | 31 20 61 6e 64 20 64 65 |qual to |1 and de|
|00001530| 6e 6f 6d 69 6e 61 74 6f | 72 20 68 61 76 69 6e 67 |nominato|r having|
|00001540| 0a 32 32 36 20 64 65 63 | 69 6d 61 6c 20 64 69 67 |.226 dec|imal dig|
|00001550| 69 74 73 2e 20 48 6f 77 | 20 64 6f 20 49 20 6b 6e |its. How| do I kn|
|00001560| 6f 77 2c 20 62 79 20 74 | 68 65 20 77 61 79 3f 20 |ow, by t|he way? |
|00001570| 49 20 64 69 64 20 6e 6f | 74 20 63 6f 75 6e 74 21 |I did no|t count!|
|00001580| 20 49 6e 73 74 65 61 64 | 2c 0a 73 69 6d 70 6c 79 | Instead|,.simply|
|00001590| 20 74 79 70 65 20 3c 54 | 54 3e 31 2e 2a 64 3c 2f | type <T|T>1.*d</|
|000015a0| 54 54 3e 2e 20 54 68 65 | 20 72 65 73 75 6c 74 20 |TT>. The| result |
|000015b0| 69 73 20 6e 6f 77 20 69 | 6e 20 65 78 70 6f 6e 65 |is now i|n expone|
|000015c0| 6e 74 69 61 6c 20 66 6f | 72 6d 61 74 2c 20 61 6e |ntial fo|rmat, an|
|000015d0| 64 20 74 68 65 0a 65 78 | 70 6f 6e 65 6e 74 20 67 |d the.ex|ponent g|
|000015e0| 69 76 65 73 20 75 73 20 | 74 68 65 20 61 6e 73 77 |ives us |the answ|
|000015f0| 65 72 2e 0a 0a 3c 50 3e | 0a 4e 6f 77 20 74 79 70 |er...<P>|.Now typ|
|00001600| 65 20 3c 54 54 3e 68 72 | 3d 31 2e 2a 68 3b 3c 2f |e <TT>hr|=1.*h;</|
|00001610| 54 54 3e 20 28 64 6f 20 | 6e 6f 74 20 66 6f 72 67 |TT> (do |not forg|
|00001620| 65 74 20 74 68 65 20 73 | 65 6d 69 63 6f 6c 6f 6e |et the s|emicolon|
|00001630| 2c 20 77 65 20 64 6f 6e | 27 74 20 77 61 6e 74 20 |, we don|'t want |
|00001640| 74 6f 20 73 65 65 0a 61 | 6c 6c 20 74 68 65 20 6a |to see.a|ll the j|
|00001650| 75 6e 6b 21 29 2c 20 74 | 68 65 6e 20 3c 54 54 3e |unk!), t|hen <TT>|
|00001660| 64 72 3d 64 65 74 28 68 | 72 29 3c 2f 54 54 3e 2e |dr=det(h|r)</TT>.|
|00001670| 20 59 6f 75 20 6e 6f 74 | 69 63 65 20 74 77 6f 20 | You not|ice two |
|00001680| 74 68 69 6e 67 73 2e 20 | 46 69 72 73 74 20 74 68 |things. |First th|
|00001690| 65 0a 63 6f 6d 70 75 74 | 61 74 69 6f 6e 2c 20 61 |e.comput|ation, a|
|000016a0| 6c 74 68 6f 75 67 68 20 | 6e 6f 74 20 69 6e 73 74 |lthough |not inst|
|000016b0| 61 6e 74 61 6e 65 6f 75 | 73 2c 20 69 73 20 6d 75 |antaneou|s, is mu|
|000016c0| 63 68 20 66 61 73 74 65 | 72 20 74 68 61 6e 20 69 |ch faste|r than i|
|000016d0| 6e 20 74 68 65 20 72 61 | 74 69 6f 6e 61 6c 0a 63 |n the ra|tional.c|
|000016e0| 61 73 65 2e 20 54 68 65 | 20 72 65 61 73 6f 6e 20 |ase. The| reason |
|000016f0| 66 6f 72 20 74 68 69 73 | 20 69 73 20 74 68 61 74 |for this| is that|
|00001700| 20 50 41 52 49 20 69 73 | 20 68 61 6e 64 6c 69 6e | PARI is| handlin|
|00001710| 67 20 72 65 61 6c 20 6e | 75 6d 62 65 72 73 20 77 |g real n|umbers w|
|00001720| 69 74 68 20 32 38 20 64 | 69 67 69 74 73 0a 6f 66 |ith 28 d|igits.of|
|00001730| 20 61 63 63 75 72 61 63 | 79 2c 20 77 68 69 6c 65 | accurac|y, while|
|00001740| 20 69 6e 20 74 68 65 20 | 72 61 74 69 6f 6e 61 6c | in the |rational|
|00001750| 20 63 61 73 65 20 69 74 | 20 69 73 20 68 61 6e 64 | case it| is hand|
|00001760| 6c 69 6e 67 20 69 6e 74 | 65 67 65 72 73 20 68 61 |ling int|egers ha|
|00001770| 76 69 6e 67 20 75 70 20 | 74 6f 0a 32 32 36 20 64 |ving up |to.226 d|
|00001780| 65 63 69 6d 61 6c 20 64 | 69 67 69 74 73 2e 0a 0a |ecimal d|igits...|
|00001790| 3c 50 3e 0a 54 68 65 20 | 73 65 63 6f 6e 64 20 6d |<P>.The |second m|
|000017a0| 6f 72 65 20 69 6d 70 6f | 72 74 61 6e 74 20 66 61 |ore impo|rtant fa|
|000017b0| 63 74 20 69 73 20 74 68 | 61 74 20 74 68 65 20 72 |ct is th|at the r|
|000017c0| 65 73 75 6c 74 20 69 73 | 20 74 65 72 72 69 62 6c |esult is| terribl|
|000017d0| 79 20 77 72 6f 6e 67 2e | 20 49 66 20 79 6f 75 0a |y wrong.| If you.|
|000017e0| 63 6f 6d 70 61 72 65 20 | 77 69 74 68 20 3c 54 54 |compare |with <TT|
|000017f0| 3e 31 2e 2a 64 3c 2f 54 | 54 3e 20 63 6f 6d 70 75 |>1.*d</T|T> compu|
|00001800| 74 65 64 20 65 61 72 6c | 69 65 72 2c 20 77 68 69 |ted earl|ier, whi|
|00001810| 63 68 20 69 73 20 63 6f | 72 72 65 63 74 2c 20 79 |ch is co|rrect, y|
|00001820| 6f 75 20 77 69 6c 6c 20 | 73 65 65 20 74 68 61 74 |ou will |see that|
|00001830| 0a 6f 6e 6c 79 20 32 20 | 64 65 63 69 6d 61 6c 73 |.only 2 |decimals|
|00001840| 20 61 67 72 65 65 21 20 | 54 68 69 73 20 63 61 74 | agree! |This cat|
|00001850| 61 73 74 72 6f 70 68 69 | 63 20 75 6e 73 74 61 62 |astrophi|c unstab|
|00001860| 69 6c 69 74 79 20 69 73 | 20 61 73 20 61 6c 72 65 |ility is| as alre|
|00001870| 61 64 79 20 0a 6d 65 6e | 74 69 6f 6e 65 64 20 6f |ady .men|tioned o|
|00001880| 6e 65 20 6f 66 20 74 68 | 65 20 63 68 61 72 61 63 |ne of th|e charac|
|00001890| 74 65 72 69 73 74 69 63 | 73 20 6f 66 20 48 69 6c |teristic|s of Hil|
|000018a0| 62 65 72 74 20 6d 61 74 | 72 69 63 65 73 2e 20 49 |bert mat|rices. I|
|000018b0| 6e 20 66 61 63 74 2c 20 | 74 68 65 20 0a 73 69 74 |n fact, |the .sit|
|000018c0| 75 61 74 69 6f 6e 20 69 | 73 20 6d 75 63 68 20 77 |uation i|s much w|
|000018d0| 6f 72 73 65 20 74 68 61 | 6e 20 74 68 61 74 2e 20 |orse tha|n that. |
|000018e0| 54 79 70 65 20 3c 54 54 | 3e 6e 6f 72 6d 6c 32 28 |Type <TT|>norml2(|
|000018f0| 31 2f 68 2d 31 2f 28 68 | 2a 31 2e 29 29 3c 2f 54 |1/h-1/(h|*1.))</T|
|00001900| 54 3e 0a 28 74 68 65 20 | 66 75 6e 63 74 69 6f 6e |T>.(the |function|
|00001910| 20 3c 54 54 3e 6e 6f 72 | 6d 6c 32 3c 2f 54 54 3e | <TT>nor|ml2</TT>|
|00001920| 20 67 69 76 65 73 20 74 | 68 65 20 73 71 75 61 72 | gives t|he squar|
|00001930| 65 20 6f 66 20 74 68 65 | 20 3c 49 3e 4c 3c 2f 49 |e of the| <I>L</I|
|00001940| 3e 3c 53 55 50 3e 32 3c | 2f 53 55 50 3e 20 6e 6f |><SUP>2<|/SUP> no|
|00001950| 72 6d 2c 20 69 2e 65 2e | 20 74 68 65 20 73 75 6d |rm, i.e.| the sum|
|00001960| 20 6f 66 0a 74 68 65 20 | 73 71 75 61 72 65 73 20 | of.the |squares |
|00001970| 6f 66 20 74 68 65 20 63 | 6f 65 66 66 69 63 69 65 |of the c|oefficie|
|00001980| 6e 74 73 29 2e 20 41 67 | 61 69 6e 20 62 65 20 70 |nts). Ag|ain be p|
|00001990| 61 74 69 65 6e 74 20 73 | 69 6e 63 65 20 63 6f 6d |atient s|ince com|
|000019a0| 70 75 74 69 6e 67 20 3c | 54 54 3e 31 2f 68 3c 2f |puting <|TT>1/h</|
|000019b0| 54 54 3e 0a 77 69 6c 6c | 20 74 61 6b 65 20 65 76 |TT>.will| take ev|
|000019c0| 65 6e 20 6d 6f 72 65 20 | 74 69 6d 65 20 28 6e 6f |en more |time (no|
|000019d0| 74 20 6d 75 63 68 29 20 | 74 68 61 6e 20 63 6f 6d |t much) |than com|
|000019e0| 70 75 74 69 6e 67 20 3c | 54 54 3e 64 65 74 28 68 |puting <|TT>det(h|
|000019f0| 29 3c 2f 54 54 3e 2e 20 | 54 68 65 20 72 65 73 75 |)</TT>. |The resu|
|00001a00| 6c 74 0a 69 73 20 6c 61 | 72 67 65 72 20 74 68 61 |lt.is la|rger tha|
|00001a10| 6e 20 31 30 3c 53 55 50 | 3e 35 30 3c 2f 53 55 50 |n 10<SUP|>50</SUP|
|00001a20| 3e 2c 20 73 68 6f 77 69 | 6e 67 20 74 68 61 74 20 |>, showi|ng that |
|00001a30| 73 6f 6d 65 20 63 6f 65 | 66 66 69 63 69 65 6e 74 |some coe|fficient|
|00001a40| 73 20 6f 66 20 3c 54 54 | 3e 31 2f 28 68 2a 31 2e |s of <TT|>1/(h*1.|
|00001a50| 29 3c 2f 54 54 3e 0a 61 | 72 65 20 77 72 6f 6e 67 |)</TT>.a|re wrong|
|00001a60| 20 62 79 20 61 73 20 6d | 75 63 68 20 61 73 20 31 | by as m|uch as 1|
|00001a70| 30 3c 53 55 50 3e 32 34 | 3c 2f 53 55 50 3e 20 28 |0<SUP>24|</SUP> (|
|00001a80| 74 68 65 20 6c 61 72 67 | 65 73 74 20 65 72 72 6f |the larg|est erro|
|00001a90| 72 20 69 73 20 69 6e 20 | 66 61 63 74 20 65 71 75 |r is in |fact equ|
|00001aa0| 61 6c 0a 74 6f 20 3c 21 | 2d 2d 20 4d 41 54 48 0a |al.to <!|-- MATH.|
|00001ab0| 20 24 37 2e 36 34 34 20 | 31 30 5e 7b 32 34 7d 24 | $7.644 |10^{24}$|
|00001ac0| 0a 20 2d 2d 3e 0a 37 2e | 36 34 34 31 30 3c 53 55 |. -->.7.|64410<SU|
|00001ad0| 50 3e 32 34 3c 2f 53 55 | 50 3e 20 66 6f 72 20 74 |P>24</SU|P> for t|
|00001ae0| 68 65 20 63 6f 65 66 66 | 69 63 69 65 6e 74 20 6f |he coeff|icient o|
|00001af0| 66 20 72 6f 77 20 31 35 | 20 61 6e 64 20 63 6f 6c |f row 15| and col|
|00001b00| 75 6d 6e 20 31 34 2c 20 | 77 68 69 63 68 20 69 73 |umn 14, |which is|
|00001b10| 20 61 0a 32 38 20 64 69 | 67 69 74 20 69 6e 74 65 | a.28 di|git inte|
|00001b20| 67 65 72 29 2e 0a 0a 3c | 50 3e 0a 54 6f 20 6f 62 |ger)...<|P>.To ob|
|00001b30| 74 61 69 6e 20 74 68 65 | 20 63 6f 72 72 65 63 74 |tain the| correct|
|00001b40| 20 72 65 73 75 6c 74 20 | 61 66 74 65 72 20 72 6f | result |after ro|
|00001b50| 75 6e 64 69 6e 67 20 66 | 6f 72 20 74 68 65 20 69 |unding f|or the i|
|00001b60| 6e 76 65 72 73 65 2c 20 | 77 65 20 68 61 76 65 20 |nverse, |we have |
|00001b70| 74 6f 20 75 73 65 0a 61 | 20 64 65 66 61 75 6c 74 |to use.a| default|
|00001b80| 20 70 72 65 63 69 73 69 | 6f 6e 20 6f 66 20 35 36 | precisi|on of 56|
|00001b90| 20 64 69 67 69 74 73 20 | 28 74 72 79 20 69 74 29 | digits |(try it)|
|00001ba0| 2e 0a 0a 3c 50 3e 3c 2f | 50 3e 0a 41 6c 74 68 6f |...<P></|P>.Altho|
|00001bb0| 75 67 68 20 76 65 63 74 | 6f 72 73 20 61 6e 64 20 |ugh vect|ors and |
|00001bc0| 6d 61 74 72 69 63 65 73 | 20 63 61 6e 20 62 65 20 |matrices| can be |
|00001bd0| 65 6e 74 65 72 65 64 20 | 6d 61 6e 75 61 6c 6c 79 |entered |manually|
|00001be0| 2c 20 62 79 20 74 79 70 | 69 6e 67 20 65 78 70 6c |, by typ|ing expl|
|00001bf0| 69 63 69 74 6c 79 0a 74 | 68 65 69 72 20 65 6c 65 |icitly.t|heir ele|
|00001c00| 6d 65 6e 74 73 2c 20 76 | 65 72 79 20 6f 66 74 65 |ments, v|ery ofte|
|00001c10| 6e 20 74 68 65 20 65 6c | 65 6d 65 6e 74 73 20 73 |n the el|ements s|
|00001c20| 61 74 69 73 66 79 20 61 | 20 73 69 6d 70 6c 65 20 |atisfy a| simple |
|00001c30| 6c 61 77 20 61 6e 64 20 | 6f 6e 65 20 75 73 65 73 |law and |one uses|
|00001c40| 20 61 0a 64 69 66 66 65 | 72 65 6e 74 20 73 79 6e | a.diffe|rent syn|
|00001c50| 74 61 78 2e 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |tax. For| example|
|00001c60| 2c 20 61 73 73 75 6d 65 | 20 74 68 61 74 20 79 6f |, assume| that yo|
|00001c70| 75 20 77 61 6e 74 20 61 | 20 76 65 63 74 6f 72 20 |u want a| vector |
|00001c80| 77 68 6f 73 65 20 3c 54 | 54 3e 6b 3c 2f 54 54 3e |whose <T|T>k</TT>|
|00001c90| 2d 74 68 0a 63 6f 6f 72 | 64 69 6e 61 74 65 20 69 |-th.coor|dinate i|
|00001ca0| 73 20 65 71 75 61 6c 20 | 74 6f 20 3c 54 54 3e 6b |s equal |to <TT>k|
|00001cb0| 26 23 37 31 30 3b 32 3c | 2f 54 54 3e 2e 20 4e 6f |&#710;2<|/TT>. No|
|00001cc0| 20 70 72 6f 62 6c 65 6d | 2c 20 74 79 70 65 20 66 | problem|, type f|
|00001cd0| 6f 72 20 65 78 61 6d 70 | 6c 65 0a 3c 54 54 3e 76 |or examp|le.<TT>v|
|00001ce0| 65 63 74 6f 72 28 31 30 | 2c 6b 2c 6b 26 23 37 31 |ector(10|,k,k&#71|
|00001cf0| 30 3b 32 29 3c 2f 54 54 | 3e 20 69 66 20 79 6f 75 |0;2)</TT|> if you|
|00001d00| 20 77 61 6e 74 20 61 20 | 76 65 63 74 6f 72 20 6f | want a |vector o|
|00001d10| 66 20 6c 65 6e 67 74 68 | 20 31 30 2e 20 53 69 6d |f length| 10. Sim|
|00001d20| 69 6c 61 72 6c 79 2c 20 | 69 66 0a 79 6f 75 20 74 |ilarly, |if.you t|
|00001d30| 79 70 65 20 0a 0a 3c 50 | 3e 0a 3c 44 49 56 20 41 |ype ..<P|>.<DIV A|
|00001d40| 4c 49 47 4e 3d 22 43 45 | 4e 54 45 52 22 3e 0a 3c |LIGN="CE|NTER">.<|
|00001d50| 54 54 3e 6d 61 74 72 69 | 78 28 35 2c 35 2c 6a 2c |TT>matri|x(5,5,j,|
|00001d60| 6b 2c 31 2f 28 6a 2b 6b | 2d 31 29 29 3c 2f 54 54 |k,1/(j+k|-1))</TT|
|00001d70| 3e 3c 2f 44 49 56 3e 0a | 0a 3c 50 3e 0a 79 6f 75 |></DIV>.|.<P>.you|
|00001d80| 20 77 69 6c 6c 20 67 65 | 74 20 74 68 65 20 48 69 | will ge|t the Hi|
|00001d90| 6c 62 65 72 74 0a 6d 61 | 74 72 69 78 20 6f 66 20 |lbert.ma|trix of |
|00001da0| 6f 72 64 65 72 20 35 20 | 28 68 65 6e 63 65 20 74 |order 5 |(hence t|
|00001db0| 68 65 20 3c 54 54 3e 68 | 69 6c 62 65 72 74 3c 2f |he <TT>h|ilbert</|
|00001dc0| 54 54 3e 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |TT> func|tion is |
|00001dd0| 75 6e 6e 65 63 65 73 73 | 61 72 79 29 2e 0a 54 68 |unnecess|ary)..Th|
|00001de0| 65 20 3c 54 54 3e 6a 3c | 2f 54 54 3e 20 61 6e 64 |e <TT>j<|/TT> and|
|00001df0| 20 3c 54 54 3e 6b 3c 2f | 54 54 3e 20 72 65 70 72 | <TT>k</|TT> repr|
|00001e00| 65 73 65 6e 74 20 64 75 | 6d 6d 79 20 76 61 72 69 |esent du|mmy vari|
|00001e10| 61 62 6c 65 73 20 77 68 | 69 63 68 20 61 72 65 20 |ables wh|ich are |
|00001e20| 75 73 65 64 20 74 6f 20 | 6e 75 6d 62 65 72 0a 74 |used to |number.t|
|00001e30| 68 65 20 72 6f 77 73 20 | 61 6e 64 20 63 6f 6c 75 |he rows |and colu|
|00001e40| 6d 6e 73 20 72 65 73 70 | 65 63 74 69 76 65 6c 79 |mns resp|ectively|
|00001e50| 20 28 69 6e 20 74 68 65 | 20 63 61 73 65 20 6f 66 | (in the| case of|
|00001e60| 20 61 20 76 65 63 74 6f | 72 20 6f 6e 6c 79 20 6f | a vecto|r only o|
|00001e70| 6e 65 20 69 73 20 70 72 | 65 73 65 6e 74 0a 6f 66 |ne is pr|esent.of|
|00001e80| 20 63 6f 75 72 73 65 29 | 2e 20 59 6f 75 20 6d 75 | course)|. You mu|
|00001e90| 73 74 20 6e 6f 74 20 66 | 6f 72 67 65 74 2c 20 69 |st not f|orget, i|
|00001ea0| 6e 20 61 64 64 69 74 69 | 6f 6e 20 74 6f 20 74 68 |n additi|on to th|
|00001eb0| 65 20 64 69 6d 65 6e 73 | 69 6f 6e 73 20 6f 66 20 |e dimens|ions of |
|00001ec0| 74 68 65 20 76 65 63 74 | 6f 72 0a 6f 72 20 6d 61 |the vect|or.or ma|
|00001ed0| 74 72 69 78 2c 20 74 6f | 20 69 6e 64 69 63 61 74 |trix, to| indicat|
|00001ee0| 65 20 65 78 70 6c 69 63 | 69 74 6c 79 20 74 68 65 |e explic|itly the|
|00001ef0| 20 6e 61 6d 65 73 20 6f | 66 20 74 68 65 73 65 20 | names o|f these |
|00001f00| 76 61 72 69 61 62 6c 65 | 73 2e 0a 0a 3c 50 3e 0a |variable|s...<P>.|
|00001f10| 3c 42 3e 49 6d 70 6f 72 | 74 61 6e 74 20 77 61 72 |<B>Impor|tant war|
|00001f20| 6e 69 6e 67 2e 3c 2f 42 | 3e 20 54 68 65 20 6c 65 |ning.</B|> The le|
|00001f30| 74 74 65 72 20 3c 54 54 | 3e 69 3c 2f 54 54 3e 20 |tter <TT|>i</TT> |
|00001f40| 69 73 20 72 65 73 65 72 | 76 65 64 20 66 6f 72 20 |is reser|ved for |
|00001f50| 74 68 65 20 63 6f 6d 70 | 6c 65 78 20 6e 75 6d 62 |the comp|lex numb|
|00001f60| 65 72 0a 65 71 75 61 6c | 20 74 6f 20 74 68 65 20 |er.equal| to the |
|00001f70| 73 71 75 61 72 65 20 72 | 6f 6f 74 20 6f 66 20 2d |square r|oot of -|
|00001f80| 31 2e 20 48 65 6e 63 65 | 20 69 74 20 69 73 20 61 |1. Hence| it is a|
|00001f90| 62 73 6f 6c 75 74 65 6c | 79 20 66 6f 72 62 69 64 |bsolutel|y forbid|
|00001fa0| 64 65 6e 20 74 6f 20 75 | 73 65 20 69 74 0a 61 73 |den to u|se it.as|
|00001fb0| 20 61 20 76 61 72 69 61 | 62 6c 65 2e 20 54 72 79 | a varia|ble. Try|
|00001fc0| 20 74 79 70 69 6e 67 20 | 3c 54 54 3e 76 65 63 74 | typing |<TT>vect|
|00001fd0| 6f 72 28 31 30 2c 69 2c | 69 26 23 37 31 30 3b 32 |or(10,i,|i&#710;2|
|00001fe0| 29 3c 2f 54 54 3e 2c 20 | 74 68 65 20 65 72 72 6f |)</TT>, |the erro|
|00001ff0| 72 20 6d 65 73 73 61 67 | 65 20 74 68 61 74 20 79 |r messag|e that y|
|00002000| 6f 75 0a 67 65 74 20 63 | 6c 65 61 72 6c 79 20 69 |ou.get c|learly i|
|00002010| 6e 64 69 63 61 74 65 73 | 20 74 68 61 74 20 47 50 |ndicates| that GP|
|00002020| 20 64 6f 65 73 20 6e 6f | 74 20 63 6f 6e 73 69 64 | does no|t consid|
|00002030| 65 72 20 3c 54 54 3e 69 | 3c 2f 54 54 3e 20 61 73 |er <TT>i|</TT> as|
|00002040| 20 61 20 76 61 72 69 61 | 62 6c 65 2e 0a 0a 3c 50 | a varia|ble...<P|
|00002050| 3e 0a 3c 42 52 3e 0a 54 | 68 65 20 6c 61 73 74 20 |>.<BR>.T|he last |
|00002060| 50 41 52 49 20 74 79 70 | 65 73 20 77 68 69 63 68 |PARI typ|es which|
|00002070| 20 77 65 20 68 61 76 65 | 20 6e 6f 74 20 79 65 74 | we have| not yet|
|00002080| 20 70 6c 61 79 65 64 20 | 77 69 74 68 20 61 72 65 | played |with are|
|00002090| 20 74 79 70 65 73 20 77 | 68 69 63 68 20 61 72 65 | types w|hich are|
|000020a0| 0a 63 6c 6f 73 65 6c 79 | 20 6c 69 6e 6b 65 64 20 |.closely| linked |
|000020b0| 74 6f 20 6e 75 6d 62 65 | 72 20 74 68 65 6f 72 79 |to numbe|r theory|
|000020c0| 20 28 68 65 6e 63 65 20 | 70 65 6f 70 6c 65 20 6e | (hence |people n|
|000020d0| 6f 74 20 69 6e 74 65 72 | 65 73 74 65 64 20 69 6e |ot inter|ested in|
|000020e0| 20 6e 75 6d 62 65 72 20 | 74 68 65 6f 72 79 0a 63 | number |theory.c|
|000020f0| 61 6e 20 73 6b 69 70 29 | 2e 0a 0a 3c 50 3e 0a 54 |an skip)|...<P>.T|
|00002100| 68 65 20 66 69 72 73 74 | 20 69 73 20 74 68 65 20 |he first| is the |
|00002110| 74 79 70 65 20 60 60 69 | 6e 74 65 67 65 72 6d 6f |type ``i|ntegermo|
|00002120| 64 27 27 2e 20 4c 65 74 | 20 75 73 20 73 65 65 20 |d''. Let| us see |
|00002130| 61 6e 20 65 78 61 6d 70 | 6c 65 2e 20 54 79 70 65 |an examp|le. Type|
|00002140| 0a 3c 54 54 3e 6e 3d 31 | 30 26 23 37 31 30 3b 31 |.<TT>n=1|0&#710;1|
|00002150| 35 2b 33 3c 2f 54 54 3e | 2e 20 57 65 20 77 61 6e |5+3</TT>|. We wan|
|00002160| 74 20 74 6f 20 6b 6e 6f | 77 20 77 68 65 74 68 65 |t to kno|w whethe|
|00002170| 72 20 3c 54 54 3e 6e 3c | 2f 54 54 3e 20 69 73 20 |r <TT>n<|/TT> is |
|00002180| 70 72 69 6d 65 20 6f 72 | 20 6e 6f 74 2e 20 4f 66 |prime or| not. Of|
|00002190| 20 63 6f 75 72 73 65 0a | 77 65 20 63 6f 75 6c 64 | course.|we could|
|000021a0| 20 6d 61 6b 65 20 75 73 | 65 20 6f 66 20 74 68 65 | make us|e of the|
|000021b0| 20 62 75 69 6c 74 69 6e | 20 66 61 63 69 6c 69 74 | builtin| facilit|
|000021c0| 69 65 73 20 6f 66 20 50 | 41 52 49 2c 20 62 75 74 |ies of P|ARI, but|
|000021d0| 20 6c 65 74 20 75 73 20 | 64 6f 20 6f 74 68 65 72 | let us |do other|
|000021e0| 77 69 73 65 2e 0a 57 65 | 20 66 69 72 73 74 20 74 |wise..We| first t|
|000021f0| 72 69 61 6c 20 64 69 76 | 69 64 65 20 62 79 20 74 |rial div|ide by t|
|00002200| 68 65 20 62 75 69 6c 74 | 69 6e 20 74 61 62 6c 65 |he built|in table|
|00002210| 20 6f 66 20 70 72 69 6d | 65 73 2c 20 62 79 20 64 | of prim|es, by d|
|00002220| 65 66 61 75 6c 74 20 75 | 70 20 74 6f 0a 35 30 30 |efault u|p to.500|
|00002230| 30 30 30 2e 20 57 65 20 | 73 6c 69 67 68 74 6c 79 |000. We |slightly|
|00002240| 20 63 68 65 61 74 20 68 | 65 72 65 20 61 6e 64 20 | cheat h|ere and |
|00002250| 75 73 65 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e |use the |function|
|00002260| 20 3c 54 54 3e 73 6d 61 | 6c 6c 66 61 63 74 3c 2f | <TT>sma|llfact</|
|00002270| 54 54 3e 20 77 68 69 63 | 68 0a 64 6f 65 73 20 65 |TT> whic|h.does e|
|00002280| 78 61 63 74 6c 79 20 74 | 68 69 73 2e 20 53 6f 20 |xactly t|his. So |
|00002290| 74 79 70 65 20 3c 54 54 | 3e 73 6d 61 6c 6c 66 61 |type <TT|>smallfa|
|000022a0| 63 74 28 6e 29 3c 2f 54 | 54 3e 2e 20 54 68 65 20 |ct(n)</T|T>. The |
|000022b0| 72 65 73 75 6c 74 20 69 | 73 20 61 20 32 20 63 6f |result i|s a 2 co|
|000022c0| 6c 75 6d 6e 0a 6d 61 74 | 72 69 78 20 28 61 73 20 |lumn.mat|rix (as |
|000022d0| 61 6c 6c 20 66 61 63 74 | 6f 72 69 6e 67 20 70 72 |all fact|oring pr|
|000022e0| 6f 67 72 61 6d 73 29 2c | 20 74 68 65 20 66 69 72 |ograms),| the fir|
|000022f0| 73 74 20 63 6f 6c 75 6d | 6e 20 67 69 76 69 6e 67 |st colum|n giving|
|00002300| 20 74 68 65 20 70 72 69 | 6d 65 73 20 61 6e 64 0a | the pri|mes and.|
|00002310| 74 68 65 20 73 65 63 6f | 6e 64 20 74 68 65 69 72 |the seco|nd their|
|00002320| 20 65 78 70 6f 6e 65 6e | 74 73 2e 20 48 65 72 65 | exponen|ts. Here|
|00002330| 20 77 65 20 67 65 74 20 | 61 20 73 69 6e 67 6c 65 | we get |a single|
|00002340| 20 72 6f 77 2c 20 74 65 | 6c 6c 69 6e 67 20 75 73 | row, te|lling us|
|00002350| 20 74 68 61 74 20 3c 54 | 54 3e 6e 3c 2f 54 54 3e | that <T|T>n</TT>|
|00002360| 0a 69 73 20 6e 6f 74 20 | 64 69 76 69 73 69 62 6c |.is not |divisibl|
|00002370| 65 20 62 79 20 61 6e 79 | 20 70 72 69 6d 65 20 75 |e by any| prime u|
|00002380| 70 20 74 6f 20 74 68 65 | 20 64 65 66 61 75 6c 74 |p to the| default|
|00002390| 20 28 35 30 30 30 30 30 | 29 2e 20 57 65 20 63 6f | (500000|). We co|
|000023a0| 75 6c 64 20 6e 6f 77 0a | 74 72 69 61 6c 20 64 69 |uld now.|trial di|
|000023b0| 76 69 64 65 20 66 75 72 | 74 68 65 72 2c 20 6f 72 |vide fur|ther, or|
|000023c0| 20 65 76 65 6e 20 63 68 | 65 61 74 20 63 6f 6d 70 | even ch|eat comp|
|000023d0| 6c 65 74 65 6c 79 20 61 | 6e 64 20 63 61 6c 6c 20 |letely a|nd call |
|000023e0| 74 68 65 20 50 41 52 49 | 20 66 75 6e 63 74 69 6f |the PARI| functio|
|000023f0| 6e 0a 3c 54 54 3e 66 61 | 63 74 6f 72 3c 2f 54 54 |n.<TT>fa|ctor</TT|
|00002400| 3e 2c 20 62 75 74 20 62 | 65 66 6f 72 65 20 77 65 |>, but b|efore we|
|00002410| 20 64 6f 20 74 68 69 73 | 20 6c 65 74 20 75 73 20 | do this| let us |
|00002420| 73 65 65 20 68 6f 77 20 | 74 6f 20 67 65 74 20 61 |see how |to get a|
|00002430| 6e 20 61 6e 73 77 65 72 | 20 6f 75 72 73 65 6c 76 |n answer| ourselv|
|00002440| 65 73 2e 0a 0a 3c 50 3e | 0a 42 79 20 46 65 72 6d |es...<P>|.By Ferm|
|00002450| 61 74 27 73 20 6c 69 74 | 74 6c 65 20 74 68 65 6f |at's lit|tle theo|
|00002460| 72 65 6d 2c 20 69 66 20 | 3c 54 54 3e 6e 3c 2f 54 |rem, if |<TT>n</T|
|00002470| 54 3e 20 69 73 20 70 72 | 69 6d 65 20 77 65 20 6d |T> is pr|ime we m|
|00002480| 75 73 74 20 68 61 76 65 | 20 0a 3c 21 2d 2d 20 4d |ust have| .<!-- M|
|00002490| 41 54 48 0a 20 24 5c 74 | 65 78 74 7b 61 7d 5e 7b |ATH. $\t|ext{a}^{|
|000024a0| 5c 74 65 78 74 7b 6e 2d | 31 7d 7d 5c 65 71 75 69 |\text{n-|1}}\equi|
|000024b0| 76 31 5c 70 6d 6f 64 7b | 5c 74 65 78 74 7b 6e 7d |v1\pmod{|\text{n}|
|000024c0| 7d 24 0a 20 2d 2d 3e 0a | 61 3c 53 55 50 3e 6e 2d |}$. -->.|a<SUP>n-|
|000024d0| 31 3c 2f 53 55 50 3e 26 | 23 38 38 30 31 3b 31 28 |1</SUP>&|#8801;1(|
|000024e0| 6d 6f 64 20 6e 29 20 66 | 6f 72 20 61 6c 6c 20 3c |mod n) f|or all <|
|000024f0| 54 54 3e 61 3c 2f 54 54 | 3e 20 6e 6f 74 20 64 69 |TT>a</TT|> not di|
|00002500| 76 69 73 69 62 6c 65 20 | 62 79 0a 3c 54 54 3e 6e |visible |by.<TT>n|
|00002510| 3c 2f 54 54 3e 2e 20 48 | 65 6e 63 65 20 77 65 20 |</TT>. H|ence we |
|00002520| 63 6f 75 6c 64 20 74 72 | 79 20 74 68 69 73 20 77 |could tr|y this w|
|00002530| 69 74 68 20 3c 54 54 3e | 61 3d 32 3c 2f 54 54 3e |ith <TT>|a=2</TT>|
|00002540| 20 66 6f 72 20 65 78 61 | 6d 70 6c 65 2e 20 42 75 | for exa|mple. Bu|
|00002550| 74 20 0a 3c 21 2d 2d 20 | 4d 41 54 48 0a 20 24 32 |t .<!-- |MATH. $2|
|00002560| 5e 7b 5c 74 65 78 74 7b | 6e 2d 31 7d 7d 24 0a 20 |^{\text{|n-1}}$. |
|00002570| 2d 2d 3e 0a 32 3c 53 55 | 50 3e 6e 2d 31 3c 2f 53 |-->.2<SU|P>n-1</S|
|00002580| 55 50 3e 20 69 73 20 61 | 20 6e 75 6d 62 65 72 20 |UP> is a| number |
|00002590| 77 69 74 68 20 61 70 70 | 72 6f 78 69 6d 61 74 65 |with app|roximate|
|000025a0| 6c 79 20 3c 21 2d 2d 20 | 4d 41 54 48 0a 20 24 33 |ly <!-- |MATH. $3|
|000025b0| 5c 63 64 6f 74 31 30 5e | 7b 31 34 7d 24 0a 20 2d |\cdot10^|{14}$. -|
|000025c0| 2d 3e 0a 33 26 23 38 39 | 30 31 3b 31 30 3c 53 55 |->.3&#89|01;10<SU|
|000025d0| 50 3e 31 34 3c 2f 53 55 | 50 3e 20 64 69 67 69 74 |P>14</SU|P> digit|
|000025e0| 73 2c 20 68 65 6e 63 65 | 0a 69 6d 70 6f 73 73 69 |s, hence|.impossi|
|000025f0| 62 6c 65 20 74 6f 20 77 | 72 69 74 65 20 64 6f 77 |ble to w|rite dow|
|00002600| 6e 2c 20 65 76 65 6e 20 | 6c 65 73 73 20 74 6f 20 |n, even |less to |
|00002610| 63 6f 6d 70 75 74 65 2e | 20 42 75 74 20 69 6e 73 |compute.| But ins|
|00002620| 74 65 61 64 20 74 79 70 | 65 0a 3c 54 54 3e 61 3d |tead typ|e.<TT>a=|
|00002630| 6d 6f 64 28 32 2c 6e 29 | 3c 2f 54 54 3e 2e 20 54 |mod(2,n)|</TT>. T|
|00002640| 68 69 73 20 63 72 65 61 | 74 65 73 20 74 68 65 20 |his crea|tes the |
|00002650| 6e 75 6d 62 65 72 20 32 | 20 63 6f 6e 73 69 64 65 |number 2| conside|
|00002660| 72 65 64 20 6e 6f 77 20 | 61 73 20 61 6e 20 65 6c |red now |as an el|
|00002670| 65 6d 65 6e 74 20 6f 66 | 0a 74 68 65 20 72 69 6e |ement of|.the rin|
|00002680| 67 20 3c 21 2d 2d 20 4d | 41 54 48 0a 20 24 52 3d |g <!-- M|ATH. $R=|
|00002690| 5c 5a 2f 5c 74 65 78 74 | 7b 6e 7d 5c 5a 24 0a 20 |\Z/\text|{n}\Z$. |
|000026a0| 2d 2d 3e 0a 3c 49 3e 52 | 3c 2f 49 3e 20 3d 20 3c |-->.<I>R|</I> = <|
|000026b0| 49 4d 47 0a 20 53 54 59 | 4c 45 3d 22 68 65 69 67 |IMG. STY|LE="heig|
|000026c0| 68 74 3a 20 32 2e 31 30 | 65 78 3b 20 76 65 72 74 |ht: 2.10|ex; vert|
|000026d0| 69 63 61 6c 2d 61 6c 69 | 67 6e 3a 20 31 37 37 2e |ical-ali|gn: 177.|
|000026e0| 32 30 65 78 3b 20 22 20 | 53 52 43 3d 22 69 6d 67 |20ex; " |SRC="img|
|000026f0| 34 2e 70 6e 67 22 0a 20 | 41 4c 54 3d 22 24 5c 5a |4.png". |ALT="$\Z|
|00002700| 24 22 3e 2f 6e 3c 49 4d | 47 0a 20 53 54 59 4c 45 |$">/n<IM|G. STYLE|
|00002710| 3d 22 68 65 69 67 68 74 | 3a 20 32 2e 31 30 65 78 |="height|: 2.10ex|
|00002720| 3b 20 76 65 72 74 69 63 | 61 6c 2d 61 6c 69 67 6e |; vertic|al-align|
|00002730| 3a 20 31 37 37 2e 32 30 | 65 78 3b 20 22 20 53 52 |: 177.20|ex; " SR|
|00002740| 43 3d 22 69 6d 67 34 2e | 70 6e 67 22 0a 20 41 4c |C="img4.|png". AL|
|00002750| 54 3d 22 24 5c 5a 24 22 | 3e 2e 20 54 68 65 20 65 |T="$\Z$"|>. The e|
|00002760| 6c 65 6d 65 6e 74 73 20 | 6f 66 20 3c 49 3e 52 3c |lements |of <I>R<|
|00002770| 2f 49 3e 2c 20 63 61 6c | 6c 65 64 20 69 6e 74 65 |/I>, cal|led inte|
|00002780| 67 65 72 6d 6f 64 73 2c | 20 63 61 6e 0a 61 6c 77 |germods,| can.alw|
|00002790| 61 79 73 20 62 65 20 72 | 65 70 72 65 73 65 6e 74 |ays be r|epresent|
|000027a0| 65 64 20 62 79 20 6e 75 | 6d 62 65 72 73 20 73 6d |ed by nu|mbers sm|
|000027b0| 61 6c 6c 65 72 20 74 68 | 61 6e 20 3c 54 54 3e 6e |aller th|an <TT>n|
|000027c0| 3c 2f 54 54 3e 2c 20 68 | 65 6e 63 65 20 76 65 72 |</TT>, h|ence ver|
|000027d0| 79 20 73 6d 61 6c 6c 2e | 0a 46 65 72 6d 61 74 27 |y small.|.Fermat'|
|000027e0| 73 20 74 68 65 6f 72 65 | 6d 20 63 61 6e 20 62 65 |s theore|m can be|
|000027f0| 20 72 65 77 72 69 74 74 | 65 6e 20 3c 54 54 3e 3c | rewritt|en <TT><|
|00002800| 21 2d 2d 20 4d 41 54 48 | 0a 20 24 5c 74 65 78 74 |!-- MATH|. $\text|
|00002810| 7b 61 7d 5e 7b 5c 74 65 | 78 74 7b 6e 2d 31 7d 7d |{a}^{\te|xt{n-1}}|
|00002820| 3d 24 0a 20 2d 2d 3e 0a | 61 3c 53 55 50 3e 6e 2d |=$. -->.|a<SUP>n-|
|00002830| 31 3c 2f 53 55 50 3e 20 | 3d 6d 6f 64 28 31 2c 6e |1</SUP> |=mod(1,n|
|00002840| 29 3c 2f 54 54 3e 20 69 | 6e 0a 74 68 65 20 72 69 |)</TT> i|n.the ri|
|00002850| 6e 67 20 3c 49 3e 52 3c | 2f 49 3e 2c 20 61 6e 64 |ng <I>R<|/I>, and|
|00002860| 20 74 68 69 73 20 63 61 | 6e 20 62 65 20 63 6f 6d | this ca|n be com|
|00002870| 70 75 74 65 64 20 76 65 | 72 79 20 65 66 66 69 63 |puted ve|ry effic|
|00002880| 69 65 6e 74 6c 79 2e 20 | 54 79 70 65 0a 3c 54 54 |iently. |Type.<TT|
|00002890| 3e 61 26 23 37 31 30 3b | 28 6e 2d 31 29 3c 2f 54 |>a&#710;|(n-1)</T|
|000028a0| 54 3e 2e 20 54 68 65 20 | 72 65 73 75 6c 74 20 69 |T>. The |result i|
|000028b0| 73 20 64 65 66 69 6e 69 | 74 65 6c 79 20 3c 49 3e |s defini|tely <I>|
|000028c0| 6e 6f 74 3c 2f 49 3e 20 | 65 71 75 61 6c 20 74 6f |not</I> |equal to|
|000028d0| 20 3c 54 54 3e 6d 6f 64 | 28 31 2c 6e 29 3c 2f 54 | <TT>mod|(1,n)</T|
|000028e0| 54 3e 2c 0a 74 68 75 73 | 20 3c 49 3e 70 72 6f 76 |T>,.thus| <I>prov|
|000028f0| 69 6e 67 3c 2f 49 3e 20 | 74 68 61 74 20 3c 54 54 |ing</I> |that <TT|
|00002900| 3e 6e 3c 2f 54 54 3e 20 | 69 73 20 6e 6f 74 20 61 |>n</TT> |is not a|
|00002910| 20 70 72 69 6d 65 20 28 | 69 66 20 77 65 20 68 61 | prime (|if we ha|
|00002920| 64 20 6f 62 74 61 69 6e | 65 64 20 0a 3c 54 54 3e |d obtain|ed .<TT>|
|00002930| 6d 6f 64 28 31 2c 6e 29 | 3c 2f 54 54 3e 20 6f 6e |mod(1,n)|</TT> on|
|00002940| 20 74 68 65 20 6f 74 68 | 65 72 20 68 61 6e 64 2c | the oth|er hand,|
|00002950| 20 69 74 20 77 6f 75 6c | 64 20 68 61 76 65 20 67 | it woul|d have g|
|00002960| 69 76 65 6e 20 75 73 20 | 61 20 68 69 6e 74 20 74 |iven us |a hint t|
|00002970| 68 61 74 20 3c 54 54 3e | 6e 3c 2f 54 54 3e 0a 69 |hat <TT>|n</TT>.i|
|00002980| 73 20 6d 61 79 62 65 20 | 70 72 69 6d 65 2c 20 62 |s maybe |prime, b|
|00002990| 75 74 20 6e 65 76 65 72 | 20 61 20 70 72 6f 6f 66 |ut never| a proof|
|000029a0| 29 2e 0a 0a 3c 50 3e 0a | 54 6f 20 66 69 6e 64 20 |)...<P>.|To find |
|000029b0| 74 68 65 20 66 61 63 74 | 6f 72 73 20 69 73 20 61 |the fact|ors is a|
|000029c0| 6e 6f 74 68 65 72 20 73 | 74 6f 72 79 2e 20 4f 6e |nother s|tory. On|
|000029d0| 65 20 6d 75 73 74 20 75 | 73 65 20 6c 65 73 73 20 |e must u|se less |
|000029e0| 6e 61 69 76 65 20 74 65 | 63 68 6e 69 71 75 65 73 |naive te|chniques|
|000029f0| 20 74 68 61 6e 0a 74 72 | 69 61 6c 20 64 69 76 69 | than.tr|ial divi|
|00002a00| 73 69 6f 6e 20 28 6f 72 | 20 62 65 20 76 65 72 79 |sion (or| be very|
|00002a10| 20 70 61 74 69 65 6e 74 | 29 2e 20 54 6f 20 66 69 | patient|). To fi|
|00002a20| 6e 69 73 68 20 74 68 69 | 73 20 65 78 61 6d 70 6c |nish thi|s exampl|
|00002a30| 65 2c 20 74 79 70 65 20 | 0a 3c 54 54 3e 66 61 63 |e, type |.<TT>fac|
|00002a40| 74 6f 72 28 6e 29 3c 2f | 54 54 3e 20 74 6f 20 73 |tor(n)</|TT> to s|
|00002a50| 65 65 20 74 68 65 20 66 | 61 63 74 6f 72 73 2e 20 |ee the f|actors. |
|00002a60| 53 69 6e 63 65 20 74 68 | 65 20 73 6d 61 6c 6c 65 |Since th|e smalle|
|00002a70| 73 74 20 66 61 63 74 6f | 72 20 69 73 20 31 34 39 |st facto|r is 149|
|00002a80| 30 32 33 35 37 2c 0a 79 | 6f 75 20 77 6f 75 6c 64 |02357,.y|ou would|
|00002a90| 20 68 61 76 65 20 68 61 | 64 20 74 6f 20 62 65 20 | have ha|d to be |
|00002aa0| 76 65 72 79 20 70 61 74 | 69 65 6e 74 20 77 69 74 |very pat|ient wit|
|00002ab0| 68 20 74 72 69 61 6c 20 | 64 69 76 69 73 69 6f 6e |h trial |division|
|00002ac0| 21 0a 0a 3c 50 3e 3c 2f | 50 3e 0a 54 68 65 20 73 |!..<P></|P>.The s|
|00002ad0| 65 63 6f 6e 64 20 73 70 | 65 63 69 66 69 63 61 6c |econd sp|ecifical|
|00002ae0| 6c 79 20 6e 75 6d 62 65 | 72 2d 74 68 65 6f 72 65 |ly numbe|r-theore|
|00002af0| 74 69 63 20 74 79 70 65 | 20 69 73 20 74 68 65 20 |tic type| is the |
|00002b00| 70 2d 61 64 69 63 20 6e | 75 6d 62 65 72 73 2e 20 |p-adic n|umbers. |
|00002b10| 49 20 68 61 76 65 0a 6e | 6f 20 72 6f 6f 6d 20 66 |I have.n|o room f|
|00002b20| 6f 72 20 64 65 66 69 6e | 69 74 69 6f 6e 73 2c 20 |or defin|itions, |
|00002b30| 73 6f 20 70 6c 65 61 73 | 65 20 73 6b 69 70 20 69 |so pleas|e skip i|
|00002b40| 66 20 79 6f 75 20 68 61 | 76 65 20 6e 6f 20 75 73 |f you ha|ve no us|
|00002b50| 65 20 66 6f 72 20 73 75 | 63 68 20 62 65 61 73 74 |e for su|ch beast|
|00002b60| 73 2e 0a 41 20 70 2d 61 | 64 69 63 20 6e 75 6d 62 |s..A p-a|dic numb|
|00002b70| 65 72 20 69 73 20 65 6e | 74 65 72 65 64 20 61 73 |er is en|tered as|
|00002b80| 20 61 20 72 61 74 69 6f | 6e 61 6c 20 6f 72 20 69 | a ratio|nal or i|
|00002b90| 6e 74 65 67 65 72 20 76 | 61 6c 75 65 64 20 65 78 |nteger v|alued ex|
|00002ba0| 70 72 65 73 73 69 6f 6e | 20 74 6f 20 77 68 69 63 |pression| to whic|
|00002bb0| 68 0a 69 73 20 61 64 64 | 65 64 20 3c 54 54 3e 4f |h.is add|ed <TT>O|
|00002bc0| 28 70 26 23 37 31 30 3b | 6e 29 3c 2f 54 54 3e 20 |(p&#710;|n)</TT> |
|00002bd0| 28 6f 72 20 73 69 6d 70 | 6c 79 20 3c 54 54 3e 4f |(or simp|ly <TT>O|
|00002be0| 28 70 29 3c 2f 54 54 3e | 20 69 66 20 3c 54 54 3e |(p)</TT>| if <TT>|
|00002bf0| 6e 3d 31 3c 2f 54 54 3e | 29 20 77 68 65 72 65 20 |n=1</TT>|) where |
|00002c00| 3c 54 54 3e 70 3c 2f 54 | 54 3e 20 69 73 0a 74 68 |<TT>p</T|T> is.th|
|00002c10| 65 20 70 72 69 6d 65 20 | 61 6e 64 20 3c 54 54 3e |e prime |and <TT>|
|00002c20| 6e 3c 2f 54 54 3e 20 74 | 68 65 20 70 2d 61 64 69 |n</TT> t|he p-adi|
|00002c30| 63 20 70 72 65 63 69 73 | 69 6f 6e 2e 20 41 70 61 |c precis|ion. Apa|
|00002c40| 72 74 20 66 72 6f 6d 20 | 74 68 65 20 75 73 75 61 |rt from |the usua|
|00002c50| 6c 20 61 72 69 74 68 6d | 65 74 69 63 0a 6f 70 65 |l arithm|etic.ope|
|00002c60| 72 61 74 69 6f 6e 73 2c | 20 79 6f 75 20 63 61 6e |rations,| you can|
|00002c70| 20 61 70 70 6c 79 20 61 | 20 6e 75 6d 62 65 72 20 | apply a| number |
|00002c80| 6f 66 20 74 72 61 6e 73 | 63 65 6e 64 65 6e 74 61 |of trans|cendenta|
|00002c90| 6c 20 66 75 6e 63 74 69 | 6f 6e 73 2e 0a 46 6f 72 |l functi|ons..For|
|00002ca0| 20 65 78 61 6d 70 6c 65 | 2c 20 74 79 70 65 20 3c | example|, type <|
|00002cb0| 54 54 3e 6e 3d 35 36 39 | 2b 4f 28 37 26 23 37 31 |TT>n=569|+O(7&#71|
|00002cc0| 30 3b 38 29 3c 2f 54 54 | 3e 2e 20 54 68 65 6e 20 |0;8)</TT|>. Then |
|00002cd0| 74 79 70 65 20 3c 54 54 | 3e 73 3d 73 71 72 74 28 |type <TT|>s=sqrt(|
|00002ce0| 6e 29 3c 2f 54 54 3e 2c | 20 79 6f 75 0a 6f 62 74 |n)</TT>,| you.obt|
|00002cf0| 61 69 6e 20 6f 6e 65 20 | 6f 66 20 74 68 65 20 73 |ain one |of the s|
|00002d00| 71 75 61 72 65 20 72 6f | 6f 74 73 20 6f 66 20 3c |quare ro|ots of <|
|00002d10| 54 54 3e 6e 3c 2f 54 54 | 3e 20 28 69 66 20 79 6f |TT>n</TT|> (if yo|
|00002d20| 75 20 77 61 6e 74 20 74 | 6f 20 63 68 65 63 6b 2c |u want t|o check,|
|00002d30| 20 74 79 70 65 20 0a 3c | 54 54 3e 73 2a 73 2d 6e | type .<|TT>s*s-n|
|00002d40| 3c 2f 54 54 3e 29 2e 20 | 54 79 70 65 20 6e 6f 77 |</TT>). |Type now|
|00002d50| 20 3c 54 54 3e 6c 3d 6c | 6f 67 28 6e 29 3c 2f 54 | <TT>l=l|og(n)</T|
|00002d60| 54 3e 2c 20 74 68 65 6e | 20 3c 54 54 3e 65 3d 65 |T>, then| <TT>e=e|
|00002d70| 78 70 28 6c 29 3c 2f 54 | 54 3e 2e 20 49 66 20 79 |xp(l)</T|T>. If y|
|00002d80| 6f 75 0a 6b 6e 6f 77 20 | 61 62 6f 75 74 20 70 2d |ou.know |about p-|
|00002d90| 61 64 69 63 20 6c 6f 67 | 61 72 69 74 68 6d 73 2c |adic log|arithms,|
|00002da0| 20 79 6f 75 20 77 69 6c | 6c 20 6e 6f 74 20 62 65 | you wil|l not be|
|00002db0| 20 73 75 72 70 72 69 73 | 65 64 20 74 68 61 74 20 | surpris|ed that |
|00002dc0| 3c 54 54 3e 65 3c 2f 54 | 54 3e 20 69 73 20 6e 6f |<TT>e</T|T> is no|
|00002dd0| 74 0a 65 71 75 61 6c 20 | 74 6f 20 3c 54 54 3e 6e |t.equal |to <TT>n|
|00002de0| 3c 2f 54 54 3e 2e 20 54 | 79 70 65 20 3c 54 54 3e |</TT>. T|ype <TT>|
|00002df0| 28 6e 2f 65 29 26 23 37 | 31 30 3b 36 3c 2f 54 54 |(n/e)&#7|10;6</TT|
|00002e00| 3e 3a 20 3c 54 54 3e 65 | 3c 2f 54 54 3e 20 69 73 |>: <TT>e|</TT> is|
|00002e10| 20 69 6e 20 66 61 63 74 | 20 65 71 75 61 6c 20 74 | in fact| equal t|
|00002e20| 6f 20 3c 54 54 3e 6e 3c | 2f 54 54 3e 0a 74 69 6d |o <TT>n<|/TT>.tim|
|00002e30| 65 73 20 61 20 28 70 2d | 31 29 2d 73 74 20 72 6f |es a (p-|1)-st ro|
|00002e40| 6f 74 20 6f 66 20 75 6e | 69 74 79 2e 0a 0a 3c 50 |ot of un|ity...<P|
|00002e50| 3e 0a 49 6e 63 69 64 65 | 6e 74 61 6c 6c 79 2c 20 |>.Incide|ntally, |
|00002e60| 69 66 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 67 |if you w|ant to g|
|00002e70| 65 74 20 62 61 63 6b 20 | 74 68 65 20 69 6e 74 65 |et back |the inte|
|00002e80| 67 65 72 20 35 36 39 20 | 66 72 6f 6d 20 74 68 65 |ger 569 |from the|
|00002e90| 20 70 2d 61 64 69 63 20 | 6e 75 6d 62 65 72 0a 3c | p-adic |number.<|
|00002ea0| 54 54 3e 6e 3c 2f 54 54 | 3e 2c 20 74 79 70 65 20 |TT>n</TT|>, type |
|00002eb0| 3c 54 54 3e 74 72 75 6e | 63 28 6e 29 3c 2f 54 54 |<TT>trun|c(n)</TT|
|00002ec0| 3e 2e 0a 0a 3c 50 3e 3c | 2f 50 3e 0a 54 68 65 20 |>...<P><|/P>.The |
|00002ed0| 74 68 69 72 64 20 6e 75 | 6d 62 65 72 2d 74 68 65 |third nu|mber-the|
|00002ee0| 6f 72 65 74 69 63 20 74 | 79 70 65 20 69 73 20 74 |oretic t|ype is t|
|00002ef0| 68 65 20 74 79 70 65 20 | 60 60 71 75 61 64 72 61 |he type |``quadra|
|00002f00| 74 69 63 20 6e 75 6d 62 | 65 72 27 27 2e 20 54 68 |tic numb|er''. Th|
|00002f10| 69 73 20 74 79 70 65 0a | 69 73 20 73 70 65 63 69 |is type.|is speci|
|00002f20| 61 6c 6c 79 20 74 61 69 | 6c 6f 72 65 64 20 73 6f |ally tai|lored so|
|00002f30| 20 74 68 61 74 20 77 65 | 20 63 61 6e 20 65 61 73 | that we| can eas|
|00002f40| 69 6c 79 20 77 6f 72 6b | 20 69 6e 20 61 20 71 75 |ily work| in a qu|
|00002f50| 61 64 72 61 74 69 63 20 | 65 78 74 65 6e 73 69 6f |adratic |extensio|
|00002f60| 6e 0a 6f 66 20 61 20 62 | 61 73 65 20 66 69 65 6c |n.of a b|ase fiel|
|00002f70| 64 20 28 75 73 75 61 6c | 6c 79 20 3c 49 4d 47 0a |d (usual|ly <IMG.|
|00002f80| 20 53 54 59 4c 45 3d 22 | 68 65 69 67 68 74 3a 20 | STYLE="|height: |
|00002f90| 31 39 36 2e 32 35 65 78 | 3b 20 76 65 72 74 69 63 |196.25ex|; vertic|
|00002fa0| 61 6c 2d 61 6c 69 67 6e | 3a 20 2d 30 2e 31 32 65 |al-align|: -0.12e|
|00002fb0| 78 3b 20 22 20 53 52 43 | 3d 22 69 6d 67 31 2e 70 |x; " SRC|="img1.p|
|00002fc0| 6e 67 22 0a 20 41 4c 54 | 3d 22 24 5c 42 62 62 24 |ng". ALT|="$\Bbb$|
|00002fd0| 22 3e 3c 49 3e 51 3c 2f | 49 3e 29 2e 20 49 74 20 |"><I>Q</|I>). It |
|00002fe0| 69 73 20 61 20 67 65 6e | 65 72 61 6c 69 7a 61 74 |is a gen|eralizat|
|00002ff0| 69 6f 6e 20 6f 66 20 74 | 68 65 20 74 79 70 65 0a |ion of t|he type.|
|00003000| 60 60 63 6f 6d 70 6c 65 | 78 27 27 2e 20 54 6f 20 |``comple|x''. To |
|00003010| 73 74 61 72 74 2c 20 77 | 65 20 6d 75 73 74 20 73 |start, w|e must s|
|00003020| 70 65 63 69 66 79 20 77 | 68 69 63 68 20 71 75 61 |pecify w|hich qua|
|00003030| 64 72 61 74 69 63 20 66 | 69 65 6c 64 20 77 65 20 |dratic f|ield we |
|00003040| 77 61 6e 74 20 74 6f 20 | 77 6f 72 6b 0a 69 6e 2e |want to |work.in.|
|00003050| 20 46 6f 72 20 74 68 69 | 73 2c 20 77 65 20 75 73 | For thi|s, we us|
|00003060| 65 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 3c |e the fu|nction <|
|00003070| 54 54 3e 71 75 61 64 67 | 65 6e 3c 2f 54 54 3e 20 |TT>quadg|en</TT> |
|00003080| 61 70 70 6c 69 65 64 20 | 74 6f 20 74 68 65 20 0a |applied |to the .|
|00003090| 3c 49 3e 64 69 73 63 72 | 69 6d 69 6e 61 6e 74 3c |<I>discr|iminant<|
|000030a0| 2f 49 3e 20 3c 54 54 3e | 64 3c 2f 54 54 3e 20 28 |/I> <TT>|d</TT> (|
|000030b0| 61 73 20 6f 70 70 6f 73 | 65 64 20 74 6f 20 74 68 |as oppos|ed to th|
|000030c0| 65 20 72 61 64 69 63 61 | 6e 64 29 20 6f 66 20 74 |e radica|nd) of t|
|000030d0| 68 65 20 71 75 61 64 72 | 61 74 69 63 0a 66 69 65 |he quadr|atic.fie|
|000030e0| 6c 64 2e 20 54 68 69 73 | 20 72 65 74 75 72 6e 73 |ld. This| returns|
|000030f0| 20 61 20 6e 75 6d 62 65 | 72 20 28 61 6c 77 61 79 | a numbe|r (alway|
|00003100| 73 20 70 72 69 6e 74 65 | 64 20 61 73 20 3c 54 54 |s printe|d as <TT|
|00003110| 3e 77 3c 2f 54 54 3e 29 | 20 65 71 75 61 6c 20 74 |>w</TT>)| equal t|
|00003120| 6f 0a 3c 54 54 3e 28 64 | 2b 61 29 2f 32 3c 2f 54 |o.<TT>(d|+a)/2</T|
|00003130| 54 3e 20 77 68 65 72 65 | 20 3c 54 54 3e 61 3c 2f |T> where| <TT>a</|
|00003140| 54 54 3e 20 69 73 20 65 | 71 75 61 6c 20 74 6f 20 |TT> is e|qual to |
|00003150| 30 20 6f 72 20 31 20 61 | 63 63 6f 72 64 69 6e 67 |0 or 1 a|ccording|
|00003160| 20 74 6f 20 77 68 65 74 | 68 65 72 20 3c 54 54 3e | to whet|her <TT>|
|00003170| 64 3c 2f 54 54 3e 0a 69 | 73 20 65 76 65 6e 20 6f |d</TT>.i|s even o|
|00003180| 72 20 6f 64 64 2e 20 54 | 68 65 20 62 65 68 61 76 |r odd. T|he behav|
|00003190| 69 6f 72 20 6f 66 20 3c | 54 54 3e 71 75 61 64 67 |ior of <|TT>quadg|
|000031a0| 65 6e 3c 2f 54 54 3e 20 | 69 73 20 61 20 6c 69 74 |en</TT> |is a lit|
|000031b0| 74 6c 65 20 73 70 65 63 | 69 61 6c 3a 20 61 6c 74 |tle spec|ial: alt|
|000031c0| 68 6f 75 67 68 0a 69 74 | 73 20 72 65 73 75 6c 74 |hough.it|s result|
|000031d0| 20 69 73 20 61 6c 77 61 | 79 73 20 70 72 69 6e 74 | is alwa|ys print|
|000031e0| 65 64 20 61 73 20 3c 54 | 54 3e 77 3c 2f 54 54 3e |ed as <T|T>w</TT>|
|000031f0| 2c 20 74 68 65 20 76 61 | 72 69 61 62 6c 65 20 3c |, the va|riable <|
|00003200| 54 54 3e 77 3c 2f 54 54 | 3e 20 69 74 73 65 6c 66 |TT>w</TT|> itself|
|00003210| 20 69 73 20 6e 6f 74 0a | 73 65 74 20 74 6f 20 74 | is not.|set to t|
|00003220| 68 61 74 20 76 61 6c 75 | 65 2e 20 48 65 6e 63 65 |hat valu|e. Hence|
|00003230| 20 69 74 20 69 73 20 6e | 65 63 65 73 73 61 72 79 | it is n|ecessary|
|00003240| 20 74 6f 20 77 72 69 74 | 65 20 73 79 73 74 65 6d | to writ|e system|
|00003250| 61 74 69 63 61 6c 6c 79 | 0a 3c 54 54 3e 77 3d 71 |atically|.<TT>w=q|
|00003260| 75 61 64 67 65 6e 28 64 | 29 3c 2f 54 54 3e 20 75 |uadgen(d|)</TT> u|
|00003270| 73 69 6e 67 20 74 68 65 | 20 76 61 72 69 61 62 6c |sing the| variabl|
|00003280| 65 20 6e 61 6d 65 20 3c | 54 54 3e 77 3c 2f 54 54 |e name <|TT>w</TT|
|00003290| 3e 20 28 6f 72 20 3c 54 | 54 3e 77 31 3c 2f 54 54 |> (or <T|T>w1</TT|
|000032a0| 3e 20 65 74 63 2e 2e 20 | 69 66 20 79 6f 75 0a 68 |> etc.. |if you.h|
|000032b0| 61 76 65 20 73 65 76 65 | 72 61 6c 20 71 75 61 64 |ave seve|ral quad|
|000032c0| 72 61 74 69 63 20 66 69 | 65 6c 64 73 29 2c 20 6f |ratic fi|elds), o|
|000032d0| 74 68 65 72 77 69 73 65 | 20 79 6f 75 20 77 69 6c |therwise| you wil|
|000032e0| 6c 20 62 65 20 63 6f 6e | 66 75 73 65 64 2e 0a 0a |l be con|fused...|
|000032f0| 3c 50 3e 0a 53 6f 20 74 | 79 70 65 20 3c 54 54 3e |<P>.So t|ype <TT>|
|00003300| 77 3d 71 75 61 64 67 65 | 6e 28 2d 31 36 33 29 3c |w=quadge|n(-163)<|
|00003310| 2f 54 54 3e 2c 20 74 68 | 65 6e 20 3c 54 54 3e 63 |/TT>, th|en <TT>c|
|00003320| 68 61 72 28 77 2c 78 29 | 3c 2f 54 54 3e 20 77 68 |har(w,x)|</TT> wh|
|00003330| 69 63 68 20 61 73 6b 73 | 20 66 6f 72 20 74 68 65 |ich asks| for the|
|00003340| 0a 63 68 61 72 61 63 74 | 65 72 69 73 74 69 63 20 |.charact|eristic |
|00003350| 70 6f 6c 79 6e 6f 6d 69 | 61 6c 20 6f 66 20 3c 54 |polynomi|al of <T|
|00003360| 54 3e 77 3c 2f 54 54 3e | 20 65 78 70 72 65 73 73 |T>w</TT>| express|
|00003370| 65 64 20 77 69 74 68 20 | 74 68 65 20 76 61 72 69 |ed with |the vari|
|00003380| 61 62 6c 65 20 3c 54 54 | 3e 78 3c 2f 54 54 3e 2e |able <TT|>x</TT>.|
|00003390| 0a 54 68 65 20 72 65 73 | 75 6c 74 20 73 68 6f 77 |.The res|ult show|
|000033a0| 73 20 77 68 61 74 20 3c | 54 54 3e 77 3c 2f 54 54 |s what <|TT>w</TT|
|000033b0| 3e 20 77 69 6c 6c 20 72 | 65 70 72 65 73 65 6e 74 |> will r|epresent|
|000033c0| 2e 20 59 6f 75 20 63 61 | 6e 20 61 6c 73 6f 20 61 |. You ca|n also a|
|000033d0| 73 6b 20 66 6f 72 20 3c | 54 54 3e 31 2e 2a 77 3c |sk for <|TT>1.*w<|
|000033e0| 2f 54 54 3e 0a 74 6f 20 | 73 65 65 20 77 68 69 63 |/TT>.to |see whic|
|000033f0| 68 20 72 6f 6f 74 20 6f | 66 20 74 68 65 20 71 75 |h root o|f the qu|
|00003400| 61 64 72 61 74 69 63 20 | 68 61 73 20 62 65 65 6e |adratic |has been|
|00003410| 20 74 61 6b 65 6e 2c 20 | 62 75 74 20 74 68 69 73 | taken, |but this|
|00003420| 20 69 73 20 72 61 72 65 | 6c 79 20 0a 6e 65 63 65 | is rare|ly .nece|
|00003430| 73 73 61 72 79 2e 20 57 | 65 20 63 61 6e 20 6e 6f |ssary. W|e can no|
|00003440| 77 20 70 6c 61 79 20 69 | 6e 20 74 68 65 20 66 69 |w play i|n the fi|
|00003450| 65 6c 64 20 3c 21 2d 2d | 20 4d 41 54 48 0a 20 24 |eld <!--| MATH. $|
|00003460| 5c 42 62 62 20 51 28 5c | 73 71 72 74 7b 2d 31 36 |\Bbb Q(\|sqrt{-16|
|00003470| 33 7d 29 24 0a 20 2d 2d | 3e 0a 3c 49 4d 47 0a 20 |3})$. --|>.<IMG. |
|00003480| 53 54 59 4c 45 3d 22 68 | 65 69 67 68 74 3a 20 31 |STYLE="h|eight: 1|
|00003490| 39 36 2e 32 35 65 78 3b | 20 76 65 72 74 69 63 61 |96.25ex;| vertica|
|000034a0| 6c 2d 61 6c 69 67 6e 3a | 20 2d 30 2e 31 32 65 78 |l-align:| -0.12ex|
|000034b0| 3b 20 22 20 53 52 43 3d | 22 69 6d 67 31 2e 70 6e |; " SRC=|"img1.pn|
|000034c0| 67 22 0a 20 41 4c 54 3d | 22 24 5c 42 62 62 24 22 |g". ALT=|"$\Bbb$"|
|000034d0| 3e 3c 49 3e 51 3c 2f 49 | 3e 28 3c 49 4d 47 0a 20 |><I>Q</I|>(<IMG. |
|000034e0| 53 54 59 4c 45 3d 22 68 | 65 69 67 68 74 3a 20 31 |STYLE="h|eight: 1|
|000034f0| 39 36 2e 32 35 65 78 3b | 20 76 65 72 74 69 63 61 |96.25ex;| vertica|
|00003500| 6c 2d 61 6c 69 67 6e 3a | 20 2d 30 2e 35 32 65 78 |l-align:| -0.52ex|
|00003510| 3b 20 22 20 53 52 43 3d | 22 69 6d 67 35 2e 70 6e |; " SRC=|"img5.pn|
|00003520| 67 22 0a 20 41 4c 54 3d | 22 24 5c 73 71 72 74 7b |g". ALT=|"$\sqrt{|
|00003530| 7b 2d 31 36 33 7d 7d 24 | 22 3e 29 2e 20 54 79 70 |{-163}}$|">). Typ|
|00003540| 65 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 0a 3c 54 |e for ex|ample.<T|
|00003550| 54 3e 77 26 23 37 31 30 | 3b 31 30 2c 20 6e 6f 72 |T>w&#710|;10, nor|
|00003560| 6d 28 33 2b 34 2a 77 29 | 2c 20 31 2f 28 34 2b 77 |m(3+4*w)|, 1/(4+w|
|00003570| 29 3c 2f 54 54 3e 2e 20 | 4d 6f 72 65 20 69 6e 74 |)</TT>. |More int|
|00003580| 65 72 65 73 74 69 6e 67 | 2c 20 74 79 70 65 0a 3c |eresting|, type.<|
|00003590| 54 54 3e 61 3d 6d 6f 64 | 28 31 2c 32 33 29 2a 77 |TT>a=mod|(1,23)*w|
|000035a0| 3c 2f 54 54 3e 20 74 68 | 65 6e 20 3c 54 54 3e 62 |</TT> th|en <TT>b|
|000035b0| 3d 61 26 23 37 31 30 3b | 32 36 34 3c 2f 54 54 3e |=a&#710;|264</TT>|
|000035c0| 2e 20 54 68 69 73 20 69 | 73 20 61 20 67 65 6e 65 |. This i|s a gene|
|000035d0| 72 61 6c 69 7a 61 74 69 | 6f 6e 20 6f 66 20 46 65 |ralizati|on of Fe|
|000035e0| 72 6d 61 74 27 73 0a 74 | 68 65 6f 72 65 6d 20 74 |rmat's.t|heorem t|
|000035f0| 6f 20 71 75 61 64 72 61 | 74 69 63 20 66 69 65 6c |o quadra|tic fiel|
|00003600| 64 73 2e 20 49 66 20 79 | 6f 75 20 64 6f 20 6e 6f |ds. If y|ou do no|
|00003610| 74 20 77 61 6e 74 20 74 | 6f 20 73 65 65 20 74 68 |t want t|o see th|
|00003620| 65 20 32 33 20 61 6c 6c | 20 74 68 65 20 74 69 6d |e 23 all| the tim|
|00003630| 65 2c 0a 0a 74 79 70 65 | 20 3c 54 54 3e 6c 69 66 |e,..type| <TT>lif|
|00003640| 74 28 62 29 3c 2f 54 54 | 3e 2e 20 41 6e 6f 74 68 |t(b)</TT|>. Anoth|
|00003650| 65 72 20 65 78 61 6d 70 | 6c 65 2c 20 74 79 70 65 |er examp|le, type|
|00003660| 20 0a 3c 54 54 3e 70 3c | 21 2d 2d 20 4d 41 54 48 | .<TT>p<|!-- MATH|
|00003670| 0a 20 24 3d 7b 5c 74 74 | 20 78 7d 5e 32 2b 5c 74 |. $={\tt| x}^2+\t|
|00003680| 65 78 74 7b 77 7d 2a 7b | 5c 74 74 20 78 7d 2b 35 |ext{w}*{|\tt x}+5|
|00003690| 2a 5c 74 65 78 74 7b 77 | 7d 2b 37 24 0a 20 2d 2d |*\text{w|}+7$. --|
|000036a0| 3e 0a 3d 20 3c 49 4d 47 | 0a 20 53 54 59 4c 45 3d |>.= <IMG|. STYLE=|
|000036b0| 22 68 65 69 67 68 74 3a | 20 32 2e 33 38 65 78 3b |"height:| 2.38ex;|
|000036c0| 20 76 65 72 74 69 63 61 | 6c 2d 61 6c 69 67 6e 3a | vertica|l-align:|
|000036d0| 20 31 37 36 2e 32 38 65 | 78 3b 20 22 20 53 52 43 | 176.28e|x; " SRC|
|000036e0| 3d 22 69 6d 67 36 2e 70 | 6e 67 22 0a 20 41 4c 54 |="img6.p|ng". ALT|
|000036f0| 3d 22 24 5c 74 74 20 78 | 5e 7b 32 7d 5f 7b 7d 24 |="$\tt x|^{2}_{}$|
|00003700| 22 3e 20 2b 20 77 2a 3c | 49 4d 47 0a 20 53 54 59 |"> + w*<|IMG. STY|
|00003710| 4c 45 3d 22 68 65 69 67 | 68 74 3a 20 32 2e 30 33 |LE="heig|ht: 2.03|
|00003720| 65 78 3b 20 76 65 72 74 | 69 63 61 6c 2d 61 6c 69 |ex; vert|ical-ali|
|00003730| 67 6e 3a 20 31 37 37 2e | 32 37 65 78 3b 20 22 20 |gn: 177.|27ex; " |
|00003740| 53 52 43 3d 22 69 6d 67 | 37 2e 70 6e 67 22 0a 20 |SRC="img|7.png". |
|00003750| 41 4c 54 3d 22 24 5c 74 | 74 20 78 24 22 3e 20 2b |ALT="$\t|t x$"> +|
|00003760| 35 2a 77 20 2b 20 37 3c | 2f 54 54 3e 2c 20 74 68 |5*w + 7<|/TT>, th|
|00003770| 65 6e 20 3c 54 54 3e 6e | 6f 72 6d 28 70 29 3c 2f |en <TT>n|orm(p)</|
|00003780| 54 54 3e 20 28 6f 72 20 | 65 76 65 6e 0a 62 65 74 |TT> (or |even.bet|
|00003790| 74 65 72 20 3c 54 54 3e | 73 69 6d 70 6c 69 66 79 |ter <TT>|simplify|
|000037a0| 28 6e 6f 72 6d 28 70 29 | 29 3c 2f 54 54 3e 2c 20 |(norm(p)|)</TT>, |
|000037b0| 73 65 65 20 61 62 6f 76 | 65 29 2e 20 57 65 20 74 |see abov|e). We t|
|000037c0| 68 75 73 0a 6f 62 74 61 | 69 6e 20 74 68 65 20 71 |hus.obta|in the q|
|000037d0| 75 61 72 74 69 63 20 65 | 71 75 61 74 69 6f 6e 20 |uartic e|quation |
|000037e0| 6f 76 65 72 20 3c 49 4d | 47 0a 20 53 54 59 4c 45 |over <IM|G. STYLE|
|000037f0| 3d 22 68 65 69 67 68 74 | 3a 20 31 2e 31 32 65 78 |="height|: 1.12ex|
|00003800| 3b 20 76 65 72 74 69 63 | 61 6c 2d 61 6c 69 67 6e |; vertic|al-align|
|00003810| 3a 20 31 37 38 2e 31 38 | 65 78 3b 20 22 20 53 52 |: 178.18|ex; " SR|
|00003820| 43 3d 22 69 6d 67 38 2e | 70 6e 67 22 0a 20 41 4c |C="img8.|png". AL|
|00003830| 54 3d 22 24 5c 51 24 22 | 3e 20 63 6f 72 72 65 73 |T="$\Q$"|> corres|
|00003840| 70 6f 6e 64 69 6e 67 20 | 74 6f 20 74 68 65 20 72 |ponding |to the r|
|00003850| 65 6c 61 74 69 76 65 20 | 71 75 61 64 72 61 74 69 |elative |quadrati|
|00003860| 63 0a 65 78 74 65 6e 73 | 69 6f 6e 20 6f 76 65 72 |c.extens|ion over|
|00003870| 20 3c 21 2d 2d 20 4d 41 | 54 48 0a 20 24 5c 51 28 | <!-- MA|TH. $\Q(|
|00003880| 5c 74 65 78 74 7b 77 7d | 29 24 0a 20 2d 2d 3e 0a |\text{w}|)$. -->.|
|00003890| 3c 49 4d 47 0a 20 53 54 | 59 4c 45 3d 22 68 65 69 |<IMG. ST|YLE="hei|
|000038a0| 67 68 74 3a 20 31 2e 31 | 32 65 78 3b 20 76 65 72 |ght: 1.1|2ex; ver|
|000038b0| 74 69 63 61 6c 2d 61 6c | 69 67 6e 3a 20 31 37 38 |tical-al|ign: 178|
|000038c0| 2e 31 38 65 78 3b 20 22 | 20 53 52 43 3d 22 69 6d |.18ex; "| SRC="im|
|000038d0| 67 38 2e 70 6e 67 22 0a | 20 41 4c 54 3d 22 24 5c |g8.png".| ALT="$\|
|000038e0| 51 24 22 3e 28 77 29 20 | 64 65 66 69 6e 65 64 20 |Q$">(w) |defined |
|000038f0| 62 79 20 3c 54 54 3e 70 | 3c 2f 54 54 3e 2e 0a 0a |by <TT>p|</TT>...|
|00003900| 3c 50 3e 0a 4f 6e 20 74 | 68 65 20 6f 74 68 65 72 |<P>.On t|he other|
|00003910| 20 68 61 6e 64 2c 20 69 | 66 20 79 6f 75 20 74 79 | hand, i|f you ty|
|00003920| 70 65 20 3c 54 54 3e 77 | 72 3d 73 71 72 74 28 77 |pe <TT>w|r=sqrt(w|
|00003930| 26 23 37 31 30 3b 32 29 | 3c 2f 54 54 3e 2c 20 64 |&#710;2)|</TT>, d|
|00003940| 6f 20 6e 6f 74 20 65 78 | 70 65 63 74 20 74 6f 20 |o not ex|pect to |
|00003950| 67 65 74 20 62 61 63 6b | 0a 3c 54 54 3e 77 3c 2f |get back|.<TT>w</|
|00003960| 54 54 3e 2e 20 49 6e 73 | 74 65 61 64 2c 20 79 6f |TT>. Ins|tead, yo|
|00003970| 75 20 67 65 74 20 74 68 | 65 20 6e 75 6d 65 72 69 |u get th|e numeri|
|00003980| 63 61 6c 20 76 61 6c 75 | 65 2c 20 74 68 65 20 66 |cal valu|e, the f|
|00003990| 75 6e 63 74 69 6f 6e 20 | 3c 54 54 3e 73 71 72 74 |unction |<TT>sqrt|
|000039a0| 3c 2f 54 54 3e 20 62 65 | 69 6e 67 0a 63 6f 6e 73 |</TT> be|ing.cons|
|000039b0| 69 64 65 72 65 64 20 61 | 73 20 61 20 60 60 74 72 |idered a|s a ``tr|
|000039c0| 61 6e 73 63 65 6e 64 65 | 6e 74 61 6c 27 27 20 66 |anscende|ntal'' f|
|000039d0| 75 6e 63 74 69 6f 6e 2c | 20 65 76 65 6e 20 74 68 |unction,| even th|
|000039e0| 6f 75 67 68 20 69 74 20 | 69 73 20 61 6c 67 65 62 |ough it |is algeb|
|000039f0| 72 61 69 63 2e 0a 54 79 | 70 65 20 3c 54 54 3e 61 |raic..Ty|pe <TT>a|
|00003a00| 6c 67 64 65 70 28 77 72 | 2c 32 29 3c 2f 54 54 3e |lgdep(wr|,2)</TT>|
|00003a10| 2e 20 54 68 69 73 20 69 | 73 20 6f 6e 65 20 77 61 |. This i|s one wa|
|00003a20| 79 20 74 6f 20 67 65 74 | 20 3c 54 54 3e 77 3c 2f |y to get| <TT>w</|
|00003a30| 54 54 3e 20 62 61 63 6b | 2e 20 53 69 6d 69 6c 61 |TT> back|. Simila|
|00003a40| 72 6c 79 2c 0a 74 79 70 | 65 20 3c 54 54 3e 61 6c |rly,.typ|e <TT>al|
|00003a50| 67 64 65 70 28 73 71 72 | 74 28 33 2a 77 2b 35 29 |gdep(sqr|t(3*w+5)|
|00003a60| 2c 34 29 3c 2f 54 54 3e | 2e 20 53 65 65 20 74 68 |,4)</TT>|. See th|
|00003a70| 65 20 75 73 65 72 73 20 | 6d 61 6e 75 61 6c 20 66 |e users |manual f|
|00003a80| 6f 72 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 0a |or the f|unction.|
|00003a90| 3c 54 54 3e 61 6c 67 64 | 65 70 3c 2f 54 54 3e 2e |<TT>algd|ep</TT>.|
|00003aa0| 0a 0a 3c 50 3e 3c 2f 50 | 3e 0a 54 68 65 20 66 6f |..<P></P|>.The fo|
|00003ab0| 75 72 74 68 20 6e 75 6d | 62 65 72 2d 74 68 65 6f |urth num|ber-theo|
|00003ac0| 72 65 74 69 63 20 74 79 | 70 65 20 69 73 20 74 68 |retic ty|pe is th|
|00003ad0| 65 20 74 79 70 65 20 60 | 60 70 6f 6c 79 6d 6f 64 |e type `|`polymod|
|00003ae0| 27 27 2c 20 69 2e 65 2e | 20 70 6f 6c 79 6e 6f 6d |'', i.e.| polynom|
|00003af0| 69 61 6c 0a 6d 6f 64 75 | 6c 6f 20 61 6e 6f 74 68 |ial.modu|lo anoth|
|00003b00| 65 72 20 70 6f 6c 79 6e | 6f 6d 69 61 6c 2e 20 54 |er polyn|omial. T|
|00003b10| 68 69 73 20 74 79 70 65 | 20 69 73 20 75 73 65 64 |his type| is used|
|00003b20| 20 74 6f 20 77 6f 72 6b | 20 69 6e 20 61 6c 67 65 | to work| in alge|
|00003b30| 62 72 61 69 63 20 65 78 | 74 65 6e 73 69 6f 6e 73 |braic ex|tensions|
|00003b40| 2c 0a 66 6f 72 20 65 78 | 61 6d 70 6c 65 20 65 6c |,.for ex|ample el|
|00003b50| 65 6d 65 6e 74 73 20 6f | 66 20 6e 75 6d 62 65 72 |ements o|f number|
|00003b60| 20 66 69 65 6c 64 73 20 | 28 69 66 20 74 68 65 20 | fields |(if the |
|00003b70| 62 61 73 65 20 66 69 65 | 6c 64 20 69 73 20 3c 49 |base fie|ld is <I|
|00003b80| 4d 47 0a 20 53 54 59 4c | 45 3d 22 68 65 69 67 68 |MG. STYL|E="heigh|
|00003b90| 74 3a 20 31 39 36 2e 32 | 35 65 78 3b 20 76 65 72 |t: 196.2|5ex; ver|
|00003ba0| 74 69 63 61 6c 2d 61 6c | 69 67 6e 3a 20 2d 30 2e |tical-al|ign: -0.|
|00003bb0| 31 32 65 78 3b 20 22 20 | 53 52 43 3d 22 69 6d 67 |12ex; " |SRC="img|
|00003bc0| 31 2e 70 6e 67 22 0a 20 | 41 4c 54 3d 22 24 5c 42 |1.png". |ALT="$\B|
|00003bd0| 62 62 24 22 3e 3c 49 3e | 51 3c 2f 49 3e 29 2c 20 |bb$"><I>|Q</I>), |
|00003be0| 6f 72 0a 65 6c 65 6d 65 | 6e 74 73 20 6f 66 20 66 |or.eleme|nts of f|
|00003bf0| 69 6e 69 74 65 20 66 69 | 65 6c 64 73 20 28 69 66 |inite fi|elds (if|
|00003c00| 20 74 68 65 20 62 61 73 | 65 20 66 69 65 6c 64 20 | the bas|e field |
|00003c10| 69 73 20 3c 49 4d 47 0a | 20 53 54 59 4c 45 3d 22 |is <IMG.| STYLE="|
|00003c20| 68 65 69 67 68 74 3a 20 | 32 2e 31 30 65 78 3b 20 |height: |2.10ex; |
|00003c30| 76 65 72 74 69 63 61 6c | 2d 61 6c 69 67 6e 3a 20 |vertical|-align: |
|00003c40| 31 37 37 2e 32 30 65 78 | 3b 20 22 20 53 52 43 3d |177.20ex|; " SRC=|
|00003c50| 22 69 6d 67 34 2e 70 6e | 67 22 0a 20 41 4c 54 3d |"img4.pn|g". ALT=|
|00003c60| 22 24 5c 5a 24 22 3e 2f | 3c 49 3e 70 3c 2f 49 3e |"$\Z$">/|<I>p</I>|
|00003c70| 3c 49 4d 47 0a 20 53 54 | 59 4c 45 3d 22 68 65 69 |<IMG. ST|YLE="hei|
|00003c80| 67 68 74 3a 20 32 2e 31 | 30 65 78 3b 20 76 65 72 |ght: 2.1|0ex; ver|
|00003c90| 74 69 63 61 6c 2d 61 6c | 69 67 6e 3a 20 31 37 37 |tical-al|ign: 177|
|00003ca0| 2e 32 30 65 78 3b 20 22 | 20 53 52 43 3d 22 69 6d |.20ex; "| SRC="im|
|00003cb0| 67 34 2e 70 6e 67 22 0a | 20 41 4c 54 3d 22 24 5c |g4.png".| ALT="$\|
|00003cc0| 5a 24 22 3e 20 66 6f 72 | 20 61 20 70 72 69 6d 65 |Z$"> for| a prime|
|00003cd0| 20 3c 49 3e 70 3c 2f 49 | 3e 2c 0a 64 65 66 69 6e | <I>p</I|>,.defin|
|00003ce0| 65 64 20 62 79 20 61 6e | 20 69 6e 74 65 67 65 72 |ed by an| integer|
|00003cf0| 6d 6f 64 29 2e 20 49 6e | 20 61 20 73 65 6e 73 65 |mod). In| a sense|
|00003d00| 20 69 74 20 69 73 20 61 | 20 67 65 6e 65 72 61 6c | it is a| general|
|00003d10| 69 7a 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 74 |ization |of the t|
|00003d20| 79 70 65 0a 71 75 61 64 | 72 61 74 69 63 20 6e 75 |ype.quad|ratic nu|
|00003d30| 6d 62 65 72 2e 20 54 68 | 65 20 73 79 6e 74 61 78 |mber. Th|e syntax|
|00003d40| 20 75 73 65 64 20 69 73 | 20 74 68 65 20 73 61 6d | used is| the sam|
|00003d50| 65 20 61 73 20 66 6f 72 | 20 69 6e 74 65 67 65 72 |e as for| integer|
|00003d60| 6d 6f 64 73 2e 0a 46 6f | 72 20 65 78 61 6d 70 6c |mods..Fo|r exampl|
|00003d70| 65 2c 20 69 6e 73 74 65 | 61 64 20 6f 66 20 74 79 |e, inste|ad of ty|
|00003d80| 70 69 6e 67 20 3c 54 54 | 3e 77 3d 71 75 61 64 67 |ping <TT|>w=quadg|
|00003d90| 65 6e 28 2d 31 36 33 29 | 3c 2f 54 54 3e 2c 20 79 |en(-163)|</TT>, y|
|00003da0| 6f 75 20 63 61 6e 20 74 | 79 70 65 0a 3c 54 54 3e |ou can t|ype.<TT>|
|00003db0| 77 3d 6d 6f 64 28 78 2c | 78 26 23 37 31 30 3b 32 |w=mod(x,|x&#710;2|
|00003dc0| 2d 78 2b 34 31 29 3c 2f | 54 54 3e 2e 20 54 68 65 |-x+41)</|TT>. The|
|00003dd0| 6e 20 65 78 61 63 74 6c | 79 20 61 73 20 69 6e 20 |n exactl|y as in |
|00003de0| 74 68 65 20 71 75 61 64 | 72 61 74 69 63 20 63 61 |the quad|ratic ca|
|00003df0| 73 65 20 79 6f 75 20 63 | 61 6e 0a 74 79 70 65 20 |se you c|an.type |
|00003e00| 3c 54 54 3e 77 26 23 37 | 31 30 3b 31 30 2c 20 6e |<TT>w&#7|10;10, n|
|00003e10| 6f 72 6d 28 33 2b 34 2a | 77 29 2c 20 31 2f 28 34 |orm(3+4*|w), 1/(4|
|00003e20| 2b 77 29 2c 20 61 3d 6d | 6f 64 28 31 2c 32 33 29 |+w), a=m|od(1,23)|
|00003e30| 2a 77 2c 20 62 3d 61 26 | 23 37 31 30 3b 32 36 34 |*w, b=a&|#710;264|
|00003e40| 3c 2f 54 54 3e 2c 0a 6f | 62 74 61 69 6e 69 6e 67 |</TT>,.o|btaining|
|00003e50| 20 6f 66 20 63 6f 75 72 | 73 65 20 74 68 65 20 73 | of cour|se the s|
|00003e60| 61 6d 65 20 72 65 73 75 | 6c 74 73 20 28 74 79 70 |ame resu|lts (typ|
|00003e70| 65 20 3c 54 54 3e 6c 69 | 66 74 28 2e 2e 2e 29 3c |e <TT>li|ft(...)<|
|00003e80| 2f 54 54 3e 20 69 66 20 | 79 6f 75 20 64 6f 6e 27 |/TT> if |you don'|
|00003e90| 74 20 77 61 6e 74 0a 74 | 6f 20 73 65 65 20 74 68 |t want.t|o see th|
|00003ea0| 65 20 70 6f 6c 79 6e 6f | 6d 69 61 6c 20 3c 54 54 |e polyno|mial <TT|
|00003eb0| 3e 78 26 23 37 31 30 3b | 32 2d 78 2b 34 31 3c 2f |>x&#710;|2-x+41</|
|00003ec0| 54 54 3e 20 72 65 70 65 | 61 74 65 64 20 61 6c 6c |TT> repe|ated all|
|00003ed0| 20 74 68 65 20 74 69 6d | 65 29 2e 20 4f 66 20 63 | the tim|e). Of c|
|00003ee0| 6f 75 72 73 65 2c 0a 74 | 68 65 20 62 61 73 69 63 |ourse,.t|he basic|
|00003ef0| 20 69 6e 74 65 72 65 73 | 74 20 69 73 20 74 68 61 | interes|t is tha|
|00003f00| 74 20 79 6f 75 20 63 61 | 6e 20 77 6f 72 6b 20 69 |t you ca|n work i|
|00003f10| 6e 20 61 6e 79 20 64 65 | 67 72 65 65 2c 20 6e 6f |n any de|gree, no|
|00003f20| 74 20 6f 6e 6c 79 20 71 | 75 61 64 72 61 74 69 63 |t only q|uadratic|
|00003f30| 2e 0a 0a 3c 50 3e 0a 54 | 68 65 72 65 20 69 73 20 |...<P>.T|here is |
|00003f40| 68 6f 77 65 76 65 72 20 | 61 20 73 6c 69 67 68 74 |however |a slight|
|00003f50| 20 64 69 66 66 65 72 65 | 6e 63 65 20 69 6e 20 62 | differe|nce in b|
|00003f60| 65 68 61 76 69 6f 72 2e | 20 4b 65 65 70 69 6e 67 |ehavior.| Keeping|
|00003f70| 20 6f 75 72 20 3c 54 54 | 3e 77 3c 2f 54 54 3e 2c | our <TT|>w</TT>,|
|00003f80| 0a 74 79 70 65 20 3c 54 | 54 3e 31 2e 2a 3c 2f 54 |.type <T|T>1.*</T|
|00003f90| 54 3e 2e 20 41 73 20 79 | 6f 75 20 63 61 6e 20 73 |T>. As y|ou can s|
|00003fa0| 65 65 2c 20 74 68 65 20 | 72 65 73 75 6c 74 20 69 |ee, the |result i|
|00003fb0| 73 20 6e 6f 74 20 74 68 | 65 20 73 61 6d 65 2e 20 |s not th|e same. |
|00003fc0| 54 79 70 65 0a 3c 54 54 | 3e 73 71 72 74 28 77 29 |Type.<TT|>sqrt(w)|
|00003fd0| 3c 2f 54 54 3e 2e 20 48 | 65 72 65 2c 20 77 65 20 |</TT>. H|ere, we |
|00003fe0| 6f 62 74 61 69 6e 20 61 | 20 76 65 63 74 6f 72 20 |obtain a| vector |
|00003ff0| 77 69 74 68 20 32 20 63 | 6f 6d 70 6f 6e 65 6e 74 |with 2 c|omponent|
|00004000| 73 2c 20 74 68 65 20 74 | 77 6f 20 63 6f 6d 70 6f |s, the t|wo compo|
|00004010| 6e 65 6e 74 73 0a 62 65 | 69 6e 67 20 74 68 65 20 |nents.be|ing the |
|00004020| 70 72 69 6e 63 69 70 61 | 6c 20 62 72 61 6e 63 68 |principa|l branch|
|00004030| 20 6f 66 20 74 68 65 20 | 73 71 75 61 72 65 20 72 | of the |square r|
|00004040| 6f 6f 74 20 6f 66 20 61 | 6c 6c 20 74 68 65 20 70 |oot of a|ll the p|
|00004050| 6f 73 73 69 62 6c 65 20 | 65 6d 62 65 64 64 69 6e |ossible |embeddin|
|00004060| 67 73 0a 6f 66 20 3c 54 | 54 3e 77 3c 2f 54 54 3e |gs.of <T|T>w</TT>|
|00004070| 20 69 6e 20 3c 49 4d 47 | 0a 20 53 54 59 4c 45 3d | in <IMG|. STYLE=|
|00004080| 22 68 65 69 67 68 74 3a | 20 31 39 36 2e 32 35 65 |"height:| 196.25e|
|00004090| 78 3b 20 76 65 72 74 69 | 63 61 6c 2d 61 6c 69 67 |x; verti|cal-alig|
|000040a0| 6e 3a 20 2d 30 2e 31 32 | 65 78 3b 20 22 20 53 52 |n: -0.12|ex; " SR|
|000040b0| 43 3d 22 69 6d 67 31 2e | 70 6e 67 22 0a 20 41 4c |C="img1.|png". AL|
|000040c0| 54 3d 22 24 5c 42 62 62 | 24 22 3e 3c 49 3e 43 3c |T="$\Bbb|$"><I>C<|
|000040d0| 2f 49 3e 20 28 4e 4f 54 | 20 74 68 65 20 74 77 6f |/I> (NOT| the two|
|000040e0| 20 73 71 75 61 72 65 20 | 72 6f 6f 74 73 29 2e 20 | square |roots). |
|000040f0| 4d 6f 72 65 20 67 65 6e | 65 72 61 6c 6c 79 2c 20 |More gen|erally, |
|00004100| 69 66 20 3c 54 54 3e 77 | 3c 2f 54 54 3e 0a 77 61 |if <TT>w|</TT>.wa|
|00004110| 73 20 6f 66 20 64 65 67 | 72 65 65 20 6e 2c 20 77 |s of deg|ree n, w|
|00004120| 65 20 77 6f 75 6c 64 20 | 67 65 74 20 61 6e 20 6e |e would |get an n|
|00004130| 2d 63 6f 6d 70 6f 6e 65 | 6e 74 20 76 65 63 74 6f |-compone|nt vecto|
|00004140| 72 2c 20 61 6e 64 20 73 | 69 6d 69 6c 61 72 6c 79 |r, and s|imilarly|
|00004150| 20 66 6f 72 0a 74 72 61 | 6e 73 63 65 6e 64 65 6e | for.tra|nscenden|
|00004160| 74 61 6c 20 66 75 6e 63 | 74 69 6f 6e 73 2e 0a 0a |tal func|tions...|
|00004170| 3c 50 3e 0a 57 65 20 68 | 61 76 65 20 61 74 20 6f |<P>.We h|ave at o|
|00004180| 75 72 20 64 69 73 70 6f | 73 61 6c 20 74 68 65 20 |ur dispo|sal the |
|00004190| 75 73 75 61 6c 20 61 72 | 69 74 68 6d 65 74 69 63 |usual ar|ithmetic|
|000041a0| 20 66 75 6e 63 74 69 6f | 6e 73 2c 20 70 6c 75 73 | functio|ns, plus|
|000041b0| 20 61 20 66 65 77 20 6f | 74 68 65 72 73 2e 0a 46 | a few o|thers..F|
|000041c0| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 74 79 70 65 |or examp|le, type|
|000041d0| 20 3c 54 54 3e 61 3d 6d | 6f 64 28 3c 21 2d 2d 20 | <TT>a=m|od(<!-- |
|000041e0| 4d 41 54 48 0a 20 24 7b | 5c 74 74 20 78 7d 2c 7b |MATH. ${|\tt x},{|
|000041f0| 5c 74 74 20 78 7d 5e 33 | 2d 7b 5c 74 74 20 78 7d |\tt x}^3|-{\tt x}|
|00004200| 2d 31 24 0a 20 2d 2d 3e | 0a 3c 49 4d 47 0a 20 53 |-1$. -->|.<IMG. S|
|00004210| 54 59 4c 45 3d 22 68 65 | 69 67 68 74 3a 20 32 2e |TYLE="he|ight: 2.|
|00004220| 30 33 65 78 3b 20 76 65 | 72 74 69 63 61 6c 2d 61 |03ex; ve|rtical-a|
|00004230| 6c 69 67 6e 3a 20 31 37 | 37 2e 32 37 65 78 3b 20 |lign: 17|7.27ex; |
|00004240| 22 20 53 52 43 3d 22 69 | 6d 67 37 2e 70 6e 67 22 |" SRC="i|mg7.png"|
|00004250| 0a 20 41 4c 54 3d 22 24 | 5c 74 74 20 78 24 22 3e |. ALT="$|\tt x$">|
|00004260| 2c 3c 49 4d 47 0a 20 53 | 54 59 4c 45 3d 22 68 65 |,<IMG. S|TYLE="he|
|00004270| 69 67 68 74 3a 20 31 39 | 36 2e 32 35 65 78 3b 20 |ight: 19|6.25ex; |
|00004280| 76 65 72 74 69 63 61 6c | 2d 61 6c 69 67 6e 3a 20 |vertical|-align: |
|00004290| 2d 30 2e 36 39 65 78 3b | 20 22 20 53 52 43 3d 22 |-0.69ex;| " SRC="|
|000042a0| 69 6d 67 39 2e 70 6e 67 | 22 0a 20 41 4c 54 3d 22 |img9.png|". ALT="|
|000042b0| 24 5c 74 74 20 78 5e 7b | 33 7d 5f 7b 7d 24 22 3e |$\tt x^{|3}_{}$">|
|000042c0| 20 2d 20 3c 49 4d 47 0a | 20 53 54 59 4c 45 3d 22 | - <IMG.| STYLE="|
|000042d0| 68 65 69 67 68 74 3a 20 | 32 2e 30 33 65 78 3b 20 |height: |2.03ex; |
|000042e0| 76 65 72 74 69 63 61 6c | 2d 61 6c 69 67 6e 3a 20 |vertical|-align: |
|000042f0| 31 37 37 2e 32 37 65 78 | 3b 20 22 20 53 52 43 3d |177.27ex|; " SRC=|
|00004300| 22 69 6d 67 37 2e 70 6e | 67 22 0a 20 41 4c 54 3d |"img7.pn|g". ALT=|
|00004310| 22 24 5c 74 74 20 78 24 | 22 3e 20 2d 20 31 29 3c |"$\tt x$|"> - 1)<|
|00004320| 2f 54 54 3e 20 64 65 66 | 69 6e 69 6e 67 20 61 20 |/TT> def|ining a |
|00004330| 63 75 62 69 63 20 65 78 | 74 65 6e 73 69 6f 6e 2e |cubic ex|tension.|
|00004340| 0a 57 65 20 63 61 6e 20 | 66 6f 72 20 65 78 61 6d |.We can |for exam|
|00004350| 70 6c 65 20 61 73 6b 20 | 66 6f 72 20 3c 54 54 3e |ple ask |for <TT>|
|00004360| 62 3d 61 26 23 37 31 30 | 3b 37 3c 2f 54 54 3e 2e |b=a&#710|;7</TT>.|
|00004370| 20 42 75 74 20 6e 6f 77 | 20 61 73 73 75 6d 65 20 | But now| assume |
|00004380| 77 65 20 77 61 6e 74 20 | 74 6f 20 65 78 70 72 65 |we want |to expre|
|00004390| 73 73 0a 3c 54 54 3e 61 | 3c 2f 54 54 3e 20 61 73 |ss.<TT>a|</TT> as|
|000043a0| 20 61 20 70 6f 6c 79 6e | 6f 6d 69 61 6c 20 69 6e | a polyn|omial in|
|000043b0| 20 3c 54 54 3e 62 3c 2f | 54 54 3e 2e 20 54 68 69 | <TT>b</|TT>. Thi|
|000043c0| 73 20 69 73 20 70 6f 73 | 73 69 62 6c 65 20 73 69 |s is pos|sible si|
|000043d0| 6e 63 65 20 3c 54 54 3e | 62 3c 2f 54 54 3e 20 69 |nce <TT>|b</TT> i|
|000043e0| 73 20 61 6c 73 6f 20 61 | 0a 67 65 6e 65 72 61 74 |s also a|.generat|
|000043f0| 6f 72 20 6f 66 20 74 68 | 65 20 73 61 6d 65 20 66 |or of th|e same f|
|00004400| 69 65 6c 64 2e 20 4e 6f | 20 70 72 6f 62 6c 65 6d |ield. No| problem|
|00004410| 2c 20 74 79 70 65 20 3c | 54 54 3e 6d 6f 64 72 65 |, type <|TT>modre|
|00004420| 76 65 72 73 65 28 62 29 | 3c 2f 54 54 3e 2e 20 54 |verse(b)|</TT>. T|
|00004430| 68 69 73 20 67 69 76 65 | 73 0a 61 20 6e 65 77 20 |his give|s.a new |
|00004440| 64 65 66 69 6e 69 6e 67 | 20 70 6f 6c 79 6e 6f 6d |defining| polynom|
|00004450| 69 61 6c 20 66 6f 72 20 | 74 68 65 20 73 61 6d 65 |ial for |the same|
|00004460| 20 66 69 65 6c 64 20 28 | 69 2e 65 2e 20 74 68 65 | field (|i.e. the|
|00004470| 20 63 68 61 72 61 63 74 | 65 72 69 73 74 69 63 20 | charact|eristic |
|00004480| 0a 70 6f 6c 79 6e 6f 6d | 69 61 6c 20 6f 66 20 3c |.polynom|ial of <|
|00004490| 54 54 3e 62 3c 2f 54 54 | 3e 29 2c 20 61 6e 64 20 |TT>b</TT|>), and |
|000044a0| 65 78 70 72 65 73 73 65 | 73 20 3c 54 54 3e 61 3c |expresse|s <TT>a<|
|000044b0| 2f 54 54 3e 20 69 6e 20 | 74 65 72 6d 73 20 6f 66 |/TT> in |terms of|
|000044c0| 20 74 68 69 73 20 6e 65 | 77 20 70 6f 6c 79 6d 6f | this ne|w polymo|
|000044d0| 64 2c 20 69 2e 65 2e 0a | 69 6e 20 74 65 72 6d 73 |d, i.e..|in terms|
|000044e0| 20 6f 66 20 3c 54 54 3e | 61 3c 2f 54 54 3e 2e 0a | of <TT>|a</TT>..|
|000044f0| 0a 3c 50 3e 0a 0a 3c 48 | 52 3e 0a 0a 3c 2f 42 4f |.<P>..<H|R>..</BO|
|00004500| 44 59 3e 0a 3c 2f 48 54 | 4d 4c 3e 0a |DY>.</HT|ML>. |
+--------+-------------------------+-------------------------+--------+--------+