> You might prefer the [1..n] notation, so you could do
>
> sage: [f(i) for i in [1..10]]
> [g(1), g(2), g(3), g(4), g(5), g(6), g(7), g(8), g(9), g(10)]
>
> (This really should be added to the wiki.)> sage: [f(i) for i in [1..10]]
Perhaps I'm missing something, but where do the g's come from? I
Bonjour Nasser,
Maybe it is strange, but I find it rather practical. If i, j are
indices, this avoids to write i-1, j+1, j+i-1etc. See what I mean
below.
Sébastien L
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "cre
On Nov 10, 2008, at 11:23 AM, Nasser Abbasi wrote:
> Hello;
>
> I was just browsing something to learn about sage, and noticed this on
> this web site
> http://wiki.sagemath.org/sage_mathematica
>
> where it says:
>
> "sage: [f(i) for i in range(1, 11)]
> [g(1), g(2), g(3), g(4), g(5), g(6), g(7)
On Monday 10 November 2008, Nasser Abbasi wrote:
> Hello;
>
> I was just browsing something to learn about sage, and noticed this on
> this web site
> http://wiki.sagemath.org/sage_mathematica
>
> where it says:
>
> "sage: [f(i) for i in range(1, 11)]
> [g(1), g(2), g(3), g(4), g(5), g(6), g(7), g
Hi Nasser,
Nasser Abbasi wrote:
> Hello;
>
> I was just browsing something to learn about sage, and noticed this on
> this web site
> http://wiki.sagemath.org/sage_mathematica
>
> where it says:
>
> "sage: [f(i) for i in range(1, 11)]
> [g(1), g(2), g(3), g(4), g(5), g(6), g(7), g(8), g(9), g(