Average Error: 38.9 → 38.9
Time: 2.8s
Precision: binary64
\[\log \left(x \cdot 99999 + \left(1 - x\right)\right)\]
\[\log \left(x \cdot 99999 + \left(1 - x\right)\right)\]
\log \left(x \cdot 99999 + \left(1 - x\right)\right)
\log \left(x \cdot 99999 + \left(1 - x\right)\right)
double code(double x) {
	return ((double) log(((double) (((double) (x * 99999.0)) + ((double) (1.0 - x))))));
}
double code(double x) {
	return ((double) log(((double) (((double) (x * 99999.0)) + ((double) (1.0 - x))))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 38.9

    \[\log \left(x \cdot 99999 + \left(1 - x\right)\right)\]
  2. Final simplification38.9

    \[\leadsto \log \left(x \cdot 99999 + \left(1 - x\right)\right)\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(log (+ (* x 99999) (- 1 x)))"
  :precision binary64
  (log (+ (* x 99999.0) (- 1.0 x))))