hypot

Computes the hypothenus of two FP numbers.

This function requires the SSE2 instruction set and it can't be inlined.

extern (C)
T
hypot
pure @trusted nothrow
(
T
)
(
T x
,
T y
)

Parameters

x
Type: T

Either a float or a double.

y
Type: T

Either a float or a double.

Return Value

Type: T

A floating point value of type T.

Examples

assert(hypot(3.0,4.0) == 5.0);
assert(hypot(3.0f,4.0f) == 5.0f);

Meta