Average Error: 0.5 → 0.3
Time: 7.7m
Precision: 64
Internal Precision: 1344
\[x1 + \left(\left(\left(\left(\left(\left(\left(2 \cdot x1\right) \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right) \cdot \left(\frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} - 3\right) + \left(x1 \cdot x1\right) \cdot \left(4 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} - 6\right)\right) \cdot \left(x1 \cdot x1 + 1\right) + \left(\left(3 \cdot x1\right) \cdot x1\right) \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right) + \left(x1 \cdot x1\right) \cdot x1\right) + x1\right) + 3 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 - 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right)\]
\[(\left((\left(x1 \cdot x1\right) \cdot \left(\frac{4}{(x1 \cdot x1 + 1)_*} \cdot (x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_* - 6\right) + \left(\left(\frac{2 \cdot x1}{(x1 \cdot x1 + 1)_*} \cdot (x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_*\right) \cdot \left(\left(\frac{(\left(x1 \cdot x1\right) \cdot 3 + \left(x2 \cdot 2\right))_*}{(x1 \cdot x1 + 1)_*} - \left(\frac{x1}{(x1 \cdot x1 + 1)_*} + 3\right)\right) + 0\right)\right))_*\right) \cdot \left((x1 \cdot x1 + 1)_*\right) + \left((\left(\frac{(x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_*}{(x1 \cdot x1 + 1)_*}\right) \cdot \left(\left(x1 \cdot x1\right) \cdot 3\right) + \left((x1 \cdot \left(x1 \cdot x1\right) + x1)_*\right))_*\right))_* + (3 \cdot \left(\frac{\left(x1 \cdot x1\right) \cdot 3 - (x2 \cdot 2 + x1)_*}{(x1 \cdot x1 + 1)_*}\right) + x1)_*\]

Error

Bits error versus x1

Bits error versus x2

Derivation

  1. Initial program 0.5

    \[x1 + \left(\left(\left(\left(\left(\left(\left(2 \cdot x1\right) \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right) \cdot \left(\frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} - 3\right) + \left(x1 \cdot x1\right) \cdot \left(4 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1} - 6\right)\right) \cdot \left(x1 \cdot x1 + 1\right) + \left(\left(3 \cdot x1\right) \cdot x1\right) \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 + 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right) + \left(x1 \cdot x1\right) \cdot x1\right) + x1\right) + 3 \cdot \frac{\left(\left(3 \cdot x1\right) \cdot x1 - 2 \cdot x2\right) - x1}{x1 \cdot x1 + 1}\right)\]
  2. Applied simplify0.3

    \[\leadsto \color{blue}{(\left((\left(x1 \cdot x1\right) \cdot \left(\frac{4}{(x1 \cdot x1 + 1)_*} \cdot (x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_* - 6\right) + \left(\left(\frac{2 \cdot x1}{(x1 \cdot x1 + 1)_*} \cdot (x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_*\right) \cdot \left(\frac{(x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2\right))_*}{(x1 \cdot x1 + 1)_*} - \left(3 + \frac{x1}{(x1 \cdot x1 + 1)_*}\right)\right)\right))_*\right) \cdot \left((x1 \cdot x1 + 1)_*\right) + \left((\left(\frac{(x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_*}{(x1 \cdot x1 + 1)_*}\right) \cdot \left(\left(x1 \cdot x1\right) \cdot 3\right) + \left((x1 \cdot \left(x1 \cdot x1\right) + x1)_*\right))_*\right))_* + (3 \cdot \left(\frac{\left(x1 \cdot x1\right) \cdot 3 - (x2 \cdot 2 + x1)_*}{(x1 \cdot x1 + 1)_*}\right) + x1)_*}\]
  3. Using strategy rm
  4. Applied add-sqr-sqrt0.3

    \[\leadsto (\left((\left(x1 \cdot x1\right) \cdot \left(\frac{4}{(x1 \cdot x1 + 1)_*} \cdot (x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_* - 6\right) + \left(\left(\frac{2 \cdot x1}{(x1 \cdot x1 + 1)_*} \cdot (x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_*\right) \cdot \left(\frac{(x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2\right))_*}{(x1 \cdot x1 + 1)_*} - \color{blue}{\sqrt{3 + \frac{x1}{(x1 \cdot x1 + 1)_*}} \cdot \sqrt{3 + \frac{x1}{(x1 \cdot x1 + 1)_*}}}\right)\right))_*\right) \cdot \left((x1 \cdot x1 + 1)_*\right) + \left((\left(\frac{(x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_*}{(x1 \cdot x1 + 1)_*}\right) \cdot \left(\left(x1 \cdot x1\right) \cdot 3\right) + \left((x1 \cdot \left(x1 \cdot x1\right) + x1)_*\right))_*\right))_* + (3 \cdot \left(\frac{\left(x1 \cdot x1\right) \cdot 3 - (x2 \cdot 2 + x1)_*}{(x1 \cdot x1 + 1)_*}\right) + x1)_*\]
  5. Applied add-cube-cbrt0.5

    \[\leadsto (\left((\left(x1 \cdot x1\right) \cdot \left(\frac{4}{(x1 \cdot x1 + 1)_*} \cdot (x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_* - 6\right) + \left(\left(\frac{2 \cdot x1}{(x1 \cdot x1 + 1)_*} \cdot (x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_*\right) \cdot \left(\color{blue}{\left(\sqrt[3]{\frac{(x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2\right))_*}{(x1 \cdot x1 + 1)_*}} \cdot \sqrt[3]{\frac{(x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2\right))_*}{(x1 \cdot x1 + 1)_*}}\right) \cdot \sqrt[3]{\frac{(x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2\right))_*}{(x1 \cdot x1 + 1)_*}}} - \sqrt{3 + \frac{x1}{(x1 \cdot x1 + 1)_*}} \cdot \sqrt{3 + \frac{x1}{(x1 \cdot x1 + 1)_*}}\right)\right))_*\right) \cdot \left((x1 \cdot x1 + 1)_*\right) + \left((\left(\frac{(x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_*}{(x1 \cdot x1 + 1)_*}\right) \cdot \left(\left(x1 \cdot x1\right) \cdot 3\right) + \left((x1 \cdot \left(x1 \cdot x1\right) + x1)_*\right))_*\right))_* + (3 \cdot \left(\frac{\left(x1 \cdot x1\right) \cdot 3 - (x2 \cdot 2 + x1)_*}{(x1 \cdot x1 + 1)_*}\right) + x1)_*\]
  6. Applied prod-diff0.4

    \[\leadsto (\left((\left(x1 \cdot x1\right) \cdot \left(\frac{4}{(x1 \cdot x1 + 1)_*} \cdot (x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_* - 6\right) + \left(\left(\frac{2 \cdot x1}{(x1 \cdot x1 + 1)_*} \cdot (x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_*\right) \cdot \color{blue}{\left((\left(\sqrt[3]{\frac{(x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2\right))_*}{(x1 \cdot x1 + 1)_*}} \cdot \sqrt[3]{\frac{(x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2\right))_*}{(x1 \cdot x1 + 1)_*}}\right) \cdot \left(\sqrt[3]{\frac{(x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2\right))_*}{(x1 \cdot x1 + 1)_*}}\right) + \left(-\sqrt{3 + \frac{x1}{(x1 \cdot x1 + 1)_*}} \cdot \sqrt{3 + \frac{x1}{(x1 \cdot x1 + 1)_*}}\right))_* + (\left(-\sqrt{3 + \frac{x1}{(x1 \cdot x1 + 1)_*}}\right) \cdot \left(\sqrt{3 + \frac{x1}{(x1 \cdot x1 + 1)_*}}\right) + \left(\sqrt{3 + \frac{x1}{(x1 \cdot x1 + 1)_*}} \cdot \sqrt{3 + \frac{x1}{(x1 \cdot x1 + 1)_*}}\right))_*\right)}\right))_*\right) \cdot \left((x1 \cdot x1 + 1)_*\right) + \left((\left(\frac{(x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_*}{(x1 \cdot x1 + 1)_*}\right) \cdot \left(\left(x1 \cdot x1\right) \cdot 3\right) + \left((x1 \cdot \left(x1 \cdot x1\right) + x1)_*\right))_*\right))_* + (3 \cdot \left(\frac{\left(x1 \cdot x1\right) \cdot 3 - (x2 \cdot 2 + x1)_*}{(x1 \cdot x1 + 1)_*}\right) + x1)_*\]
  7. Applied simplify0.3

    \[\leadsto (\left((\left(x1 \cdot x1\right) \cdot \left(\frac{4}{(x1 \cdot x1 + 1)_*} \cdot (x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_* - 6\right) + \left(\left(\frac{2 \cdot x1}{(x1 \cdot x1 + 1)_*} \cdot (x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_*\right) \cdot \left(\color{blue}{\left(\frac{(\left(x1 \cdot x1\right) \cdot 3 + \left(x2 \cdot 2\right))_*}{(x1 \cdot x1 + 1)_*} - \left(\frac{x1}{(x1 \cdot x1 + 1)_*} + 3\right)\right)} + (\left(-\sqrt{3 + \frac{x1}{(x1 \cdot x1 + 1)_*}}\right) \cdot \left(\sqrt{3 + \frac{x1}{(x1 \cdot x1 + 1)_*}}\right) + \left(\sqrt{3 + \frac{x1}{(x1 \cdot x1 + 1)_*}} \cdot \sqrt{3 + \frac{x1}{(x1 \cdot x1 + 1)_*}}\right))_*\right)\right))_*\right) \cdot \left((x1 \cdot x1 + 1)_*\right) + \left((\left(\frac{(x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_*}{(x1 \cdot x1 + 1)_*}\right) \cdot \left(\left(x1 \cdot x1\right) \cdot 3\right) + \left((x1 \cdot \left(x1 \cdot x1\right) + x1)_*\right))_*\right))_* + (3 \cdot \left(\frac{\left(x1 \cdot x1\right) \cdot 3 - (x2 \cdot 2 + x1)_*}{(x1 \cdot x1 + 1)_*}\right) + x1)_*\]
  8. Applied simplify0.3

    \[\leadsto (\left((\left(x1 \cdot x1\right) \cdot \left(\frac{4}{(x1 \cdot x1 + 1)_*} \cdot (x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_* - 6\right) + \left(\left(\frac{2 \cdot x1}{(x1 \cdot x1 + 1)_*} \cdot (x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_*\right) \cdot \left(\left(\frac{(\left(x1 \cdot x1\right) \cdot 3 + \left(x2 \cdot 2\right))_*}{(x1 \cdot x1 + 1)_*} - \left(\frac{x1}{(x1 \cdot x1 + 1)_*} + 3\right)\right) + \color{blue}{0}\right)\right))_*\right) \cdot \left((x1 \cdot x1 + 1)_*\right) + \left((\left(\frac{(x1 \cdot \left(3 \cdot x1\right) + \left(x2 \cdot 2 - x1\right))_*}{(x1 \cdot x1 + 1)_*}\right) \cdot \left(\left(x1 \cdot x1\right) \cdot 3\right) + \left((x1 \cdot \left(x1 \cdot x1\right) + x1)_*\right))_*\right))_* + (3 \cdot \left(\frac{\left(x1 \cdot x1\right) \cdot 3 - (x2 \cdot 2 + x1)_*}{(x1 \cdot x1 + 1)_*}\right) + x1)_*\]

Runtime

Time bar (total: 7.7m)Debug logProfile

herbie shell --seed '#(1071979731 1496239409 439705970 2863295848 982327776 189749553)' +o rules:numerics
(FPCore (x1 x2)
  :name "Rosa's FloatVsDoubleBenchmark"
  (+ x1 (+ (+ (+ (+ (* (+ (* (* (* 2 x1) (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))) (- (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)) 3)) (* (* x1 x1) (- (* 4 (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))) 6))) (+ (* x1 x1) 1)) (* (* (* 3 x1) x1) (/ (- (+ (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1)))) (* (* x1 x1) x1)) x1) (* 3 (/ (- (- (* (* 3 x1) x1) (* 2 x2)) x1) (+ (* x1 x1) 1))))))