PreviousIndexLast

[bug-gsl] Re: about gsl_complex_poly_complex_eval (2008-09-24)

From: Brian Gough <bjg@gnu.org>
Subject: Re: about gsl_complex_poly_complex_eval
Date: Wed, 24 Sep 2008 11:13:34 +0100
To: bug-gsl@gnu.org

At Sun, 21 Sep 2008 19:54:48 +0200,
L. Kliemann wrote:
> I saw this problem (see below) being discussed here already, so
> it's not new. Maybe I can provide some additional information,
> however: it happens for me when compiling with gcc 4.3.2, but not
> with gcc 4.1.2.
>
> FAIL: y.real, gsl_complex_poly_complex_eval ({-2.31 + 0.44i, 4.21 - 3.19i, 0.93 + 1.04i, -0.42 + 0.68i}, 0.49 + 0.95i) (-1.68450788000000018 observed vs 1.82462012000000007 expected) [9]
> FAIL: y.imag, gsl_complex_poly_complex_eval ({-2.31 + 0.44i, 4.21 - 3.19i, 0.93 + 1.04i, -0.42 + 0.68i}, 0.49 + 0.95i) (-0.30943988 observed vs 2.30389411999999982 expected) [10]
> FAIL: test

There have been problems in the past with gcc miscompiling the structs
for complex numbers in non-trivial expressions.

--
Brian Gough