Average Error: 0.1 → 0.1
Time: 1.1m
Precision: binary64
\[\mathsf{lgamma} \left( x \right)\]
\[\mathsf{lgamma} \left( x \right)\]
\mathsf{lgamma} \left( x \right)
\mathsf{lgamma} \left( x \right)
double code(double x) {
	return ((double) lgamma(x));
}
double code(double x) {
	return ((double) lgamma(x));
}

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 2020152 
(FPCore (x)
  :name "(lgamma x)"
  :precision binary64
  (lgamma x))