Stan Math Library  2.12.0
reverse mode automatic differentiation
log1m.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_FUN_LOG1M_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_LOG1M_HPP
3 
5 
6 namespace stan {
7  namespace math {
8 
37  inline double log1m(const double x) {
38  return log1p(-x);
39  }
40 
41  }
42 }
43 
44 #endif
fvar< T > log1p(const fvar< T > &x)
Definition: log1p.hpp:15
fvar< T > log1m(const fvar< T > &x)
Definition: log1m.hpp:15

     [ Stan Home Page ] © 2011–2016, Stan Development Team.