Re: math functions. These functions are non standard

Rene Brun (Rene.Brun@cern.ch)
Wed, 14 May 1997 16:18:06 +0200


Joerg Guenther wrote:
>
> Hi
>
> I'm trying to use the isinf and isnan functions to check the validity of
> some variables in a root macro. Both functions are not known, even though
> the ROOTSYS environment variable is correctly set (math.h is explicitly
> included in the macro). The TMath class does not contain either function.
> How can I tell root to use the right include files?

Looking more carefully in the man pages (thanks Olivier), we read:
isinf() and isinff() are not specified by any standard, but isinff()
is named in accordance with the conventions specified in the "Future
Library Directions" section of the ANSI C standard.

Same for isnam

Rene Brun