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

◆ hypot() [3/10]

template<typename T >
fvar< T > stan::math::hypot ( double  x1,
const fvar< T > &  x2 
)
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 1 and x2, the result is sqrt(x1 * x1 + x2 * x2).

Template Parameters
Tinner type of the fvar
Parameters
x1First argument.
x2Second argument.
Returns
Length of hypotenuse of right triangle with opposite and adjacent side lengths x1 and x2.

Definition at line 66 of file hypot.hpp.