ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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()

hypo (   $a,
  $b 
)

Definition at line 14 of file Maths.php.

14 {
15 if (abs($a) > abs($b)) {
16 $r = $b / $a;
17 $r = abs($a) * sqrt(1 + $r * $r);
18 } elseif ($b != 0) {
19 $r = $a / $b;
20 $r = abs($b) * sqrt(1 + $r * $r);
21 } else {
22 $r = 0.0;
23 }
24 return $r;
25} // function hypo()
$r
Definition: example_031.php:79

References $r.

Referenced by PHPExcel_Shared_JAMA_QRDecomposition\__construct(), SingularValueDecomposition\__construct(), and EigenvalueDecomposition\tql2().

+ Here is the caller graph for this function: