\[\left({\left({a}^2 + {b}^2\right)}^2 + 4 \cdot \left({a}^2 \cdot \left(1 + a\right) + {b}^2 \cdot \left(1 - 3 \cdot a\right)\right)\right) - 1\]
Test:
Bouland and Aaronson, Equation (25)
Bits:
128 bits
Bits error versus a
Bits error versus b
Time: 1.7 m
Input Error: 0.2
Output Error: 0.2
Log:
Profile: 🕒
\(\left({\left({a}^2 + {b}^2\right)}^2 + 4 \cdot {\left(\sqrt[3]{{a}^2 \cdot \left(1 + a\right) + {b}^2 \cdot \left(1 - 3 \cdot a\right)}\right)}^3\right) - 1\)
  1. Started with
    \[\left({\left({a}^2 + {b}^2\right)}^2 + 4 \cdot \left({a}^2 \cdot \left(1 + a\right) + {b}^2 \cdot \left(1 - 3 \cdot a\right)\right)\right) - 1\]
    0.2
  2. Using strategy rm
    0.2
  3. Applied add-cube-cbrt to get
    \[\left({\left({a}^2 + {b}^2\right)}^2 + 4 \cdot \color{red}{\left({a}^2 \cdot \left(1 + a\right) + {b}^2 \cdot \left(1 - 3 \cdot a\right)\right)}\right) - 1 \leadsto \left({\left({a}^2 + {b}^2\right)}^2 + 4 \cdot \color{blue}{{\left(\sqrt[3]{{a}^2 \cdot \left(1 + a\right) + {b}^2 \cdot \left(1 - 3 \cdot a\right)}\right)}^3}\right) - 1\]
    0.2

  4. Removed slow pow expressions

Original test:


(lambda ((a default) (b default))
  #:name "Bouland and Aaronson, Equation (25)"
  (- (+ (sqr (+ (sqr a) (sqr b))) (* 4 (+ (* (sqr a) (+ 1 a)) (* (sqr b) (- 1 (* 3 a)))))) 1))