Average Error: 0.1 → 0.1
Time: 24.5s
Precision: 64
Internal precision: 128
\[x \cdot 0.5 + y \cdot \left(\left(1.0 - z\right) + \log z\right)\]
\[x \cdot 0.5 + y \cdot \left(\left(1.0 - z\right) + \log z\right)\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Target

Original0.1
Comparison0.1
Herbie0.1
\[ \left(y + 0.5 \cdot x\right) - y \cdot \left(z - \log z\right) \]

Derivation

  1. Initial program 0.1

    \[x \cdot 0.5 + y \cdot \left(\left(1.0 - z\right) + \log z\right)\]
  2. Removed slow pow expressions

Runtime

Time bar (total: 24.5s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(2194973759 2121790283 2523452924 1906265192 2717924375 3523198569)'
(FPCore (x y z)
  :name "System.Random.MWC.Distributions:gamma from mwc-random-0.13.3.2"

  :target
  (- (+ y (* 0.5 x)) (* y (- z (log z))))

  (+ (* x 0.5) (* y (+ (- 1.0 z) (log z)))))