From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,def7fa127a74c721 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-22 12:15:07 PST Path: newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!arclight.uoregon.edu!newsfeed.cs.utexas.edu!geraldo.cc.utexas.edu!not-for-mail From: "Bobby D. Bryant" Newsgroups: comp.lang.ada Subject: Re: Sign of tanh ??? Date: Sun, 22 Apr 2001 13:12:33 +0600 Organization: (I do not speak for) The University of Texas at Austin (nor they for me). Message-ID: <3AE28461.DCC4E169@mail.utexas.edu> References: NNTP-Posting-Host: dial-109-22.ots.utexas.edu Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: geraldo.cc.utexas.edu 987966748 14493 128.83.177.166 (22 Apr 2001 19:12:28 GMT) X-Complaints-To: abuse@cc.utexas.edu NNTP-Posting-Date: 22 Apr 2001 19:12:28 GMT X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3-ac9 i686) X-Accept-Language: en,fr,de Xref: newsfeed.google.com comp.lang.ada:6839 Date: 2001-04-22T19:12:28+00:00 List-Id: 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=B4s the C-library. Gnat uses the C-Library to compute the ta= nh (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