Average Error: 0.2 → 0.2
Time: 39.7s
Precision: 64
Internal Precision: 320
\[\left({\left(a \cdot a + b \cdot b\right)}^{2} + 4 \cdot \left(b \cdot b\right)\right) - 1\]
\[(\left({\left(\sqrt{a \cdot a + b \cdot b}\right)}^{2}\right) \cdot \left({\left(\sqrt{a \cdot a + b \cdot b}\right)}^{2}\right) + \left(4 \cdot \left(b \cdot b\right)\right))_* - 1\]

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(b \cdot b\right)\right) - 1\]
  2. Using strategy rm
  3. Applied add-sqr-sqrt0.2

    \[\leadsto \left({\color{blue}{\left(\sqrt{a \cdot a + b \cdot b} \cdot \sqrt{a \cdot a + b \cdot b}\right)}}^{2} + 4 \cdot \left(b \cdot b\right)\right) - 1\]
  4. Applied unpow-prod-down0.2

    \[\leadsto \left(\color{blue}{{\left(\sqrt{a \cdot a + b \cdot b}\right)}^{2} \cdot {\left(\sqrt{a \cdot a + b \cdot b}\right)}^{2}} + 4 \cdot \left(b \cdot b\right)\right) - 1\]
  5. Applied fma-def0.2

    \[\leadsto \color{blue}{(\left({\left(\sqrt{a \cdot a + b \cdot b}\right)}^{2}\right) \cdot \left({\left(\sqrt{a \cdot a + b \cdot b}\right)}^{2}\right) + \left(4 \cdot \left(b \cdot b\right)\right))_*} - 1\]

Runtime

Time bar (total: 39.7s)Debug logProfile

herbie shell --seed '#(1071215679 2002590028 935158157 1944352234 2656991306 2955288481)' +o rules:numerics
(FPCore (a b)
  :name "Bouland and Aaronson, Equation (26)"
  (- (+ (pow (+ (* a a) (* b b)) 2) (* 4 (* b b))) 1))