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

◆ log1m() [6/6]

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

The log (1 - x) function for variables.

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 variable representing log of 1 minus the variable.

Definition at line 23 of file log1m.hpp.