Igor Schein on Thu, 22 Oct 1998 12:11:38 -0400


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

Re: Explain this behavior?


On Thu, Oct 22, 1998 at 11:48:45AM -0400, Jeremy Teitelbaum wrote:
> Dear pari users,
> can anyone explain this to me?  The variable l1 is computed
> in a function.   It contains a matrix with rational entries.
> THe command mathnf(l1) fails; however, typing "l1" followed
> by mathnf(%) works fine.  Here is what I mean:
> 
> ? mathnf(l1)
>   ***   not an integer argument in an arithmetic function
> ? l1
> %84 = 
> [-31/37 27 14 -1 0 0 48/37 0 0 -8 0 0]
> 
> [-62/37 1 0 0 -1 0 96/37 0 0 0 -8 0]
> 
> [-93/37 0 1 0 0 -1 144/37 0 0 0 0 -8]
> 
> [-24/37 0 0 4 0 0 -7/37 27 14 -5 0 0]
> 
> [-48/37 0 0 0 4 0 -14/37 1 0 0 -5 0]
> 
> [-72/37 0 0 0 0 4 -21/37 0 1 0 0 -5]
> 
> ? mathnf(%)
> %85 = 
> [37 27 14 9 16 77/37]
> 
> [0 1 0 0 0 6/37]
> 
> [0 0 1 0 0 9/37]
> 
> [0 0 0 1 0 25/37]
> 
> [0 0 0 0 1 13/37]
> 
> [0 0 0 0 0 1/37]
> 

I've tried the same thing with version 2.0.7 and pre-2.0.12,
and everything is fine.  Can you do other matrix manipulation
commands on l1?  Like matsize or matker?  How does the output
of print(l1) look?

Igor