Re: overwriting previous line
- To: mathgroup at smc.vnet.net
- Subject: [mg25895] Re: overwriting previous line
- From: "Rasmus Debitsch" <debitsch at Zeiss.de>
- Date: Tue, 7 Nov 2000 02:56:03 -0500 (EST)
- Organization: Customer of UUNET Deutschland GmbH
- References: <8u0de3$t7c@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hello,
try this
counter = 0;
FixedPoint[ (counter++; NotebookWrite[EvaluationNotebook[], Cell[counter],
All]; f[#] ) & , x ]
Regards
--
Rasmus Debitsch
Carl Zeiss Lithos GmbH
Carl Zeiss Strasse
D-73447 Oberkochen
eMail : debitsch at zeiss.de
"Otto Linsuain" <linsuain+ at andrew.cmu.edu> schrieb im Newsbeitrag
news:8u0de3$t7c at smc.vnet.net...
>
> Hi everyone.
> I have the following question.
> I am using FixedPoint, something like:
>
> counter=0;
> FixedPoint[ (counter++;Print[counter];f[#]) & , x]
>
> I don't want to use FixedPointList because the entire output would be
> too long and it would be a waste of memory to ask Mathematica to
> remember it, let alone print it. But I use the counter to know how many
> times this iterates before it converges and I use the Print to keep
> track of what is going on (that idea was suggested by this group).
>
> The output looks something like:
>
> 1
> 2
> 3
> .
> .
> .
> 71
>
> until it exits. I would like for each subsequent value of counter to
> overwrite the previous one (rather than to be printed below). That way
> the output cell won't be a hundred lines long. Can anyone help?
>
> Thanks. Otto Linsuain.
>
>