From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199903041941.MAA20283@ellpspace.math.ualberta.ca> Date: Thu, 4 Mar 1999 12:41:40 -0700 (MST) From: Michal Jaegermann Subject: Re: sqrt performance, further comment. In-Reply-To: <36DED57A.135BAD81@frankfurt.netsurf.de> Joachim Wesner wrote: > > 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. > > > > However, when fitting the *full* range, the problem is the infinite > derivative at zero, that fools all polynomial approx. schemes. I would have to revisit my old files; this was quite a while ago. Maybe this was a rational approximation (it should not not be too costly on Alpha) but I had in the past pretty decent approximation for a sqrt on [0,2) interval. I do not remember max absolute errors, though. Details are fuzzy now. You may be right that with one Newton iteration one will be still not precise enough in the whole required range. [0,2) was used as this allowed not to worry about even and odd exponents.   Michal