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

◆ beta() [8/13]

var stan::math::beta ( const var a,
const var b 
)
inline

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) \]

Parameters
avar Argument
bvar Argument
Returns
Result of beta function

Definition at line 37 of file beta.hpp.