Re: [fricas-devel] Re: A simple question
"Bill Page" <[email protected]>
| Newsgroups | gmane.comp.mathematics.axiom.user |
|---|---|
| Message-ID | <[email protected]> |
On 2/2/08, Alasdair McAndrew <[email protected]> wrote: > Actually, > > for n in 10..30 repeat output [n::String, factor(2^n-1)] > > is probably the simplest. > Although this apparently produces the effect that you wanted I think it is also a very poor notation to achieve this effect. To understand why it is a bad choice you need to understand how Axiom assigns types to various objects - this is very complicated and often quite unexpected - even when it works. The problem is finding a good way to write this that always works the way you expect. Regards, Bill Page.