comp.lang.ada
 help / color / mirror / Atom feed
From: Wilhelm.Spickermann@t-online.de (Wilhelm Spickermann)
To: comp.lang.ada@ada.eu.org
Subject: RE: Sign of tanh ???
Date: Sun, 22 Apr 2001 16:56:14 +0200 (CEST)
Date: 2001-04-22T16:56:14+02:00	[thread overview]
Message-ID: <mailman.987951558.8798.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <3AE1707E.BB379E3E@mail.utexas.edu>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 383 bytes --]


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?

Wilhelm





  reply	other threads:[~2001-04-22 14:56 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 [this message]
2001-04-22  7:12   ` Bobby D. Bryant
replies disabled

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