Average Error: 0.1 → 0.1
Time: 29.3s
Precision: 64
\[\mathsf{lgamma} \left( x \right)\]
\[\mathsf{lgamma} \left( x \right)\]
\mathsf{lgamma} \left( x \right)
\mathsf{lgamma} \left( x \right)
double f(double x) {
        double r1911002 = x;
        double r1911003 = lgamma(r1911002);
        return r1911003;
}

double f(double x) {
        double r1911004 = x;
        double r1911005 = lgamma(r1911004);
        return r1911005;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[\mathsf{lgamma} \left( x \right)\]
  2. Final simplification0.1

    \[\leadsto \mathsf{lgamma} \left( x \right)\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "lgamma(x)"
  :precision binary64
  (lgamma x))