Average Error: 0.0 → 0.0
Time: 16.1s
Precision: 64
Internal precision: 128
\[\left(x \cdot \left(y - 1.0\right) - y \cdot 0.5\right) + 0.918938533204673\]
\[\left(\left(x \cdot y + x \cdot \left(-1.0\right)\right) - y \cdot 0.5\right) + 0.918938533204673\]

Error

Bits error versus x

Bits error versus y

Target

Original0.0
Comparison0.0
Herbie0.0
\[ \left(x \cdot \left(y - 1.0\right) - y \cdot 0.5\right) + 0.918938533204673 \]

Derivation

  1. Initial program 0.0

    \[\left(x \cdot \left(y - 1.0\right) - y \cdot 0.5\right) + 0.918938533204673\]
  2. Using strategy rm
  3. Applied sub-neg 0.0

    \[\leadsto \left(x \cdot \color{blue}{\left(y + \left(-1.0\right)\right)} - y \cdot 0.5\right) + 0.918938533204673\]
  4. Applied distribute-lft-in 0.0

    \[\leadsto \left(\color{blue}{\left(x \cdot y + x \cdot \left(-1.0\right)\right)} - y \cdot 0.5\right) + 0.918938533204673\]
  5. Removed slow pow expressions

Runtime

Time bar (total: 16.1s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(3898998700 3716436246 3776927303 453182967 3367537094 4278533415)'
(FPCore (x y)
  :name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, A"

  :target
  (+ (- (* x (- y 1.0)) (* y 0.5)) 0.918938533204673)

  (+ (- (* x (- y 1.0)) (* y 0.5)) 0.918938533204673))