From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
Subject: Re: sqrt performance, further comment.
Date: Thu, 4 Mar 1999 12:41:40 -0700 (MST) [thread overview]
Message-ID: <199903041941.MAA20283@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <36DED57A.135BAD81@frankfurt.netsurf.de>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1185 bytes --]
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
next prev parent reply other threads:[~1999-03-04 19:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-03 20:53 sqrt performance esci
1999-03-03 21:40 ` Andrei A. Dergatchev
1999-03-04 5:15 ` Michal Jaegermann
1999-03-04 18:30 ` Joachim Wesner
1999-03-04 18:48 ` sqrt performance, further comment Joachim Wesner
1999-03-04 19:41 ` Michal Jaegermann [this message]
1999-03-04 19:51 ` Joachim Wesner
1999-03-05 17:55 ` Joachim Wesner
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox