Average Error: 0.2 → 0.0
Time: 57.3s
Precision: 64
Internal Precision: 128
\[\left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \left(\left(a \cdot a\right) \cdot \left(1 - a\right) + \left(b \cdot b\right) \cdot \left(3 + a\right)\right)\right) - 1\]
\[\left(\left(b \cdot b\right) \cdot \left(3 + a\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - {\left(\sqrt{a \cdot a + b \cdot b}\right)}^{4}\right)\]

Error

Bits error versus a

Bits error versus b

Derivation

  1. Initial program 0.2

    \[\left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \left(\left(a \cdot a\right) \cdot \left(1 - a\right) + \left(b \cdot b\right) \cdot \left(3 + a\right)\right)\right) - 1\]
  2. Simplified0.2

    \[\leadsto \color{blue}{\left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - \left(a \cdot a + b \cdot b\right) \cdot \left(a \cdot a + b \cdot b\right)\right)}\]
  3. Using strategy rm
  4. Applied add-sqr-sqrt0.2

    \[\leadsto \left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - \color{blue}{\left(\sqrt{a \cdot a + b \cdot b} \cdot \sqrt{a \cdot a + b \cdot b}\right)} \cdot \left(a \cdot a + b \cdot b\right)\right)\]
  5. Applied associate-*l*0.1

    \[\leadsto \left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - \color{blue}{\sqrt{a \cdot a + b \cdot b} \cdot \left(\sqrt{a \cdot a + b \cdot b} \cdot \left(a \cdot a + b \cdot b\right)\right)}\right)\]
  6. Using strategy rm
  7. Applied add-sqr-sqrt0.1

    \[\leadsto \left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - \sqrt{a \cdot a + b \cdot b} \cdot \left(\sqrt{a \cdot a + b \cdot b} \cdot \color{blue}{\left(\sqrt{a \cdot a + b \cdot b} \cdot \sqrt{a \cdot a + b \cdot b}\right)}\right)\right)\]
  8. Applied cube-unmult0.1

    \[\leadsto \left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - \sqrt{a \cdot a + b \cdot b} \cdot \color{blue}{{\left(\sqrt{a \cdot a + b \cdot b}\right)}^{3}}\right)\]
  9. Using strategy rm
  10. Applied pow10.1

    \[\leadsto \left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - \color{blue}{{\left(\sqrt{a \cdot a + b \cdot b}\right)}^{1}} \cdot {\left(\sqrt{a \cdot a + b \cdot b}\right)}^{3}\right)\]
  11. Applied pow-prod-up0.0

    \[\leadsto \left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - \color{blue}{{\left(\sqrt{a \cdot a + b \cdot b}\right)}^{\left(1 + 3\right)}}\right)\]
  12. Simplified0.0

    \[\leadsto \left(\left(a + 3\right) \cdot \left(b \cdot b\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - {\left(\sqrt{a \cdot a + b \cdot b}\right)}^{\color{blue}{4}}\right)\]
  13. Final simplification0.0

    \[\leadsto \left(\left(b \cdot b\right) \cdot \left(3 + a\right) + \left(a \cdot a\right) \cdot \left(1 - a\right)\right) \cdot 4 - \left(1 - {\left(\sqrt{a \cdot a + b \cdot b}\right)}^{4}\right)\]

Reproduce

herbie shell --seed 2019090 
(FPCore (a b)
  :name "Bouland and Aaronson, Equation (24)"
  (- (+ (pow (+ (* a a) (* b b)) 2) (* 4 (+ (* (* a a) (- 1 a)) (* (* b b) (+ 3 a))))) 1))