** operators

From: Masaharu Goto (gotom@hpysol2.jpn.hp.com)
Date: Fri Apr 25 1997 - 03:14:48 MEST


About the power opeartor ** ,

 First, power operator ('**' and '@') is a special enhancement of cint for
 convenience of scientific calculation. Standard C/C++ does not have this 
 operator.

 The way it is implemented in cint is

     left ** right      =>     exp(right*log(left))
 
 So, when you have left==0, log(0.0) behaves differently on each system.
 I should have detect left==0 and left<0. 

Masaharu Goto



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