comp.lang.ada
 help / color / mirror / Atom feed
From: "Markus Schöpflin" <no.spam@spam.spam>
Subject: Re: Ada.Numerics, Accuracy of trigonometric functions
Date: Fri, 7 Oct 2016 12:40:04 +0200
Date: 2016-10-07T12:40:04+02:00	[thread overview]
Message-ID: <8b7af11f-b738-9945-84e0-8be68f516d5a@spam.spam> (raw)
In-Reply-To: nt7t3q$697$1@dont-email.me

Am 07.10.2016 um 12:23 schrieb Brian Drummond:

[...]

> C tends to silently coerce "float" to "double" any time you pass a float
> argument to a function unless you jump through hoops to make such
> coercion impossible.
>
> So my suspicion is simply that the C program is giving you double
> precision.

I can see in the generated assembler dump that the libc cosf function is 
called. So I don't think this is the case.

And I get the same result in Ada using Long_Float or Long_Long_Float; see my 
follow-up.

Markus

  reply	other threads:[~2016-10-07 10:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-07 10:13 Ada.Numerics, Accuracy of trigonometric functions Markus Schöpflin
2016-10-07 10:23 ` Markus Schöpflin
2016-10-07 10:23 ` Brian Drummond
2016-10-07 10:40   ` Markus Schöpflin [this message]
2016-10-07 14:52 ` Dennis Lee Bieber
2016-10-07 15:19   ` Markus Schöpflin
2016-10-07 22:15     ` Dennis Lee Bieber
2016-10-07 16:38 ` Jeffrey R. Carter
2016-10-10  7:44   ` Markus Schöpflin
2016-10-22 22:38 ` Robert Eachus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox