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

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.3

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

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

Reproduce

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