axiom-mail
[Top][All Lists]
Advanced

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

[Axiom-mail] A little print problem


From: Alasdair McAndrew
Subject: [Axiom-mail] A little print problem
Date: Tue, 16 Oct 2007 23:10:26 +1000

Here it is:

F:=FFP(PF 2,x^3+x+1)
x:=generator()$F
for i in 0..7 repeat print [i,x^i]

   [0,1]
   [1,%D]
        2
   [0,%D ]
   [1,%D + 1]
        2
   [0,%D  + %D]
        2
   [1,%D  + %D + 1]
        2
   [0,%D  + 1]
   [1,1]

Note that because of the PF 2, the values of i in the lists to be printed are automatically reduced mod 2.  But this is not what I want - I want the printed values of i to range from 0 to 7.   How can I do this, given that print only takes one argument?

Thanks,
Alasdair

reply via email to

[Prev in Thread] Current Thread [Next in Thread]