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

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 33.4

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

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

Reproduce

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