A little print problem
"Alasdair McAndrew" <[email protected]>
| Newsgroups | gmane.comp.mathematics.axiom.user |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
Axiom-mail mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/axiom-mail