9 * r = sqrt(square(a) + square(b))
12 * r = sqrt(a^2 + b^2) without under/overflow.
14 function hypo($a, $b) {
15 if (abs($a) > abs($b)) {
17 $r = abs($a) * sqrt(1 +
$r * $r);
20 $r = abs($b) * sqrt(1 +
$r * $r);
29 * Mike Bommarito's version.
30 * Compute n-dimensional hyotheneuse.
34 foreach (func_get_args() as $d) {
38 throw new PHPExcel_Calculation_Exception(JAMAError(ArgumentTypeException));