Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Steve.Lionel@compaq.com (Steve Lionel)
Subject: Re: Inaccurate logarithm in Pascal
Date: 1999/03/23	[thread overview]
Message-ID: <36ffa646.349337953@usenet.pa.dec.com> (raw)
In-Reply-To: 7d81qg$soq$1@news.net.uni-c.dk

On Tue, 23 Mar 1999 13:37:30 +0100, "Morten Skaarup Jensen"
<morten@nospam.org> wrote:

>
>DEC Pascal gives the option of either a fast or an accurate math library.
>According to the manual "accurate" is default, but the results of the "ln"
>function are only accurate to about 9 significant figures which is not
>enough for me.
>
>Is there a bug in the "ln" function or am I linking to the "fast" math
>library? Any help will be appreciated.

Do you have a specific example?  9 significant digits is more than I'd
expect with single-precision.  The "fast" library doesn't necessarily
give less accurate results than the "accurate" library, especially if
the argument is "reasonable".  The fast library is not as careful in
doing range reductions (not really an issue for ln) and errors may not
get reported properly.

Please also indicate what version of Pascal and DIGITAL UNIX you are
using.



--
Steve Lionel (mailto:Steve.Lionel@compaq.com)
Fortran Engineering
Compaq Computer Corporation, Nashua NH

Compaq Fortran web site: http://www.compaq.com/fortran



  reply	other threads:[~1999-03-23  5:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-23  5:00 Inaccurate logarithm in Pascal Morten Skaarup Jensen
1999-03-23  5:00 ` Steve Lionel [this message]
1999-03-24  5:00   ` Morten Skaarup Jensen
1999-03-24  5:00     ` Paul A Sand
1999-03-24  5:00     ` John R. Reagan
1999-03-24  5:00       ` Morten Skaarup Jensen
1999-03-24  5:00     ` Steve Lionel
1999-03-24  5:00     ` Jarkko Hietaniemi
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