Average Error: 0.0 → 0.0
Time: 3.1s
Precision: 64
Internal precision: 128
\[0.5 \cdot \left(x \cdot x - y\right)\]
\[0.5 \cdot \left({x}^2 - y\right)\]

Error

Bits error versus x

Bits error versus y

Target

Original0.0
Comparison0.0
Herbie0.0
\[ 0.5 \cdot \left({x}^2 - y\right) \]

Derivation

  1. Initial program 0.0

    \[0.5 \cdot \left(x \cdot x - y\right)\]
  2. Applied simplify 0.0

    \[\leadsto \color{blue}{0.5 \cdot \left({x}^2 - y\right)}\]
  3. Removed slow pow expressions

Runtime

Time bar (total: 3.1s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(2475049247 3607120514 2057718069 2451672365 2942584016 244245792)'
(FPCore (x y)
  :name "System.Random.MWC.Distributions:standard from mwc-random-0.13.3.2"

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

  (* 0.5 (- (* x x) y)))