Average Error: 5.3 → 1.2
Time: 2.7m
Precision: 64
Internal Precision: 384
\[\left(\left(\left(\left(\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k\]
\[\begin{array}{l} \mathbf{if}\;\left(\left(\left(\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot \left(z \cdot t\right) - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k = -\infty:\\ \;\;\;\;\left(\left(\left(x \cdot t\right) \cdot \left(18.0 \cdot y\right)\right) \cdot z - 4.0 \cdot \left(x \cdot i + a \cdot t\right)\right) - \left(j \cdot \left(k \cdot 27.0\right) - b \cdot c\right)\\ \mathbf{if}\;\left(\left(\left(\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot \left(z \cdot t\right) - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k \le 1.0405139300278295 \cdot 10^{+305}:\\ \;\;\;\;\left(\left(\left(\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot \left(z \cdot t\right) - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k\\ \mathbf{else}:\\ \;\;\;\;\left(\left(\left(x \cdot t\right) \cdot \left(18.0 \cdot y\right)\right) \cdot z - 4.0 \cdot \left(x \cdot i + a \cdot t\right)\right) - \left(j \cdot \left(k \cdot 27.0\right) - b \cdot c\right)\\ \end{array}\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Bits error versus a

Bits error versus b

Bits error versus c

Bits error versus i

Bits error versus j

Bits error versus k

Derivation

  1. Split input into 2 regimes
  2. if (- (- (+ (- (* (* (* x 18.0) y) (* z t)) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)) < -inf.0 or 1.0405139300278295e+305 < (- (- (+ (- (* (* (* x 18.0) y) (* z t)) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k))

    1. Initial program 30.2

      \[\left(\left(\left(\left(\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k\]
    2. Taylor expanded around inf 11.5

      \[\leadsto \left(\color{blue}{\left(\left(18.0 \cdot \left(z \cdot \left(y \cdot \left(t \cdot x\right)\right)\right) + b \cdot c\right) - 4.0 \cdot \left(a \cdot t\right)\right)} - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k\]
    3. Applied simplify28.8

      \[\leadsto \color{blue}{\left(c \cdot b + z \cdot \left(\left(18.0 \cdot t\right) \cdot \left(y \cdot x\right)\right)\right) - \left(4.0 \cdot \left(x \cdot i + t \cdot a\right) + \left(k \cdot j\right) \cdot 27.0\right)}\]
    4. Using strategy rm
    5. Applied add-cube-cbrt28.8

      \[\leadsto \left(c \cdot b + z \cdot \left(\left(18.0 \cdot t\right) \cdot \left(y \cdot x\right)\right)\right) - \left(4.0 \cdot \left(x \cdot i + t \cdot a\right) + \color{blue}{\left(\sqrt[3]{\left(k \cdot j\right) \cdot 27.0} \cdot \sqrt[3]{\left(k \cdot j\right) \cdot 27.0}\right) \cdot \sqrt[3]{\left(k \cdot j\right) \cdot 27.0}}\right)\]
    6. Taylor expanded around inf 10.6

      \[\leadsto \left(c \cdot b + \color{blue}{18.0 \cdot \left(z \cdot \left(y \cdot \left(t \cdot x\right)\right)\right)}\right) - \left(4.0 \cdot \left(x \cdot i + t \cdot a\right) + \left(\sqrt[3]{\left(k \cdot j\right) \cdot 27.0} \cdot \sqrt[3]{\left(k \cdot j\right) \cdot 27.0}\right) \cdot \sqrt[3]{\left(k \cdot j\right) \cdot 27.0}\right)\]
    7. Applied simplify10.6

      \[\leadsto \color{blue}{\left(\left(\left(x \cdot t\right) \cdot \left(18.0 \cdot y\right)\right) \cdot z - 4.0 \cdot \left(x \cdot i + a \cdot t\right)\right) - \left(j \cdot \left(k \cdot 27.0\right) - b \cdot c\right)}\]

    if -inf.0 < (- (- (+ (- (* (* (* x 18.0) y) (* z t)) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)) < 1.0405139300278295e+305

    1. Initial program 2.5

      \[\left(\left(\left(\left(\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k\]
    2. Using strategy rm
    3. Applied associate-*l*0.2

      \[\leadsto \left(\left(\left(\color{blue}{\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot \left(z \cdot t\right)} - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k\]
  3. Recombined 2 regimes into one program.

Runtime

Time bar (total: 2.7m)Debug logProfile

herbie shell --seed '#(1070960995 739739648 2531964651 3069671617 351857262 3877178482)' 
(FPCore (x y z t a b c i j k)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1"
  (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))