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

◆ hypot() [2/10]

template<typename T >
fvar< T > stan::math::hypot ( const fvar< T > &  x1,
double  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 45 of file hypot.hpp.