Stan Math Library  2.8.0
reverse mode automatic differentiation
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
Namespaces | Functions
log_falling_factorial.hpp File Reference
#include <stan/math/prim/scal/fun/lgamma.hpp>

Go to the source code of this file.

Namespaces

 stan
 
 stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T1 , typename T2 >
boost::math::tools::promote_args
< T1, T2 >::type 
stan::math::log_falling_factorial (const T1 x, const T2 n)
 

\[ \mbox{log\_falling\_factorial}(x, n) = \begin{cases} \textrm{error} & \mbox{if } x \leq 0\\ \ln (x)_n & \mbox{if } x > 0 \textrm{ and } -\infty \leq n \leq \infty \\[6pt] \textrm{NaN} & \mbox{if } x = \textrm{NaN or } n = \textrm{NaN} \end{cases} \]

More...
 

     [ Stan Home Page ] © 2011–2015, Stan Development Team.