Average Error: 0.9 → 0.9
Time: 1.3s
Precision: binary64
\[e^{log \cdot a + log \cdot b}\]
\[e^{log \cdot a + log \cdot b}\]
e^{log \cdot a + log \cdot b}
e^{log \cdot a + log \cdot b}
double code(double log, double a, double b) {
	return ((double) exp(((double) (((double) (log * a)) + ((double) (log * b))))));
}
double code(double log, double a, double b) {
	return ((double) exp(((double) (((double) (log * a)) + ((double) (log * b))))));
}

Error

Bits error versus log

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.9

    \[e^{log \cdot a + log \cdot b}\]
  2. Final simplification0.9

    \[\leadsto e^{log \cdot a + log \cdot b}\]

Reproduce

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