Barry wrote:

> jacob navia wrote:

>> Hi

>>

>> Has C++ defined the function

>> isnan() for complex numbers?

>> What is the definition?

>>

>> Thanks in advance

>

> /isnan/ is a macro in C99, still not in the current C++03 standard.

>

> Synopsis:

> #include <math.h>

> int isnan(real-floating x);

>
In C99 this is ONLY defined for real types. No definition for

complex types. What is the definition in C++?

is it

insan(z) --> isnan(real(z) || isnan(imag(z)

or

insan(z) --> isnan(real(z) && isnan(imag(z)

???

The same problem appears for

isinf()

--

jacob navia

jacob at jacob point remcomp point fr

logiciels/informatique

http://www.cs.virginia.edu/~lcc-win32