![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
Return the base 10 logarithm of the arithmetic argument.
Return the base 10 log of the specified variable (cmath).
Return the base 10 logarithm of the complex argument.
V | Arithmetic argument |
[in] | x | argument |
V | complex<Arithmetic> argument |
[in] | x | argument |
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. |