在 2011年6月7日星期二,上午9:30,Bill Page 写道:

> > On 06/06/2011 08:05 PM, Martin Rubey wrote:
> > ...
> > Do I have to append s1 to a infinite stream by letting the rest
> > elements all be 0 manually?
> > 
> > I think that's the way to go. It's not that bad:
> > 
> > [i+j for i in concat(s1, repeating [0]) for j in s2]
> 
> A more functional notation in the style of the original question would be:
> 
>  map(+,concat(s1,repeating [0]),s2)
Really helpful in my case, thx! 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "FriCAS - computer algebra system" group.
> To post to this group, send email to [email protected] 
> (mailto:[email protected]).
> To unsubscribe from this group, send email to 
> [email protected] 
> (mailto:[email protected]).
> For more options, visit this group at 
> http://groups.google.com/group/fricas-devel?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to