From: "Bobby D. Bryant" <bdbryant@mail.utexas.edu>
Subject: Re: Sign of tanh ???
Date: Sun, 22 Apr 2001 13:12:33 +0600
Date: 2001-04-22T19:12:28+00:00 [thread overview]
Message-ID: <3AE28461.DCC4E169@mail.utexas.edu> (raw)
In-Reply-To: mailman.987951558.8798.comp.lang.ada@ada.eu.org
Wilhelm Spickermann wrote:
> On 21-Apr-01 Bobby D. Bryant wrote:
> > Isn't tanh supposed to preserve the sign of its argument?
>
> Sure. But I get the result
> 0.46212 -0.46212
> and I use the gnat-3.13p-5 rpm (from ALT) too.
>
> Perhaps it´s the C-library. Gnat uses the C-Library to compute the tanh (if
> the result cannot be easily found to be -1.0 1.0 or the argument). Does the
> problem occur in C too?
No, it works OK in C.
Odd...
Bobby Bryant
Austin, Texas
prev parent reply other threads:[~2001-04-22 7:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-21 11:35 Sign of tanh ??? Bobby D. Bryant
2001-04-22 14:56 ` Wilhelm Spickermann
2001-04-22 7:12 ` Bobby D. Bryant [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox