0.0 ** 2 and pow(0.0,0.5) give different results

From: Louis Frayser (frayser@Earthlink.NET)
Date: Wed Apr 23 1997 - 09:40:46 MEST


Using ** as the operator for eponentiation on zero gives me NaN, 
while pow() works as expected.

Is this a bug in cint?
Come to think of it, ** isn't really c or C++, but it generally seems to
be a substitute for pow().  
Does ** work this way (0.0 ** 2 = NaN) in FORTRAN?

Thanks.


root [1] 0.0**2
(double)         NaN
root [2] (0.0)**2
(double)         NaN
root [3] pow(0.0,.5)
(double)0.000000000000e+00
root [4] 

-Louis

   _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
  _/ mailto:frayser@earthlink.net     _/ LFrayser@msn.com   _/
 _/http://www.earthlink.net/~frayser _/ LFrayser@candle.com_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:18 MET