Article View: comp.arch
Article #137Re: Taking hypot(3) To The Edge
From: MitchAlsup
Date: Thu, 15 Oct 2026 19:19
Date: Thu, 15 Oct 2026 19:19
57 lines
3510 bytes
3510 bytes
Michael S <already5chosen@yahoo.com> posted:
> On Wed, 14 Oct 2026 22:13:04 GMT
> MitchAlsup <user5857@newsgrouper.org.invalid> wrote:
>
> > Michael S <already5chosen@yahoo.com> posted:
> >
> > > On Tue, 13 Oct 2026 21:33:23 GMT
> > > MitchAlsup <user5857@newsgrouper.org.invalid> wrote:
> > >
> > > >
> > > > For example, I have eXcel from 2003, and on AMD machines I get
> > > > 80-bit precision (when real careful in eXcel math)--but those
> > > > same programs on Intel and Arm display 64-bit precision.
> > > >
> > >
> > > Are you sure that you use exactly the same version of Excel on AMD
> > > and Intel? Also, what OS do you have on each machine?
> > >
> > > Also, how exactly do you detect that precision is higher than IEEE
> > > binary64? By forcing mantisa to hold more than 53 bits
> > > (incl.hidden) or by forcing exponent to hold more than 11 bits?
> >
> > Very carefully crafted arithmetic. I calculated the Chebyshev points
> > on a 128-bit FP machine and then transported the ASCII data back and
> > gained 1.2ULP instead of calculating them using COS( point/k ) which
> > is the standard formula.
> >
> > Also, instead of calculating a bunch of terms in multiple cells, I use
> > SUMPRODUCT() which I found to be ~0.3ULP better than writing the
> > equations out by hand.
> >
> > I have no idea why, just that I can measure {LOG(ABS(value),2)} as the
> > number of bits of precision--where value is the {AMD,Intel} builtin
> > minus my Chebyshev polynomial evaluated at the same point. Given 1,000
> > evaluations points between [a, b] with random dither at each point
> > the shape of the graph shows the accuracy while the noise on the graph
> > shows the arithmetic noise.
> > >
> > >
> > >
>
> All that sounds non-trivial. The difference can be easily related to
> something else, e.g. to results of evaluation of trigs. Which do differ
> a little between AMD and Intel.
>
> What about trivial tests?
> A = 1; B = A + 1e-18; C = B - 1;
It is really something which is a lot easier to see in graphical form--
like the difference between a multimeter and an oscilloscope.
And yes, there is a lot more numerical noise when I compare EXPM1 with
EXP-1 or LNP1 with Ln+1. But mostly the noise stays down near 52.3-bits
of precision {after all the careful attention to "things"; whereas it
started near 51-bits of precision before care was applied.
Technical Details
Message-ID:
<1792091962-5857@newsgrouper.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mailReferences:
<119kaj9$npbg$1@dont-email.me> <119kd8g$opnp$1@dont-email.me> <119l4vl$t831$2@dont-email.me> <20261001141212.00002f20@yahoo.com> <1791927203-5857@newsgrouper.org> <20261014224516.00000da5@yahoo.com> <1792015984-5857@newsgrouper.org> <20261015220350.000008ef@yahoo.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail From: MitchAlsup <user5857@newsgrouper.org.invalid> Newsgroups: comp.arch Subject: Re: Taking hypot(3) To The Edge References: <119kaj9$npbg$1@dont-email.me> <119kd8g$opnp$1@dont-email.me> <119l4vl$t831$2@dont-email.me> <20261001141212.00002f20@yahoo.com> <1791927203-5857@newsgrouper.org> <20261014224516.00000da5@yahoo.com> <1792015984-5857@newsgrouper.org> <20261015220350.000008ef@yahoo.com> Date: Thu, 15 Oct 2026 19:19:22 GMT Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: <1792091962-5857@newsgrouper.org> Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857 Injection-Date: Thu, 15 Oct 2026 19:19:22 GMT User-Agent: Newsgrouper/0.9.0