Bill Allombert on Wed, 4 Jun 2003 09:50:40 +0200


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

Re: factorint


On Wed, Jun 04, 2003 at 02:45:58AM -0200, trabunix wrote:
> I'm using pari 2.1.3 in library mode at FreeBSD and I need the function factorint but I don't understand hao can I access the output matrix. How can I do it ? Which is the 'matrix' name ?

None. Or eventually you can use the % history entry.
Buyt it is cleaner to do

? M=factorint(2^128+1)
%4 =
[59649589127497217 1]

[5704689200685129054721 1]

? M[1,1]
%5 = 59649589127497217

If you forgot to add the M=, you can do
? factorint(2^128+1)
%8 =
[59649589127497217 1]

[5704689200685129054721 1]
? %8[1,1]
%9 = 59649589127497217

Cheers,
Bill.