From: "Bobby D. Bryant" <bdbryant@mail.utexas.edu>
Subject: Sign of tanh ???
Date: Sat, 21 Apr 2001 17:35:26 +0600
Date: 2001-04-21T23:31:49+00:00 [thread overview]
Message-ID: <3AE1707E.BB379E3E@mail.utexas.edu> (raw)
Isn't tanh supposed to preserve the sign of its argument?
---8<-------
with
Ada.Float_Text_IO,
Ada.Numerics.Elementary_Functions;
use
Ada.Float_Text_IO,
Ada.Numerics.Elementary_Functions;
procedure Test is
begin
Put( Tanh( 0.5 ), Fore => 3, Exp => 0 );
Put( Tanh( -0.5 ), Fore => 3, Exp => 0 );
end Test;
---8<-------
% gnatmake test
gnatgcc -c test.adb
gnatbind -x test.ali
gnatlink test.ali
gnatlink: warning: executable name "test" may conflict with existing
command
% ./test
0.46212 0.46212
% rpm -q gnat
gnat-3.13p-5
Thanks,
Bobby Bryant
Austin, Texas
next reply other threads:[~2001-04-21 11:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-21 11:35 Bobby D. Bryant [this message]
2001-04-22 14:56 ` Sign of tanh ??? Wilhelm Spickermann
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