1 #ifndef STAN_MATH_PRIM_SCAL_FUN_CBRT_HPP 2 #define STAN_MATH_PRIM_SCAL_FUN_CBRT_HPP 8 #include <boost/math/special_functions/cbrt.hpp> 20 inline double cbrt(
double x) {
35 inline double cbrt(
int x) {
36 return cbrt(static_cast<double>(x));
const double NOT_A_NUMBER
(Quiet) not-a-number value.
fvar< T > cbrt(const fvar< T > &x)
Return cube root of specified argument.
int is_inf(const fvar< T > &x)
Returns 1 if the input's value is infinite and 0 otherwise.
const double INFTY
Positive infinity.
boost::math::policies::policy< boost::math::policies::overflow_error< boost::math::policies::errno_on_error >, boost::math::policies::pole_error< boost::math::policies::errno_on_error > > boost_policy_t
Boost policy that overrides the defaults to match the built-in C++ standard library functions...
int is_nan(const fvar< T > &x)
Returns 1 if the input's value is NaN and 0 otherwise.
const double NEGATIVE_INFTY
Negative infinity.
var cbrt(const var &a)
Returns the cube root of the specified variable (C99).