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

Error

Bits error versus a

Bits error versus b

Derivation

  1. Initial program 0.2

    \[\left({\left({a}^2 + {b}^2\right)}^2 + 4 \cdot {b}^2\right) - 1\]
  2. Applied taylor 0.0

    \[\leadsto \left(\left(2 \cdot \left({b}^2 \cdot {a}^2\right) + \left({a}^{4} + {b}^{4}\right)\right) + 4 \cdot {b}^2\right) - 1\]
  3. Taylor expanded around inf 0.0

    \[\leadsto \left(\color{blue}{\left(2 \cdot \left({b}^2 \cdot {a}^2\right) + \left({a}^{4} + {b}^{4}\right)\right)} + 4 \cdot {b}^2\right) - 1\]
  4. Applied simplify 0.0

    \[\leadsto \color{blue}{\left(\left({b}^{4} - 1\right) + {a}^{4}\right) + {b}^2 \cdot \left({a}^2 + \left(4 + {a}^2\right)\right)}\]
  5. Using strategy rm
  6. Applied distribute-lft-in 0.0

    \[\leadsto \left(\left({b}^{4} - 1\right) + {a}^{4}\right) + \color{blue}{\left({b}^2 \cdot {a}^2 + {b}^2 \cdot \left(4 + {a}^2\right)\right)}\]
  7. Applied associate-+r+ 0.0

    \[\leadsto \color{blue}{\left(\left(\left({b}^{4} - 1\right) + {a}^{4}\right) + {b}^2 \cdot {a}^2\right) + {b}^2 \cdot \left(4 + {a}^2\right)}\]
  8. Applied simplify 0.0

    \[\leadsto \color{blue}{\left({b}^{4} - \left(\left(1 - {a}^{4}\right) - {\left(a \cdot b\right)}^2\right)\right)} + {b}^2 \cdot \left(4 + {a}^2\right)\]
  9. Removed slow pow expressions

Runtime

Time bar (total: 16.9s) Debug logProfile

Please include this information when filing a bug report:

herbie shell --seed '#(1064524629 4159152179 2999149171 575749698 4006532819 692958815)'
(FPCore (a b)
  :name "Bouland and Aaronson, Equation (26)"
  (- (+ (sqr (+ (sqr a) (sqr b))) (* 4 (sqr b))) 1))