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

◆ fmod() [10/10]

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

Return the floating point remainder after dividing the first scalar by the second variable (cmath).

The derivative with respect to the variable is

\(\frac{d}{d y} \mbox{fmod}(c, y) = -\lfloor \frac{c}{y} \rfloor\).

Parameters
aFirst scalar.
bSecond variable.
Returns
Floating pointer remainder of dividing first scalar by the second variable.

Definition at line 134 of file fmod.hpp.