[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-mail] A little print problem
From: |
Martin Rubey |
Subject: |
Re: [Axiom-mail] A little print problem |
Date: |
16 Oct 2007 15:25:37 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
"Alasdair McAndrew" <address@hidden> writes:
> Here it is:
>
> F:=FFP(PF 2,x^3+x+1)
> x:=generator()$F
(24) -> for i in 0..7 repeat print([i, x^i]$List Union(INT, F))
[0,1]
[1,%A]
2
[2,%A ]
[3,%A + 1]
2
[4,%A + %A]
2
[5,%A + %A + 1]
2
[6,%A + 1]
[7,1]
Type: Void
The "problem" is not print, but rather that the simplest signature for the
constructor function in [i, x^i] the interpreter can find takes some F's and
returns a List F. Above I explicitly told the interpreter to use the
constructor function that takes Union(INT, F)'s and returns a list of such
elements. Compare with
for i in 0..7 repeat print([i, x^i]::List Union(INT, F))
Martin