Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return the base 10 log of the specified variable (cmath).
The derivative is defined by
\(\frac{d}{dx} \log_{10} x = \frac{1}{x \log 10}\).
\[ \mbox{log10}(x) = \begin{cases} \textrm{NaN} & \mbox{if } x < 0\\ \log_{10}(x) & \mbox{if } x \geq 0 \\[6pt] \textrm{NaN} & \mbox{if } x = \textrm{NaN} \end{cases} \]
\[ \frac{\partial\, \mbox{log10}(x)}{\partial x} = \begin{cases} \textrm{NaN} & \mbox{if } x < 0\\ \frac{1}{x \ln10} & \mbox{if } x\geq 0 \\[6pt] \textrm{NaN} & \mbox{if } x = \textrm{NaN} \end{cases} \]
T | Arithmetic or a type inheriting from EigenBase . |
a | Variable whose log is taken. |