Average Error: 58.6 → 58.6
Time: 3.0s
Precision: binary64
\[\log x - \log \left(x + \log x\right)\]
\[\log x - \log \left(x + \log x\right)\]
\log x - \log \left(x + \log x\right)
\log x - \log \left(x + \log x\right)
double code(double x) {
	return ((double) (((double) log(x)) - ((double) log(((double) (x + ((double) log(x))))))));
}
double code(double x) {
	return ((double) (((double) log(x)) - ((double) log(((double) (x + ((double) log(x))))))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 58.6

    \[\log x - \log \left(x + \log x\right)\]
  2. Final simplification58.6

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

Reproduce

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