[fpc-devel] [patch] ucomplex cln() bug
Dimitrios Apostolou
jimis at gmx.net
Tue Nov 7 23:46:19 CET 2006
Florian Klaempfl wrote:
> Dimitrios Apostolou schrieb:
>> On Friday 04 August 2006 07:58, Dimitrios Apostolou wrote:
>>> OK, I conclude. My symptoms are:
>>
>> I forgot to mention here that z=0
>>
>>> z**3-2= NanNani
>>> z*z*z-2= -2.000000000000000E+000
>>>
>>> After digging a bit I realized that this is not a problem of
>>> uComplex, but
>>> a problem of math unit. In particular exp(-Inf) returns NaN, where it
>>> should return 0.
>>
>> Hasn't anybody else the same problem? Who wrote the initial
>> implementation for fpc_exp_real?
>
> Which one :)? E.g. which platform?
>
>>
>>> Unfortunately I got really lost when studying the fpc_exp_real
>>> implementation, and when I saw that the actually used version
>>> is in assembly I just gave up!
>
> i386?
>
yes, i386. Sorry for not mentioning it.
>>>
>>> Any ideas of how it can be fixed?
>>>
>>>
>>> Thanks in advance,
>>> Dimitris
More information about the fpc-devel
mailing list