Average Error: 11.4 → 9.9
Time: 1.3m
Precision: 64
Internal Precision: 384
\[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
\[\begin{array}{l} \mathbf{if}\;(j \cdot \left(c \cdot t - i \cdot y\right) + \left(\left(z \cdot y - a \cdot t\right) \cdot x - 0\right))_* \le -8.689672231024969 \cdot 10^{+290}:\\ \;\;\;\;(j \cdot \left(t \cdot c - y \cdot i\right) + \left(\left(a \cdot i - c \cdot z\right) \cdot b - \left(a \cdot x\right) \cdot t\right))_*\\ \mathbf{if}\;(j \cdot \left(c \cdot t - i \cdot y\right) + \left(\left(z \cdot y - a \cdot t\right) \cdot x - 0\right))_* \le 1.2513342757769092 \cdot 10^{+305}:\\ \;\;\;\;(j \cdot \left(c \cdot t - i \cdot y\right) + \left(\left(\sqrt[3]{z \cdot y - a \cdot t} \cdot \sqrt[3]{z \cdot y - a \cdot t}\right) \cdot \left(\sqrt[3]{z \cdot y - a \cdot t} \cdot x\right) - \left(z \cdot c - i \cdot a\right) \cdot b\right))_*\\ \mathbf{else}:\\ \;\;\;\;(j \cdot \left(t \cdot c - y \cdot i\right) + \left(\left(a \cdot i - c \cdot z\right) \cdot b - \left(a \cdot x\right) \cdot t\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

Derivation

  1. Split input into 2 regimes
  2. if (fma j (- (* c t) (* i y)) (- (* (- (* z y) (* a t)) x) 0)) < -8.689672231024969e+290 or 1.2513342757769092e+305 < (fma j (- (* c t) (* i y)) (- (* (- (* z y) (* a t)) x) 0))

    1. Initial program 53.2

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    2. Applied simplify53.2

      \[\leadsto \color{blue}{(j \cdot \left(c \cdot t - i \cdot y\right) + \left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right))_*}\]
    3. Taylor expanded around inf 39.4

      \[\leadsto (j \cdot \left(c \cdot t - i \cdot y\right) + \color{blue}{\left(b \cdot \left(a \cdot i\right) - \left(t \cdot \left(a \cdot x\right) + z \cdot \left(b \cdot c\right)\right)\right)})_*\]
    4. Applied simplify40.9

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

    if -8.689672231024969e+290 < (fma j (- (* c t) (* i y)) (- (* (- (* z y) (* a t)) x) 0)) < 1.2513342757769092e+305

    1. Initial program 4.8

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    2. Applied simplify4.8

      \[\leadsto \color{blue}{(j \cdot \left(c \cdot t - i \cdot y\right) + \left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right))_*}\]
    3. Using strategy rm
    4. Applied add-cube-cbrt5.1

      \[\leadsto (j \cdot \left(c \cdot t - i \cdot y\right) + \left(\color{blue}{\left(\left(\sqrt[3]{z \cdot y - a \cdot t} \cdot \sqrt[3]{z \cdot y - a \cdot t}\right) \cdot \sqrt[3]{z \cdot y - a \cdot t}\right)} \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right))_*\]
    5. Applied associate-*l*5.1

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

Runtime

Time bar (total: 1.3m)Debug logProfile

herbie shell --seed '#(1064269945 2896236262 301053905 1701069080 1701464310 1614783279)' +o rules:numerics
(FPCore (x y z t a b c i j)
  :name "Linear.Matrix:det33 from linear-1.19.1.3"
  (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))