Average Error: 51.4 → 51.4
Time: 2.6s
Precision: binary64
\[\frac{\log \left(1 + x\right) - x}{x \cdot x}\]
\[\frac{\log \left(1 + x\right) - x}{x \cdot x}\]
\frac{\log \left(1 + x\right) - x}{x \cdot x}
\frac{\log \left(1 + x\right) - x}{x \cdot x}
double code(double x) {
	return ((double) (((double) (((double) log(((double) (1.0 + x)))) - x)) / ((double) (x * x))));
}
double code(double x) {
	return ((double) (((double) (((double) log(((double) (1.0 + x)))) - x)) / ((double) (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 51.4

    \[\frac{\log \left(1 + x\right) - x}{x \cdot x}\]
  2. Final simplification51.4

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

Reproduce

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