Average Error: 40.3 → 40.3
Time: 2.3s
Precision: binary64
\[\frac{\log \left(1 + x\right)}{x}\]
\[\frac{\log \left(1 + x\right)}{x}\]
\frac{\log \left(1 + x\right)}{x}
\frac{\log \left(1 + x\right)}{x}
double code(double x) {
	return ((double) (((double) log(((double) (1.0 + x)))) / x));
}
double code(double x) {
	return ((double) (((double) log(((double) (1.0 + x)))) / x));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 40.3

    \[\frac{\log \left(1 + x\right)}{x}\]
  2. Final simplification40.3

    \[\leadsto \frac{\log \left(1 + x\right)}{x}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(/ (log (+ 1 x)) x)"
  :precision binary64
  (/ (log (+ 1.0 x)) x))