Stan Math Library
5.0.0
Automatic Differentiation
|
Returns the beta function and gradient for first var input.
\[ \mathrm{beta}(a,b) = \left(B\left(a,b\right)\right) \]
\[ \frac{\partial }{\partial a} = \left(\psi^{\left(0\right)}\left(a\right) - \psi^{\left(0\right)} \left(a + b\right)\right) \mathrm{beta}(a,b) \]
a | var Argument |
b | double Argument |