note 25365 rejected from function.hypot by nicos

From: Date: Fri, 20 Sep 2002 17:26:04 +0000
Subject: note 25365 rejected from function.hypot by nicos
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-37060@lists.php.net to get a copy of this message
When available, this function (hypot) is highly preferable to the roll-your-own version of function hypot2($x, $y) { return sqrt($x*$x + $y*$y); } because it potentially takes care of underflow, overflow, accuracy, and, possibly, efficiency issues which the above does not.

« previous php.notes (#37060) next »