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

◆ hypot() [9/10]

var stan::math::hypot ( const var a,
double  b 
)
inline

Returns the length of the hypotenuse of a right triangle with sides of the specified lengths (C99).

The derivative is

\(\frac{d}{d x} \sqrt{x^2 + c^2} = \frac{x}{\sqrt{x^2 + c^2}}\).

Parameters
[in]aLength of first side.
[in]bLength of second side.
Returns
Length of hypotenuse.

Definition at line 46 of file hypot.hpp.