33double ipow(
const double x,
const int64_t p) {
39 bomb(
"Floating divide by zero in ipow().", NULL);
40 return (p == 0 ? 1. : 0.);
44 return (1. /
ipow(x, -p));
64 return (hp * hp * hp);
void bomb(char *error, char *usage)
Reports error messages to the terminal and aborts the program.
double ipow(const double x, const int64_t p)
Compute x raised to the power p (x^p).