Re: Re: Asking questions

*To*: mathgroup at smc.vnet.net*Subject*: [mg58272] Re: Re: Asking questions*From*: Pratik Desai <pdesai1 at umbc.edu>*Date*: Sat, 25 Jun 2005 01:56:32 -0400 (EDT)*References*: <200506230642.CAA14625@smc.vnet.net> <200506240728.DAA00319@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Bharat Bhole wrote: >Suppose I am running a code >MapThread[func,{Table[d,{d,1,10}]] which takes very long to evaluate for the >entire list. Mathematica gives me the output ONLY after 'func[d]' has been >evaluated for all d from 1 to 10. Is it possible to make Mathematica give >the output as it is evaluating after each d. For example, is it possible to >make it give output after it has evaluated func[1], then func[2] and so on. >Thank you for your help. >Regards, >Bharat. > > > > > Hi In the absense of the actual function, the best way (I feel) is to use the Do loop or While loop. Here is a simple example sum = 0; Do[sum += Pi/6; f = Cos[sum]; Print[f], {i, 10}] Best regards -- Pratik Desai Graduate Student UMBC Department of Mechanical Engineering Phone: 410 455 8134

**References**:**Re: Asking questions***From:*Bharat Bhole <bbhole@gmail.com>