17 constexpr double PI = std::numbers::pi;
19 inline int sign(
double x)
21 return (x > 0) ? 1 : ((x < 0) ? -1 : 0);
29 inline double pow(
double v,
double p)
31 return v < 0 ? -std::pow(-v,p) : std::
pow(v,p);
34 inline double root(
double v,
double p)
Interval pow(const Interval &x, int n)
Returns , .
Definition codac2_Interval_operations_impl.h:33
Interval root(const Interval &x, int p)
Returns the p-th root: .
Definition codac2_Interval_operations_impl.h:60
Interval integer(const Interval &x)
Returns the largest integer interval included in .
Definition codac2_Interval_operations_impl.h:284
Interval sign(const Interval &x)
Returns .
Definition codac2_Interval_operations_impl.h:279