Average Error: 0.0 → 0
Time: 2.9s
Precision: 64
Internal precision: 128
\[\left(x + y\right) + x\]
\[y + 2 \cdot x\]

Error

Bits error versus x

Bits error versus y

Target

Original0.0
Comparison0
Herbie0
\[ y + 2 \cdot x \]

Derivation

  1. Initial program 0.0

    \[\left(x + y\right) + x\]
  2. Applied taylor 0

    \[\leadsto y + 2 \cdot x\]
  3. Taylor expanded around 0 0

    \[\leadsto \color{blue}{y + 2 \cdot x}\]
  4. Removed slow pow expressions

Runtime

Time bar (total: 2.9s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(485415096 1651535978 1204244621 2343127649 1712296741 3806916590)'
(FPCore (x y)
  :name "Graphics.Rendering.Plot.Render.Plot.Legend:renderLegendOutside from plot-0.2.3.4, A"

  :target
  (+ y (* 2 x))

  (+ (+ x y) x))