Average Error: 0.0 → 0.0
Time: 4.1s
Precision: 64
Internal precision: 128
\[x \cdot x + y \cdot y\]
\[{y}^2 + {x}^2\]

Error

Bits error versus x

Bits error versus y

Target

Original0.0
Comparison0.0
Herbie0.0
\[ {x}^2 + {y}^2 \]

Derivation

  1. Initial program 0.0

    \[x \cdot x + y \cdot y\]
  2. Applied simplify 0.0

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

Runtime

Time bar (total: 4.1s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(3485898271 2550835786 770948559 1256399895 1055152923 4096069926)'
(FPCore (x y)
  :name "Graphics.Rasterific.Linear:$cquadrance from Rasterific-0.6.1"

  :target
  (+ (sqr x) (sqr y))

  (+ (* x x) (* y y)))