de.lmu.ifi.dbs.elki.math
Class Mathutil
java.lang.Object
de.lmu.ifi.dbs.elki.math.Mathutil
public class Mathutil
- extends Object
Method Summary |
static double |
hypotenuse(double a,
double b)
Computes the squareroot of the sum of the squared arguments
without under or overflow. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Mathutil
public Mathutil()
hypotenuse
public static double hypotenuse(double a,
double b)
- Computes the squareroot of the sum of the squared arguments
without under or overflow.
- Parameters:
a
- first cathetusb
- second cathetus
- Returns:
sqrt(a<sup>2</sup> + b<sup>2</sup>)