|
From: Keith M. <kei...@us...> - 2014-12-30 19:59:04
|
On 09/12/14 20:10, Keith Marshall wrote:
> On 04/12/14 14:30, Keith Marshall wrote:
>> On 03/12/14 22:38, Graeme Paterson wrote:
>>> Works in Ubuntu, not in mingw.
> :
>>> #include <stdio.h>
>>> #include <complex.h>
>>>
>>> int main() {
>>> double complex A;
>>> double complex a;
>>> A = 1.1;
>>> a = cacos( A ); // fails id abs(A) > 1.0
>>
>> Indeed, this is where it first appears to go wrong, but it's actually in
>> casin(A), (which is called by cacos(A)), that the failure occurs.
>
> I've filed this bug report:
> https://sourceforge.net/p/mingw/bugs/2245/
This is fixed, (together with a further bug in csqrt(), which came to
light while investigating this), in recently released mingwrt-3.21
--
Regards,
Keith.
|