Average Error: 24.9 → 24.3
Time: 6.5m
Precision: 64
Internal Precision: 576
\[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\]
\[\begin{array}{l} \mathbf{if}\;(\left(k \cdot y2 - j \cdot y3\right) \cdot \left(y1 \cdot y4 - y5 \cdot y0\right) + \left((\left(y4 \cdot b - y5 \cdot i\right) \cdot \left(j \cdot t - k \cdot y\right) + \left(\left(b \cdot a - i \cdot c\right) \cdot \left(y \cdot x - z \cdot t\right)\right))_* - \left(\left(j \cdot x - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(t \cdot y2 - y3 \cdot y\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right)\right))_* \le 2.380184654985283 \cdot 10^{+296}:\\ \;\;\;\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(\sqrt[3]{k \cdot y2 - j \cdot y3} \cdot \sqrt[3]{k \cdot y2 - j \cdot y3}\right) \cdot \left(\sqrt[3]{k \cdot y2 - j \cdot y3} \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\right)\\ \mathbf{else}:\\ \;\;\;\;(\left(j \cdot t - k \cdot y\right) \cdot \left(y4 \cdot b - y5 \cdot i\right) + \left((\left(y0 \cdot c - y1 \cdot a\right) \cdot \left(y2 \cdot x - z \cdot y3\right) + \left(\left(b \cdot a - i \cdot c\right) \cdot \left(y \cdot x - z \cdot t\right)\right))_* - \left(\left(j \cdot x - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y4 \cdot c - y5 \cdot a\right) \cdot \left(y2 \cdot t - y \cdot y3\right)\right)\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

Bits error versus y0

Bits error versus y1

Bits error versus y2

Bits error versus y3

Bits error versus y4

Bits error versus y5

Derivation

  1. Split input into 2 regimes
  2. if (fma (- (* k y2) (* j y3)) (- (* y1 y4) (* y5 y0)) (- (fma (- (* y4 b) (* y5 i)) (- (* j t) (* k y)) (* (- (* b a) (* i c)) (- (* y x) (* z t)))) (+ (* (- (* j x) (* z k)) (- (* b y0) (* i y1))) (* (- (* t y2) (* y3 y)) (- (* y4 c) (* y5 a)))))) < 2.380184654985283e+296

    1. Initial program 13.6

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\]
    2. Using strategy rm
    3. Applied add-cube-cbrt13.7

      \[\leadsto \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \color{blue}{\left(\left(\sqrt[3]{k \cdot y2 - j \cdot y3} \cdot \sqrt[3]{k \cdot y2 - j \cdot y3}\right) \cdot \sqrt[3]{k \cdot y2 - j \cdot y3}\right)} \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\]
    4. Applied associate-*l*13.7

      \[\leadsto \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \color{blue}{\left(\sqrt[3]{k \cdot y2 - j \cdot y3} \cdot \sqrt[3]{k \cdot y2 - j \cdot y3}\right) \cdot \left(\sqrt[3]{k \cdot y2 - j \cdot y3} \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\right)}\]

    if 2.380184654985283e+296 < (fma (- (* k y2) (* j y3)) (- (* y1 y4) (* y5 y0)) (- (fma (- (* y4 b) (* y5 i)) (- (* j t) (* k y)) (* (- (* b a) (* i c)) (- (* y x) (* z t)))) (+ (* (- (* j x) (* z k)) (- (* b y0) (* i y1))) (* (- (* t y2) (* y3 y)) (- (* y4 c) (* y5 a))))))

    1. Initial program 58.0

      \[\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\]
    2. Taylor expanded around 0 55.3

      \[\leadsto \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \color{blue}{0}\]
    3. Applied simplify55.3

      \[\leadsto \color{blue}{(\left(j \cdot t - k \cdot y\right) \cdot \left(y4 \cdot b - y5 \cdot i\right) + \left((\left(y0 \cdot c - y1 \cdot a\right) \cdot \left(y2 \cdot x - z \cdot y3\right) + \left(\left(b \cdot a - i \cdot c\right) \cdot \left(y \cdot x - z \cdot t\right)\right))_* - \left(\left(j \cdot x - z \cdot k\right) \cdot \left(b \cdot y0 - i \cdot y1\right) + \left(y4 \cdot c - y5 \cdot a\right) \cdot \left(y2 \cdot t - y \cdot y3\right)\right)\right))_*}\]
  3. Recombined 2 regimes into one program.

Runtime

Time bar (total: 6.5m)Debug logProfile

herbie shell --seed '#(1072840222 1305617769 1692503039 1353360431 4178980589 1488672652)' +o rules:numerics
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
  :name "Linear.Matrix:det44 from linear-1.19.1.3"
  (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))