Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'time to convergence within e' topicStudent Support Forum > General > Archives > "time to convergence within e"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda ben-shimol
10/28/08 01:24am

FixedPoint[#^0.5 + 1 &, 2.0]
returns
2.61803

If you need to see intermediate results (say 20first iterations) then

NestList[#^0.5 + 1 &, 2.0, 20]

which returns

{2., 2.41421, 2.55377, 2.59805, 2.61185, 2.61612, 2.61744, 2.61785, \
2.61798, 2.61802, 2.61803, 2.61803, 2.61803, 2.61803, 2.61803, \
2.61803, 2.61803, 2.61803, 2.61803, 2.61803, 2.61803}

yehuda


URL: ,

Subject (listing for 'time to convergence within e')
Author Date Posted
time to convergence within e Andy 10/27/08 01:02am
Re: time to convergence within e Peter Pein 10/27/08 07:00am
Re: time to convergence within e yehuda ben-s... 10/28/08 01:24am
Re: time to convergence within e yehuda ben-s... 10/28/08 03:35am
Re: time to convergence within e Xavier 10/29/08 07:56am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic