This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Change definition of complex::norm


> |  is
> | that the formula
> | 
> | norm(z) = real(z)^2 + imag(z)^2
> | 
> | does give good relative error for normal results, and good absolute
> | error for denormal results.
> 
> This isn't the case in the test you posted.  Did I misread it?

This *is* the case for the test I posted.  The difference between
0 and 4.whatever\times e-324 is within the absolute error of
denormal results.

Brad


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]