ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
Maths.php File Reference

Go to the source code of this file.

Namespaces

namespace  JAMA
 Cholesky decomposition class.

Functions

 hypo ($a, $b)

Function Documentation

hypo (   $a,
  $b 
)

Definition at line 14 of file Maths.php.

References elseif().

Referenced by QRDecomposition\__construct(), SingularValueDecomposition\__construct(), Matrix\normF(), and EigenvalueDecomposition\tql2().

{
if (abs($a) > abs($b)) {
$r = $b / $a;
$r = abs($a) * sqrt(1 + $r * $r);
} elseif ($b != 0) {
$r = $a / $b;
$r = abs($b) * sqrt(1 + $r * $r);
} else {
$r = 0.0;
}
return $r;
} // function hypo()

+ Here is the call graph for this function:

+ Here is the caller graph for this function: