Karim BELABAS on Tue, 17 Sep 2002 16:18:24 +0200 (MEST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Doc glitch


On Mon, 16 Sep 2002, Justin C. Walker wrote:
> On Monday, September 16, 2002, at 05:38 PM, Justin C. Walker wrote:
>> Whilst pawing through the tutorial (2.2.2, 2.2.4 both), I noticed the
>> following (p. 22):
>>   "iv=vecindexsort(hv), then hv=vecextract(hv,iv) and
>> v=vecextract(v,iv)."
>> 'vecindexsort' seems to have a new name (vecsort); and the two calls to
>> 'vecextract' don't work; they both elicit the complaint
>>
>> ? X=vecextract(X,iv)
>>   ***   impossible assignment I-->S
>
> Following up on my own post, things improve considerably if one uses the
> new name for 'vecindexsort' (then 'iv' is of the proper form, and
> 'vecextract()' becomes happy).

The tutorial hadn't been updated in two years... I've just fixed the problem,
as you suggested, in the tutorial distributed with the development version.
I've also modified the section about integer factorization: it asserted that
there is no primality prover in PARI, which is no longer true.

A (somewhat) related problem in the user's manual: it was not mentioned that
the output of nextprime/precprime/factor/factorint were pseudoprimes, not
proven primes.

Thanks,

    Karim.
-- 
Karim Belabas                    Tel: (+33) (0)1 69 15 57 48
Dép. de Mathematiques, Bat. 425  Fax: (+33) (0)1 69 15 60 19
Université Paris-Sud             Email: Karim.Belabas@math.u-psud.fr
F-91405 Orsay (France)           http://www.math.u-psud.fr/~belabas/
--
PARI/GP Home Page: http://www.parigp-home.de/