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

◆ log1p() [7/7]

template<typename T , require_stan_scalar_or_eigen_t< T > * = nullptr>
auto stan::math::log1p ( const var_value< T > &  a)
inline

The log (1 + x) function for variables (C99).

The derivative is given by

\(\frac{d}{dx} \log (1 + x) = \frac{1}{1 + x}\).

Template Parameters
TArithmetic or a type inheriting from EigenBase.
Parameters
aThe variable.
Returns
The log of 1 plus the variable.

Definition at line 23 of file log1p.hpp.