MathGroup Archive 2005

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

Search the Archive

Re: FixedPoint

  • To: mathgroup at smc.vnet.net
  • Subject: [mg62234] Re: [mg62227] FixedPoint
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Thu, 17 Nov 2005 04:15:33 -0500 (EST)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

fpl=FixedPointList[Cos,1.0];

Last[fpl]

0.7390851332151607

Cos[%]==%

True

Length[fpl]

91

First[fpl]

1.

The starting value; hence, there were 90 iterations. Alternatively,

n=0;FixedPoint[(n++;Cos[#])&,1.0]

0.7390851332151607

Cos[%]==%

True

n

90


Bob Hanlon

> 
> From: "Scott" <sguthery at gmail.com>
To: mathgroup at smc.vnet.net
> Date: 2005/11/16 Wed AM 02:28:29 EST
> Subject: [mg62234] [mg62227] FixedPoint
> 
> Anybody know how to get FixedPoint to reveal how many iterations it had
> to perform before it found the fixed point; i.e. what n was when SameQ
> was satisfied and FixedPoint exited.
> 
> Thanks for any insight.
> 
> Cheers, Scott
> 
> 


  • Prev by Date: Re: FixedPoint
  • Next by Date: Re: mathematica2mono
  • Previous by thread: Re: FixedPoint
  • Next by thread: RootSearch-missing root