Average Error: 0.1 → 0.1
Time: 21.5s
Precision: 64
Internal precision: 128
\[x + \frac{x - y}{2.0}\]
\[x + \frac{x - y}{2.0}\]

Error

Bits error versus x

Bits error versus y

Target

Original0.1
Comparison0.1
Herbie0.1
\[ 1.5 \cdot x - 0.5 \cdot y \]

Derivation

  1. Initial program 0.1

    \[x + \frac{x - y}{2.0}\]
  2. Removed slow pow expressions

Runtime

Time bar (total: 21.5s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(1923937170 1481228087 4057085507 2854397729 490425570 2353965840)'
(FPCore (x y)
  :name "Graphics.Rendering.Chart.Axis.Types:hBufferRect from Chart-1.5.3"

  :target
  (- (* 1.5 x) (* 0.5 y))

  (+ x (/ (- x y) 2.0)))