Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*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 2005

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

Search the Archive

Re: Asking questions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58269] Re: Asking questions
  • From: Peter Pein <petsie at dordos.net>
  • Date: Sat, 25 Jun 2005 01:56:27 -0400 (EDT)
  • References: <200506230642.CAA14625@smc.vnet.net> <d9gcqf$co$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Bharat Bhole schrieb:
> 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.
> 
> 
> 
In[1]:= MapThread[func, {Table[d, {d, 1, 10}]}]
Out[1]= {func[1], func[2], func[3], func[4], func[5],
 func[6], func[7], func[8], func[9], func[10]}

In[2]:=(Print[#]; #)&[func[#]]& /@ Range[10]
func[1]
func[2]
func[3]
func[4]
func[5]
func[6]
func[7]
func[8]
func[9]
func[10]
Out[2]= {func[1], func[2], func[3], func[4], func[5],
 func[6], func[7], func[8], func[9], func[10]}

-- 
Peter Pein
Berlin


  • Prev by Date: Re: Module command acting funny...
  • Next by Date: Re: a question about plot a list of functions.
  • Previous by thread: Re: Re: Asking questions
  • Next by thread: Re: Asking questions