Average Error: 0.5 → 0.5
Time: 17.5s
Precision: binary64
\[\]
\[\]

Error

Bits error versus x1

Bits error versus x2

Derivation

  1. Initial program 0.5

    \[\]
  2. Using strategy rm
  3. Applied sub-neg0.5

    \[\leadsto \]
  4. Applied distribute-lft-in0.5

    \[\leadsto \]
  5. Simplified0.5

    \[\leadsto \]
  6. Simplified0.5

    \[\leadsto \]
  7. Final simplification0.5

    \[\leadsto \]

Reproduce

herbie shell --seed 2020180 
(FPCore (x1 x2)
  :name "Rosa's FloatVsDoubleBenchmark"
  :precision binary64
  (+ x1 (+ (+ (+ (+ (* (+ (* (* (* 2.0 x1) (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0))) (- (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)) 3.0)) (* (* x1 x1) (- (* 4.0 (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0))) 6.0))) (+ (* x1 x1) 1.0)) (* (* (* 3.0 x1) x1) (/ (- (+ (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0)))) (* (* x1 x1) x1)) x1) (* 3.0 (/ (- (- (* (* 3.0 x1) x1) (* 2.0 x2)) x1) (+ (* x1 x1) 1.0))))))