alphalinux.org high-perf list (1998-2001)
 help / color / mirror / Atom feed
From: Joachim Wesner <Joachim.Wesner@frankfurt.netsurf.de>
Subject: Re: sqrt performance, further comment.
Date: Thu, 04 Mar 1999 19:48:26 +0100	[thread overview]
Message-ID: <36DED57A.135BAD81@frankfurt.netsurf.de> (raw)
In-Reply-To: <199903040515.WAA19477@ellpspace.math.ualberta.ca>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1113 bytes --]

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

  parent reply	other threads:[~1999-03-04 18:48 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   ` Joachim Wesner [this message]
1999-03-04 19:41     ` sqrt performance, further comment Michal Jaegermann
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