home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / math / gp / usersch2.tex < prev    next >
LaTeX Document  |  1993-07-28  |  20.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Corel 10 Texture (image/corel10Texture) ext Unsupported
1% dexvert Croteam texture file (image/croteamTextureFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 63 68 61 70 74 65 72 | 7b 53 70 65 63 69 66 69 |\chapter|{Specifi|
|00000010| 63 20 75 73 65 20 6f 66 | 20 74 68 65 20 7b 5c 62 |c use of| the {\b|
|00000020| 66 20 5c 72 65 66 7b 47 | 50 7d 7d 20 63 61 6c 63 |f \ref{G|P}} calc|
|00000030| 75 6c 61 74 6f 72 7d 0a | 0a 4f 72 69 67 69 6e 61 |ulator}.|.Origina|
|00000040| 6c 6c 79 2c 20 47 50 20 | 77 61 73 20 64 65 73 69 |lly, GP |was desi|
|00000050| 67 6e 65 64 20 61 73 20 | 61 20 64 65 62 75 67 67 |gned as |a debugg|
|00000060| 69 6e 67 20 74 6f 6f 6c | 20 66 6f 72 20 74 68 65 |ing tool| for the|
|00000070| 20 50 41 52 49 20 73 79 | 73 74 65 6d 20 6c 69 62 | PARI sy|stem lib|
|00000080| 72 61 72 79 2c 0a 61 6e | 64 20 68 65 6e 63 65 20 |rary,.an|d hence |
|00000090| 6e 6f 74 20 6d 75 63 68 | 20 74 68 6f 75 67 68 74 |not much| thought|
|000000a0| 20 68 61 64 20 62 65 65 | 6e 20 67 69 76 65 6e 20 | had bee|n given |
|000000b0| 74 6f 20 6d 61 6b 65 20 | 69 74 20 75 73 65 72 2d |to make |it user-|
|000000c0| 66 72 69 65 6e 64 6c 79 | 2e 20 54 68 65 0a 73 69 |friendly|. The.si|
|000000d0| 74 75 61 74 69 6f 6e 20 | 68 61 73 20 6e 6f 77 20 |tuation |has now |
|000000e0| 63 68 61 6e 67 65 64 2c | 20 61 6e 64 20 47 50 20 |changed,| and GP |
|000000f0| 69 73 20 76 65 72 79 20 | 75 73 65 66 75 6c 20 61 |is very |useful a|
|00000100| 73 20 61 20 73 74 61 6e | 64 61 6c 6f 6e 65 0a 74 |s a stan|dalone.t|
|00000110| 6f 6f 6c 2e 20 48 65 6e | 63 65 20 6d 61 6e 79 20 |ool. Hen|ce many |
|00000120| 6e 65 77 20 66 75 6e 63 | 74 69 6f 6e 61 6c 69 74 |new func|tionalit|
|00000130| 69 65 73 20 68 61 76 65 | 20 62 65 65 6e 20 61 64 |ies have| been ad|
|00000140| 64 65 64 2e 0a 54 68 65 | 20 6f 70 65 72 61 74 69 |ded..The| operati|
|00000150| 6f 6e 73 20 61 6e 64 20 | 66 75 6e 63 74 69 6f 6e |ons and |function|
|00000160| 73 20 61 76 61 69 6c 61 | 62 6c 65 20 69 6e 20 50 |s availa|ble in P|
|00000170| 41 52 49 0a 61 6e 64 20 | 47 50 20 77 69 6c 6c 20 |ARI.and |GP will |
|00000180| 62 65 20 64 65 73 63 72 | 69 62 65 64 20 20 69 6e |be descr|ibed in|
|00000190| 20 74 68 65 20 6e 65 78 | 74 20 63 68 61 70 74 65 | the nex|t chapte|
|000001a0| 72 3b 20 69 6e 20 74 68 | 65 20 70 72 65 73 65 6e |r; in th|e presen|
|000001b0| 74 20 6f 6e 65 20 77 65 | 20 64 65 73 63 72 69 62 |t one we| describ|
|000001c0| 65 0a 74 68 65 20 73 70 | 65 63 69 66 69 63 20 75 |e.the sp|ecific u|
|000001d0| 73 65 20 6f 66 20 74 68 | 65 20 47 50 20 70 72 6f |se of th|e GP pro|
|000001e0| 67 72 61 6d 6d 61 62 6c | 65 20 63 61 6c 63 75 6c |grammabl|e calcul|
|000001f0| 61 74 6f 72 2e 0a 0a 47 | 50 20 28 61 6e 64 20 69 |ator...G|P (and i|
|00000200| 6e 20 66 61 63 74 20 61 | 6e 79 20 70 72 6f 67 72 |n fact a|ny progr|
|00000210| 61 6d 20 75 73 69 6e 67 | 20 74 68 65 20 50 41 52 |am using| the PAR|
|00000220| 49 20 6c 69 62 72 61 72 | 79 29 20 6e 65 65 64 73 |I librar|y) needs|
|00000230| 20 61 20 73 74 61 63 6b | 20 69 6e 20 77 68 69 63 | a stack| in whic|
|00000240| 68 0a 74 6f 20 64 6f 20 | 69 74 73 20 63 6f 6d 70 |h.to do |its comp|
|00000250| 75 74 61 74 69 6f 6e 73 | 2c 20 61 6e 64 20 61 20 |utations|, and a |
|00000260| 74 61 62 6c 65 20 6f 66 | 20 70 72 69 6d 65 73 2c |table of| primes,|
|00000270| 20 77 68 69 63 68 20 6d | 61 79 20 62 65 20 76 65 | which m|ay be ve|
|00000280| 72 79 20 73 6d 61 6c 6c | 2e 0a 54 68 65 20 64 65 |ry small|..The de|
|00000290| 66 61 75 6c 74 20 73 74 | 61 63 6b 20 73 69 7a 65 |fault st|ack size|
|000002a0| 20 69 73 20 31 30 30 30 | 30 30 30 20 62 79 74 65 | is 1000|000 byte|
|000002b0| 73 20 6f 6e 20 74 68 65 | 20 4d 61 63 49 49 2c 20 |s on the| MacII, |
|000002c0| 61 6e 64 20 34 30 30 30 | 30 30 30 20 6f 6e 0a 6f |and 4000|000 on.o|
|000002d0| 74 68 65 72 20 6d 61 63 | 68 69 6e 65 73 2e 20 54 |ther mac|hines. T|
|000002e0| 68 65 20 70 72 69 6d 65 | 20 6e 75 6d 62 65 72 20 |he prime| number |
|000002f0| 6c 69 6d 69 74 20 69 73 | 20 62 79 20 64 65 66 61 |limit is| by defa|
|00000300| 75 6c 74 0a 32 30 30 30 | 30 30 20 6f 6e 20 74 68 |ult.2000|00 on th|
|00000310| 65 20 4d 61 63 49 49 2c | 20 61 6e 64 20 35 30 30 |e MacII,| and 500|
|00000320| 30 30 30 20 6f 6e 20 6f | 74 68 65 72 20 6d 61 63 |000 on o|ther mac|
|00000330| 68 69 6e 65 73 2e 20 54 | 68 65 73 65 20 64 65 66 |hines. T|hese def|
|00000340| 61 75 6c 74 73 20 63 61 | 6e 20 62 65 0a 63 68 61 |aults ca|n be.cha|
|00000350| 6e 67 65 64 20 62 79 20 | 61 64 64 69 6e 67 20 70 |nged by |adding p|
|00000360| 61 72 61 6d 65 74 65 72 | 73 20 74 6f 20 74 68 65 |arameter|s to the|
|00000370| 20 69 6e 70 75 74 20 6c | 69 6e 65 2e 20 54 6f 20 | input l|ine. To |
|00000380| 73 74 61 72 74 20 74 68 | 65 0a 63 61 6c 63 75 6c |start th|e.calcul|
|00000390| 61 74 6f 72 2c 20 74 68 | 65 20 67 65 6e 65 72 61 |ator, th|e genera|
|000003a0| 6c 20 73 79 6e 74 61 78 | 20 69 73 3a 0a 0a 5c 63 |l syntax| is:..\c|
|000003b0| 65 6e 74 65 72 6c 69 6e | 65 7b 5c 74 74 20 67 70 |enterlin|e{\tt gp|
|000003c0| 20 5b 2d 73 20 73 74 61 | 63 6b 73 69 7a 65 5d 20 | [-s sta|cksize] |
|000003d0| 5b 2d 70 20 70 72 69 6d | 65 6c 69 6d 69 74 5d 20 |[-p prim|elimit] |
|000003e0| 5b 2d 62 20 62 75 66 66 | 65 72 73 69 7a 65 5d 7d |[-b buff|ersize]}|
|000003f0| 0a 0a 77 68 65 72 65 20 | 61 73 20 75 73 75 61 6c |..where |as usual|
|00000400| 20 69 74 65 6d 73 20 77 | 69 74 68 69 6e 20 62 72 | items w|ithin br|
|00000410| 61 63 6b 65 74 73 20 61 | 72 65 20 6f 70 74 69 6f |ackets a|re optio|
|00000420| 6e 61 6c 2e 20 54 68 65 | 20 62 75 66 66 65 72 73 |nal. The| buffers|
|00000430| 69 7a 65 20 6f 70 74 69 | 6f 6e 20 69 73 0a 74 6f |ize opti|on is.to|
|00000440| 20 61 6c 6c 6f 77 20 66 | 6f 72 20 6f 76 65 72 6c | allow f|or overl|
|00000450| 79 20 6c 61 72 67 65 20 | 69 6e 70 75 74 20 66 69 |y large |input fi|
|00000460| 6c 65 73 20 72 65 61 64 | 20 69 6e 74 6f 20 47 50 |les read| into GP|
|00000470| 2c 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 20 6c 61 |, for ex|ample la|
|00000480| 72 67 65 0a 6d 61 74 72 | 69 63 65 73 2e 20 54 68 |rge.matr|ices. Th|
|00000490| 65 20 64 65 66 61 75 6c | 74 20 69 73 20 33 30 30 |e defaul|t is 300|
|000004a0| 30 30 2c 20 77 68 69 63 | 68 20 69 73 20 75 73 75 |00, whic|h is usu|
|000004b0| 61 6c 6c 79 20 6d 6f 72 | 65 20 74 68 61 6e 20 70 |ally mor|e than p|
|000004c0| 6c 65 6e 74 79 2e 0a 0a | 28 4e 6f 74 65 20 74 68 |lenty...|(Note th|
|000004d0| 61 74 20 6f 6e 20 74 68 | 65 20 4d 61 63 69 6e 74 |at on th|e Macint|
|000004e0| 6f 73 68 20 49 49 2c 20 | 65 76 65 6e 20 61 66 74 |osh II, |even aft|
|000004f0| 65 72 20 63 6c 69 63 6b | 69 6e 67 20 6f 6e 20 74 |er click|ing on t|
|00000500| 68 65 20 67 70 20 69 63 | 6f 6e 2c 0a 6f 6e 63 65 |he gp ic|on,.once|
|00000510| 20 69 6e 20 74 68 65 20 | 4d 50 57 20 53 68 65 6c | in the |MPW Shel|
|00000520| 6c 2c 20 79 6f 75 20 73 | 74 69 6c 6c 20 6e 65 65 |l, you s|till nee|
|00000530| 64 20 74 6f 20 74 79 70 | 65 20 65 78 70 6c 69 63 |d to typ|e explic|
|00000540| 69 74 79 20 74 68 65 20 | 61 62 6f 76 65 20 63 6f |ity the |above co|
|00000550| 6d 6d 61 6e 64 2e 29 0a | 0a 49 66 20 79 6f 75 20 |mmand.).|.If you |
|00000560| 68 61 76 65 20 47 4e 55 | 65 6d 61 63 73 2c 20 69 |have GNU|emacs, i|
|00000570| 74 20 69 73 20 73 74 72 | 6f 6e 67 6c 79 20 61 64 |t is str|ongly ad|
|00000580| 76 69 73 65 64 20 74 6f | 20 77 6f 72 6b 20 69 6e |vised to| work in|
|00000590| 20 61 20 73 70 65 63 69 | 61 6c 20 65 6d 61 63 73 | a speci|al emacs|
|000005a0| 0a 73 68 65 6c 6c 20 28 | 73 65 65 20 73 65 63 74 |.shell (|see sect|
|000005b0| 69 6f 6e 20 33 2e 31 30 | 29 2c 20 77 68 69 63 68 |ion 3.10|), which|
|000005c0| 20 69 73 20 73 74 61 72 | 74 65 64 20 62 79 20 74 | is star|ted by t|
|000005d0| 79 70 69 6e 67 20 7b 5c | 74 74 20 4d 2d 78 20 67 |yping {\|tt M-x g|
|000005e0| 70 7d 0a 28 77 68 65 72 | 65 20 61 73 20 75 73 75 |p}.(wher|e as usu|
|000005f0| 61 6c 20 7b 5c 74 74 20 | 4d 7d 20 69 73 20 74 68 |al {\tt |M} is th|
|00000600| 65 20 4d 65 74 61 20 6b | 65 79 29 20 69 66 20 79 |e Meta k|ey) if y|
|00000610| 6f 75 20 61 63 63 65 70 | 74 20 74 68 65 20 64 65 |ou accep|t the de|
|00000620| 66 61 75 6c 74 0a 73 74 | 61 63 6b 2c 20 70 72 69 |fault.st|ack, pri|
|00000630| 6d 65 20 61 6e 64 20 62 | 75 66 66 65 72 20 73 69 |me and b|uffer si|
|00000640| 7a 65 73 2c 20 6f 72 20 | 7b 5c 74 74 20 43 2d 75 |zes, or |{\tt C-u|
|00000650| 20 4d 2d 78 20 67 70 7d | 20 77 68 69 63 68 20 77 | M-x gp}| which w|
|00000660| 69 6c 6c 20 61 73 6b 20 | 79 6f 75 20 66 6f 72 0a |ill ask |you for.|
|00000670| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |the name| of the |
|00000680| 67 70 20 65 78 65 63 75 | 74 61 62 6c 65 2c 20 74 |gp execu|table, t|
|00000690| 68 65 20 73 74 61 63 6b | 20 73 69 7a 65 2c 20 74 |he stack| size, t|
|000006a0| 68 65 20 70 72 69 6d 65 | 20 6c 69 6d 69 74 20 61 |he prime| limit a|
|000006b0| 6e 64 20 74 68 65 0a 62 | 75 66 66 65 72 73 69 7a |nd the.b|uffersiz|
|000006c0| 65 2e 20 0a 5c 73 6d 61 | 6c 6c 73 6b 69 70 0a 41 |e. .\sma|llskip.A|
|000006d0| 20 63 6f 70 79 72 69 67 | 68 74 20 6d 65 73 73 61 | copyrig|ht messa|
|000006e0| 67 65 20 74 68 65 6e 20 | 61 70 70 65 61 72 73 20 |ge then |appears |
|000006f0| 77 68 69 63 68 20 69 6e | 63 6c 75 64 65 73 20 74 |which in|cludes t|
|00000700| 68 65 20 76 65 72 73 69 | 6f 6e 0a 6e 75 6d 62 65 |he versi|on.numbe|
|00000710| 72 2e 20 50 6c 65 61 73 | 65 20 6e 6f 74 65 20 74 |r. Pleas|e note t|
|00000720| 68 69 73 20 6e 75 6d 62 | 65 72 2c 20 73 6f 20 61 |his numb|er, so a|
|00000730| 73 20 74 6f 20 62 65 20 | 73 75 72 65 20 74 6f 20 |s to be |sure to |
|00000740| 68 61 76 65 20 74 68 65 | 20 6d 6f 73 74 20 72 65 |have the| most re|
|00000750| 63 65 6e 74 0a 76 65 72 | 73 69 6f 6e 20 69 66 20 |cent.ver|sion if |
|00000760| 79 6f 75 20 77 69 73 68 | 20 74 6f 20 68 61 76 65 |you wish| to have|
|00000770| 20 75 70 64 61 74 65 73 | 20 6f 66 20 50 41 52 49 | updates| of PARI|
|00000780| 2e 20 54 68 65 20 70 72 | 65 73 65 6e 74 20 6d 61 |. The pr|esent ma|
|00000790| 6e 75 61 6c 20 69 73 20 | 77 72 69 74 74 65 6e 0a |nual is |written.|
|000007a0| 66 6f 72 20 76 65 72 73 | 69 6f 6e 20 31 2e 33 35 |for vers|ion 1.35|
|000007b0| 2c 20 62 75 74 20 6f 6e | 6c 79 20 64 65 74 61 69 |, but on|ly detai|
|000007c0| 6c 73 20 77 69 6c 6c 20 | 63 68 61 6e 67 65 20 28 |ls will |change (|
|000007d0| 6c 69 6b 65 20 6e 65 77 | 20 61 6e 64 20 66 61 73 |like new| and fas|
|000007e0| 74 65 72 20 66 75 6e 63 | 74 69 6f 6e 73 2c 0a 6c |ter func|tions,.l|
|000007f0| 65 73 73 20 62 75 67 73 | 2c 20 62 65 74 74 65 72 |ess bugs|, better|
|00000800| 20 6f 75 74 70 75 74 2c | 20 65 74 63 5c 64 6f 74 | output,| etc\dot|
|00000810| 73 20 29 20 75 6e 74 69 | 6c 20 74 68 65 20 6e 65 |s ) unti|l the ne|
|00000820| 78 74 20 6d 61 6a 6f 72 | 20 72 65 76 69 73 69 6f |xt major| revisio|
|00000830| 6e 20 32 2e 30 30 2e 0a | 0a 41 66 74 65 72 20 74 |n 2.00..|.After t|
|00000840| 68 65 20 63 6f 70 79 72 | 69 67 68 74 2c 20 74 68 |he copyr|ight, th|
|00000850| 65 20 63 6f 6d 70 75 74 | 65 72 20 77 6f 72 6b 73 |e comput|er works|
|00000860| 20 66 6f 72 20 61 20 66 | 65 77 20 73 65 63 6f 6e | for a f|ew secon|
|00000870| 64 73 20 28 69 74 20 69 | 73 20 69 6e 20 66 61 63 |ds (it i|s in fac|
|00000880| 74 0a 63 6f 6d 70 75 74 | 69 6e 67 20 61 6e 64 20 |t.comput|ing and |
|00000890| 73 74 6f 72 69 6e 67 20 | 61 20 74 61 62 6c 65 20 |storing |a table |
|000008a0| 6f 66 20 70 72 69 6d 65 | 73 29 2c 20 77 72 69 74 |of prime|s), writ|
|000008b0| 65 73 0a 73 6f 6d 65 20 | 68 65 6c 70 20 69 6e 66 |es.some |help inf|
|000008c0| 6f 72 6d 61 74 69 6f 6e | 2c 20 74 68 65 20 69 6e |ormation|, the in|
|000008d0| 69 74 69 61 6c 20 64 65 | 66 61 75 6c 74 73 2c 20 |itial de|faults, |
|000008e0| 61 6e 64 20 74 68 65 6e | 20 77 61 69 74 73 20 61 |and then| waits a|
|000008f0| 66 74 65 72 20 69 74 73 | 0a 70 72 6f 6d 70 74 2c |fter its|.prompt,|
|00000900| 20 69 6e 69 74 69 61 6c | 6c 79 20 60 60 3f 27 27 | initial|ly ``?''|
|00000910| 2e 0a 0a 5c 73 65 63 74 | 69 6f 6e 7b 4d 65 74 61 |...\sect|ion{Meta|
|00000920| 63 6f 6d 6d 61 6e 64 73 | 2e 7d 0a 0a 4c 65 74 20 |commands|.}..Let |
|00000930| 75 73 20 63 6f 6e 73 69 | 64 65 72 20 74 68 65 20 |us consi|der the |
|00000940| 66 69 72 73 74 20 74 68 | 72 65 65 20 70 72 69 6e |first th|ree prin|
|00000950| 74 65 64 20 6c 69 6e 65 | 73 2e 20 49 74 20 73 61 |ted line|s. It sa|
|00000960| 79 73 20 74 68 61 74 20 | 74 6f 20 67 65 74 20 68 |ys that |to get h|
|00000970| 65 6c 70 2c 0a 79 6f 75 | 20 73 68 6f 75 6c 64 20 |elp,.you| should |
|00000980| 74 79 70 65 20 24 5c 62 | 61 63 6b 73 6c 61 73 68 |type $\b|ackslash|
|00000990| 24 63 2c 20 24 5c 62 61 | 63 6b 73 6c 61 73 68 24 |$c, $\ba|ckslash$|
|000009a0| 64 2c 20 24 5c 62 61 63 | 6b 73 6c 61 73 68 24 74 |d, $\bac|kslash$t|
|000009b0| 2c 20 6f 72 20 3f 63 6f | 6d 6d 61 6e 64 3b 0a 74 |, or ?co|mmand;.t|
|000009c0| 6f 20 65 78 69 74 20 79 | 6f 75 20 6d 75 73 74 20 |o exit y|ou must |
|000009d0| 74 79 70 65 20 24 5c 62 | 61 63 6b 73 6c 61 73 68 |type $\b|ackslash|
|000009e0| 24 71 3b 20 61 6e 64 20 | 66 6f 72 20 74 69 6d 69 |$q; and |for timi|
|000009f0| 6e 67 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 74 79 |ng you s|hould ty|
|00000a00| 70 65 20 5c 23 2e 0a 0a | 41 73 20 61 20 67 65 6e |pe \#...|As a gen|
|00000a10| 65 72 61 6c 20 72 75 6c | 65 2c 20 75 6e 64 65 72 |eral rul|e, under|
|00000a20| 20 47 50 2c 20 63 6f 6d | 6d 61 6e 64 73 20 73 74 | GP, com|mands st|
|00000a30| 61 72 74 69 6e 67 20 77 | 69 74 68 20 60 60 24 5c |arting w|ith ``$\|
|00000a40| 62 61 63 6b 73 6c 61 73 | 68 24 27 27 20 61 6e 64 |backslas|h$'' and|
|00000a50| 20 73 6f 6d 65 0a 6f 74 | 68 65 72 0a 73 79 6d 62 | some.ot|her.symb|
|00000a60| 6f 6c 73 20 6c 69 6b 65 | 20 60 60 3f 27 27 2c 20 |ols like| ``?'', |
|00000a70| 61 72 65 20 6e 6f 74 20 | 63 6f 6d 70 75 74 69 6e |are not |computin|
|00000a80| 67 20 63 6f 6d 6d 61 6e | 64 73 2c 20 62 75 74 20 |g comman|ds, but |
|00000a90| 61 72 65 20 6d 65 74 61 | 63 6f 6d 6d 61 6e 64 73 |are meta|commands|
|00000aa0| 20 77 68 69 63 68 0a 63 | 6f 72 72 65 73 70 6f 6e | which.c|orrespon|
|00000ab0| 64 20 74 6f 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |d to inf|ormation|
|00000ac0| 20 65 78 63 68 61 6e 67 | 65 20 77 69 74 68 20 47 | exchang|e with G|
|00000ad0| 50 2e 20 54 68 65 20 61 | 76 61 69 6c 61 62 6c 65 |P. The a|vailable|
|00000ae0| 20 63 6f 6d 6d 61 6e 64 | 73 20 6f 66 20 74 68 69 | command|s of thi|
|00000af0| 73 0a 73 6f 72 74 20 63 | 61 6e 20 62 65 20 64 69 |s.sort c|an be di|
|00000b00| 76 69 64 65 64 20 61 6d | 6f 6e 67 20 73 69 6d 70 |vided am|ong simp|
|00000b10| 6c 65 20 63 6f 6d 6d 61 | 6e 64 73 20 28 65 78 70 |le comma|nds (exp|
|00000b20| 6c 61 69 6e 65 64 20 68 | 65 72 65 29 20 61 6e 64 |lained h|ere) and|
|00000b30| 20 64 65 66 61 75 6c 74 | 0a 73 65 74 74 69 6e 67 | default|.setting|
|00000b40| 20 63 6f 6d 6d 61 6e 64 | 73 20 28 65 78 70 6c 61 | command|s (expla|
|00000b50| 69 6e 65 64 20 69 6e 20 | 74 68 65 20 6e 65 78 74 |ined in |the next|
|00000b60| 20 73 65 63 74 69 6f 6e | 29 2e 0a 0a 53 69 6d 70 | section|)...Simp|
|00000b70| 6c 65 20 63 6f 6d 6d 61 | 6e 64 73 20 61 72 65 20 |le comma|nds are |
|00000b80| 63 61 73 65 20 69 6e 73 | 65 6e 73 69 74 69 76 65 |case ins|ensitive|
|00000b90| 2e 20 46 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 24 |. For ex|ample, $|
|00000ba0| 5c 62 61 63 6b 73 6c 61 | 73 68 24 51 20 69 73 20 |\backsla|sh$Q is |
|00000bb0| 69 64 65 6e 74 69 63 61 | 6c 20 74 6f 0a 24 5c 62 |identica|l to.$\b|
|00000bc0| 61 63 6b 73 6c 61 73 68 | 24 71 2e 0a 0a 5c 73 75 |ackslash|$q...\su|
|00000bd0| 62 73 65 63 7b 24 5c 62 | 61 63 6b 73 6c 61 73 68 |bsec{$\b|ackslash|
|00000be0| 5c 62 61 63 6b 73 6c 61 | 73 68 24 7d 3a 20 63 6f |\backsla|sh$}: co|
|00000bf0| 6d 6d 65 6e 74 2e 20 54 | 68 65 20 72 65 73 74 20 |mment. T|he rest |
|00000c00| 6f 66 20 74 68 65 20 6c | 69 6e 65 0a 69 73 20 69 |of the l|ine.is i|
|00000c10| 67 6e 6f 72 65 64 20 62 | 79 20 47 50 2e 0a 0a 5c |gnored b|y GP...\|
|00000c20| 73 75 62 73 65 63 7b 24 | 5c 62 61 63 6b 73 6c 61 |subsec{$|\backsla|
|00000c30| 73 68 24 7b 5c 62 66 20 | 62 7d 7d 24 6e 24 3a 20 |sh${\bf |b}}$n$: |
|00000c40| 70 72 69 6e 74 20 74 68 | 65 20 6f 62 6a 65 63 74 |print th|e object|
|00000c50| 20 6e 75 6d 62 65 72 20 | 24 6e 24 20 28 24 5c 25 | number |$n$ ($\%|
|00000c60| 6e 24 29 0a 69 6e 20 62 | 65 61 75 74 69 66 69 65 |n$).in b|eautifie|
|00000c70| 64 20 28 6f 72 20 70 72 | 65 74 74 79 70 72 69 6e |d (or pr|ettyprin|
|00000c80| 74 29 20 66 6f 72 6d 61 | 74 20 69 66 20 74 68 65 |t) forma|t if the|
|00000c90| 20 64 65 66 61 75 6c 74 | 20 66 6f 72 6d 61 74 20 | default| format |
|00000ca0| 69 73 20 72 61 77 2c 20 | 61 6e 64 20 69 6e 20 72 |is raw, |and in r|
|00000cb0| 61 77 0a 66 6f 72 6d 61 | 74 20 69 66 20 74 68 65 |aw.forma|t if the|
|00000cc0| 20 64 65 66 61 75 6c 74 | 20 66 6f 72 6d 61 74 20 | default| format |
|00000cd0| 69 73 20 70 72 65 74 74 | 79 70 72 69 6e 74 20 28 |is prett|yprint (|
|00000ce0| 73 65 65 20 32 2e 31 2e | 36 20 61 6e 64 20 32 2e |see 2.1.|6 and 2.|
|00000cf0| 32 2e 36 29 2e 0a 49 66 | 20 74 68 65 20 6e 75 6d |2.6)..If| the num|
|00000d00| 62 65 72 20 24 6e 24 20 | 69 73 20 6f 6d 69 74 74 |ber $n$ |is omitt|
|00000d10| 65 64 2c 20 70 72 69 6e | 74 20 74 68 65 20 6c 61 |ed, prin|t the la|
|00000d20| 74 65 73 74 20 63 6f 6d | 70 75 74 65 64 20 6f 62 |test com|puted ob|
|00000d30| 6a 65 63 74 20 28 20 24 | 5c 25 24 20 29 2e 0a 0a |ject ( $|\%$ )...|
|00000d40| 5c 73 75 62 73 65 63 7b | 24 5c 62 61 63 6b 73 6c |\subsec{|$\backsl|
|00000d50| 61 73 68 24 7b 5c 62 66 | 20 63 7d 7d 3a 20 70 72 |ash${\bf| c}}: pr|
|00000d60| 69 6e 74 73 20 74 68 65 | 20 6c 69 73 74 20 6f 66 |ints the| list of|
|00000d70| 20 61 6c 6c 20 61 76 61 | 69 6c 61 62 6c 65 20 66 | all ava|ilable f|
|00000d80| 75 6e 63 74 69 6f 6e 73 | 0a 5c 73 72 65 66 7b 61 |unctions|.\sref{a|
|00000d90| 76 61 69 6c 61 62 6c 65 | 20 63 6f 6d 6d 61 6e 64 |vailable| command|
|00000da0| 73 7d 0a 75 6e 64 65 72 | 20 47 50 2c 20 6e 6f 74 |s}.under| GP, not|
|00000db0| 20 69 6e 63 6c 75 64 69 | 6e 67 20 66 75 6e 63 74 | includi|ng funct|
|00000dc0| 69 6f 6e 73 20 75 73 69 | 6e 67 20 61 20 73 70 65 |ions usi|ng a spe|
|00000dd0| 63 69 61 6c 20 63 68 61 | 72 61 63 74 65 72 20 28 |cial cha|racter (|
|00000de0| 73 70 65 63 69 66 69 63 | 61 6c 6c 79 0a 24 2b 24 |specific|ally.$+$|
|00000df0| 20 2c 20 24 2d 24 20 2c | 20 24 2a 24 20 2c 20 24 | , $-$ ,| $*$ , $|
|00000e00| 2f 24 2c 20 24 5c 62 61 | 63 6b 73 6c 61 73 68 24 |/$, $\ba|ckslash$|
|00000e10| 20 2c 20 24 5c 68 61 74 | 7b 5c 20 7d 24 20 2c 20 | , $\hat|{\ }$ , |
|00000e20| 24 21 24 20 2c 20 24 5c | 74 69 6c 64 65 7b 5c 20 |$!$ , $\|tilde{\ |
|00000e30| 7d 24 20 2c 0a 24 5c 5f | 24 20 2c 20 24 5c 25 24 |}$ ,.$\_|$ , $\%$|
|00000e40| 20 2c 20 24 5c 26 24 2c | 20 24 7c 24 29 2e 20 54 | , $\&$,| $|$). T|
|00000e50| 68 65 73 65 20 6e 61 6d | 65 73 20 62 65 69 6e 67 |hese nam|es being|
|00000e60| 20 69 6e 20 67 65 6e 65 | 72 61 6c 20 6e 6f 74 0a | in gene|ral not.|
|00000e70| 69 6e 66 6f 72 6d 61 74 | 69 76 65 20 65 6e 6f 75 |informat|ive enou|
|00000e80| 67 68 2c 20 6d 6f 72 65 | 20 69 6e 66 6f 72 6d 61 |gh, more| informa|
|00000e90| 74 69 6f 6e 20 63 61 6e | 20 62 65 20 6f 62 74 61 |tion can| be obta|
|00000ea0| 69 6e 65 64 20 62 79 20 | 74 79 70 69 6e 67 0a 60 |ined by |typing.`|
|00000eb0| 60 7b 5c 62 66 20 3f 7d | 63 6f 6d 6d 61 6e 64 27 |`{\bf ?}|command'|
|00000ec0| 27 2c 20 77 68 69 63 68 | 20 67 69 76 65 73 20 69 |', which| gives i|
|00000ed0| 6e 20 73 68 6f 72 74 20 | 66 6f 72 6d 20 74 68 65 |n short |form the|
|00000ee0| 20 65 66 66 65 63 74 20 | 6f 66 20 74 68 65 20 63 | effect |of the c|
|00000ef0| 6f 6d 6d 61 6e 64 0a 61 | 6e 64 20 74 68 65 20 6e |ommand.a|nd the n|
|00000f00| 61 6d 65 20 61 6e 64 20 | 73 79 6e 74 61 78 0a 6f |ame and |syntax.o|
|00000f10| 66 20 74 68 65 20 63 6f | 72 72 65 73 70 6f 6e 64 |f the co|rrespond|
|00000f20| 69 6e 67 20 6c 69 62 72 | 61 72 79 20 66 75 6e 63 |ing libr|ary func|
|00000f30| 74 69 6f 6e 2e 20 4f 66 | 20 63 6f 75 72 73 65 2c |tion. Of| course,|
|00000f40| 20 74 6f 20 68 61 76 65 | 20 63 6f 6d 70 6c 65 74 | to have| complet|
|00000f50| 65 0a 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2c 20 72 |e.inform|ation, r|
|00000f60| 65 61 64 20 63 68 61 70 | 74 65 72 20 33 20 6f 66 |ead chap|ter 3 of|
|00000f70| 20 74 68 69 73 20 6d 61 | 6e 75 61 6c 2e 20 4d 75 | this ma|nual. Mu|
|00000f80| 63 68 20 62 65 74 74 65 | 72 20 68 65 6c 70 20 63 |ch bette|r help c|
|00000f90| 61 6e 20 62 65 20 6f 62 | 74 61 69 6e 65 64 0a 69 |an be ob|tained.i|
|00000fa0| 66 20 79 6f 75 20 77 6f | 72 6b 20 75 6e 64 65 72 |f you wo|rk under|
|00000fb0| 20 47 4e 55 65 6d 61 63 | 73 20 28 73 65 65 20 73 | GNUemac|s (see s|
|00000fc0| 65 63 74 69 6f 6e 20 33 | 2e 31 30 29 2e 0a 0a 5c |ection 3|.10)...\|
|00000fd0| 73 75 62 73 65 63 7b 24 | 5c 62 61 63 6b 73 6c 61 |subsec{$|\backsla|
|00000fe0| 73 68 24 7b 5c 62 66 20 | 64 7d 7d 3a 20 70 72 69 |sh${\bf |d}}: pri|
|00000ff0| 6e 74 73 20 74 68 65 20 | 5c 72 65 66 7b 64 65 66 |nts the |\ref{def|
|00001000| 61 75 6c 74 73 7d 20 28 | 73 65 65 20 74 68 65 20 |aults} (|see the |
|00001010| 6e 65 78 74 0a 73 65 63 | 74 69 6f 6e 29 2c 20 69 |next.sec|tion), i|
|00001020| 6e 63 6c 75 64 69 6e 67 | 20 74 68 65 20 73 74 61 |ncluding| the sta|
|00001030| 63 6b 73 69 7a 65 2c 20 | 70 72 69 6d 65 6c 69 6d |cksize, |primelim|
|00001040| 69 74 20 61 6e 64 20 62 | 75 66 66 65 72 73 69 7a |it and b|uffersiz|
|00001050| 65 2e 20 54 68 69 73 0a | 63 6f 6d 6d 61 6e 64 20 |e. This.|command |
|00001060| 69 73 20 61 6c 77 61 79 | 73 20 65 78 65 63 75 74 |is alway|s execut|
|00001070| 65 64 20 28 77 69 74 68 | 6f 75 74 20 75 73 65 72 |ed (with|out user|
|00001080| 20 69 6e 74 65 72 76 65 | 6e 74 69 6f 6e 29 2c 20 | interve|ntion), |
|00001090| 77 68 65 6e 20 47 50 20 | 69 73 20 73 74 61 72 74 |when GP |is start|
|000010a0| 65 64 2e 0a 0a 5c 73 75 | 62 73 65 63 7b 24 5c 62 |ed...\su|bsec{$\b|
|000010b0| 61 63 6b 73 6c 61 73 68 | 24 7b 5c 62 66 20 6b 7d |ackslash|${\bf k}|
|000010c0| 7d 3a 20 6b 69 6c 6c 20 | 61 6e 64 20 72 65 69 6e |}: kill |and rein|
|000010d0| 69 74 69 61 6c 69 7a 65 | 20 47 50 2e 20 41 70 61 |itialize| GP. Apa|
|000010e0| 72 74 20 66 72 6f 6d 20 | 74 68 65 0a 69 6e 69 74 |rt from |the.init|
|000010f0| 69 61 6c 20 6d 65 73 73 | 61 67 65 2c 20 74 68 69 |ial mess|age, thi|
|00001100| 73 20 69 73 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |s is equ|ivalent |
|00001110| 74 6f 20 65 78 69 74 69 | 6e 67 20 66 72 6f 6d 20 |to exiti|ng from |
|00001120| 47 50 20 61 6e 64 20 73 | 74 61 72 74 69 6e 67 20 |GP and s|tarting |
|00001130| 69 74 20 61 67 61 69 6e | 2c 0a 61 70 61 72 74 20 |it again|,.apart |
|00001140| 66 72 6f 6d 20 74 68 65 | 20 66 61 63 74 20 74 68 |from the| fact th|
|00001150| 61 74 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 73 |at the v|ariables|
|00001160| 20 77 68 69 63 68 20 68 | 61 76 65 20 62 65 65 6e | which h|ave been|
|00001170| 20 75 73 65 64 20 61 72 | 65 20 73 74 69 6c 6c 20 | used ar|e still |
|00001180| 6b 6e 6f 77 6e 0a 74 6f | 20 47 50 2e 0a 0a 5c 73 |known.to| GP...\s|
|00001190| 75 62 73 65 63 7b 24 5c | 62 61 63 6b 73 6c 61 73 |ubsec{$\|backslas|
|000011a0| 68 24 7b 5c 62 66 20 6c | 7d 7d 3a 20 73 77 69 74 |h${\bf l|}}: swit|
|000011b0| 63 68 20 74 68 65 20 6c | 6f 67 66 69 6c 65 20 6f |ch the l|ogfile o|
|000011c0| 6e 2f 6f 66 66 2e 20 49 | 6e 69 74 69 61 6c 6c 79 |n/off. I|nitially|
|000011d0| 2c 20 74 68 65 20 47 50 | 0a 73 65 73 73 69 6f 6e |, the GP|.session|
|000011e0| 20 64 6f 65 73 20 6e 6f | 74 20 68 61 76 65 20 61 | does no|t have a|
|000011f0| 20 6c 6f 67 20 66 69 6c | 65 20 77 68 65 72 65 20 | log fil|e where |
|00001200| 61 6c 6c 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 73 |all the |commands|
|00001210| 20 61 6e 64 20 72 65 73 | 75 6c 74 73 20 61 72 65 | and res|ults are|
|00001220| 20 73 74 6f 72 65 64 2e | 0a 54 79 70 69 6e 67 20 | stored.|.Typing |
|00001230| 24 5c 62 61 63 6b 73 6c | 61 73 68 24 6c 20 77 69 |$\backsl|ash$l wi|
|00001240| 6c 6c 20 6f 70 65 6e 20 | 61 20 66 69 6c 65 20 6e |ll open |a file n|
|00001250| 61 6d 65 64 20 7b 5c 74 | 74 20 70 61 72 69 2e 6c |amed {\t|t pari.l|
|00001260| 6f 67 7d 20 28 61 6e 64 | 20 64 65 73 74 72 6f 79 |og} (and| destroy|
|00001270| 20 61 6e 79 0a 70 72 65 | 76 69 6f 75 73 20 66 69 | any.pre|vious fi|
|00001280| 6c 65 20 77 69 74 68 20 | 74 68 61 74 20 6e 61 6d |le with |that nam|
|00001290| 65 29 2c 20 61 6e 64 20 | 75 6e 74 69 6c 20 61 20 |e), and |until a |
|000012a0| 73 75 62 73 65 71 75 65 | 6e 74 20 24 5c 62 61 63 |subseque|nt $\bac|
|000012b0| 6b 73 6c 61 73 68 24 6c | 2c 20 61 6c 6c 20 74 68 |kslash$l|, all th|
|000012c0| 65 0a 63 6f 6d 6d 61 6e | 64 73 20 61 6e 64 20 72 |e.comman|ds and r|
|000012d0| 65 73 75 6c 74 73 20 77 | 69 6c 6c 20 62 65 20 77 |esults w|ill be w|
|000012e0| 72 69 74 74 65 6e 20 69 | 6e 20 74 68 61 74 20 66 |ritten i|n that f|
|000012f0| 69 6c 65 2e 0a 0a 5c 73 | 75 62 73 65 63 7b 24 5c |ile...\s|ubsec{$\|
|00001300| 62 61 63 6b 73 6c 61 73 | 68 24 7b 5c 62 66 20 70 |backslas|h${\bf p|
|00001310| 7d 7d 3a 20 73 77 69 74 | 63 68 65 73 20 74 68 65 |}}: swit|ches the|
|00001320| 20 64 65 66 61 75 6c 74 | 20 66 6f 72 6d 61 74 20 | default| format |
|00001330| 62 65 74 77 65 65 6e 0a | 74 68 65 20 72 61 77 5c |between.|the raw\|
|00001340| 73 72 65 66 7b 72 61 77 | 20 66 6f 72 6d 61 74 7d |sref{raw| format}|
|00001350| 20 61 6e 64 20 74 68 65 | 20 62 65 61 75 74 69 66 | and the| beautif|
|00001360| 69 65 64 20 28 70 72 65 | 74 74 79 70 72 69 6e 74 |ied (pre|ttyprint|
|00001370| 29 20 66 6f 72 6d 61 74 | 0a 5c 73 72 65 66 7b 70 |) format|.\sref{p|
|00001380| 72 65 74 74 79 70 72 69 | 6e 74 20 66 6f 72 6d 61 |rettypri|nt forma|
|00001390| 74 7d 5c 73 72 65 66 7b | 62 65 61 75 74 69 66 69 |t}\sref{|beautifi|
|000013a0| 65 64 20 66 6f 72 6d 61 | 74 7d 20 28 73 65 65 20 |ed forma|t} (see |
|000013b0| 32 2e 32 2e 35 20 62 65 | 6c 6f 77 29 2e 0a 0a 5c |2.2.5 be|low)...\|
|000013c0| 73 75 62 73 65 63 7b 24 | 5c 62 61 63 6b 73 6c 61 |subsec{$|\backsla|
|000013d0| 73 68 24 7b 5c 62 66 20 | 71 7d 7d 3a 20 5c 72 65 |sh${\bf |q}}: \re|
|000013e0| 66 7b 71 75 69 74 7d 73 | 20 47 50 20 61 6e 64 20 |f{quit}s| GP and |
|000013f0| 72 65 74 75 72 6e 73 20 | 74 6f 20 74 68 65 20 73 |returns |to the s|
|00001400| 79 73 74 65 6d 2e 0a 0a | 5c 73 75 62 73 65 63 7b |ystem...|\subsec{|
|00001410| 24 5c 62 61 63 6b 73 6c | 61 73 68 24 7b 5c 62 66 |$\backsl|ash${\bf|
|00001420| 20 72 7d 7d 20 66 69 6c | 65 6e 61 6d 65 3a 20 5c | r}} fil|ename: \|
|00001430| 72 65 66 7b 72 65 61 64 | 7d 73 20 69 6e 74 6f 20 |ref{read|}s into |
|00001440| 47 50 20 61 6c 6c 20 74 | 68 65 20 6f 62 6a 65 63 |GP all t|he objec|
|00001450| 74 73 20 77 72 69 74 74 | 65 6e 0a 20 6f 6e 20 74 |ts writt|en. on t|
|00001460| 68 65 20 6e 61 6d 65 64 | 20 66 69 6c 65 20 75 73 |he named| file us|
|00001470| 69 6e 67 20 74 68 65 20 | 24 5c 62 61 63 6b 73 6c |ing the |$\backsl|
|00001480| 61 73 68 24 77 20 63 6f | 6d 6d 61 6e 64 20 28 73 |ash$w co|mmand (s|
|00001490| 65 65 20 32 2e 31 2e 31 | 33 2e 29 2e 0a 0a 5c 73 |ee 2.1.1|3.)...\s|
|000014a0| 75 62 73 65 63 7b 24 5c | 62 61 63 6b 73 6c 61 73 |ubsec{$\|backslas|
|000014b0| 68 24 7b 5c 62 66 20 73 | 7d 7d 3a 20 70 72 69 6e |h${\bf s|}}: prin|
|000014c0| 74 73 20 74 68 65 20 73 | 74 61 74 65 20 6f 66 20 |ts the s|tate of |
|000014d0| 74 68 65 20 50 41 52 49 | 20 5c 72 65 66 7b 73 74 |the PARI| \ref{st|
|000014e0| 61 63 6b 7d 2c 20 61 6e | 64 0a 69 6e 0a 70 61 72 |ack}, an|d.in.par|
|000014f0| 74 69 63 75 6c 61 72 20 | 74 68 65 20 61 6d 6f 75 |ticular |the amou|
|00001500| 6e 74 20 6f 66 20 6d 65 | 6d 6f 72 79 20 75 73 65 |nt of me|mory use|
|00001510| 64 2c 20 65 78 70 72 65 | 73 73 65 64 20 61 73 20 |d, expre|ssed as |
|00001520| 61 20 70 65 72 63 65 6e | 74 61 67 65 2e 20 54 68 |a percen|tage. Th|
|00001530| 69 73 20 65 6e 61 62 6c | 65 73 0a 74 68 65 20 75 |is enabl|es.the u|
|00001540| 73 65 72 20 74 6f 20 73 | 65 65 20 77 68 65 74 68 |ser to s|ee wheth|
|00001550| 65 72 20 74 68 65 20 73 | 74 61 63 6b 20 69 73 20 |er the s|tack is |
|00001560| 67 65 74 74 69 6e 67 20 | 74 6f 6f 20 66 75 6c 6c |getting |too full|
|00001570| 2e 0a 0a 5c 73 75 62 73 | 65 63 7b 24 5c 62 61 63 |...\subs|ec{$\bac|
|00001580| 6b 73 6c 61 73 68 24 7b | 5c 62 66 20 73 7d 24 28 |kslash${|\bf s}$(|
|00001590| 20 6e 20 29 24 7d 3a 20 | 70 72 69 6e 74 73 20 74 | n )$}: |prints t|
|000015a0| 68 65 20 73 74 61 74 65 | 20 6f 66 20 74 68 65 20 |he state| of the |
|000015b0| 50 41 52 49 0a 73 74 61 | 63 6b 2c 0a 61 6e 64 20 |PARI.sta|ck,.and |
|000015c0| 69 6e 20 61 64 64 69 74 | 69 6f 6e 20 74 68 65 20 |in addit|ion the |
|000015d0| 65 78 70 6c 69 63 69 74 | 20 5c 72 65 66 7b 68 65 |explicit| \ref{he|
|000015e0| 78 61 64 65 63 69 6d 61 | 6c 20 72 65 70 72 65 73 |xadecima|l repres|
|000015f0| 65 6e 74 61 74 69 6f 6e | 7d 73 20 6f 66 20 74 68 |entation|}s of th|
|00001600| 65 20 66 69 72 73 74 20 | 24 6e 24 0a 6c 6f 6e 67 |e first |$n$.long|
|00001610| 77 6f 72 64 73 20 6f 66 | 20 74 68 65 20 73 74 61 |words of| the sta|
|00001620| 63 6b 20 28 67 6f 69 6e | 67 20 64 6f 77 6e 29 20 |ck (goin|g down) |
|00001630| 69 66 20 24 6e 24 20 69 | 73 20 70 6f 73 69 74 69 |if $n$ i|s positi|
|00001640| 76 65 2c 20 61 6e 64 20 | 74 68 65 20 63 6f 6d 70 |ve, and |the comp|
|00001650| 6c 65 74 65 0a 73 74 61 | 63 6b 0a 69 66 20 24 6e |lete.sta|ck.if $n|
|00001660| 24 20 69 73 20 6e 65 67 | 61 74 69 76 65 2e 20 54 |$ is neg|ative. T|
|00001670| 68 69 73 20 69 73 20 75 | 73 65 64 20 70 72 69 6d |his is u|sed prim|
|00001680| 61 72 69 6c 79 20 61 73 | 20 61 20 64 65 62 75 67 |arily as| a debug|
|00001690| 67 69 6e 67 20 64 65 76 | 69 63 65 20 66 6f 72 20 |ging dev|ice for |
|000016a0| 50 41 52 49 2c 0a 61 6e | 64 20 69 73 20 6e 6f 74 |PARI,.an|d is not|
|000016b0| 20 69 6e 74 65 6e 64 65 | 64 20 66 6f 72 20 74 68 | intende|d for th|
|000016c0| 65 20 63 61 73 75 61 6c | 20 75 73 65 72 2e 0a 0a |e casual| user...|
|000016d0| 5c 73 75 62 73 65 63 7b | 24 5c 62 61 63 6b 73 6c |\subsec{|$\backsl|
|000016e0| 61 73 68 24 7b 5c 62 66 | 20 74 7d 7d 3a 20 70 72 |ash${\bf| t}}: pr|
|000016f0| 69 6e 74 73 20 74 68 65 | 20 5c 72 65 66 7b 69 6e |ints the| \ref{in|
|00001700| 74 65 72 6e 61 6c 20 6c | 6f 6e 67 77 6f 72 64 20 |ternal l|ongword |
|00001710| 66 6f 72 6d 61 74 7d 0a | 6f 66 20 61 6c 6c 20 74 |format}.|of all t|
|00001720| 68 65 20 50 41 52 49 20 | 74 79 70 65 73 2e 20 54 |he PARI |types. T|
|00001730| 68 65 20 64 65 74 61 69 | 6c 65 64 20 62 69 74 20 |he detai|led bit |
|00001740| 6f 72 20 62 79 74 65 20 | 66 6f 72 6d 61 74 20 6f |or byte |format o|
|00001750| 66 20 74 68 65 20 69 6e | 69 74 69 61 6c 0a 63 6f |f the in|itial.co|
|00001760| 64 65 77 6f 72 64 28 73 | 29 20 69 73 20 65 78 70 |deword(s|) is exp|
|00001770| 6c 61 69 6e 65 64 20 69 | 6e 20 74 68 65 20 74 65 |lained i|n the te|
|00001780| 63 68 6e 69 63 61 6c 20 | 72 65 66 65 72 65 6e 63 |chnical |referenc|
|00001790| 65 20 6d 61 6e 75 61 6c | 2c 20 62 75 74 20 69 74 |e manual|, but it|
|000017a0| 73 20 6b 6e 6f 77 6c 65 | 64 67 65 0a 69 73 20 6e |s knowle|dge.is n|
|000017b0| 6f 74 20 6e 65 63 65 73 | 73 61 72 79 20 66 6f 72 |ot neces|sary for|
|000017c0| 20 61 20 47 50 20 75 73 | 65 72 2e 0a 0a 5c 73 75 | a GP us|er...\su|
|000017d0| 62 73 65 63 7b 24 5c 62 | 61 63 6b 73 6c 61 73 68 |bsec{$\b|ackslash|
|000017e0| 24 7b 5c 62 66 20 76 7d | 7d 3a 20 70 72 69 6e 74 |${\bf v}|}: print|
|000017f0| 73 20 74 68 65 20 5c 72 | 65 66 7b 76 65 72 73 69 |s the \r|ef{versi|
|00001800| 6f 6e 20 6e 75 6d 62 65 | 72 7d 20 74 79 70 65 20 |on numbe|r} type |
|00001810| 6f 66 0a 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |of.imple|mentatio|
|00001820| 6e 20 28 36 38 30 78 30 | 2c 20 73 70 61 72 63 2c |n (680x0|, sparc,|
|00001830| 20 6f 74 68 65 72 29 20 | 6f 66 20 74 68 65 20 70 | other) |of the p|
|00001840| 72 6f 67 72 61 6d 20 79 | 6f 75 20 61 72 65 20 75 |rogram y|ou are u|
|00001850| 73 69 6e 67 2e 20 4e 6f | 74 65 0a 74 68 61 74 20 |sing. No|te.that |
|00001860| 74 68 65 20 73 75 62 76 | 65 72 73 69 6f 6e 20 6d |the subv|ersion m|
|00001870| 61 79 20 62 65 20 6f 6d | 69 74 74 65 64 20 28 65 |ay be om|itted (e|
|00001880| 2e 67 2e 20 31 2e 33 35 | 20 69 6e 73 74 65 61 64 |.g. 1.35| instead|
|00001890| 20 6f 66 20 31 2e 33 35 | 2e 31 29 2e 0a 0a 5c 73 | of 1.35|.1)...\s|
|000018a0| 75 62 73 65 63 7b 24 5c | 62 61 63 6b 73 6c 61 73 |ubsec{$\|backslas|
|000018b0| 68 24 7b 5c 62 66 20 77 | 7d 7d 24 6e 24 20 66 69 |h${\bf w|}}$n$ fi|
|000018c0| 6c 65 6e 61 6d 65 3a 20 | 5c 72 65 66 7b 77 72 69 |lename: |\ref{wri|
|000018d0| 74 65 7d 20 74 68 65 20 | 6f 62 6a 65 63 74 20 6e |te} the |object n|
|000018e0| 75 6d 62 65 72 20 24 6e | 24 0a 28 20 24 5c 25 6e |umber $n|$.( $\%n|
|000018f0| 24 20 29 20 6f 6e 20 74 | 68 65 20 6e 61 6d 65 64 |$ ) on t|he named|
|00001900| 20 66 69 6c 65 2c 20 69 | 6e 20 72 61 77 20 66 6f | file, i|n raw fo|
|00001910| 72 6d 61 74 2e 20 49 66 | 20 74 68 65 20 6e 75 6d |rmat. If| the num|
|00001920| 62 65 72 20 24 6e 24 20 | 69 73 20 6f 6d 69 74 74 |ber $n$ |is omitt|
|00001930| 65 64 2c 0a 77 72 69 74 | 65 20 74 68 65 20 6c 61 |ed,.writ|e the la|
|00001940| 74 65 73 74 20 63 6f 6d | 70 75 74 65 64 20 6f 62 |test com|puted ob|
|00001950| 6a 65 63 74 20 28 20 24 | 5c 25 24 20 29 2e 0a 0a |ject ( $|\%$ )...|
|00001960| 5c 73 75 62 73 65 63 7b | 24 5c 62 61 63 6b 73 6c |\subsec{|$\backsl|
|00001970| 61 73 68 24 7b 5c 62 66 | 20 78 7d 7d 3a 20 70 72 |ash${\bf| x}}: pr|
|00001980| 69 6e 74 20 74 68 65 20 | 63 6f 6d 70 6c 65 74 65 |int the |complete|
|00001990| 20 74 72 65 65 20 77 69 | 74 68 0a 61 64 64 72 65 | tree wi|th.addre|
|000019a0| 73 73 65 73 20 61 6e 64 | 20 63 6f 6e 74 65 6e 74 |sses and| content|
|000019b0| 73 20 69 6e 20 68 65 78 | 61 64 65 63 69 6d 61 6c |s in hex|adecimal|
|000019c0| 2c 20 6f 66 20 74 68 65 | 20 5c 72 65 66 7b 69 6e |, of the| \ref{in|
|000019d0| 74 65 72 6e 61 6c 20 72 | 65 70 72 65 73 65 6e 74 |ternal r|epresent|
|000019e0| 61 74 69 6f 6e 7d 20 6f | 66 20 74 68 65 0a 6c 61 |ation} o|f the.la|
|000019f0| 74 65 73 74 20 63 6f 6d | 70 75 74 65 64 20 6f 62 |test com|puted ob|
|00001a00| 6a 65 63 74 20 69 6e 20 | 47 50 2e 20 41 73 20 66 |ject in |GP. As f|
|00001a10| 6f 72 20 24 5c 62 61 63 | 6b 73 6c 61 73 68 24 73 |or $\bac|kslash$s|
|00001a20| 2c 20 74 68 69 73 20 69 | 73 20 75 73 65 64 20 70 |, this i|s used p|
|00001a30| 72 69 6d 61 72 69 6c 79 | 0a 61 73 20 61 20 64 65 |rimarily|.as a de|
|00001a40| 62 75 67 67 69 6e 67 20 | 64 65 76 69 63 65 20 66 |bugging |device f|
|00001a50| 6f 72 20 50 41 52 49 2c | 20 61 6e 64 20 69 73 20 |or PARI,| and is |
|00001a60| 6e 6f 74 20 69 6e 74 65 | 6e 64 65 64 20 66 6f 72 |not inte|nded for|
|00001a70| 20 74 68 65 20 63 61 73 | 75 61 6c 20 75 73 65 72 | the cas|ual user|
|00001a80| 2e 0a 48 6f 77 65 76 65 | 72 2c 20 75 73 65 64 20 |..Howeve|r, used |
|00001a90| 6f 6e 20 61 20 50 41 52 | 49 20 69 6e 74 65 67 65 |on a PAR|I intege|
|00001aa0| 72 2c 20 69 74 20 63 61 | 6e 20 62 65 20 75 73 65 |r, it ca|n be use|
|00001ab0| 64 20 61 73 20 61 20 64 | 65 63 69 6d 61 6c 24 5c |d as a d|ecimal$\|
|00001ac0| 72 69 67 68 74 61 72 72 | 6f 77 24 68 65 78 61 64 |rightarr|ow$hexad|
|00001ad0| 65 63 69 6d 61 6c 0a 63 | 6f 6e 76 65 72 74 65 72 |ecimal.c|onverter|
|00001ae0| 2e 0a 0a 5c 73 75 62 73 | 65 63 7b 5c 23 7d 3a 20 |...\subs|ec{\#}: |
|00001af0| 73 77 69 74 63 68 65 73 | 20 74 68 65 20 5c 72 65 |switches| the \re|
|00001b00| 66 7b 74 69 6d 65 72 7d | 20 6f 6e 20 6f 72 20 6f |f{timer}| on or o|
|00001b10| 66 66 2e 20 54 68 65 20 | 74 69 6d 65 72 20 63 6f |ff. The |timer co|
|00001b20| 75 6e 74 73 20 65 6c 65 | 63 74 72 69 63 61 6c 0a |unts ele|ctrical.|
|00001b30| 63 79 63 6c 65 73 2c 20 | 73 6f 20 69 73 20 70 72 |cycles, |so is pr|
|00001b40| 65 63 69 73 65 20 6f 6e | 6c 79 20 74 6f 20 24 5c |ecise on|ly to $\|
|00001b50| 70 6d 32 30 24 6d 73 20 | 69 6e 20 45 75 72 6f 70 |pm20$ms |in Europ|
|00001b60| 65 20 61 6e 64 20 24 5c | 70 6d 31 36 2e 37 24 6d |e and $\|pm16.7$m|
|00001b70| 73 20 69 6e 20 4e 6f 72 | 74 68 20 41 6d 65 72 69 |s in Nor|th Ameri|
|00001b80| 63 61 2e 0a 54 68 65 20 | 74 69 6d 65 20 6d 65 61 |ca..The |time mea|
|00001b90| 73 75 72 65 64 20 69 73 | 20 74 68 65 20 75 73 65 |sured is| the use|
|00001ba0| 72 20 5c 72 65 66 7b 43 | 50 55 20 74 69 6d 65 7d |r \ref{C|PU time}|
|00001bb0| 2c 20 7b 5c 69 74 20 6e | 6f 74 7d 20 69 6e 63 6c |, {\it n|ot} incl|
|00001bc0| 75 64 69 6e 67 20 74 68 | 65 20 74 69 6d 65 20 66 |uding th|e time f|
|00001bd0| 6f 72 0a 70 72 69 6e 74 | 69 6e 67 2e 0a 0a 5c 73 |or.print|ing...\s|
|00001be0| 65 63 74 69 6f 6e 7b 44 | 65 66 61 75 6c 74 73 20 |ection{D|efaults |
|00001bf0| 61 6e 64 20 5c 72 65 66 | 7b 6f 75 74 70 75 74 20 |and \ref|{output |
|00001c00| 66 6f 72 6d 61 74 73 7d | 2e 7d 0a 0a 54 68 65 20 |formats}|.}..The |
|00001c10| 6f 74 68 65 72 20 63 6f | 6d 6d 61 6e 64 73 20 73 |other co|mmands s|
|00001c20| 74 61 72 74 69 6e 67 20 | 77 69 74 68 20 60 60 24 |tarting |with ``$|
|00001c30| 5c 62 61 63 6b 73 6c 61 | 73 68 24 27 27 20 61 72 |\backsla|sh$'' ar|
|00001c40| 65 20 66 6f 72 20 73 65 | 74 74 69 6e 67 20 74 68 |e for se|tting th|
|00001c50| 65 0a 64 65 66 61 75 6c | 74 73 2e 0a 4e 6f 74 65 |e.defaul|ts..Note|
|00001c60| 20 74 68 61 74 20 69 6e | 20 74 68 65 20 73 79 6e | that in| the syn|
|00001c70| 74 61 78 20 67 69 76 65 | 6e 20 62 65 6c 6f 77 2c |tax give|n below,|
|00001c80| 20 74 68 65 20 60 60 3d | 27 27 20 73 69 67 6e 20 | the ``=|'' sign |
|00001c90| 6d 75 73 74 20 62 65 20 | 77 72 69 74 74 65 6e 0a |must be |written.|
|00001ca0| 65 78 70 6c 69 63 69 74 | 6c 79 2c 20 61 6e 64 20 |explicit|ly, and |
|00001cb0| 24 6e 24 20 72 65 70 72 | 65 73 65 6e 74 73 20 61 |$n$ repr|esents a|
|00001cc0| 20 6e 6f 6e 20 6e 65 67 | 61 74 69 76 65 20 69 6e | non neg|ative in|
|00001cd0| 74 65 67 65 72 2e 0a 0a | 5c 73 75 62 73 65 63 7b |teger...|\subsec{|
|00001ce0| 24 5c 62 61 63 6b 73 6c | 61 73 68 24 5c 72 65 66 |$\backsl|ash$\ref|
|00001cf0| 7b 70 72 65 63 69 73 69 | 6f 6e 7d 7d 24 3d 6e 24 |{precisi|on}}$=n$|
|00001d00| 3a 0a 53 65 74 73 20 74 | 6f 20 24 6e 24 20 74 68 |:.Sets t|o $n$ th|
|00001d10| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 73 69 67 6e |e number| of sign|
|00001d20| 69 66 69 63 61 6e 74 20 | 64 69 67 69 74 73 2c 20 |ificant |digits, |
|00001d30| 61 6e 64 20 61 74 20 74 | 68 65 20 73 61 6d 65 20 |and at t|he same |
|00001d40| 74 69 6d 65 20 74 68 65 | 0a 6e 75 6d 62 65 72 20 |time the|.number |
|00001d50| 6f 66 20 70 72 69 6e 74 | 65 64 20 64 69 67 69 74 |of print|ed digit|
|00001d60| 73 20 6f 66 20 72 65 61 | 6c 20 6e 75 6d 62 65 72 |s of rea|l number|
|00001d70| 73 2e 20 54 68 65 20 69 | 6e 69 74 69 61 6c 20 64 |s. The i|nitial d|
|00001d80| 65 66 61 75 6c 74 20 69 | 73 20 32 38 2e 0a 4e 6f |efault i|s 28..No|
|00001d90| 74 65 20 74 68 61 74 20 | 6f 6e 65 20 63 61 6e 20 |te that |one can |
|00001da0| 61 6c 73 6f 20 75 73 65 | 20 74 68 65 20 66 75 6e |also use| the fun|
|00001db0| 63 74 69 6f 6e 20 7b 5c | 74 74 20 73 65 74 70 72 |ction {\|tt setpr|
|00001dc0| 65 63 69 73 69 6f 6e 7d | 20 28 73 65 65 20 63 68 |ecision}| (see ch|
|00001dd0| 61 70 74 65 72 20 33 29 | 0a 74 6f 20 61 63 68 69 |apter 3)|.to achi|
|00001de0| 65 76 65 20 74 68 65 20 | 73 61 6d 65 20 67 6f 61 |eve the |same goa|
|00001df0| 6c 2c 20 61 6e 64 20 74 | 68 69 73 20 7b 5c 73 6c |l, and t|his {\sl|
|00001e00| 20 6d 75 73 74 7d 20 62 | 65 20 64 6f 6e 65 20 69 | must} b|e done i|
|00001e10| 66 20 69 74 20 69 73 20 | 69 6e 73 69 64 65 20 61 |f it is |inside a|
|00001e20| 0a 47 50 20 65 78 70 72 | 65 73 73 69 6f 6e 20 6f |.GP expr|ession o|
|00001e30| 72 20 70 72 6f 67 72 61 | 6d 2e 0a 0a 5c 73 75 62 |r progra|m...\sub|
|00001e40| 73 65 63 7b 24 5c 62 61 | 63 6b 73 6c 61 73 68 24 |sec{$\ba|ckslash$|
|00001e50| 5c 72 65 66 7b 73 65 72 | 69 65 73 6c 65 6e 67 74 |\ref{ser|ieslengt|
|00001e60| 68 7d 7d 24 3d 6e 24 3a | 0a 53 65 74 73 20 74 6f |h}}$=n$:|.Sets to|
|00001e70| 20 24 6e 24 20 74 68 65 | 20 6e 75 6d 62 65 72 20 | $n$ the| number |
|00001e80| 6f 66 20 73 69 67 6e 69 | 66 69 63 61 6e 74 20 74 |of signi|ficant t|
|00001e90| 65 72 6d 73 20 69 6e 20 | 70 6f 77 65 72 20 73 65 |erms in |power se|
|00001ea0| 72 69 65 73 2e 20 54 68 | 65 20 69 6e 69 74 69 61 |ries. Th|e initia|
|00001eb0| 6c 0a 64 65 66 61 75 6c | 74 20 69 73 20 31 36 2e |l.defaul|t is 16.|
|00001ec0| 4e 6f 74 65 20 74 68 61 | 74 20 6f 6e 65 20 63 61 |Note tha|t one ca|
|00001ed0| 6e 20 61 6c 73 6f 20 75 | 73 65 20 74 68 65 20 66 |n also u|se the f|
|00001ee0| 75 6e 63 74 69 6f 6e 20 | 7b 5c 74 74 20 73 65 74 |unction |{\tt set|
|00001ef0| 73 65 72 69 65 73 6c 65 | 6e 67 74 68 7d 0a 28 73 |seriesle|ngth}.(s|
|00001f00| 65 65 20 63 68 61 70 74 | 65 72 20 33 29 20 74 6f |ee chapt|er 3) to|
|00001f10| 20 61 63 68 69 65 76 65 | 20 74 68 65 20 73 61 6d | achieve| the sam|
|00001f20| 65 20 67 6f 61 6c 2c 20 | 61 6e 64 20 74 68 69 73 |e goal, |and this|
|00001f30| 20 7b 5c 73 6c 20 6d 75 | 73 74 7d 20 62 65 20 64 | {\sl mu|st} be d|
|00001f40| 6f 6e 65 20 69 66 20 69 | 74 20 0a 69 73 20 69 6e |one if i|t .is in|
|00001f50| 73 69 64 65 20 61 20 47 | 50 20 65 78 70 72 65 73 |side a G|P expres|
|00001f60| 73 69 6f 6e 20 6f 72 20 | 70 72 6f 67 72 61 6d 2e |sion or |program.|
|00001f70| 0a 0a 5c 73 75 62 73 65 | 63 7b 24 5c 62 61 63 6b |..\subse|c{$\back|
|00001f80| 73 6c 61 73 68 24 5c 72 | 65 66 7b 66 6f 72 6d 61 |slash$\r|ef{forma|
|00001f90| 74 7d 7d 3d 78 24 6e 2e | 6d 24 20 28 77 68 65 72 |t}}=x$n.|m$ (wher|
|00001fa0| 65 20 78 20 69 73 20 61 | 20 6c 65 74 74 65 72 29 |e x is a| letter)|
|00001fb0| 3a 20 69 66 20 74 68 65 | 20 6c 65 74 74 65 72 0a |: if the| letter.|
|00001fc0| 69 73 20 60 60 66 27 27 | 2c 20 72 65 61 6c 0a 6e |is ``f''|, real.n|
|00001fd0| 75 6d 62 65 72 73 20 77 | 69 6c 6c 20 62 65 20 70 |umbers w|ill be p|
|00001fe0| 72 69 6e 74 65 64 20 69 | 6e 20 5c 72 65 66 7b 66 |rinted i|n \ref{f|
|00001ff0| 69 78 65 64 20 66 6c 6f | 61 74 69 6e 67 20 70 6f |ixed flo|ating po|
|00002000| 69 6e 74 20 66 6f 72 6d | 61 74 7d 20 77 69 74 68 |int form|at} with|
|00002010| 20 6e 6f 20 65 78 70 6c | 69 63 69 74 0a 65 78 70 | no expl|icit.exp|
|00002020| 6f 6e 65 6e 74 20 28 65 | 2e 67 2e 20 30 2e 30 30 |onent (e|.g. 0.00|
|00002030| 30 30 33 33 29 3b 20 69 | 66 20 74 68 65 20 6c 65 |0033); i|f the le|
|00002040| 74 74 65 72 20 69 73 20 | 60 60 65 27 27 2c 20 74 |tter is |``e'', t|
|00002050| 68 65 79 20 77 69 6c 6c | 20 62 65 20 70 72 69 6e |hey will| be prin|
|00002060| 74 65 64 0a 69 6e 20 5c | 72 65 66 7b 73 63 69 65 |ted.in \|ref{scie|
|00002070| 6e 74 69 66 69 63 20 66 | 6f 72 6d 61 74 7d 2c 20 |ntific f|ormat}, |
|00002080| 61 6c 77 61 79 73 20 77 | 69 74 68 20 61 6e 20 65 |always w|ith an e|
|00002090| 78 70 6c 69 63 69 74 20 | 65 78 70 6f 6e 65 6e 74 |xplicit |exponent|
|000020a0| 20 28 65 2e 67 2e 20 33 | 2e 33 65 2d 35 29 2e 0a | (e.g. 3|.3e-5)..|
|000020b0| 49 66 20 74 68 65 20 6c | 65 74 74 65 72 20 69 73 |If the l|etter is|
|000020c0| 20 60 60 67 27 27 2c 20 | 72 65 61 6c 20 6e 75 6d | ``g'', |real num|
|000020d0| 62 65 72 73 20 77 69 6c | 6c 20 62 65 20 70 72 69 |bers wil|l be pri|
|000020e0| 6e 74 65 64 20 69 6e 20 | 60 60 66 27 27 20 66 6f |nted in |``f'' fo|
|000020f0| 72 6d 61 74 2c 0a 65 78 | 63 65 70 74 20 77 68 65 |rmat,.ex|cept whe|
|00002100| 6e 20 74 68 65 69 72 20 | 61 62 73 6f 6c 75 74 65 |n their |absolute|
|00002110| 20 76 61 6c 75 65 20 69 | 73 20 6c 65 73 73 20 74 | value i|s less t|
|00002120| 68 61 6e 20 24 32 5e 7b | 2d 33 32 7d 24 2c 20 69 |han $2^{|-32}$, i|
|00002130| 6e 20 77 68 69 63 68 20 | 63 61 73 65 0a 74 68 65 |n which |case.the|
|00002140| 79 20 61 72 65 20 70 72 | 69 6e 74 65 64 20 69 6e |y are pr|inted in|
|00002150| 20 60 60 65 27 27 20 66 | 6f 72 6d 61 74 2e 20 54 | ``e'' f|ormat. T|
|00002160| 68 65 20 69 6e 69 74 69 | 61 6c 20 64 65 66 61 75 |he initi|al defau|
|00002170| 6c 74 20 69 73 20 60 60 | 67 27 27 2e 0a 0a 54 68 |lt is ``|g''...Th|
|00002180| 65 20 6e 75 6d 62 65 72 | 20 24 6e 24 20 69 73 20 |e number| $n$ is |
|00002190| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 73 69 |the numb|er of si|
|000021a0| 67 6e 69 66 69 63 61 6e | 74 20 64 69 67 69 74 73 |gnifican|t digits|
|000021b0| 20 70 72 69 6e 74 65 64 | 20 66 6f 72 20 72 65 61 | printed| for rea|
|000021c0| 6c 20 6e 75 6d 62 65 72 | 73 0a 65 78 63 65 70 74 |l number|s.except|
|000021d0| 20 69 66 20 24 6e 5c 6c | 65 30 24 20 77 68 65 72 | if $n\l|e0$ wher|
|000021e0| 65 20 61 6c 6c 20 74 68 | 65 20 73 69 67 6e 69 66 |e all th|e signif|
|000021f0| 69 63 61 6e 74 20 64 69 | 67 69 74 73 20 77 69 6c |icant di|gits wil|
|00002200| 6c 20 62 65 20 70 72 69 | 6e 74 65 64 0a 28 69 6e |l be pri|nted.(in|
|00002210| 69 74 69 61 6c 20 64 65 | 66 61 75 6c 74 20 32 38 |itial de|fault 28|
|00002220| 29 2c 20 61 6e 64 20 74 | 68 65 20 6e 75 6d 62 65 |), and t|he numbe|
|00002230| 72 20 24 6d 24 20 69 73 | 20 74 68 65 20 6e 75 6d |r $m$ is| the num|
|00002240| 62 65 72 20 6f 66 20 63 | 68 61 72 61 63 74 65 72 |ber of c|haracter|
|00002250| 73 20 74 6f 20 62 65 0a | 75 73 65 64 20 66 6f 72 |s to be.|used for|
|00002260| 20 70 72 69 6e 74 69 6e | 67 20 69 6e 74 65 67 65 | printin|g intege|
|00002270| 72 73 2c 20 62 75 74 20 | 69 73 20 69 67 6e 6f 72 |rs, but |is ignor|
|00002280| 65 64 20 69 66 20 69 73 | 20 65 71 75 61 6c 20 74 |ed if is| equal t|
|00002290| 6f 20 7a 65 72 6f 20 28 | 69 6e 69 74 69 61 6c 0a |o zero (|initial.|
|000022a0| 64 65 66 61 75 6c 74 20 | 30 29 2e 20 54 68 69 73 |default |0). This|
|000022b0| 20 69 73 20 61 20 66 65 | 65 62 6c 65 20 61 74 74 | is a fe|eble att|
|000022c0| 65 6d 70 74 20 61 74 20 | 66 6f 72 6d 61 74 74 69 |empt at |formatti|
|000022d0| 6e 67 2e 0a 0a 5c 73 75 | 62 73 65 63 7b 24 5c 62 |ng...\su|bsec{$\b|
|000022e0| 61 63 6b 73 6c 61 73 68 | 24 5c 72 65 66 7b 70 72 |ackslash|$\ref{pr|
|000022f0| 6f 6d 70 74 7d 7d 3d 73 | 74 72 69 6e 67 3a 0a 53 |ompt}}=s|tring:.S|
|00002300| 65 74 73 20 74 68 65 20 | 70 72 6f 6d 70 74 20 65 |ets the |prompt e|
|00002310| 71 75 61 6c 20 74 6f 20 | 74 68 65 20 67 69 76 65 |qual to |the give|
|00002320| 6e 20 73 74 72 69 6e 67 | 2e 20 54 68 65 20 69 6e |n string|. The in|
|00002330| 69 74 69 61 6c 20 64 65 | 66 61 75 6c 74 20 69 73 |itial de|fault is|
|00002340| 20 60 60 3f 27 27 2e 0a | 0a 5c 73 75 62 73 65 63 | ``?''..|.\subsec|
|00002350| 7b 52 61 77 20 61 6e 64 | 20 62 65 61 75 74 69 66 |{Raw and| beautif|
|00002360| 69 65 72 20 66 6f 72 6d | 61 74 7d 3a 20 69 6e 20 |ier form|at}: in |
|00002370| 61 64 64 69 74 69 6f 6e | 20 74 6f 20 74 68 65 20 |addition| to the |
|00002380| 64 65 66 61 75 6c 74 20 | 66 6f 72 6d 61 74 73 0a |default |formats.|
|00002390| 77 68 69 63 68 0a 63 61 | 6e 20 62 65 20 73 65 74 |which.ca|n be set|
|000023a0| 20 61 73 20 65 78 70 6c | 61 69 6e 65 64 20 61 62 | as expl|ained ab|
|000023b0| 6f 76 65 2c 20 79 6f 75 | 20 63 61 6e 20 70 72 69 |ove, you| can pri|
|000023c0| 6e 74 20 72 65 73 75 6c | 74 73 20 65 69 74 68 65 |nt resul|ts eithe|
|000023d0| 72 20 75 73 69 6e 67 20 | 61 20 60 60 72 61 77 27 |r using |a ``raw'|
|000023e0| 27 0a 5c 73 72 65 66 7b | 72 61 77 20 66 6f 72 6d |'.\sref{|raw form|
|000023f0| 61 74 7d 20 66 6f 72 6d | 61 74 2c 20 69 2e 65 2e |at} form|at, i.e.|
|00002400| 20 61 20 66 6f 72 6d 61 | 74 20 77 68 69 63 68 20 | a forma|t which |
|00002410| 69 73 20 65 71 75 69 76 | 61 6c 65 6e 74 20 74 6f |is equiv|alent to|
|00002420| 20 77 68 61 74 20 79 6f | 75 20 69 6e 70 75 74 2c | what yo|u input,|
|00002430| 20 69 6e 63 6c 75 64 69 | 6e 67 0a 65 78 70 6c 69 | includi|ng.expli|
|00002440| 63 69 74 20 6d 75 6c 74 | 69 70 6c 69 63 61 74 69 |cit mult|iplicati|
|00002450| 6f 6e 20 73 69 67 6e 73 | 2c 20 61 6e 64 20 65 76 |on signs|, and ev|
|00002460| 65 72 79 74 68 69 6e 67 | 20 74 79 70 65 64 20 6f |erything| typed o|
|00002470| 6e 20 61 20 6c 69 6e 65 | 20 69 6e 73 74 65 61 64 |n a line| instead|
|00002480| 20 6f 66 0a 74 77 6f 20 | 64 69 6d 65 6e 73 69 6f | of.two |dimensio|
|00002490| 6e 61 6c 20 62 6f 78 65 | 73 2e 20 54 68 69 73 20 |nal boxe|s. This |
|000024a0| 63 61 6e 20 68 61 76 65 | 20 73 65 76 65 72 61 6c |can have| several|
|000024b0| 20 61 64 76 61 6e 74 61 | 67 65 73 2c 20 66 6f 72 | advanta|ges, for|
|000024c0| 20 69 6e 73 74 61 6e 63 | 65 20 69 74 0a 61 6c 6c | instanc|e it.all|
|000024d0| 6f 77 73 20 79 6f 75 20 | 74 6f 20 70 69 63 6b 20 |ows you |to pick |
|000024e0| 74 68 65 20 72 65 73 75 | 6c 74 20 77 69 74 68 20 |the resu|lt with |
|000024f0| 61 20 6d 6f 75 73 65 20 | 6f 72 20 61 6e 20 65 64 |a mouse |or an ed|
|00002500| 69 74 6f 72 2c 20 61 6e | 64 20 74 6f 20 70 75 74 |itor, an|d to put|
|00002510| 20 69 74 0a 73 6f 6d 65 | 77 68 65 72 65 20 65 6c | it.some|where el|
|00002520| 73 65 2e 20 54 68 69 73 | 20 69 73 20 74 68 65 20 |se. This| is the |
|00002530| 64 65 66 61 75 6c 74 2e | 0a 0a 4f 72 20 65 6c 73 |default.|..Or els|
|00002540| 65 20 79 6f 75 20 63 61 | 6e 20 61 73 6b 20 74 6f |e you ca|n ask to|
|00002550| 20 60 60 62 65 61 75 74 | 69 66 79 27 27 20 74 68 | ``beaut|ify'' th|
|00002560| 65 20 72 65 73 75 6c 74 | 2e 20 49 6e 20 74 68 65 |e result|. In the|
|00002570| 20 70 72 65 73 65 6e 74 | 20 76 65 72 73 69 6f 6e | present| version|
|00002580| 20 31 2e 33 35 2c 0a 74 | 68 69 73 20 69 73 20 6e | 1.35,.t|his is n|
|00002590| 6f 74 20 62 65 61 75 74 | 69 66 75 6c 20 61 74 20 |ot beaut|iful at |
|000025a0| 61 6c 6c 2e 20 54 68 65 | 20 73 79 6e 74 61 78 20 |all. The| syntax |
|000025b0| 69 73 3a 0a 0a 7b 5c 62 | 66 20 24 5c 62 61 63 6b |is:..{\b|f $\back|
|000025c0| 73 6c 61 73 68 24 62 24 | 6e 24 7d 2c 20 77 68 65 |slash$b$|n$}, whe|
|000025d0| 72 65 20 24 6e 24 20 69 | 73 20 61 6e 20 69 6e 74 |re $n$ i|s an int|
|000025e0| 65 67 65 72 2e 20 54 68 | 69 73 20 70 72 69 6e 74 |eger. Th|is print|
|000025f0| 73 20 24 5c 25 6e 24 20 | 69 6e 0a 5c 73 72 65 66 |s $\%n$ |in.\sref|
|00002600| 7b 62 65 61 75 74 69 66 | 69 65 64 20 66 6f 72 6d |{beautif|ied form|
|00002610| 61 74 7d 60 60 62 65 61 | 75 74 69 66 69 65 64 27 |at}``bea|utified'|
|00002620| 27 20 66 6f 72 6d 61 74 | 0a 28 62 75 74 20 64 6f |' format|.(but do|
|00002630| 65 73 20 6e 6f 74 20 63 | 72 65 61 74 65 20 61 6e |es not c|reate an|
|00002640| 79 20 6e 65 77 20 6f 62 | 6a 65 63 74 20 6f 6e 20 |y new ob|ject on |
|00002650| 74 68 65 20 73 74 61 63 | 6b 29 2e 20 49 66 20 24 |the stac|k). If $|
|00002660| 6e 24 20 69 73 20 6f 6d | 69 74 74 65 64 2c 20 69 |n$ is om|itted, i|
|00002670| 74 20 70 72 69 6e 74 73 | 0a 74 68 65 20 6c 61 74 |t prints|.the lat|
|00002680| 65 73 74 20 63 6f 6d 70 | 75 74 65 64 20 6f 62 6a |est comp|uted obj|
|00002690| 65 63 74 20 24 5c 25 24 | 20 69 6e 20 60 60 62 65 |ect $\%$| in ``be|
|000026a0| 61 75 74 69 66 69 65 64 | 27 27 20 66 6f 72 6d 61 |autified|'' forma|
|000026b0| 74 20 28 73 65 65 20 32 | 2e 31 2e 32 29 2e 0a 4f |t (see 2|.1.2)..O|
|000026c0| 6e 65 20 63 61 6e 20 72 | 65 76 65 72 73 65 20 74 |ne can r|everse t|
|000026d0| 68 65 20 64 65 66 61 75 | 6c 74 20 28 61 6e 64 20 |he defau|lt (and |
|000026e0| 74 68 65 20 65 66 66 65 | 63 74 20 6f 66 20 24 5c |the effe|ct of $\|
|000026f0| 62 61 63 6b 73 6c 61 73 | 68 24 62 24 6e 24 29 20 |backslas|h$b$n$) |
|00002700| 62 79 20 74 68 65 0a 63 | 6f 6d 6d 61 6e 64 20 24 |by the.c|ommand $|
|00002710| 5c 62 61 63 6b 73 6c 61 | 73 68 24 70 20 28 73 65 |\backsla|sh$p (se|
|00002720| 65 20 32 2e 31 2e 36 29 | 2e 0a 0a 5c 73 75 62 73 |e 2.1.6)|...\subs|
|00002730| 65 63 7b 4e 6f 74 65 20 | 6f 6e 20 74 68 65 20 6f |ec{Note |on the o|
|00002740| 75 74 70 75 74 20 66 6f | 72 6d 61 74 73 2e 7d 0a |utput fo|rmats.}.|
|00002750| 0a 41 20 7a 65 72 6f 20 | 72 65 61 6c 20 6e 75 6d |.A zero |real num|
|00002760| 62 65 72 20 69 73 20 70 | 72 69 6e 74 65 64 20 69 |ber is p|rinted i|
|00002770| 6e 20 60 60 65 27 27 20 | 66 6f 72 6d 61 74 20 61 |n ``e'' |format a|
|00002780| 73 20 24 30 2e 45 78 78 | 24 20 77 68 65 72 65 20 |s $0.Exx|$ where |
|00002790| 24 78 78 24 20 69 73 20 | 74 68 65 0a 28 75 73 75 |$xx$ is |the.(usu|
|000027a0| 61 6c 6c 79 20 6e 65 67 | 61 74 69 76 65 29 20 7b |ally neg|ative) {|
|000027b0| 5c 69 74 20 64 65 63 69 | 6d 61 6c 5c 2f 7d 20 65 |\it deci|mal\/} e|
|000027c0| 78 70 6f 6e 65 6e 74 20 | 6f 66 20 74 68 65 20 6e |xponent |of the n|
|000027d0| 75 6d 62 65 72 20 28 63 | 66 2e 20 31 2e 32 2e 36 |umber (c|f. 1.2.6|
|000027e0| 2e 29 2e 0a 54 68 69 73 | 20 61 6c 6c 6f 77 73 20 |.)..This| allows |
|000027f0| 74 68 65 20 75 73 65 72 | 20 74 6f 20 63 68 65 63 |the user| to chec|
|00002800| 6b 20 74 68 65 20 61 63 | 63 75 72 61 63 79 20 6f |k the ac|curacy o|
|00002810| 66 20 74 68 65 20 7a 65 | 72 6f 20 69 6e 20 71 75 |f the ze|ro in qu|
|00002820| 65 73 74 69 6f 6e 0a 28 | 74 68 69 73 20 63 6f 75 |estion.(|this cou|
|00002830| 6c 64 20 61 6c 73 6f 20 | 62 65 20 64 6f 6e 65 20 |ld also |be done |
|00002840| 75 73 69 6e 67 20 24 5c | 62 61 63 6b 73 6c 61 73 |using $\|backslas|
|00002850| 68 24 78 2c 20 62 75 74 | 20 69 74 20 77 6f 75 6c |h$x, but| it woul|
|00002860| 64 20 62 65 20 6d 6f 72 | 65 20 74 65 63 68 6e 69 |d be mor|e techni|
|00002870| 63 61 6c 29 2e 0a 0a 57 | 68 65 6e 20 74 68 65 20 |cal)...W|hen the |
|00002880| 69 6e 74 65 67 65 72 20 | 70 61 72 74 20 6f 66 20 |integer |part of |
|00002890| 61 20 72 65 61 6c 20 6e | 75 6d 62 65 72 20 24 78 |a real n|umber $x|
|000028a0| 24 20 69 73 20 6e 6f 74 | 20 73 69 67 6e 69 66 69 |$ is not| signifi|
|000028b0| 63 61 6e 74 20 62 65 63 | 61 75 73 65 20 74 68 65 |cant bec|ause the|
|000028c0| 0a 65 78 70 6f 6e 65 6e | 74 20 6f 66 20 24 78 24 |.exponen|t of $x$|
|000028d0| 20 69 73 20 67 72 65 61 | 74 65 72 20 74 68 61 6e | is grea|ter than|
|000028e0| 20 74 68 65 20 69 6e 74 | 65 72 6e 61 6c 20 70 72 | the int|ernal pr|
|000028f0| 65 63 69 73 69 6f 6e 2c | 20 61 6e 20 61 70 70 72 |ecision,| an appr|
|00002900| 6f 78 69 6d 61 74 69 6f | 6e 20 74 6f 0a 74 68 65 |oximatio|n to.the|
|00002910| 20 69 6e 74 65 67 65 72 | 20 70 61 72 74 20 69 73 | integer| part is|
|00002920| 20 70 72 69 6e 74 65 64 | 2c 20 66 6f 6c 6c 6f 77 | printed|, follow|
|00002930| 65 64 20 62 79 20 61 20 | 60 60 24 2a 24 27 27 20 |ed by a |``$*$'' |
|00002940| 69 6e 73 74 65 61 64 20 | 6f 66 20 61 0a 64 65 63 |instead |of a.dec|
|00002950| 69 6d 61 6c 20 70 6f 69 | 6e 74 2c 20 69 6e 64 69 |imal poi|nt, indi|
|00002960| 63 61 74 69 6e 67 20 5c | 72 65 66 7b 63 6f 72 72 |cating \|ref{corr|
|00002970| 75 70 74 20 64 69 67 69 | 74 73 7d 20 6f 6e 20 74 |upt digi|ts} on t|
|00002980| 68 65 20 6c 65 66 74 2e | 0a 0a 4e 6f 74 65 20 61 |he left.|..Note a|
|00002990| 6c 73 6f 20 74 68 61 74 | 20 61 20 6e 75 6d 62 65 |lso that| a numbe|
|000029a0| 72 20 6f 66 20 74 79 70 | 65 20 69 6e 74 65 67 65 |r of typ|e intege|
|000029b0| 72 20 6f 72 20 72 65 61 | 6c 20 69 73 20 77 72 69 |r or rea|l is wri|
|000029c0| 74 74 65 6e 20 77 69 74 | 68 6f 75 74 0a 65 6e 63 |tten wit|hout.enc|
|000029d0| 6c 6f 73 69 6e 67 20 70 | 61 72 65 6e 74 68 65 73 |losing p|arenthes|
|000029e0| 65 73 2c 20 77 68 69 6c | 65 20 6d 6f 73 74 20 6f |es, whil|e most o|
|000029f0| 74 68 65 72 20 74 79 70 | 65 73 20 68 61 76 65 20 |ther typ|es have |
|00002a00| 74 68 65 6d 2e 20 48 65 | 6e 63 65 2c 20 69 66 20 |them. He|nce, if |
|00002a10| 79 6f 75 20 73 65 65 0a | 70 72 69 6e 74 65 64 20 |you see.|printed |
|00002a20| 74 68 65 20 65 78 70 72 | 65 73 73 69 6f 6e 20 24 |the expr|ession $|
|00002a30| 28 20 33 2e 31 34 20 29 | 24 2c 20 69 74 20 69 73 |( 3.14 )|$, it is|
|00002a40| 20 6e 6f 74 20 6f 66 20 | 74 79 70 65 20 72 65 61 | not of |type rea|
|00002a50| 6c 2c 20 62 75 74 20 70 | 72 6f 62 61 62 6c 79 20 |l, but p|robably |
|00002a60| 6f 66 0a 74 79 70 65 20 | 63 6f 6d 70 6c 65 78 20 |of.type |complex |
|00002a70| 77 69 74 68 20 7a 65 72 | 6f 20 69 6d 61 67 69 6e |with zer|o imagin|
|00002a80| 61 72 79 20 70 61 72 74 | 20 28 69 66 20 79 6f 75 |ary part| (if you|
|00002a90| 20 77 61 6e 74 20 74 6f | 20 62 65 20 73 75 72 65 | want to| be sure|
|00002aa0| 2c 20 74 79 70 65 0a 24 | 5c 62 61 63 6b 73 6c 61 |, type.$|\backsla|
|00002ab0| 73 68 24 78 29 2e 0a 0a | 46 69 6e 61 6c 6c 79 20 |sh$x)...|Finally |
|00002ac0| 6e 6f 74 65 20 74 68 61 | 74 20 69 6e 20 74 68 65 |note tha|t in the|
|00002ad0| 20 70 72 65 73 65 6e 74 | 20 76 65 72 73 69 6f 6e | present| version|
|00002ae0| 20 31 2e 33 35 2c 20 74 | 68 65 20 70 72 69 6e 74 | 1.35, t|he print|
|00002af0| 69 6e 67 20 6f 66 20 30 | 2c 20 31 2c 20 61 6e 64 |ing of 0|, 1, and|
|00002b00| 0a 2d 31 20 61 73 20 63 | 6f 65 66 66 69 63 69 65 |.-1 as c|oefficie|
|00002b10| 6e 74 73 20 69 6e 20 62 | 65 61 75 74 69 66 69 65 |nts in b|eautifie|
|00002b20| 64 20 66 6f 72 6d 61 74 | 2c 20 61 6c 74 68 6f 75 |d format|, althou|
|00002b30| 67 68 20 75 6e 64 65 72 | 73 74 61 6e 64 61 62 6c |gh under|standabl|
|00002b40| 65 2c 20 69 73 20 62 75 | 67 67 79 2e 0a 48 65 6e |e, is bu|ggy..Hen|
|00002b50| 63 65 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 69 |ce the d|efault i|
|00002b60| 73 20 74 68 65 20 72 61 | 77 20 66 6f 72 6d 61 74 |s the ra|w format|
|00002b70| 20 75 6e 74 69 6c 20 74 | 68 69 73 20 69 73 20 69 | until t|his is i|
|00002b80| 6d 70 72 6f 76 65 64 2e | 0a 0a 5c 73 65 63 74 69 |mproved.|..\secti|
|00002b90| 6f 6e 7b 49 6e 70 75 74 | 20 66 6f 72 6d 61 74 73 |on{Input| formats|
|00002ba0| 20 66 6f 72 20 74 68 65 | 20 50 41 52 49 20 74 79 | for the| PARI ty|
|00002bb0| 70 65 73 2e 7d 0a 0a 41 | 70 61 72 74 20 66 72 6f |pes.}..A|part fro|
|00002bc0| 6d 20 63 6f 6d 6d 61 6e | 64 73 2c 20 74 68 65 20 |m comman|ds, the |
|00002bd0| 67 65 6e 65 72 61 6c 20 | 69 6e 70 75 74 20 69 6e |general |input in|
|00002be0| 20 47 50 20 61 66 74 65 | 72 20 74 68 65 20 70 72 | GP afte|r the pr|
|00002bf0| 6f 6d 70 74 20 69 73 20 | 61 20 73 65 71 75 65 6e |ompt is |a sequen|
|00002c00| 63 65 20 6f 66 20 6c 65 | 67 61 6c 0a 65 78 70 72 |ce of le|gal.expr|
|00002c10| 65 73 73 69 6f 6e 73 2e | 20 42 65 66 6f 72 65 20 |essions.| Before |
|00002c20| 64 65 73 63 72 69 62 69 | 6e 67 20 74 68 69 73 20 |describi|ng this |
|00002c30| 69 6e 20 64 65 74 61 69 | 6c 20 69 6e 20 74 68 65 |in detai|l in the|
|00002c40| 20 6e 65 78 74 20 73 65 | 63 74 69 6f 6e 2c 20 6c | next se|ction, l|
|00002c50| 65 74 20 75 73 20 73 65 | 65 0a 68 65 72 65 20 68 |et us se|e.here h|
|00002c60| 6f 77 20 74 6f 20 69 6e | 70 75 74 20 74 68 65 20 |ow to in|put the |
|00002c70| 64 69 66 66 65 72 65 6e | 74 20 74 79 70 65 73 20 |differen|t types |
|00002c80| 6f 66 20 50 41 52 49 2e | 0a 0a 4e 6f 74 65 20 74 |of PARI.|..Note t|
|00002c90| 68 61 74 20 62 6c 61 6e | 6b 73 20 61 72 65 20 69 |hat blan|ks are i|
|00002ca0| 67 6e 6f 72 65 64 20 69 | 6e 20 61 6e 20 65 78 70 |gnored i|n an exp|
|00002cb0| 72 65 73 73 69 6f 6e 2e | 0a 0a 5c 73 75 62 73 65 |ression.|..\subse|
|00002cc0| 63 7b 5c 72 65 66 7b 49 | 6e 74 65 67 65 72 7d 73 |c{\ref{I|nteger}s|
|00002cd0| 7d 20 28 74 79 70 65 20 | 31 29 3a 20 74 79 70 65 |} (type |1): type|
|00002ce0| 20 74 68 65 20 69 6e 74 | 65 67 65 72 20 28 77 69 | the int|eger (wi|
|00002cf0| 74 68 20 61 6e 20 69 6e | 69 74 69 61 6c 0a 24 2b |th an in|itial.$+|
|00002d00| 24 20 6f 72 20 24 2d 24 | 20 69 66 20 64 65 73 69 |$ or $-$| if desi|
|00002d10| 72 65 64 29 20 77 69 74 | 68 20 6e 6f 20 64 65 63 |red) wit|h no dec|
|00002d20| 69 6d 61 6c 20 70 6f 69 | 6e 74 2e 0a 0a 5c 73 75 |imal poi|nt...\su|
|00002d30| 62 73 65 63 7b 5c 72 65 | 66 7b 52 65 61 6c 20 6e |bsec{\re|f{Real n|
|00002d40| 75 6d 62 65 72 7d 73 7d | 20 28 74 79 70 65 20 32 |umber}s}| (type 2|
|00002d50| 29 3a 20 74 79 70 65 20 | 74 68 65 20 6e 75 6d 62 |): type |the numb|
|00002d60| 65 72 20 77 69 74 68 20 | 61 20 64 65 63 69 6d 61 |er with |a decima|
|00002d70| 6c 0a 70 6f 69 6e 74 2e | 20 54 68 65 20 69 6e 74 |l.point.| The int|
|00002d80| 65 72 6e 61 6c 20 70 72 | 65 63 69 73 69 6f 6e 20 |ernal pr|ecision |
|00002d90| 6f 66 20 74 68 65 20 72 | 65 61 6c 20 6e 75 6d 62 |of the r|eal numb|
|00002da0| 65 72 20 77 69 6c 6c 20 | 62 65 20 74 68 65 20 73 |er will |be the s|
|00002db0| 75 70 72 65 6d 75 6d 20 | 6f 66 20 74 68 65 0a 69 |upremum |of the.i|
|00002dc0| 6e 70 75 74 20 70 72 65 | 63 69 73 69 6f 6e 20 61 |nput pre|cision a|
|00002dd0| 6e 64 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 70 |nd the d|efault p|
|00002de0| 72 65 63 69 73 69 6f 6e | 2e 20 46 6f 72 20 65 78 |recision|. For ex|
|00002df0| 61 6d 70 6c 65 2c 20 69 | 66 20 74 68 65 20 64 65 |ample, i|f the de|
|00002e00| 66 61 75 6c 74 0a 70 72 | 65 63 69 73 69 6f 6e 20 |fault.pr|ecision |
|00002e10| 69 73 20 32 38 20 64 69 | 67 69 74 73 2c 20 74 79 |is 28 di|gits, ty|
|00002e20| 70 69 6e 67 20 32 2e 20 | 77 69 6c 6c 20 67 69 76 |ping 2. |will giv|
|00002e30| 65 20 61 20 6e 75 6d 62 | 65 72 20 77 69 74 68 20 |e a numb|er with |
|00002e40| 69 6e 74 65 72 6e 61 6c | 20 70 72 65 63 69 73 69 |internal| precisi|
|00002e50| 6f 6e 0a 32 38 2c 20 62 | 75 74 20 74 79 70 69 6e |on.28, b|ut typin|
|00002e60| 67 20 61 20 34 35 20 73 | 69 67 6e 69 66 69 63 61 |g a 45 s|ignifica|
|00002e70| 6e 74 20 64 69 67 69 74 | 20 72 65 61 6c 20 6e 75 |nt digit| real nu|
|00002e80| 6d 62 65 72 20 77 69 6c | 6c 20 67 69 76 65 20 61 |mber wil|l give a|
|00002e90| 20 6e 75 6d 62 65 72 20 | 77 69 74 68 0a 69 6e 74 | number |with.int|
|00002ea0| 65 72 6e 61 6c 20 70 72 | 65 63 69 73 69 6f 6e 20 |ernal pr|ecision |
|00002eb0| 61 74 20 6c 65 61 73 74 | 20 34 35 20 28 61 6c 74 |at least| 45 (alt|
|00002ec0| 68 6f 75 67 68 20 6c 65 | 73 73 20 6d 61 79 20 62 |hough le|ss may b|
|00002ed0| 65 20 70 72 69 6e 74 65 | 64 29 2e 0a 0a 59 6f 75 |e printe|d)...You|
|00002ee0| 20 63 61 6e 20 61 6c 73 | 6f 20 75 73 65 20 73 63 | can als|o use sc|
|00002ef0| 69 65 6e 74 69 66 69 63 | 20 6e 6f 74 61 74 69 6f |ientific| notatio|
|00002f00| 6e 20 77 69 74 68 20 74 | 68 65 20 6c 65 74 74 65 |n with t|he lette|
|00002f10| 72 20 60 60 45 27 27 20 | 6f 72 20 60 60 65 27 27 |r ``E'' |or ``e''|
|00002f20| 0a 28 6c 69 6b 65 20 36 | 2e 30 32 20 45 20 32 33 |.(like 6|.02 E 23|
|00002f30| 20 6f 72 20 31 65 2d 35 | 29 2e 0a 0a 5c 73 75 62 | or 1e-5|)...\sub|
|00002f40| 73 65 63 7b 5c 72 65 66 | 7b 49 6e 74 65 67 65 72 |sec{\ref|{Integer|
|00002f50| 6d 6f 64 7d 73 7d 20 28 | 74 79 70 65 20 33 29 3a |mod}s} (|type 3):|
|00002f60| 20 74 6f 20 65 6e 74 65 | 72 20 24 6e 20 5c 6d 6f | to ente|r $n \mo|
|00002f70| 64 20 6d 24 2c 20 74 79 | 70 65 0a 24 5c 74 65 78 |d m$, ty|pe.$\tex|
|00002f80| 74 7b 6d 6f 64 7d 20 28 | 20 6e 2c 20 6d 20 29 24 |t{mod} (| n, m )$|
|00002f90| 2c 20 6e 6f 74 20 24 6e | 5c 25 20 6d 24 20 28 73 |, not $n|\% m$ (s|
|00002fa0| 65 65 20 33 2e 32 2e 31 | 32 2e 29 2e 0a 0a 5c 73 |ee 3.2.1|2.)...\s|
|00002fb0| 75 62 73 65 63 7b 5c 72 | 65 66 7b 52 61 74 69 6f |ubsec{\r|ef{Ratio|
|00002fc0| 6e 61 6c 20 6e 75 6d 62 | 65 72 7d 73 7d 20 28 74 |nal numb|er}s} (t|
|00002fd0| 79 70 65 73 20 34 20 61 | 6e 64 20 35 29 3a 20 75 |ypes 4 a|nd 5): u|
|00002fe0| 6e 64 65 72 20 47 50 2c | 20 61 6c 6c 0a 66 72 61 |nder GP,| all.fra|
|00002ff0| 63 74 69 6f 6e 73 20 61 | 72 65 20 61 75 74 6f 6d |ctions a|re autom|
|00003000| 61 74 69 63 61 6c 6c 79 | 20 72 65 64 75 63 65 64 |atically| reduced|
|00003010| 20 74 6f 20 6c 6f 77 65 | 73 74 20 74 65 72 6d 73 | to lowe|st terms|
|00003020| 2c 20 73 6f 20 69 74 20 | 69 73 20 6e 6f 74 20 70 |, so it |is not p|
|00003030| 6f 73 73 69 62 6c 65 0a | 74 6f 20 65 6e 74 65 72 |ossible.|to enter|
|00003040| 20 61 20 6e 6f 6e 2d 69 | 72 72 65 64 75 63 69 62 | a non-i|rreducib|
|00003050| 6c 65 20 66 72 61 63 74 | 69 6f 6e 20 28 74 79 70 |le fract|ion (typ|
|00003060| 65 20 35 29 2c 20 61 6c | 74 68 6f 75 67 68 20 6f |e 5), al|though o|
|00003070| 66 20 63 6f 75 72 73 65 | 20 69 6e 0a 6c 69 62 72 |f course| in.libr|
|00003080| 61 72 79 20 6d 6f 64 65 | 20 74 68 69 73 20 69 73 |ary mode| this is|
|00003090| 20 65 61 73 79 2e 20 54 | 6f 20 65 6e 74 65 72 20 | easy. T|o enter |
|000030a0| 24 6e 2f 6d 24 20 6a 75 | 73 74 20 74 79 70 65 20 |$n/m$ ju|st type |
|000030b0| 69 74 20 61 73 20 77 72 | 69 74 74 65 6e 2e 0a 41 |it as wr|itten..A|
|000030c0| 73 20 65 78 70 6c 61 69 | 6e 65 64 20 69 6e 20 73 |s explai|ned in s|
|000030d0| 65 63 74 69 6f 6e 20 33 | 2e 31 2e 34 2e 2c 20 64 |ection 3|.1.4., d|
|000030e0| 69 76 69 73 69 6f 6e 20 | 77 69 6c 6c 20 7b 5c 73 |ivision |will {\s|
|000030f0| 6c 20 6e 6f 74 7d 20 62 | 65 20 70 65 72 66 6f 72 |l not} b|e perfor|
|00003100| 6d 65 64 2c 20 6f 6e 6c | 79 0a 72 65 64 75 63 74 |med, onl|y.reduct|
|00003110| 69 6f 6e 20 74 6f 20 6c | 6f 77 65 73 74 20 74 65 |ion to l|owest te|
|00003120| 72 6d 73 2e 0a 0a 5c 73 | 75 62 73 65 63 7b 5c 72 |rms...\s|ubsec{\r|
|00003130| 65 66 7b 43 6f 6d 70 6c | 65 78 20 6e 75 6d 62 65 |ef{Compl|ex numbe|
|00003140| 72 7d 73 7d 20 28 74 79 | 70 65 20 36 29 3a 20 74 |r}s} (ty|pe 6): t|
|00003150| 6f 20 65 6e 74 65 72 20 | 24 78 2b 69 79 24 2c 20 |o enter |$x+iy$, |
|00003160| 74 79 70 65 0a 24 78 2b | 49 2a 79 24 20 6f 72 20 |type.$x+|I*y$ or |
|00003170| 24 78 2b 69 2a 79 24 2e | 20 54 68 65 20 6c 65 74 |$x+i*y$.| The let|
|00003180| 74 65 72 73 20 24 49 24 | 20 61 6e 64 20 24 5c 72 |ters $I$| and $\r|
|00003190| 65 66 7b 69 7d 24 20 73 | 74 61 6e 64 20 66 6f 72 |ef{i}$ s|tand for|
|000031a0| 20 24 5c 73 71 72 74 7b | 2d 31 7d 24 2e 20 52 65 | $\sqrt{|-1}$. Re|
|000031b0| 63 61 6c 6c 0a 66 72 6f | 6d 20 63 68 61 70 74 65 |call.fro|m chapte|
|000031c0| 72 20 31 20 74 68 61 74 | 20 24 78 24 20 61 6e 64 |r 1 that| $x$ and|
|000031d0| 20 24 79 24 20 63 61 6e | 20 62 65 20 6f 66 20 74 | $y$ can| be of t|
|000031e0| 79 70 65 20 69 6e 74 65 | 67 65 72 2c 20 72 65 61 |ype inte|ger, rea|
|000031f0| 6c 2c 20 69 6e 74 65 67 | 65 72 6d 6f 64 0a 66 72 |l, integ|ermod.fr|
|00003200| 61 63 74 69 6f 6e 2c 20 | 6f 72 20 24 70 24 2d 61 |action, |or $p$-a|
|00003210| 64 69 63 2e 0a 0a 5c 73 | 75 62 73 65 63 7b 24 70 |dic...\s|ubsec{$p|
|00003220| 24 2d 61 64 69 63 20 6e | 75 6d 62 65 72 73 7d 5c |$-adic n|umbers}\|
|00003230| 73 72 65 66 7b 70 2d 61 | 64 69 63 20 6e 75 6d 62 |sref{p-a|dic numb|
|00003240| 65 72 7d 20 28 74 79 70 | 65 20 37 29 3a 20 74 6f |er} (typ|e 7): to|
|00003250| 20 65 6e 74 65 72 20 61 | 20 24 70 24 2d 61 64 69 | enter a| $p$-adi|
|00003260| 63 20 6e 75 6d 62 65 72 | 2c 0a 73 69 6d 70 6c 79 |c number|,.simply|
|00003270| 20 77 72 69 74 65 20 61 | 20 72 61 74 69 6f 6e 61 | write a| rationa|
|00003280| 6c 20 6f 72 20 69 6e 74 | 65 67 65 72 20 65 78 70 |l or int|eger exp|
|00003290| 72 65 73 73 69 6f 6e 20 | 61 6e 64 20 61 64 64 20 |ression |and add |
|000032a0| 74 6f 20 69 74 20 24 4f | 28 70 5c 68 61 74 7b 5c |to it $O|(p\hat{\|
|000032b0| 20 7d 6b 29 24 2c 0a 77 | 68 65 72 65 0a 24 70 24 | }k)$,.w|here.$p$|
|000032c0| 20 61 6e 64 20 24 6b 24 | 20 61 72 65 20 69 6e 74 | and $k$| are int|
|000032d0| 65 67 65 72 73 2e 20 54 | 68 69 73 20 6c 61 73 74 |egers. T|his last|
|000032e0| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 69 6e 64 69 | express|ion indi|
|000032f0| 63 61 74 65 73 20 74 68 | 72 65 65 20 74 68 69 6e |cates th|ree thin|
|00003300| 67 73 20 74 6f 20 47 50 | 3a 0a 66 69 72 73 74 20 |gs to GP|:.first |
|00003310| 74 68 61 74 20 69 74 20 | 69 73 20 64 65 61 6c 69 |that it |is deali|
|00003320| 6e 67 20 77 69 74 68 20 | 61 20 24 70 24 2d 61 64 |ng with |a $p$-ad|
|00003330| 69 63 20 28 74 68 65 20 | 66 61 63 74 20 74 68 61 |ic (the |fact tha|
|00003340| 74 20 24 70 24 20 69 73 | 20 61 6e 20 69 6e 74 65 |t $p$ is| an inte|
|00003350| 67 65 72 29 2c 0a 73 65 | 63 6f 6e 64 20 74 68 65 |ger),.se|cond the|
|00003360| 20 60 60 70 72 69 6d 65 | 27 27 20 24 70 24 20 28 | ``prime|'' $p$ (|
|00003370| 6e 6f 74 65 20 74 68 61 | 74 20 6e 6f 20 76 65 72 |note tha|t no ver|
|00003380| 69 66 69 63 61 74 69 6f | 6e 20 69 73 20 64 6f 6e |ificatio|n is don|
|00003390| 65 20 74 68 61 74 20 24 | 70 24 20 69 73 0a 69 6e |e that $|p$ is.in|
|000033a0| 64 65 65 64 20 70 72 69 | 6d 65 3b 20 79 6f 75 20 |deed pri|me; you |
|000033b0| 63 61 6e 20 77 6f 72 6b | 20 6f 6e 20 31 30 2d 61 |can work| on 10-a|
|000033c0| 64 69 63 73 20 69 66 20 | 79 6f 75 20 77 61 6e 74 |dics if |you want|
|000033d0| 2c 20 62 75 74 20 62 65 | 77 61 72 65 20 6f 66 20 |, but be|ware of |
|000033e0| 64 69 73 61 73 74 65 72 | 73 0a 61 73 20 73 6f 6f |disaster|s.as soo|
|000033f0| 6e 20 61 73 20 79 6f 75 | 20 64 6f 20 73 6f 6d 65 |n as you| do some|
|00003400| 74 68 69 6e 67 20 6e 6f | 6e 20 74 72 69 76 69 61 |thing no|n trivia|
|00003410| 6c 20 6c 69 6b 65 20 74 | 61 6b 69 6e 67 20 61 20 |l like t|aking a |
|00003420| 73 71 75 61 72 65 20 72 | 6f 6f 74 29 2c 20 61 6e |square r|oot), an|
|00003430| 64 0a 66 69 6e 61 6c 6c | 79 20 74 68 65 20 6e 75 |d.finall|y the nu|
|00003440| 6d 62 65 72 20 6f 66 20 | 73 69 67 6e 69 66 69 63 |mber of |signific|
|00003450| 61 6e 74 20 24 70 24 2d | 61 64 69 63 20 64 69 67 |ant $p$-|adic dig|
|00003460| 69 74 73 20 24 6b 24 2e | 0a 0a 46 6f 72 20 65 78 |its $k$.|..For ex|
|00003470| 61 6d 70 6c 65 2c 20 74 | 6f 20 6f 62 74 61 69 6e |ample, t|o obtain|
|00003480| 20 74 68 65 20 24 37 24 | 2d 61 64 69 63 20 6e 75 | the $7$|-adic nu|
|00003490| 6d 62 65 72 0a 24 24 32 | 2a 37 5c 68 61 74 7b 5c |mber.$$2|*7\hat{\|
|000034a0| 20 7d 28 2d 31 29 2b 33 | 2b 34 2a 37 2b 32 2a 37 | }(-1)+3|+4*7+2*7|
|000034b0| 5c 68 61 74 7b 5c 20 7d | 32 2b 4f 28 37 5c 68 61 |\hat{\ }|2+O(7\ha|
|000034c0| 74 7b 5c 20 7d 33 29 2c | 24 24 20 79 6f 75 20 63 |t{\ }3),|$$ you c|
|000034d0| 61 6e 20 74 79 70 65 20 | 69 74 0a 65 78 61 63 74 |an type |it.exact|
|000034e0| 6c 79 20 61 73 20 73 68 | 6f 77 6e 2c 20 6f 72 20 |ly as sh|own, or |
|000034f0| 65 71 75 69 76 61 6c 65 | 6e 74 6c 79 20 61 73 20 |equivale|ntly as |
|00003500| 24 24 39 30 35 2f 37 2b | 4f 28 37 5c 68 61 74 7b |$$905/7+|O(7\hat{|
|00003510| 5c 20 7d 33 29 2e 24 24 | 0a 0a 5c 73 75 62 73 65 |\ }3).$$|..\subse|
|00003520| 63 7b 5c 72 65 66 7b 51 | 75 61 64 72 61 74 69 63 |c{\ref{Q|uadratic|
|00003530| 20 6e 75 6d 62 65 72 7d | 73 7d 20 28 74 79 70 65 | number}|s} (type|
|00003540| 20 38 29 3a 20 66 69 72 | 73 74 2c 20 79 6f 75 20 | 8): fir|st, you |
|00003550| 6d 75 73 74 20 64 65 66 | 69 6e 65 20 74 68 65 20 |must def|ine the |
|00003560| 64 65 66 61 75 6c 74 0a | 71 75 61 64 72 61 74 69 |default.|quadrati|
|00003570| 63 20 6f 72 64 65 72 20 | 6f 72 20 66 69 65 6c 64 |c order |or field|
|00003580| 20 69 6e 20 77 68 69 63 | 68 20 79 6f 75 20 77 61 | in whic|h you wa|
|00003590| 6e 74 20 74 6f 20 77 6f | 72 6b 2e 20 54 68 69 73 |nt to wo|rk. This|
|000035a0| 20 69 73 20 64 6f 6e 65 | 20 75 73 69 6e 67 20 74 | is done| using t|
|000035b0| 68 65 0a 7b 5c 74 74 20 | 5c 72 65 66 7b 71 75 61 |he.{\tt |\ref{qua|
|000035c0| 64 67 65 6e 7d 7d 20 66 | 75 6e 63 74 69 6f 6e 2c |dgen}} f|unction,|
|000035d0| 20 69 6e 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | in the |followin|
|000035e0| 67 20 77 61 79 2e 20 57 | 72 69 74 65 20 73 6f 6d |g way. W|rite som|
|000035f0| 65 74 68 69 6e 67 20 6c | 69 6b 65 0a 0a 5c 63 65 |ething l|ike..\ce|
|00003600| 6e 74 65 72 6c 69 6e 65 | 7b 5c 74 74 20 77 3d 71 |nterline|{\tt w=q|
|00003610| 75 61 64 67 65 6e 28 64 | 29 7d 0a 0a 77 68 65 72 |uadgen(d|)}..wher|
|00003620| 65 20 7b 5c 74 74 20 64 | 7d 20 69 73 20 74 68 65 |e {\tt d|} is the|
|00003630| 20 7b 5c 73 6c 20 64 69 | 73 63 72 69 6d 69 6e 61 | {\sl di|scrimina|
|00003640| 6e 74 7d 20 6f 66 20 74 | 68 65 20 71 75 61 64 72 |nt} of t|he quadr|
|00003650| 61 74 69 63 20 6f 72 64 | 65 72 20 69 6e 20 77 68 |atic ord|er in wh|
|00003660| 69 63 68 20 79 6f 75 0a | 77 61 6e 74 20 74 6f 20 |ich you.|want to |
|00003670| 77 6f 72 6b 20 28 68 65 | 6e 63 65 20 24 64 5c 65 |work (he|nce $d\e|
|00003680| 71 75 69 76 20 30 7b 5c | 72 6d 5c 20 6f 72 5c 20 |quiv 0{\|rm\ or\ |
|00003690| 7d 31 5c 6d 6f 64 20 34 | 24 29 2e 20 54 68 65 20 |}1\mod 4|$). The |
|000036a0| 6e 61 6d 65 20 7b 5c 74 | 74 20 77 7d 20 69 73 20 |name {\t|t w} is |
|000036b0| 6f 66 20 63 6f 75 72 73 | 65 0a 6a 75 73 74 20 61 |of cours|e.just a|
|000036c0| 20 73 75 67 67 65 73 74 | 69 6f 6e 2c 20 62 75 74 | suggest|ion, but|
|000036d0| 20 63 6f 72 72 65 73 70 | 6f 6e 64 73 20 74 6f 20 | corresp|onds to |
|000036e0| 74 72 61 64 69 74 69 6f | 6e 61 6c 20 75 73 61 67 |traditio|nal usag|
|000036f0| 65 2e 20 59 6f 75 20 63 | 61 6e 20 6f 66 20 63 6f |e. You c|an of co|
|00003700| 75 72 73 65 20 75 73 65 | 0a 61 6e 79 20 76 61 72 |urse use|.any var|
|00003710| 69 61 62 6c 65 20 6e 61 | 6d 65 20 74 68 61 74 20 |iable na|me that |
|00003720| 79 6f 75 20 6c 69 6b 65 | 2e 0a 48 6f 77 65 76 65 |you like|..Howeve|
|00003730| 72 2c 20 71 75 61 64 72 | 61 74 69 63 20 6e 75 6d |r, quadr|atic num|
|00003740| 62 65 72 73 20 61 72 65 | 20 61 6c 77 61 79 73 20 |bers are| always |
|00003750| 70 72 69 6e 74 65 64 20 | 77 69 74 68 20 61 20 7b |printed |with a {|
|00003760| 5c 74 74 20 77 7d 2c 0a | 72 65 67 61 72 64 6c 65 |\tt w},.|regardle|
|00003770| 73 73 20 6f 66 20 74 68 | 65 20 64 69 73 63 72 69 |ss of th|e discri|
|00003780| 6d 69 6e 61 6e 74 2e 20 | 53 6f 20 62 65 77 61 72 |minant. |So bewar|
|00003790| 65 2c 20 74 77 6f 20 6e | 75 6d 62 65 72 73 20 63 |e, two n|umbers c|
|000037a0| 61 6e 20 62 65 20 70 72 | 69 6e 74 65 64 20 69 6e |an be pr|inted in|
|000037b0| 20 74 68 65 20 73 61 6d | 65 0a 77 61 79 20 61 6e | the sam|e.way an|
|000037c0| 64 20 6e 6f 74 20 62 65 | 20 65 71 75 61 6c 2e 20 |d not be| equal. |
|000037d0| 48 6f 77 65 76 65 72 20 | 47 50 20 77 69 6c 6c 20 |However |GP will |
|000037e0| 72 65 66 75 73 65 20 74 | 6f 20 61 64 64 20 6f 72 |refuse t|o add or|
|000037f0| 20 6d 75 6c 74 69 70 6c | 79 20 74 68 65 6d 20 66 | multipl|y them f|
|00003800| 6f 72 20 65 78 61 6d 70 | 6c 65 2e 0a 0a 54 68 65 |or examp|le...The|
|00003810| 6e 2c 20 24 28 31 2c 77 | 29 24 20 77 69 6c 6c 20 |n, $(1,w|)$ will |
|00003820| 62 65 20 74 68 65 20 60 | 60 63 61 6e 6f 6e 69 63 |be the `|`canonic|
|00003830| 61 6c 27 27 20 69 6e 74 | 65 67 72 61 6c 20 62 61 |al'' int|egral ba|
|00003840| 73 69 73 20 6f 66 20 74 | 68 65 20 71 75 61 64 72 |sis of t|he quadr|
|00003850| 61 74 69 63 20 6f 72 64 | 65 72 0a 28 69 2e 65 2e |atic ord|er.(i.e.|
|00003860| 20 24 77 3d 5c 73 71 72 | 74 7b 64 7d 2f 32 24 20 | $w=\sqr|t{d}/2$ |
|00003870| 69 66 20 24 64 5c 65 71 | 75 69 76 20 30 20 5c 6d |if $d\eq|uiv 0 \m|
|00003880| 6f 64 20 34 24 2c 20 61 | 6e 64 20 24 77 3d 28 31 |od 4$, a|nd $w=(1|
|00003890| 2b 5c 73 71 72 74 7b 64 | 7d 29 2f 32 24 20 69 66 |+\sqrt{d|})/2$ if|
|000038a0| 0a 24 64 5c 65 71 75 69 | 76 20 31 20 5c 6d 6f 64 |.$d\equi|v 1 \mod|
|000038b0| 20 34 24 2c 20 77 68 65 | 72 65 20 24 64 24 20 69 | 4$, whe|re $d$ i|
|000038c0| 73 20 74 68 65 20 64 69 | 73 63 72 69 6d 69 6e 61 |s the di|scrimina|
|000038d0| 6e 74 29 2c 20 61 6e 64 | 20 74 6f 20 65 6e 74 65 |nt), and| to ente|
|000038e0| 72 20 24 78 2b 79 77 24 | 20 79 6f 75 0a 6a 75 73 |r $x+yw$| you.jus|
|000038f0| 74 20 74 79 70 65 20 24 | 78 2b 79 2a 77 24 20 6f |t type $|x+y*w$ o|
|00003900| 72 20 24 78 2b 79 2a 57 | 24 2e 0a 0a 5c 73 75 62 |r $x+y*W|$...\sub|
|00003910| 73 65 63 7b 5c 72 65 66 | 7b 50 6f 6c 79 6d 6f 64 |sec{\ref|{Polymod|
|00003920| 7d 73 7d 20 28 74 79 70 | 65 20 39 29 3a 20 65 78 |}s} (typ|e 9): ex|
|00003930| 61 63 74 6c 79 20 61 73 | 20 66 6f 72 20 69 6e 74 |actly as| for int|
|00003940| 65 67 65 72 6d 6f 64 73 | 2c 0a 74 6f 20 65 6e 74 |egermods|,.to ent|
|00003950| 65 72 20 24 78 20 5c 6d | 6f 64 20 79 24 20 28 77 |er $x \m|od y$ (w|
|00003960| 68 65 72 65 20 24 78 24 | 20 61 6e 64 20 24 79 24 |here $x$| and $y$|
|00003970| 20 61 72 65 20 70 6f 6c | 79 6e 6f 6d 69 61 6c 73 | are pol|ynomials|
|00003980| 29 2c 20 74 79 70 65 0a | 24 5c 74 65 78 74 7b 6d |), type.|$\text{m|
|00003990| 6f 64 7d 20 28 20 78 2c | 20 79 20 29 24 2c 20 6e |od} ( x,| y )$, n|
|000039a0| 6f 74 20 24 78 5c 25 20 | 79 24 20 28 73 65 65 20 |ot $x\% |y$ (see |
|000039b0| 33 2e 32 2e 31 32 2e 29 | 2e 20 4e 6f 74 65 20 74 |3.2.12.)|. Note t|
|000039c0| 68 61 74 20 77 68 65 6e | 20 24 79 24 20 69 73 20 |hat when| $y$ is |
|000039d0| 61 6e 0a 69 72 72 65 64 | 75 63 69 62 6c 65 20 70 |an.irred|ucible p|
|000039e0| 6f 6c 79 6e 6f 6d 69 61 | 6c 20 69 6e 20 6f 6e 65 |olynomia|l in one|
|000039f0| 20 76 61 72 69 61 62 6c | 65 2c 20 70 6f 6c 79 6d | variabl|e, polym|
|00003a00| 6f 64 73 20 77 68 6f 73 | 65 20 6d 6f 64 75 6c 75 |ods whos|e modulu|
|00003a10| 73 20 69 73 20 24 79 24 | 20 61 72 65 20 0a 73 69 |s is $y$| are .si|
|00003a20| 6d 70 6c 79 20 61 6c 67 | 65 62 72 61 69 63 20 6e |mply alg|ebraic n|
|00003a30| 75 6d 62 65 72 73 20 69 | 6e 20 74 68 65 20 66 69 |umbers i|n the fi|
|00003a40| 6e 69 74 65 20 65 78 74 | 65 6e 73 69 6f 6e 20 64 |nite ext|ension d|
|00003a50| 65 66 69 6e 65 64 20 62 | 79 20 74 68 65 20 70 6f |efined b|y the po|
|00003a60| 6c 79 6e 6f 6d 69 61 6c | 20 24 79 24 2e 0a 54 68 |lynomial| $y$..Th|
|00003a70| 69 73 20 61 6c 6c 6f 77 | 73 20 75 73 20 74 6f 20 |is allow|s us to |
|00003a80| 77 6f 72 6b 20 65 61 73 | 69 6c 79 20 69 6e 20 5c |work eas|ily in \|
|00003a90| 72 65 66 7b 6e 75 6d 62 | 65 72 20 66 69 65 6c 64 |ref{numb|er field|
|00003aa0| 7d 73 2c 20 66 69 6e 69 | 74 65 20 65 78 74 65 6e |}s, fini|te exten|
|00003ab0| 73 69 6f 6e 73 20 6f 66 | 20 0a 74 68 65 20 24 70 |sions of| .the $p|
|00003ac0| 24 2d 61 64 69 63 20 66 | 69 65 6c 64 20 24 5c 42 |$-adic f|ield $\B|
|00003ad0| 62 62 20 51 5f 70 24 2c | 20 6f 72 20 5c 72 65 66 |bb Q_p$,| or \ref|
|00003ae0| 7b 66 69 6e 69 74 65 20 | 66 69 65 6c 64 7d 73 2e |{finite |field}s.|
|00003af0| 0a 0a 7b 5c 62 66 20 49 | 6d 70 6f 72 74 61 6e 74 |..{\bf I|mportant|
|00003b00| 20 72 65 6d 61 72 6b 2e | 7d 20 53 69 6e 63 65 20 | remark.|} Since |
|00003b10| 74 68 65 20 76 61 72 69 | 61 62 6c 65 73 20 6f 63 |the vari|ables oc|
|00003b20| 63 75 72 69 6e 67 20 69 | 6e 20 61 20 70 6f 6c 79 |curing i|n a poly|
|00003b30| 6d 6f 64 20 61 72 65 20 | 6e 6f 74 0a 66 72 65 65 |mod are |not.free|
|00003b40| 20 76 61 72 69 61 62 6c | 65 73 2c 20 69 74 20 69 | variabl|es, it i|
|00003b50| 73 20 65 73 73 65 6e 74 | 69 61 6c 20 69 6e 20 6f |s essent|ial in o|
|00003b60| 72 64 65 72 20 74 6f 20 | 61 76 6f 69 64 20 69 6e |rder to |avoid in|
|00003b70| 63 6f 6e 73 69 73 74 65 | 6e 63 69 65 73 2c 20 74 |consiste|ncies, t|
|00003b80| 68 61 74 0a 61 6c 6c 20 | 70 6f 6c 79 6d 6f 64 73 |hat.all |polymods|
|00003b90| 20 68 61 76 65 20 74 68 | 65 20 73 61 6d 65 20 73 | have th|e same s|
|00003ba0| 74 72 75 63 74 75 72 65 | 2c 20 69 2e 65 2e 20 74 |tructure|, i.e. t|
|00003bb0| 68 65 20 6d 61 69 6e 20 | 76 61 72 69 61 62 6c 65 |he main |variable|
|00003bc0| 20 77 69 6c 6c 20 62 65 | 20 6e 75 6d 62 65 72 20 | will be| number |
|00003bd0| 30 2c 0a 74 68 65 20 6e | 65 78 74 20 6e 75 6d 62 |0,.the n|ext numb|
|00003be0| 65 72 20 31 2c 20 65 74 | 63 5c 64 6f 74 73 2e 20 |er 1, et|c\dots. |
|00003bf0| 49 6e 20 6f 74 68 65 72 | 20 77 6f 72 64 73 2c 20 |In other| words, |
|00003c00| 73 69 6e 63 65 20 30 20 | 69 73 20 74 68 65 20 76 |since 0 |is the v|
|00003c10| 61 72 69 61 62 6c 65 20 | 6e 75 6d 62 65 72 0a 6f |ariable |number.o|
|00003c20| 66 20 60 60 58 27 27 2c | 20 64 6f 20 7b 5c 62 66 |f ``X'',| do {\bf|
|00003c30| 20 6e 6f 74 7d 20 75 73 | 65 20 65 78 70 72 65 73 | not} us|e expres|
|00003c40| 73 69 6f 6e 73 20 6c 69 | 6b 65 20 7b 5c 74 74 20 |sions li|ke {\tt |
|00003c50| 6d 6f 64 28 59 2c 59 5c | 5e 20 32 2b 31 29 7d 20 |mod(Y,Y\|^ 2+1)} |
|00003c60| 73 69 6e 63 65 20 50 41 | 52 49 20 0a 77 69 6c 6c |since PA|RI .will|
|00003c70| 20 6e 6f 74 20 72 65 63 | 6f 67 6e 69 7a 65 20 74 | not rec|ognize t|
|00003c80| 68 61 74 20 74 68 69 73 | 20 69 73 20 69 64 65 6e |hat this| is iden|
|00003c90| 74 69 63 61 6c 20 74 6f | 20 7b 5c 74 74 20 6d 6f |tical to| {\tt mo|
|00003ca0| 64 28 58 2c 58 5c 5e 20 | 32 2b 31 29 7d 2e 20 41 |d(X,X\^ |2+1)}. A|
|00003cb0| 6e 6f 74 68 65 72 20 0a | 63 6f 6e 73 65 71 75 65 |nother .|conseque|
|00003cc0| 6e 63 65 20 69 73 20 74 | 68 61 74 20 61 6e 20 6f |nce is t|hat an o|
|00003cd0| 70 65 72 61 74 69 6f 6e | 20 6c 69 6b 65 20 7b 5c |peration| like {\|
|00003ce0| 74 74 20 58 2b 6d 6f 64 | 28 58 2c 58 5c 5e 20 32 |tt X+mod|(X,X\^ 2|
|00003cf0| 2b 31 29 7d 20 67 69 76 | 65 73 20 65 78 61 63 74 |+1)} giv|es exact|
|00003d00| 6c 79 20 0a 74 68 65 20 | 73 61 6d 65 20 74 68 69 |ly .the |same thi|
|00003d10| 6e 67 20 61 73 20 61 20 | 72 65 73 75 6c 74 20 28 |ng as a |result (|
|00003d20| 6d 65 61 6e 69 6e 67 20 | 24 58 2b 69 24 20 77 68 |meaning |$X+i$ wh|
|00003d30| 65 72 65 20 24 69 5e 32 | 3d 2d 31 24 29 2c 20 61 |ere $i^2|=-1$), a|
|00003d40| 6e 64 20 6e 6f 74 20 0a | 7b 5c 74 74 20 6d 6f 64 |nd not .|{\tt mod|
|00003d50| 28 32 2a 58 2c 58 5c 5e | 20 32 2b 31 29 7d 2e 0a |(2*X,X\^| 2+1)}..|
|00003d60| 0a 5c 73 75 62 73 65 63 | 7b 5c 72 65 66 7b 50 6f |.\subsec|{\ref{Po|
|00003d70| 6c 79 6e 6f 6d 69 61 6c | 7d 73 7d 20 28 74 79 70 |lynomial|}s} (typ|
|00003d80| 65 20 31 30 29 3a 20 74 | 79 70 65 20 74 68 65 20 |e 10): t|ype the |
|00003d90| 70 6f 6c 79 6e 6f 6d 69 | 61 6c 20 69 6e 20 61 20 |polynomi|al in a |
|00003da0| 6e 61 74 75 72 61 6c 0a | 77 61 79 2c 20 6e 6f 74 |natural.|way, not|
|00003db0| 20 66 6f 72 67 65 74 74 | 69 6e 67 20 74 6f 20 70 | forgett|ing to p|
|00003dc0| 75 74 20 61 20 60 60 24 | 2a 24 27 27 20 62 65 74 |ut a ``$|*$'' bet|
|00003dd0| 77 65 65 6e 20 61 20 63 | 6f 65 66 66 69 63 69 65 |ween a c|oefficie|
|00003de0| 6e 74 20 61 6e 64 20 61 | 20 66 6f 72 6d 61 6c 0a |nt and a| formal.|
|00003df0| 76 61 72 69 61 62 6c 65 | 20 28 74 68 69 73 20 24 |variable| (this $|
|00003e00| 2a 24 20 64 6f 65 73 20 | 6e 6f 74 20 61 70 70 65 |*$ does |not appe|
|00003e10| 61 72 20 6f 6e 20 62 65 | 61 75 74 69 66 69 65 64 |ar on be|autified|
|00003e20| 20 6f 75 74 70 75 74 29 | 2e 20 41 6e 79 20 76 61 | output)|. Any va|
|00003e30| 72 69 61 62 6c 65 20 6e | 61 6d 65 20 63 61 6e 20 |riable n|ame can |
|00003e40| 62 65 20 75 73 65 64 0a | 65 78 63 65 70 74 20 66 |be used.|except f|
|00003e50| 6f 72 20 74 68 65 20 72 | 65 73 65 72 76 65 64 20 |or the r|eserved |
|00003e60| 6e 61 6d 65 73 20 7b 5c | 74 74 20 69 7d 20 28 75 |names {\|tt i} (u|
|00003e70| 73 65 64 20 65 78 63 6c | 75 73 69 76 65 6c 79 20 |sed excl|usively |
|00003e80| 66 6f 72 20 74 68 65 20 | 73 71 75 61 72 65 20 72 |for the |square r|
|00003e90| 6f 6f 74 0a 6f 66 20 24 | 2d 31 24 29 2c 20 7b 5c |oot.of $|-1$), {\|
|00003ea0| 74 74 20 70 69 7d 20 28 | 24 33 2e 31 34 5c 64 6f |tt pi} (|$3.14\do|
|00003eb0| 74 73 24 29 20 61 6e 64 | 20 7b 5c 74 74 20 65 75 |ts$) and| {\tt eu|
|00003ec0| 6c 65 72 7d 20 28 45 75 | 6c 65 72 27 73 20 63 6f |ler} (Eu|ler's co|
|00003ed0| 6e 73 74 61 6e 74 29 2e | 0a 54 68 65 20 74 6f 74 |nstant).|.The tot|
|00003ee0| 61 6c 20 6e 75 6d 62 65 | 72 20 6f 66 20 64 69 66 |al numbe|r of dif|
|00003ef0| 66 65 72 65 6e 74 20 76 | 61 72 69 61 62 6c 65 20 |ferent v|ariable |
|00003f00| 6e 61 6d 65 73 20 69 73 | 20 6c 69 6d 69 74 65 64 |names is| limited|
|00003f10| 20 74 6f 20 24 32 35 36 | 24 2c 20 77 68 69 63 68 | to $256|$, which|
|00003f20| 0a 73 68 6f 75 6c 64 20 | 62 65 20 65 6e 6f 75 67 |.should |be enoug|
|00003f30| 68 2e 20 49 66 20 79 6f | 75 20 65 76 65 72 20 6e |h. If yo|u ever n|
|00003f40| 65 65 64 0a 68 75 6e 64 | 72 65 64 73 20 6f 66 20 |eed.hund|reds of |
|00003f50| 76 61 72 69 61 62 6c 65 | 73 2c 20 79 6f 75 20 73 |variable|s, you s|
|00003f60| 68 6f 75 6c 64 20 70 72 | 6f 62 61 62 6c 79 20 75 |hould pr|obably u|
|00003f70| 73 65 20 76 65 63 74 6f | 72 73 20 69 6e 73 74 65 |se vecto|rs inste|
|00003f80| 61 64 2e 0a 0a 5c 73 75 | 62 73 65 63 7b 5c 72 65 |ad...\su|bsec{\re|
|00003f90| 66 7b 50 6f 77 65 72 20 | 73 65 72 69 65 73 7d 7d |f{Power |series}}|
|00003fa0| 20 28 74 79 70 65 20 31 | 31 29 3a 20 74 79 70 65 | (type 1|1): type|
|00003fb0| 20 61 20 72 61 74 69 6f | 6e 61 6c 20 66 75 6e 63 | a ratio|nal func|
|00003fc0| 74 69 6f 6e 20 6f 72 0a | 70 6f 6c 79 6e 6f 6d 69 |tion or.|polynomi|
|00003fd0| 61 6c 20 65 78 70 72 65 | 73 73 69 6f 6e 20 61 6e |al expre|ssion an|
|00003fe0| 64 20 61 64 64 20 74 6f | 20 69 74 20 24 4f 28 65 |d add to| it $O(e|
|00003ff0| 78 70 72 5c 68 61 74 7b | 5c 20 7d 6b 29 24 2c 20 |xpr\hat{|\ }k)$, |
|00004000| 77 68 65 72 65 20 24 65 | 78 70 72 24 20 69 73 20 |where $e|xpr$ is |
|00004010| 61 6e 0a 65 78 70 72 65 | 73 73 69 6f 6e 0a 68 61 |an.expre|ssion.ha|
|00004020| 76 69 6e 67 20 61 20 6e | 6f 6e 20 7a 65 72 6f 20 |ving a n|on zero |
|00004030| 76 61 6c 75 61 74 69 6f | 6e 2c 20 6c 69 6b 65 20 |valuatio|n, like |
|00004040| 61 20 70 6f 6c 79 6e 6f | 6d 69 61 6c 2c 20 70 6f |a polyno|mial, po|
|00004050| 77 65 72 20 73 65 72 69 | 65 73 2c 20 6f 72 20 61 |wer seri|es, or a|
|00004060| 0a 72 61 74 69 6f 6e 61 | 6c 20 66 75 6e 63 74 69 |.rationa|l functi|
|00004070| 6f 6e 20 28 74 68 65 20 | 6d 6f 73 74 20 63 6f 6d |on (the |most com|
|00004080| 6d 6f 6e 20 63 61 73 65 | 73 20 62 65 69 6e 67 20 |mon case|s being |
|00004090| 73 69 6d 70 6c 79 20 24 | 65 78 70 72 3d 24 76 61 |simply $|expr=$va|
|000040a0| 72 69 61 62 6c 65 20 6e | 61 6d 65 29 2e 0a 54 68 |riable n|ame)..Th|
|000040b0| 69 73 20 69 6e 64 69 63 | 61 74 65 73 0a 74 6f 20 |is indic|ates.to |
|000040c0| 47 50 20 74 68 61 74 20 | 69 74 20 69 73 20 64 65 |GP that |it is de|
|000040d0| 61 6c 69 6e 67 20 77 69 | 74 68 20 61 20 70 6f 77 |aling wi|th a pow|
|000040e0| 65 72 20 73 65 72 69 65 | 73 2c 20 61 6e 64 20 74 |er serie|s, and t|
|000040f0| 68 65 20 64 65 73 69 72 | 65 64 20 70 72 65 63 69 |he desir|ed preci|
|00004100| 73 69 6f 6e 0a 69 73 20 | 24 6b 24 20 74 69 6d 65 |sion.is |$k$ time|
|00004110| 73 20 74 68 65 20 76 61 | 6c 75 61 74 69 6f 6e 20 |s the va|luation |
|00004120| 6f 66 20 24 65 78 70 72 | 24 20 77 69 74 68 20 72 |of $expr|$ with r|
|00004130| 65 73 70 65 63 74 20 74 | 6f 20 69 74 73 20 6d 61 |espect t|o its ma|
|00004140| 69 6e 20 76 61 72 69 61 | 62 6c 65 0a 28 74 6f 20 |in varia|ble.(to |
|00004150| 63 68 65 63 6b 20 74 68 | 65 20 6f 72 64 65 72 20 |check th|e order |
|00004160| 6f 66 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 73 |of the v|ariables|
|00004170| 2c 20 6f 72 20 74 6f 20 | 6d 6f 64 69 66 79 20 69 |, or to |modify i|
|00004180| 74 2c 20 75 73 65 20 74 | 68 65 20 66 75 6e 63 74 |t, use t|he funct|
|00004190| 69 6f 6e 0a 7b 5c 74 74 | 20 72 65 6f 72 64 65 72 |ion.{\tt| reorder|
|000041a0| 7d 20 73 65 65 20 33 2e | 39 2e 34 2e 36 29 2e 0a |} see 3.|9.4.6)..|
|000041b0| 0a 5c 73 75 62 73 65 63 | 7b 5c 72 65 66 7b 52 61 |.\subsec|{\ref{Ra|
|000041c0| 74 69 6f 6e 61 6c 20 66 | 75 6e 63 74 69 6f 6e 7d |tional f|unction}|
|000041d0| 73 7d 20 28 74 79 70 65 | 73 20 31 33 20 61 6e 64 |s} (type|s 13 and|
|000041e0| 20 31 34 29 3a 20 75 6e | 64 65 72 20 47 50 2c 20 | 14): un|der GP, |
|000041f0| 61 6c 6c 0a 66 72 61 63 | 74 69 6f 6e 73 20 61 72 |all.frac|tions ar|
|00004200| 65 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |e automa|tically |
|00004210| 72 65 64 75 63 65 64 20 | 74 6f 20 6c 6f 77 65 73 |reduced |to lowes|
|00004220| 74 20 74 65 72 6d 73 2c | 20 73 6f 20 69 74 20 69 |t terms,| so it i|
|00004230| 73 20 6e 6f 74 20 70 6f | 73 73 69 62 6c 65 0a 74 |s not po|ssible.t|
|00004240| 6f 20 65 6e 74 65 72 20 | 61 20 6e 6f 6e 2d 69 72 |o enter |a non-ir|
|00004250| 72 65 64 75 63 69 62 6c | 65 20 72 61 74 69 6f 6e |reducibl|e ration|
|00004260| 61 6c 20 66 75 6e 63 74 | 69 6f 6e 20 28 74 79 70 |al funct|ion (typ|
|00004270| 65 20 31 34 29 2c 20 61 | 6c 74 68 6f 75 67 68 20 |e 14), a|lthough |
|00004280| 6f 66 20 63 6f 75 72 73 | 65 20 69 6e 0a 6c 69 62 |of cours|e in.lib|
|00004290| 72 61 72 79 20 6d 6f 64 | 65 20 74 68 69 73 20 69 |rary mod|e this i|
|000042a0| 73 20 65 61 73 79 2e 20 | 54 6f 20 65 6e 74 65 72 |s easy. |To enter|
|000042b0| 20 24 78 2f 79 24 20 6a | 75 73 74 20 74 79 70 65 | $x/y$ j|ust type|
|000042c0| 20 69 74 20 61 73 20 77 | 72 69 74 74 65 6e 2e 0a | it as w|ritten..|
|000042d0| 41 73 20 65 78 70 6c 61 | 69 6e 65 64 20 69 6e 20 |As expla|ined in |
|000042e0| 73 65 63 74 69 6f 6e 20 | 33 2e 31 2e 34 2e 2c 20 |section |3.1.4., |
|000042f0| 64 69 76 69 73 69 6f 6e | 20 77 69 6c 6c 20 7b 5c |division| will {\|
|00004300| 73 6c 20 6e 6f 74 7d 20 | 62 65 20 70 65 72 66 6f |sl not} |be perfo|
|00004310| 72 6d 65 64 2c 20 6f 6e | 6c 79 0a 72 65 64 75 63 |rmed, on|ly.reduc|
|00004320| 74 69 6f 6e 20 74 6f 20 | 6c 6f 77 65 73 74 20 74 |tion to |lowest t|
|00004330| 65 72 6d 73 2e 0a 0a 5c | 73 75 62 73 65 63 7b 5c |erms...\|subsec{\|
|00004340| 72 65 66 7b 42 69 6e 61 | 72 79 20 71 75 61 64 72 |ref{Bina|ry quadr|
|00004350| 61 74 69 63 20 66 6f 72 | 6d 7d 73 20 6f 66 20 70 |atic for|m}s of p|
|00004360| 6f 73 69 74 69 76 65 20 | 64 69 73 63 72 69 6d 69 |ositive |discrimi|
|00004370| 6e 61 6e 74 7d 20 28 74 | 79 70 65 20 31 35 29 3a |nant} (t|ype 15):|
|00004380| 0a 65 6e 74 65 72 20 61 | 20 34 2d 63 6f 6d 70 6f |.enter a| 4-compo|
|00004390| 6e 65 6e 74 20 28 72 6f | 77 20 6f 72 20 63 6f 6c |nent (ro|w or col|
|000043a0| 75 6d 6e 29 20 76 65 63 | 74 6f 72 2c 20 61 6e 64 |umn) vec|tor, and|
|000043b0| 20 74 72 61 6e 73 66 6f | 72 6d 20 69 74 20 69 6e | transfo|rm it in|
|000043c0| 74 6f 20 61 20 62 69 6e | 61 72 79 0a 71 75 61 64 |to a bin|ary.quad|
|000043d0| 72 61 74 69 63 20 66 6f | 72 6d 20 75 73 69 6e 67 |ratic fo|rm using|
|000043e0| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 7b 5c | the fun|ction {\|
|000043f0| 74 74 20 71 66 72 7d 20 | 28 73 65 65 20 33 2e 34 |tt qfr} |(see 3.4|
|00004400| 2e 33 32 29 2e 20 54 68 | 65 20 66 6f 75 72 74 68 |.32). Th|e fourth|
|00004410| 20 63 6f 6d 70 6f 6e 65 | 6e 74 0a 28 77 68 69 63 | compone|nt.(whic|
|00004420| 68 20 69 73 20 72 65 6c | 61 74 65 64 20 74 6f 20 |h is rel|ated to |
|00004430| 74 68 65 20 72 65 67 75 | 6c 61 74 6f 72 2c 20 6d |the regu|lator, m|
|00004440| 6f 72 65 20 70 72 65 63 | 69 73 65 6c 79 20 74 6f |ore prec|isely to|
|00004450| 20 53 68 61 6e 6b 73 27 | 20 60 60 64 69 73 74 61 | Shanks'| ``dista|
|00004460| 6e 63 65 27 27 29 0a 6d | 75 73 74 20 62 65 20 61 |nce'').m|ust be a|
|00004470| 20 72 65 61 6c 20 6e 75 | 6d 62 65 72 2e 20 53 65 | real nu|mber. Se|
|00004480| 65 20 61 6c 73 6f 20 74 | 68 65 20 66 75 6e 63 74 |e also t|he funct|
|00004490| 69 6f 6e 20 7b 5c 74 74 | 20 70 66 7d 20 77 68 69 |ion {\tt| pf} whi|
|000044a0| 63 68 20 64 69 72 65 63 | 74 6c 79 20 63 72 65 61 |ch direc|tly crea|
|000044b0| 74 65 73 0a 61 20 70 72 | 69 6d 65 20 66 6f 72 6d |tes.a pr|ime form|
|000044c0| 20 6f 66 20 67 69 76 65 | 6e 20 64 69 73 63 72 69 | of give|n discri|
|000044d0| 6d 69 6e 61 6e 74 20 28 | 73 65 65 20 33 2e 34 2e |minant (|see 3.4.|
|000044e0| 32 39 29 2e 0a 0a 5c 73 | 75 62 73 65 63 7b 5c 72 |29)...\s|ubsec{\r|
|000044f0| 65 66 7b 42 69 6e 61 72 | 79 20 71 75 61 64 72 61 |ef{Binar|y quadra|
|00004500| 74 69 63 20 66 6f 72 6d | 7d 73 20 6f 66 20 6e 65 |tic form|}s of ne|
|00004510| 67 61 74 69 76 65 20 64 | 69 73 63 72 69 6d 69 6e |gative d|iscrimin|
|00004520| 61 6e 74 7d 20 28 74 79 | 70 65 20 31 36 29 3a 0a |ant} (ty|pe 16):.|
|00004530| 65 6e 74 65 72 20 61 20 | 33 2d 63 6f 6d 70 6f 6e |enter a |3-compon|
|00004540| 65 6e 74 20 28 72 6f 77 | 20 6f 72 20 63 6f 6c 75 |ent (row| or colu|
|00004550| 6d 6e 29 20 76 65 63 74 | 6f 72 2c 20 61 6e 64 20 |mn) vect|or, and |
|00004560| 74 72 61 6e 73 66 6f 72 | 6d 20 69 74 20 69 6e 74 |transfor|m it int|
|00004570| 6f 20 61 20 62 69 6e 61 | 72 79 0a 71 75 61 64 72 |o a bina|ry.quadr|
|00004580| 61 74 69 63 20 66 6f 72 | 6d 20 75 73 69 6e 67 20 |atic for|m using |
|00004590| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 7b 5c 74 |the func|tion {\t|
|000045a0| 74 20 71 66 69 7d 20 28 | 73 65 65 20 33 2e 34 2e |t qfi} (|see 3.4.|
|000045b0| 33 32 29 2e 20 53 65 65 | 20 61 6c 73 6f 20 74 68 |32). See| also th|
|000045c0| 65 0a 66 75 6e 63 74 69 | 6f 6e 20 7b 5c 74 74 20 |e.functi|on {\tt |
|000045d0| 70 66 7d 20 77 68 69 63 | 68 20 64 69 72 65 63 74 |pf} whic|h direct|
|000045e0| 6c 79 20 63 72 65 61 74 | 65 73 20 61 20 70 72 69 |ly creat|es a pri|
|000045f0| 6d 65 20 66 6f 72 6d 20 | 6f 66 20 67 69 76 65 6e |me form |of given|
|00004600| 20 64 69 73 63 72 69 6d | 69 6e 61 6e 74 0a 28 73 | discrim|inant.(s|
|00004610| 65 65 20 33 2e 34 2e 32 | 39 29 2e 0a 0a 5c 73 75 |ee 3.4.2|9)...\su|
|00004620| 62 73 65 63 7b 52 6f 77 | 20 61 6e 64 20 63 6f 6c |bsec{Row| and col|
|00004630| 75 6d 6e 20 76 65 63 74 | 6f 72 73 7d 20 0a 5c 73 |umn vect|ors} .\s|
|00004640| 72 65 66 7b 52 6f 77 20 | 76 65 63 74 6f 72 7d 5c |ref{Row |vector}\|
|00004650| 73 72 65 66 7b 43 6f 6c | 75 6d 6e 20 76 65 63 74 |sref{Col|umn vect|
|00004660| 6f 72 7d 0a 28 74 79 70 | 65 73 20 31 37 20 61 6e |or}.(typ|es 17 an|
|00004670| 64 20 31 38 29 3a 0a 74 | 6f 20 65 6e 74 65 72 20 |d 18):.t|o enter |
|00004680| 61 20 72 6f 77 20 76 65 | 63 74 6f 72 2c 20 74 79 |a row ve|ctor, ty|
|00004690| 70 65 20 74 68 65 20 63 | 6f 6d 70 6f 6e 65 6e 74 |pe the c|omponent|
|000046a0| 73 20 73 65 70 61 72 61 | 74 65 64 20 62 79 20 63 |s separa|ted by c|
|000046b0| 6f 6d 6d 61 73 20 60 60 | 2c 27 27 2c 0a 61 6e 64 |ommas ``|,'',.and|
|000046c0| 20 65 6e 63 6c 6f 73 65 | 64 20 62 65 74 77 65 65 | enclose|d betwee|
|000046d0| 6e 20 62 72 61 63 6b 65 | 74 73 20 60 60 5b 27 27 |n bracke|ts ``[''|
|000046e0| 20 61 6e 64 20 60 60 5d | 27 27 2c 20 65 2e 67 2e | and ``]|'', e.g.|
|000046f0| 20 24 5b 78 2c 79 2c 7a | 5d 24 2e 0a 54 6f 20 65 | $[x,y,z|]$..To e|
|00004700| 6e 74 65 72 20 61 20 63 | 6f 6c 75 6d 6e 20 76 65 |nter a c|olumn ve|
|00004710| 63 74 6f 72 2c 20 74 79 | 70 65 20 74 68 65 20 76 |ctor, ty|pe the v|
|00004720| 65 63 74 6f 72 20 68 6f | 72 69 7a 6f 6e 74 61 6c |ector ho|rizontal|
|00004730| 6c 79 2c 20 61 6e 64 20 | 61 64 64 20 61 20 74 69 |ly, and |add a ti|
|00004740| 6c 64 65 0a 60 60 24 5c | 74 69 6c 64 65 7b 5c 20 |lde.``$\|tilde{\ |
|00004750| 7d 24 27 27 20 74 6f 20 | 74 72 61 6e 73 70 6f 73 |}$'' to |transpos|
|00004760| 65 2e 0a 0a 5c 73 75 62 | 73 65 63 7b 4d 61 74 72 |e...\sub|sec{Matr|
|00004770| 69 63 65 73 7d 20 28 74 | 79 70 65 20 31 39 29 3a |ices} (t|ype 19):|
|00004780| 5c 73 72 65 66 7b 4d 61 | 74 72 69 78 7d 20 74 6f |\sref{Ma|trix} to|
|00004790| 20 65 6e 74 65 72 20 61 | 20 6d 61 74 72 69 78 2c | enter a| matrix,|
|000047a0| 20 74 79 70 65 20 74 68 | 65 0a 63 6f 6d 70 6f 6e | type th|e.compon|
|000047b0| 65 6e 74 73 20 6c 69 6e | 65 20 62 79 20 6c 69 6e |ents lin|e by lin|
|000047c0| 65 2c 20 74 68 65 20 63 | 6f 6d 70 6f 6e 65 6e 74 |e, the c|omponent|
|000047d0| 73 20 62 65 69 6e 67 20 | 73 65 70 61 72 61 74 65 |s being |separate|
|000047e0| 64 20 62 79 20 63 6f 6d | 6d 61 73 20 60 60 2c 27 |d by com|mas ``,'|
|000047f0| 27 2c 0a 74 68 65 20 6c | 69 6e 65 73 20 62 79 20 |',.the l|ines by |
|00004800| 73 65 6d 69 63 6f 6c 6f | 6e 73 20 60 60 3b 27 27 |semicolo|ns ``;''|
|00004810| 2c 20 61 6e 64 20 65 76 | 65 72 79 74 68 69 6e 67 |, and ev|erything|
|00004820| 20 65 6e 63 6c 6f 73 65 | 64 20 69 6e 20 62 72 61 | enclose|d in bra|
|00004830| 63 6b 65 74 73 0a 60 60 | 5b 27 27 20 61 6e 64 20 |ckets.``|['' and |
|00004840| 60 60 5d 27 27 2c 20 65 | 2e 67 2e 20 24 5b 78 2c |``]'', e|.g. $[x,|
|00004850| 79 3b 7a 2c 74 3b 75 2c | 76 5d 24 2e 0a 0a 4e 6f |y;z,t;u,|v]$...No|
|00004860| 74 65 20 74 68 61 74 20 | 61 6c 74 68 6f 75 67 68 |te that |although|
|00004870| 20 74 68 65 20 69 6e 74 | 65 72 6e 61 6c 20 72 65 | the int|ernal re|
|00004880| 70 72 65 73 65 6e 74 61 | 74 69 6f 6e 20 69 73 20 |presenta|tion is |
|00004890| 65 73 73 65 6e 74 69 61 | 6c 6c 79 20 74 68 65 20 |essentia|lly the |
|000048a0| 73 61 6d 65 2c 0a 28 6f | 6e 6c 79 20 74 68 65 20 |same,.(o|nly the |
|000048b0| 74 79 70 65 20 6e 75 6d | 62 65 72 20 62 65 69 6e |type num|ber bein|
|000048c0| 67 20 64 69 66 66 65 72 | 65 6e 74 29 2c 20 61 20 |g differ|ent), a |
|000048d0| 72 6f 77 20 76 65 63 74 | 6f 72 20 6f 66 20 63 6f |row vect|or of co|
|000048e0| 6c 75 6d 6e 20 76 65 63 | 74 6f 72 73 20 69 73 0a |lumn vec|tors is.|
|000048f0| 7b 5c 73 6c 20 6e 6f 74 | 7d 20 61 20 6d 61 74 72 |{\sl not|} a matr|
|00004900| 69 78 3b 20 66 6f 72 20 | 65 78 61 6d 70 6c 65 2c |ix; for |example,|
|00004910| 20 6d 75 6c 74 69 70 6c | 69 63 61 74 69 6f 6e 20 | multipl|ication |
|00004920| 77 69 6c 6c 20 6e 6f 74 | 20 77 6f 72 6b 20 69 6e |will not| work in|
|00004930| 20 74 68 65 20 73 61 6d | 65 20 77 61 79 2e 0a 54 | the sam|e way..T|
|00004940| 6f 20 74 72 61 6e 73 66 | 6f 72 6d 20 69 74 20 69 |o transf|orm it i|
|00004950| 6e 74 6f 20 61 20 6d 61 | 74 72 69 78 2c 20 75 73 |nto a ma|trix, us|
|00004960| 65 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 7b |e the fu|nction {|
|00004970| 5c 74 74 20 6d 61 74 7d | 20 28 73 65 65 20 33 2e |\tt mat}| (see 3.|
|00004980| 37 2e 32 32 29 2e 0a 0a | 5c 73 65 63 74 69 6f 6e |7.22)...|\section|
|00004990| 7b 54 68 65 20 67 65 6e | 65 72 61 6c 20 47 50 20 |{The gen|eral GP |
|000049a0| 69 6e 70 75 74 20 6c 69 | 6e 65 2e 7d 0a 0a 41 20 |input li|ne.}..A |
|000049b0| 67 65 6e 65 72 61 6c 20 | 47 50 20 73 65 73 73 69 |general |GP sessi|
|000049c0| 6f 6e 20 67 6f 65 73 20 | 61 73 20 66 6f 6c 6c 6f |on goes |as follo|
|000049d0| 77 73 3a 20 61 20 73 65 | 71 75 65 6e 63 65 20 6f |ws: a se|quence o|
|000049e0| 66 20 63 68 61 72 61 63 | 74 65 72 73 20 69 73 20 |f charac|ters is |
|000049f0| 74 79 70 65 64 20 62 79 | 20 74 68 65 0a 75 73 65 |typed by| the.use|
|00004a00| 72 20 61 66 74 65 72 20 | 74 68 65 20 70 72 6f 6d |r after |the prom|
|00004a10| 70 74 2e 20 54 68 69 73 | 20 63 61 6e 20 62 65 20 |pt. This| can be |
|00004a20| 65 69 74 68 65 72 20 61 | 20 66 75 6e 63 74 69 6f |either a| functio|
|00004a30| 6e 20 64 65 66 69 6e 69 | 74 69 6f 6e 2c 20 6f 72 |n defini|tion, or|
|00004a40| 20 61 6e 0a 65 78 70 72 | 65 73 73 69 6f 6e 20 6f | an.expr|ession o|
|00004a50| 72 20 61 20 73 65 71 75 | 65 6e 63 65 20 6f 66 20 |r a sequ|ence of |
|00004a60| 65 78 70 72 65 73 73 69 | 6f 6e 73 20 28 69 2e 65 |expressi|ons (i.e|
|00004a70| 2e 20 61 20 70 72 6f 67 | 72 61 6d 29 2e 20 49 6e |. a prog|ram). In|
|00004a80| 20 74 68 69 73 20 63 61 | 73 65 2c 20 61 66 74 65 | this ca|se, afte|
|00004a90| 72 0a 74 68 65 20 6c 61 | 73 74 20 65 78 70 72 65 |r.the la|st expre|
|00004aa0| 73 73 69 6f 6e 20 69 73 | 20 63 6f 6d 70 75 74 65 |ssion is| compute|
|00004ab0| 64 20 74 68 65 20 72 65 | 73 75 6c 74 20 69 73 0a |d the re|sult is.|
|00004ac0| 70 75 74 20 69 6e 20 61 | 6e 20 69 6e 74 65 72 6e |put in a|n intern|
|00004ad0| 61 6c 20 61 72 72 61 79 | 2e 20 54 68 65 20 73 75 |al array|. The su|
|00004ae0| 63 63 65 73 73 69 76 65 | 20 65 6c 65 6d 65 6e 74 |ccessive| element|
|00004af0| 73 20 6f 66 20 74 68 69 | 73 20 61 72 72 61 79 20 |s of thi|s array |
|00004b00| 61 72 65 20 63 61 6c 6c | 65 64 0a 24 5c 25 31 24 |are call|ed.$\%1$|
|00004b10| 2c 20 24 5c 25 32 24 2c | 20 5c 64 6f 74 73 20 75 |, $\%2$,| \dots u|
|00004b20| 6e 64 65 72 20 47 50 2c | 20 61 6e 64 20 74 68 65 |nder GP,| and the|
|00004b30| 79 20 63 61 6e 20 61 6c | 73 6f 20 62 65 20 75 73 |y can al|so be us|
|00004b40| 65 64 20 69 6e 20 6c 69 | 62 72 61 72 79 20 6d 6f |ed in li|brary mo|
|00004b50| 64 65 20 77 69 74 68 20 | 74 68 65 20 6e 61 6d 65 |de with |the name|
|00004b60| 73 20 0a 7b 5c 74 74 20 | 67 5b 31 5d 2c 20 67 5b |s .{\tt |g[1], g[|
|00004b70| 32 5d 2c 20 5c 64 6f 74 | 73 7d 5c 73 72 65 66 7b |2], \dot|s}\sref{|
|00004b80| 67 5b 5d 7d 20 49 6e 20 | 74 68 69 73 20 63 61 73 |g[]} In |this cas|
|00004b90| 65 2c 20 74 68 65 20 61 | 72 72 61 79 20 69 73 20 |e, the a|rray is |
|00004ba0| 6e 6f 74 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |not auto|maticall|
|00004bb0| 79 20 66 69 6c 6c 65 64 | 20 66 6f 72 20 79 6f 75 |y filled| for you|
|00004bc0| 2e 0a 41 73 20 61 20 73 | 68 6f 72 74 63 75 74 2c |..As a s|hortcut,|
|00004bd0| 20 74 68 65 20 6c 61 73 | 74 20 63 6f 6d 70 75 74 | the las|t comput|
|00004be0| 65 64 20 65 78 70 72 65 | 73 73 69 6f 6e 20 63 61 |ed expre|ssion ca|
|00004bf0| 6e 20 61 6c 73 6f 20 62 | 65 20 63 61 6c 6c 65 64 |n also b|e called|
|00004c00| 20 24 5c 25 24 2e 0a 0a | 49 66 20 79 6f 75 20 77 | $\%$...|If you w|
|00004c10| 61 6e 74 20 74 6f 20 73 | 75 70 70 72 65 73 73 20 |ant to s|uppress |
|00004c20| 74 68 65 20 70 72 69 6e | 74 69 6e 67 20 6f 66 20 |the prin|ting of |
|00004c30| 74 68 65 20 72 65 73 75 | 6c 74 2c 20 66 6f 72 20 |the resu|lt, for |
|00004c40| 65 78 61 6d 70 6c 65 20 | 62 65 63 61 75 73 65 20 |example |because |
|00004c50| 69 74 20 69 73 0a 61 20 | 6c 6f 6e 67 20 75 6e 69 |it is.a |long uni|
|00004c60| 6d 70 6f 72 74 61 6e 74 | 20 69 6e 74 65 72 6d 65 |mportant| interme|
|00004c70| 64 69 61 74 65 20 72 65 | 73 75 6c 74 2c 20 65 6e |diate re|sult, en|
|00004c80| 64 20 74 68 65 20 65 78 | 70 72 65 73 73 69 6f 6e |d the ex|pression|
|00004c90| 20 77 69 74 68 20 61 20 | 60 60 3b 27 27 20 73 69 | with a |``;'' si|
|00004ca0| 67 6e 2e 0a 54 68 69 73 | 20 73 61 6d 65 20 73 69 |gn..This| same si|
|00004cb0| 67 6e 20 69 73 20 75 73 | 65 64 20 61 73 20 61 6e |gn is us|ed as an|
|00004cc0| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 20 73 65 70 | instruc|tion sep|
|00004cd0| 61 72 61 74 6f 72 20 77 | 68 65 6e 20 73 65 76 65 |arator w|hen seve|
|00004ce0| 72 61 6c 20 69 6e 73 74 | 72 75 63 74 69 6f 6e 73 |ral inst|ructions|
|00004cf0| 0a 61 72 65 20 77 72 69 | 74 74 65 6e 20 6f 6e 20 |.are wri|tten on |
|00004d00| 74 68 65 20 73 61 6d 65 | 20 6c 69 6e 65 20 28 6e |the same| line (n|
|00004d10| 6f 74 65 20 74 68 61 74 | 20 74 68 65 20 60 60 3a |ote that| the ``:|
|00004d20| 27 27 20 73 69 67 6e 20 | 63 61 6e 20 61 6c 73 6f |'' sign |can also|
|00004d30| 20 62 65 20 75 73 65 64 | 2c 20 62 75 74 0a 77 65 | be used|, but.we|
|00004d40| 20 77 69 6c 6c 20 74 72 | 79 20 74 6f 20 6b 65 65 | will tr|y to kee|
|00004d50| 70 20 43 2d 73 74 79 6c | 65 20 63 6f 6e 76 65 6e |p C-styl|e conven|
|00004d60| 74 69 6f 6e 73 29 2e 0a | 4e 6f 74 65 20 74 68 61 |tions)..|Note tha|
|00004d70| 74 20 74 68 65 20 6c 61 | 73 74 20 65 78 70 72 65 |t the la|st expre|
|00004d80| 73 73 69 6f 6e 20 79 6f | 75 20 68 61 76 65 20 63 |ssion yo|u have c|
|00004d90| 6f 6d 70 75 74 65 64 2c | 20 65 76 65 6e 20 69 66 |omputed,| even if|
|00004da0| 20 6e 6f 74 20 70 72 69 | 6e 74 65 64 2c 0a 73 74 | not pri|nted,.st|
|00004db0| 69 6c 6c 20 68 61 73 20 | 74 68 65 20 6e 61 6d 65 |ill has |the name|
|00004dc0| 20 28 24 5c 25 31 24 2c | 20 24 5c 25 32 24 2c 20 | ($\%1$,| $\%2$, |
|00004dd0| 5c 64 6f 74 73 29 20 73 | 6f 20 63 61 72 65 20 6d |\dots) s|o care m|
|00004de0| 75 73 74 20 62 65 20 75 | 73 65 64 20 77 68 65 6e |ust be u|sed when|
|00004df0| 20 75 73 69 6e 67 20 69 | 74 0a 73 75 62 73 65 71 | using i|t.subseq|
|00004e00| 75 65 6e 74 6c 79 20 73 | 69 6e 63 65 20 69 74 73 |uently s|ince its|
|00004e10| 20 6e 75 6d 62 65 72 20 | 64 6f 65 73 20 6e 6f 74 | number |does not|
|00004e20| 20 61 70 70 65 61 72 20 | 65 78 70 6c 69 63 69 74 | appear |explicit|
|00004e30| 6c 79 2e 20 4f 66 20 63 | 6f 75 72 73 65 2c 20 69 |ly. Of c|ourse, i|
|00004e40| 66 20 69 74 0a 69 73 20 | 73 69 6d 70 6c 79 20 75 |f it.is |simply u|
|00004e50| 73 65 64 20 6f 6e 20 74 | 68 65 20 6e 65 78 74 20 |sed on t|he next |
|00004e60| 6c 69 6e 65 2c 20 75 73 | 65 20 24 5c 25 24 20 61 |line, us|e $\%$ a|
|00004e70| 73 20 75 73 75 61 6c 2e | 0a 0a 41 6e 79 20 6c 65 |s usual.|..Any le|
|00004e80| 67 61 6c 20 65 78 70 72 | 65 73 73 69 6f 6e 73 20 |gal expr|essions |
|00004e90| 63 61 6e 20 62 65 20 74 | 79 70 65 64 2c 20 61 6e |can be t|yped, an|
|00004ea0| 64 20 69 74 20 69 73 20 | 65 76 61 6c 75 61 74 65 |d it is |evaluate|
|00004eb0| 64 20 75 73 69 6e 67 20 | 74 68 65 20 75 73 75 61 |d using |the usua|
|00004ec0| 6c 0a 63 6f 6e 76 65 6e | 74 69 6f 6e 73 20 61 62 |l.conven|tions ab|
|00004ed0| 6f 75 74 20 6f 70 65 72 | 61 74 6f 72 20 70 72 69 |out oper|ator pri|
|00004ee0| 6f 72 69 74 69 65 73 20 | 61 6e 64 20 6c 65 66 74 |orities |and left|
|00004ef0| 20 74 6f 20 72 69 67 68 | 74 20 65 76 61 6c 75 61 | to righ|t evalua|
|00004f00| 74 69 6f 6e 0a 28 69 6e | 63 6c 75 64 69 6e 67 20 |tion.(in|cluding |
|00004f10| 72 61 69 73 69 6e 67 20 | 74 6f 20 61 20 70 6f 77 |raising |to a pow|
|00004f20| 65 72 29 2c 20 75 73 69 | 6e 67 20 74 68 65 20 61 |er), usi|ng the a|
|00004f30| 76 61 69 6c 61 62 6c 65 | 20 6f 70 65 72 61 74 6f |vailable| operato|
|00004f40| 72 0a 73 79 6d 62 6f 6c | 73 2c 20 66 75 6e 63 74 |r.symbol|s, funct|
|00004f50| 69 6f 6e 20 6e 61 6d 65 | 73 20 28 69 6e 63 6c 75 |ion name|s (inclu|
|00004f60| 64 69 6e 67 20 75 73 65 | 72 2d 64 65 66 69 6e 65 |ding use|r-define|
|00004f70| 64 20 66 75 6e 63 74 69 | 6f 6e 73 29 2c 20 61 6e |d functi|ons), an|
|00004f80| 64 20 73 70 65 63 69 61 | 6c 0a 76 61 72 69 61 62 |d specia|l.variab|
|00004f90| 6c 65 73 2e 20 50 6c 65 | 61 73 65 20 6e 6f 74 65 |les. Ple|ase note|
|00004fa0| 20 74 68 61 74 20 69 6e | 20 67 65 6e 65 72 61 6c | that in| general|
|00004fb0| 20 74 68 65 72 65 5c 73 | 72 65 66 7b 63 61 73 65 | there\s|ref{case|
|00004fc0| 20 64 69 73 74 69 6e 63 | 74 69 6f 6e 7d 0a 69 73 | distinc|tion}.is|
|00004fd0| 20 6e 6f 20 64 69 73 74 | 69 6e 63 74 69 6f 6e 20 | no dist|inction |
|00004fe0| 62 65 74 77 65 65 6e 20 | 6c 6f 77 65 72 63 61 73 |between |lowercas|
|00004ff0| 65 2e 20 61 6e 64 20 75 | 70 70 65 72 63 61 73 65 |e. and u|ppercase|
|00005000| 0a 41 6c 73 6f 2c 20 6e | 6f 74 65 20 74 68 61 74 |.Also, n|ote that|
|00005010| 20 62 6c 61 6e 6b 73 20 | 61 72 65 20 63 6f 6d 70 | blanks |are comp|
|00005020| 6c 65 74 65 6c 79 20 69 | 67 6e 6f 72 65 64 20 69 |letely i|gnored i|
|00005030| 6e 20 74 68 65 20 69 6e | 70 75 74 20 74 6f 20 47 |n the in|put to G|
|00005040| 50 2e 0a 0a 54 68 65 20 | 73 70 65 63 69 61 6c 20 |P...The |special |
|00005050| 76 61 72 69 61 62 6c 65 | 20 6e 61 6d 65 73 20 75 |variable| names u|
|00005060| 73 65 64 20 62 79 20 47 | 50 20 61 72 65 20 7b 5c |sed by G|P are {\|
|00005070| 74 74 20 5c 72 65 66 7b | 65 75 6c 65 72 7d 7d 20 |tt \ref{|euler}} |
|00005080| 28 45 75 6c 65 72 27 73 | 0a 63 6f 6e 73 74 61 6e |(Euler's|.constan|
|00005090| 74 3d 30 2e 35 37 37 5c | 64 6f 74 73 29 2c 20 7b |t=0.577\|dots), {|
|000050a0| 5c 74 74 20 5c 72 65 66 | 7b 69 7d 7d 20 28 74 68 |\tt \ref|{i}} (th|
|000050b0| 65 20 73 71 75 61 72 65 | 20 72 6f 6f 74 20 6f 66 |e square| root of|
|000050c0| 20 24 2d 31 24 29 2c 0a | 7b 5c 74 74 20 5c 72 65 | $-1$),.|{\tt \re|
|000050d0| 66 7b 70 69 7d 7d 20 28 | 33 2e 31 34 5c 64 6f 74 |f{pi}} (|3.14\dot|
|000050e0| 73 29 2c 20 77 68 69 63 | 68 20 61 72 65 20 72 65 |s), whic|h are re|
|000050f0| 61 6c 6c 79 20 66 75 6e | 63 74 69 6f 6e 73 20 77 |ally fun|ctions w|
|00005100| 69 74 68 6f 75 74 20 70 | 61 72 61 6d 65 74 65 72 |ithout p|arameter|
|00005110| 73 2c 20 61 6e 64 20 7b | 5c 74 74 20 5c 72 65 66 |s, and {|\tt \ref|
|00005120| 7b 4f 7d 7d 20 77 68 6f | 73 65 20 73 79 6e 74 61 |{O}} who|se synta|
|00005130| 78 20 69 73 20 74 68 65 | 20 66 6f 6c 6c 77 69 6e |x is the| follwin|
|00005140| 67 3a 0a 0a 7b 5c 74 74 | 20 4f 7d 24 28 65 78 70 |g:..{\tt| O}$(exp|
|00005150| 72 5c 68 61 74 7b 5c 20 | 7d 6b 29 24 0a 0a 57 68 |r\hat{\ |}k)$..Wh|
|00005160| 65 6e 20 24 65 78 70 72 | 24 20 69 73 20 61 6e 20 |en $expr|$ is an |
|00005170| 69 6e 74 65 67 65 72 20 | 6f 72 20 61 0a 72 61 74 |integer |or a.rat|
|00005180| 69 6f 6e 61 6c 20 6e 75 | 6d 62 65 72 2c 20 63 72 |ional nu|mber, cr|
|00005190| 65 61 74 65 73 20 61 20 | 24 65 78 70 72 24 2d 61 |eates a |$expr$-a|
|000051a0| 64 69 63 20 6e 75 6d 62 | 65 72 20 28 7a 65 72 6f |dic numb|er (zero|
|000051b0| 20 69 6e 20 66 61 63 74 | 29 20 6f 66 20 70 72 65 | in fact|) of pre|
|000051c0| 63 69 73 69 6f 6e 20 24 | 6b 24 2e 0a 57 68 65 6e |cision $|k$..When|
|000051d0| 20 24 65 78 70 72 24 20 | 69 73 20 61 20 70 6f 6c | $expr$ |is a pol|
|000051e0| 79 6e 6f 6d 69 61 6c 2c | 20 61 20 70 6f 77 65 72 |ynomial,| a power|
|000051f0| 20 73 65 72 69 65 73 20 | 6f 72 20 61 20 72 61 74 | series |or a rat|
|00005200| 69 6f 6e 61 6c 20 66 75 | 6e 63 74 69 6f 6e 20 77 |ional fu|nction w|
|00005210| 68 6f 73 65 20 6d 61 69 | 6e 0a 76 61 72 69 61 62 |hose mai|n.variab|
|00005220| 6c 65 20 69 73 20 24 58 | 24 2c 20 73 61 79 2c 20 |le is $X|$, say, |
|00005230| 74 68 69 73 20 63 72 65 | 61 74 65 73 0a 61 20 70 |this cre|ates.a p|
|00005240| 6f 77 65 72 20 73 65 72 | 69 65 73 20 28 61 6c 73 |ower ser|ies (als|
|00005250| 6f 20 7a 65 72 6f 29 20 | 6f 66 20 70 72 65 63 69 |o zero) |of preci|
|00005260| 73 69 6f 6e 20 24 76 2a | 6b 24 20 77 68 65 72 65 |sion $v*|k$ where|
|00005270| 20 24 76 24 20 69 73 20 | 74 68 65 0a 24 58 24 2d | $v$ is |the.$X$-|
|00005280| 61 64 69 63 20 76 61 6c | 75 61 74 69 6f 6e 20 6f |adic val|uation o|
|00005290| 66 20 24 65 78 70 72 24 | 20 28 73 65 65 20 32 2e |f $expr$| (see 2.|
|000052a0| 33 2e 36 20 61 6e 64 20 | 32 2e 33 2e 39 2e 29 2e |3.6 and |2.3.9.).|
|000052b0| 0a 0a 4e 6f 74 65 3a 20 | 61 73 20 75 73 75 61 6c |..Note: |as usual|
|000052c0| 2c 20 6c 6f 77 65 72 63 | 61 73 65 20 7b 5c 62 66 |, lowerc|ase {\bf|
|000052d0| 20 6f 7d 20 69 73 20 61 | 6c 6c 6f 77 65 64 2c 20 | o} is a|llowed, |
|000052e0| 62 75 74 20 77 65 20 64 | 6f 20 6e 6f 74 0a 61 64 |but we d|o not.ad|
|000052f0| 76 69 73 65 20 74 6f 20 | 75 73 65 20 69 74 20 73 |vise to |use it s|
|00005300| 69 6e 63 65 20 69 74 20 | 68 61 73 20 61 20 64 69 |ince it |has a di|
|00005310| 66 66 65 72 65 6e 74 20 | 6d 61 74 68 65 6d 61 74 |fferent |mathemat|
|00005320| 69 63 61 6c 20 6d 65 61 | 6e 69 6e 67 2e 0a 0a 5c |ical mea|ning...\|
|00005330| 76 66 69 6c 6c 5c 65 6a | 65 63 74 0a 0a 0a 0a |vfill\ej|ect.... |
+--------+-------------------------+-------------------------+--------+--------+