[fpc-devel] [patch] ucomplex cln() bug

Dimitrios Apostolou jimis at gmx.net
Tue Nov 7 20:47:49 CET 2006


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?

> 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!
>
> Any ideas of how it can be fixed?
>
>
> Thanks in advance,
> Dimitris



More information about the fpc-devel mailing list