Re: A simple question
Martin Rubey <[email protected]>
| Newsgroups | gmane.comp.mathematics.axiom.user |
|---|---|
| Message-ID | <[email protected]> |
"Alasdair McAndrew" <[email protected]> writes: > Sorry about this; I'm a bit out of practice: > > for n in 10..30 repeat output [n, factor(2^n-1)] for example (7) -> for n in 10..13 repeat output semicolonSeparate [n::OUTFORM, factor(2^n-1)] 10;3 11 31 11;23 89 2 12;3 5 7 13 13;8191 Type: Void or (8) -> for n in 10..13 repeat output([n, factor(2^n-1)]$List ANY) [10,3 11 31] [11,23 89] 2 [12,3 5 7 13] [13,8191] Type: Void > This gives the first n in factored form which I don't want. How can I > obtain the first n in unfactored form? Just to make sure: what happens is that the interpreter sees the list constructor [], and tries to find a Type as simple as possible. List FR INT is simpler than List ANY. Martin