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

◆ atan2() [7/11]

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

Return the principal value of the arc tangent, in radians, of the first variable divided by the second scalar (cmath).

The derivative with respect to the variable is

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

Parameters
aNumerator variable.
bDenominator scalar.
Returns
The arc tangent of the fraction, in radians.

Definition at line 49 of file atan2.hpp.