Stan Math Library  2.9.0
reverse mode automatic differentiation
ibeta.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_FUN_IBETA_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_IBETA_HPP
3 
4 #include <boost/math/special_functions/beta.hpp>
6 
7 namespace stan {
8  namespace math {
9 
23  inline double ibeta(const double a,
24  const double b,
25  const double x) {
27 
28  check_not_nan("ibeta", "a", a);
29  check_not_nan("ibeta", "b", b);
30  check_not_nan("ibeta", "x", x);
31  return boost::math::ibeta(a, b, x);
32  }
33 
34  }
35 }
36 
37 #endif
double ibeta(const double a, const double b, const double x)
The normalized incomplete beta function of a, b, and x.
Definition: ibeta.hpp:23
bool check_not_nan(const char *function, const char *name, const T_y &y)
Return true if y is not NaN.
var ibeta(const var &a, const var &b, const var &x)
The normalized incomplete beta function of a, b, and x.
Definition: ibeta.hpp:238

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