MathGroup Archive 2007

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

Search the Archive

Re: Re: Can't abort a loop with Print inside (V6)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83247] Re: [mg83226] Re: Can't abort a loop with Print inside (V6)
  • From: Curtis Osterhoudt <cfo at lanl.gov>
  • Date: Fri, 16 Nov 2007 05:23:49 -0500 (EST)
  • Organization: LANL
  • References: <200711151043.FAA09250@smc.vnet.net>
  • Reply-to: cfo at lanl.gov

On Thursday 15 November 2007 03:43:15 Bill Rowe wrote:

> The only reason I can see for putting a Print statement in the
> loop is for debugging purposes. Surely no one wants to have 1000
> Print statements execute or even 100.


    This is somewhat pedantic, but when I or my colleagues have used 
Mathematica for large amounts of data processing (perhaps finding certain 
edges in photographs and then fitting these edges to various functions), it's 
really useful to have a Print statement in each go-around.
    Sure, you end up with several thousand lines of "Hey! I'm done with 
iteration nnnn", but those are easy to erase, and it gives one some 
confidence that the job won't take forever. More of a psychological balm than 
anything else.

-- 
==========================================================
Curtis Osterhoudt
cfo at remove_this.lanl.and_this.gov
PGP Key ID: 0x4DCA2A10
Please avoid sending me Word or PowerPoint attachments
See http://www.gnu.org/philosophy/no-word-attachments.html
==========================================================


  • Prev by Date: Re: Partial Differentiation of Implicit Functions
  • Next by Date: Piecewise inside a Module or Block, I don't understand this behavior.
  • Previous by thread: Re: Can't abort a loop with Print inside (V6)
  • Next by thread: trying to "simplify" very large output