Re: [fricas-devel] Re: A simple question
Ralf Hemmecke <[email protected]>
| Newsgroups | gmane.comp.mathematics.axiom.user |
|---|---|
| Message-ID | <[email protected]> |
> 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.