From bug-request at octave dot org Fri Jun 17 00:16:00 2005 Subject: Re: make check fails in recent CVS From: Geordie McBain To: "Dmitri A. Sergatskov" Cc: bug at octave dot org Date: Fri, 17 Jun 2005 15:15:24 +1000 On Thu, 2005-06-16 at 22:57 -0600, Dmitri A. Sergatskov wrote: > John W. Eaton wrote: > > On 16-Jun-2005, Dmitri A. Sergatskov wrote: > > > > | Make check fails at: > > | > > | EXEC: ../src/octave -f -q -H -p .:../src//:./../scripts// ./octave.test/arith/coth-1.m > > | > > | Octave Output: > > | ans = 0 > > | FAIL: octave.test/arith/coth-1.m > > | ... > > > > This does not fail for me. Can you please provide find out what part > > Looks like I have a problem with g++ library: > [dima at localhost bug]$ cat test1.cc > #include > #include > #include > > using namespace std; > > main() > { > complex x(0, 3.1415926535/2.0); > cout << "x = " << x << endl; > cout << "sinh(x) = " << sinh(x) << endl; > cout << "cosh(x) = " << cosh(x) << endl; > cout << "tanh(x) = " << tanh(x) << endl; > return 0; > } > > [dima at localhost bug]$ g++ test1.cc -o test1 > [dima at localhost bug]$ ./test1 > x = (0,1.5708) > sinh(x) = (0,1) > cosh(x) = (4.48966e-11,0) > tanh(x) = (nan,inf) > > (the correct answer is tanh(x) = (0,0)) Isn't it tanh (i*pi/2) = inf*i ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------