maxima provides exact methods. your problem is solved by
n=-log(2)/(log(655)-log(656)) which is about 454.3578887376788
Using numerical methods sometimes requires a subtle touch.
_____
From: maxima-bounces at math.utexas.edu [mailto:maxima-bounces at math.utexas.edu]
On Behalf Of Tawny Owl
Sent: Tuesday, July 22, 2008 5:30 AM
To: Maxima List
Subject: find_root error
I am using Maxima 5.15.0 under Windows.
find_root((655/656)^n = 0.5, n, 1, 1000) gives 114.8, which is completely
wrong.
Fortunately, I checked the answer (always a good habit, I know!).
Either of the following expressions give the correct answer, which is 454.4
find_root(float(655/656)^n = 0.5, n, 1, 1000);
float(log(0.5)/log(655/656));
_____
Get fish-slapping on Messenger! Play
<http://clk.atdmt.com/UKM/go/101719805/direct/01/> Now