Sdílet prostřednictvím


StrictMath.Hypot(Double, Double) Method

Definition

Returns sqrt(x<sup>2</sup>&nbsp;+y<sup>2</sup>) without intermediate overflow or underflow.

[Android.Runtime.Register("hypot", "(DD)D", "")]
public static double Hypot (double x, double y);
[<Android.Runtime.Register("hypot", "(DD)D", "")>]
static member Hypot : double * double -> double

Parameters

x
Double

a value

y
Double

a value

Returns

sqrt(x<sup>2</sup>&nbsp;+y<sup>2</sup>) without intermediate overflow or underflow

Attributes

Remarks

Returns sqrt(x<sup>2</sup>&nbsp;+y<sup>2</sup>) without intermediate overflow or underflow.

Special cases: <ul>

<li> If either argument is infinite, then the result is positive infinity.

<li> If either argument is NaN and neither argument is infinite, then the result is NaN.

<li> If both arguments are zero, the result is positive zero. </ul>

Added in 1.5.

Java documentation for java.lang.StrictMath.hypot(double, double).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to