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

◆ sin() [7/9]

var stan::math::sin ( const var a)
inline

Return the sine of a radian-scaled variable (cmath).

The derivative is defined by

\(\frac{d}{dx} \sin x = \cos x\).

\[ \mbox{sin}(x) = \begin{cases} \sin(x) & \mbox{if } -\infty\leq x \leq \infty \\[6pt] \textrm{NaN} & \mbox{if } x = \textrm{NaN} \end{cases} \]

\[ \frac{\partial\, \mbox{sin}(x)}{\partial x} = \begin{cases} \cos(x) & \mbox{if } -\infty\leq x\leq \infty \\[6pt] \textrm{NaN} & \mbox{if } x = \textrm{NaN} \end{cases} \]

Parameters
aVariable for radians of angle.
Returns
Sine of variable.

Definition at line 46 of file sin.hpp.