Average Error: 0.6 → 0.6
Time: 2.0s
Precision: binary64
\[\log a + \log b\]
\[\log a + \log b\]
\log a + \log b
\log a + \log b
double code(double a, double b) {
	return ((double) (((double) log(a)) + ((double) log(b))));
}
double code(double a, double b) {
	return ((double) (((double) log(a)) + ((double) log(b))));
}

Error

Bits error versus a

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.6

    \[\log a + \log b\]
  2. Final simplification0.6

    \[\leadsto \log a + \log b\]

Reproduce

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