Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ hypot() [6/10]

template<typename T1 , typename T2 , require_all_arithmetic_t< T1, T2 > * = nullptr>
double stan::math::hypot ( T1  x,
T2  y 
)
inline

Return the length of the hypotenuse of a right triangle with opposite and adjacent side lengths given by the specified arguments (C++11).

In symbols, if the arguments are x and y, the result is sqrt(x * x + y * y).

Parameters
xFirst argument.
ySecond argument.
Returns
Length of hypotenuse of right triangle with opposite and adjacent side lengths x and y.

Definition at line 24 of file hypot.hpp.