1 #ifndef STAN_MATH_PRIM_SCAL_FUN_INC_BETA_DERIVATIVES_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_INC_BETA_DERIVATIVES_HPP
6 #include <boost/math/special_functions/beta.hpp>
30 return exp((b - 1) *
log(1 - z) + (a - 1) *
log(z)
36 using boost::math::ibeta_derivative;
37 return ibeta_derivative(a, b, z);
fvar< T > lgamma(const fvar< T > &x)
fvar< T > log(const fvar< T > &x)
T inc_beta_ddz(T a, T b, T z)
Returns the partial derivative of the regularized incomplete beta function, I_{z}(a, b) with respect to z.
fvar< T > exp(const fvar< T > &x)