Average Error: 56.5 → 0
Time: 3.9s
Precision: binary64
\[\log \left(e^{x} \cdot e^{y}\right)\]
\[x + y\]
\log \left(e^{x} \cdot e^{y}\right)
x + y
double code(double x, double y) {
	return ((double) log(((double) (((double) exp(x)) * ((double) exp(y))))));
}
double code(double x, double y) {
	return ((double) (x + y));
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 56.5

    \[\log \left(e^{x} \cdot e^{y}\right)\]
  2. Simplified0

    \[\leadsto \color{blue}{x + y}\]
  3. Final simplification0

    \[\leadsto x + y\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x y)
  :name "(log (* (exp x) (exp y)))"
  :precision binary64
  (log (* (exp x) (exp y))))