From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <36DED57A.135BAD81@frankfurt.netsurf.de> Date: Thu, 04 Mar 1999 19:48:26 +0100 From: Joachim Wesner Subject: Re: sqrt performance, further comment. In-Reply-To: <199903040515.WAA19477@ellpspace.math.ualberta.ca> Michal Jaegermann wrote: > > esci wrote: > > > > I'm currently looking into using a table driven Taylor's series expansion. > > Hint's and suggestions *very* welcome. I need to do this over the range > > from 0 to 100,000,000 w/ the roots off by less than 1 > > If you reduce that to an interval [0,1) this would mean that you > need 10 decimal places. A decent polynomial approximation plus one > step of a Newton iteration should bring you in that range, I think. > Further addition to my last post: *Only* for the problem the original poster mentioned, you might consider using max. *absolute* error here, this would be a very special routine. However, when fitting the *full* range, the problem is the infinite derivative at zero, that fools all polynomial approx. schemes. Maybe my approximation software fails here a bit, but, even at 10 th order, I can't get better 2e-3 *absolute* precision. sqrt is known to be bad in function approx. theory. Müller in his recent book cites that you need at 25th degree polynomials (!!) only to get to 1e-15 absolute error in 0.25..1 Joachim