From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <36E01A98.97B28BCA@frankfurt.netsurf.de> Date: Fri, 05 Mar 1999 18:55:36 +0100 From: Joachim Wesner Subject: Re: sqrt performance, further comment. In-Reply-To: <199903040515.WAA19477@ellpspace.math.ualberta.ca> Martin Kahlert wrote: > > Quoting Joachim Wesner (Joachim.Wesner@frankfurt.netsurf.de): > > 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. > > Only a small suggestion (no big background in function approximation here): > What about approximating x*sqrt(x)? This should be much simpler. Which would somehow force you to later divide by x or am I mssing something here ? Actually, this way you are doing a very simple *rational* approximation of the form P(x)/x for sqrt(x). As also discussed on the list, this IS generally better, but I estimate it's not faster in the end as using the Newtonian iterations that double the number of valid bits in each step. Cheers Joachim