Average Error: 39.0 → 39.0
Time: 2.9s
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 39.0

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

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

Reproduce

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