Stan Math Library
5.0.0
Automatic Differentiation
|
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}}\).
[in] | a | Length of first side. |
[in] | b | Length of second side. |