|
From: | Ralf Hemmecke |
Subject: | Re: [fricas-devel] Re: [Axiom-mail] A simple question |
Date: | Thu, 07 Feb 2008 09:40:06 +0100 |
User-agent: | Thunderbird 2.0.0.9 (X11/20071031) |
I think this is a little prettier: (1) -> _<_< (x,y) == hconcat(x,y)$OutputForm Type: Void (2) -> for n in 10..30 repeat output(n << " = "::Symbol << factor(2^n-1))
Here, once the concept of << is understood, the only obscure notation is probably " = "::Symbol which is just a way to avoid printing the quotation marks " around the string.
Have you tried (6) -> for n in 10..13 repeat output(n << = << factor(2^n-1)) 10=3 11 31 11=23 89 2 12=3 5 7 13 13=8191 Well... the spaces around = are missing... one cannot have everything. Ralf PS: I still don't like it. There are hidden coercions to OuputForm.
[Prev in Thread] | Current Thread | [Next in Thread] |