ILIAS  eassessment Revision 61809
 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.

Referenced by PHPExcel_Shared_JAMA_QRDecomposition\__construct(), SingularValueDecomposition\__construct(), 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 caller graph for this function: