MathGroup Archive 2007

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

Search the Archive

Re: newlines, newlines ...

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77695] Re: newlines, newlines ...
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Fri, 15 Jun 2007 04:30:12 -0400 (EDT)
  • References: <f4r4nh$ad6$1@smc.vnet.net>

Hi,

ProgressIndicator[Dynamic[k], {1, 500}]

Do[
  Integrate[Sin[k*x]^2, {x, 0, 2 Pi}], {k, 1, 500}]

work fine, what is your problem ?

Regards
   Jens

alexxx.magni at gmail.com wrote:
> I am wondering if there is a way, in M, to Print without getting a
> newline each time.
> It happens often to me when debugging, to introduce some kind of
> progress indicator, say:
> 
> Print[Floor[100*i/max_i], "%"]
> 
> but I didnt want to clutter the screen so much. Besides, hundreds of
> other possibilities come to mind when thinking about output without
> ending newline...
> 
> As a side note, trying to solve this (minor) problem, I happened to
> find:
> 
> ProgressIndicator[Dynamic[x]]
> 
> something which seemed perfect!
> Yet, I'm still unable to use it: for some reasons it is not updated
> <until> the calculation (which requires the progress indicator) is
> finished. At that point, useless, the bar moves from zero to full (and
> yes, dynamic updating is enabled)
> 
> Any hint for either problem is really welcome!
> 
> Alessandro Magni
> 
> 


  • Prev by Date: Re: newlines, newlines ...
  • Next by Date: Re: Re: Axis missing from simple ListPlot
  • Previous by thread: Re: newlines, newlines ...
  • Next by thread: Re: newlines, newlines ...