Stan Math Library  2.20.0
reverse mode automatic differentiation
inv_cloglog.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_FUN_INV_CLOGLOG_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_INV_CLOGLOG_HPP
3 
5 #include <cmath>
6 
7 namespace stan {
8 namespace math {
9 
48 inline double inv_cloglog(double x) {
49  using std::exp;
50  return 1 - exp(-exp(x));
51 }
52 
53 } // namespace math
54 } // namespace stan
55 
56 #endif
fvar< T > exp(const fvar< T > &x)
Definition: exp.hpp:11
fvar< T > inv_cloglog(const fvar< T > &x)
Definition: inv_cloglog.hpp:12

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