Stan Math Library
4.9.0
Automatic Differentiation
|
Returns the beta function and gradients for two var inputs.
\[ \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) \]
\[ \frac{\partial }{\partial b} = \left(\psi^{\left(0\right)}\left(b\right) - \psi^{\left(0\right)} \left(a + b\right)\right) \mathrm{beta}(a,b) \]
a | var Argument |
b | var Argument |