# Timeout in 2.5m

Use the --timeout flag to change the timeout.

$\frac{n - e^{\mathsf{lgamma} \left( n + r \right) - \left(\mathsf{lgamma} \left( n \right) + \mathsf{lgamma} \left( r \right)\right)}}{1 - r}$
\frac{n - e^{\mathsf{lgamma} \left( n + r \right) - \left(\mathsf{lgamma} \left( n \right) + \mathsf{lgamma} \left( r \right)\right)}}{1 - r}
double f(double n, double r) {
double r835479 = n;
double r835480 = r;
double r835481 = r835479 + r835480;
double r835482 = lgamma(r835481);
double r835483 = lgamma(r835479);
double r835484 = lgamma(r835480);
double r835485 = r835483 + r835484;
double r835486 = r835482 - r835485;
double r835487 = exp(r835486);
double r835488 = r835479 - r835487;
double r835489 = 1.0;
double r835490 = r835489 - r835480;
double r835491 = r835488 / r835490;
return r835491;
}

# Reproduce

herbie shell --seed 1
(FPCore (n r)
:name "(n-exp(lgamma(n+r)-(lgamma(n)+lgamma(r))))/(1-r)"
:precision binary64
(/ (- n (exp (- (lgamma (+ n r)) (+ (lgamma n) (lgamma r))))) (- 1 r)))