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

◆ lbeta() [9/10]

var stan::math::lbeta ( const var a,
double  b 
)
inline

Returns the natural logarithm of the beta function and its gradients.

\[ \mathrm{lbeta}(a,b) = \ln\left(B\left(a,b\right)\right) \]

\[ \frac{\partial }{\partial a} = \psi^{\left(0\right)}\left(a\right) - \psi^{\left(0\right)}\left(a + b\right) \]

Parameters
avar Argument
bdouble Argument
Returns
Result of log beta function

Definition at line 83 of file lbeta.hpp.