[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: data.cc failing 1 test
From: |
Jaroslav Hajek |
Subject: |
Re: data.cc failing 1 test |
Date: |
Thu, 17 Dec 2009 06:39:09 +0100 |
On Thu, Dec 17, 2009 at 4:36 AM, Rik <address@hidden> wrote:
> 'make check' is failing for one test in data.cc. I'm pretty sure I was
> able to pass the entire test suite as little as two weeks ago.
>
>>>>>> processing octave-dev/src/data.cc
> ***** assert(log2(complex(0,Inf)), Inf + log2(i));
> !!!!! test failed
> assert (log2 (complex (0, Inf)),Inf + log2 (i)) expected
> Inf + 2.266i
> but got
> Inf - NaNi
> NaNs don't match
>
> --Rik
>
>
Typically this is a problem in C++ complex division. What does
log (complex (0, Inf)) give? and what about log (complex (0, Inf)) / log (2)?
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz