[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-mail] A simple question
From: |
Martin Rubey |
Subject: |
Re: [Axiom-mail] A simple question |
Date: |
01 Feb 2008 22:59:26 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
"Alasdair McAndrew" <address@hidden> 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
- [Axiom-mail] A simle question, Alasdair McAndrew, 2008/02/01
- Re: [Axiom-mail] A simple question,
Martin Rubey <=
- Re: [fricas-devel] Re: [Axiom-mail] A simple question, Bill Page, 2008/02/01
- Re: [fricas-devel] Re: [Axiom-mail] A simple question, Martin Rubey, 2008/02/02
- Re: [fricas-devel] Re: [Axiom-mail] A simple question, Bill Page, 2008/02/02
- Re: [fricas-devel] Re: [Axiom-mail] A simple question, Alasdair McAndrew, 2008/02/02
- Re: [fricas-devel] Re: [Axiom-mail] A simple question, Bill Page, 2008/02/02
- Re: [fricas-devel] Re: [Axiom-mail] A simple question, Alasdair McAndrew, 2008/02/02
- Re: [fricas-devel] Re: [Axiom-mail] A simple question, root, 2008/02/02
- Re: [fricas-devel] Re: [Axiom-mail] A simple question, Alasdair McAndrew, 2008/02/02
- Re: [fricas-devel] Re: [Axiom-mail] A simple question, root, 2008/02/02
- Re: [fricas-devel] Re: [Axiom-mail] A simple question, Ralf Hemmecke, 2008/02/07