Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: generalized foldlist problem - part 2

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69184] Re: [mg69138] generalized foldlist problem - part 2
  • From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
  • Date: Fri, 1 Sep 2006 06:41:20 -0400 (EDT)
  • References: <200608310838.EAA19506@smc.vnet.net> <03162F89-A4A8-4977-A494-E8ADFC4C9003@mimuw.edu.pl>
  • Sender: owner-wri-mathgroup at wolfram.com

On 31 Aug 2006, at 20:49, Andrzej Kozlowski wrote:
>
> (PS. In answering part 1 I obviously misunderstood your question,  
> but I think that was mainly because I do not think your function is  
> in any way a "generalisation of Fold", or even of Fold 
> [Plus,element,list]. As far as I can see it does not really perform  
> any kind of "folding".

On second thoughts, I withdraw most of that PS. Taking list2= 
{1,1,1,...} in your original function, we certainly get a  
generalisation of FoldList[Plus,First[list1],Rest[list1]], so the  
subject name "generalised foldlist problem" is not entirely  
unjustified. However, it seems to me that describing the function in  
this way  confuses rather then clarifies what the function does  
(hence, I think, Jens remarks in reply to your original post and my  
comment above). It seems to me that the best description of your  
problem is terms of the matrix that you used in part 2. Could you,  
perhaps, explain how this problem arose and what you are "really  
trying to do"?

Andrzej Kozlowski


  • Prev by Date: RE: efficient term collection algorithm
  • Next by Date: Re: efficient term collection algorithm
  • Previous by thread: Re: Re: Unexpected "Invalid comparison" error when plotting function defined with a Condition pattern
  • Next by thread: Re: generalized foldlist problem - part 2