Average Error: 5.7 → 0
Time: 8.0s
Precision: 64
Internal Precision: 576
\[e^{\log a + \log b}\]
\[b \cdot a\]

Error

Bits error versus a

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original5.7
Target0
Herbie0
\[a \cdot b\]

Derivation

  1. Initial program 5.7

    \[e^{\log a + \log b}\]
  2. Initial simplification0

    \[\leadsto a \cdot b\]
  3. Final simplification0

    \[\leadsto b \cdot a\]

Runtime

Time bar (total: 8.0s)Debug logProfile

herbie shell --seed 2018215 +o rules:numerics
(FPCore (a b)
  :name "Exp of sum of logs"

  :herbie-target
  (* a b)

  (exp (+ (log a) (log b))))