Average Error: 11.7 → 4.0
Time: 9.9m
Precision: 64
Internal Precision: 576
\[\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}\;x \cdot \left(y \cdot z - t \cdot a\right) + \left(i \cdot \left(a \cdot b - y \cdot j\right) - \left(c \cdot \left(\sqrt[3]{b \cdot z - t \cdot j} \cdot \sqrt[3]{b \cdot z - t \cdot j}\right)\right) \cdot \sqrt[3]{b \cdot z - t \cdot j}\right) = -\infty:\\ \;\;\;\;x \cdot \left(y \cdot z\right) + \left(\left(j \cdot \left(c \cdot t - y \cdot i\right) - b \cdot \left(c \cdot z - a \cdot i\right)\right) - t \cdot \left(x \cdot a\right)\right)\\ \mathbf{if}\;x \cdot \left(y \cdot z - t \cdot a\right) + \left(i \cdot \left(a \cdot b - y \cdot j\right) - \left(c \cdot \left(\sqrt[3]{b \cdot z - t \cdot j} \cdot \sqrt[3]{b \cdot z - t \cdot j}\right)\right) \cdot \sqrt[3]{b \cdot z - t \cdot j}\right) \le 2.762030464877479 \cdot 10^{+306}:\\ \;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) + i \cdot \left(a \cdot b - y \cdot j\right)\right) + \left(-c \cdot \left(b \cdot z - t \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right) + \left(\left(j \cdot \left(c \cdot t - y \cdot i\right) - b \cdot \left(c \cdot z - a \cdot i\right)\right) - t \cdot \left(x \cdot a\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

Derivation

  1. Split input into 2 regimes
  2. if (+ (* x (- (* y z) (* t a))) (- (* i (- (* a b) (* y j))) (* (* c (* (cbrt (- (* b z) (* t j))) (cbrt (- (* b z) (* t j))))) (cbrt (- (* b z) (* t j)))))) < -inf.0 or 2.762030464877479e+306 < (+ (* x (- (* y z) (* t a))) (- (* i (- (* a b) (* y j))) (* (* c (* (cbrt (- (* b z) (* t j))) (cbrt (- (* b z) (* t j))))) (cbrt (- (* b z) (* t j))))))

    1. Initial program 23.5

      \[\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. Using strategy rm
    3. Applied sub-neg23.5

      \[\leadsto \left(x \cdot \color{blue}{\left(y \cdot z + \left(-t \cdot a\right)\right)} - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    4. Applied distribute-lft-in23.5

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

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z\right) + \left(x \cdot \left(-t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right)\]
    6. Applied associate-+l+23.5

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right) + \left(\left(x \cdot \left(-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)\right)}\]
    7. Applied simplify17.9

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

    if -inf.0 < (+ (* x (- (* y z) (* t a))) (- (* i (- (* a b) (* y j))) (* (* c (* (cbrt (- (* b z) (* t j))) (cbrt (- (* b z) (* t j))))) (cbrt (- (* b z) (* t j)))))) < 2.762030464877479e+306

    1. Initial program 9.0

      \[\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. Using strategy rm
    3. Applied sub-neg9.0

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - i \cdot a\right)\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right)\]
    4. Applied associate-+l+9.0

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

      \[\leadsto x \cdot \left(y \cdot z - t \cdot a\right) + \color{blue}{\left(i \cdot \left(a \cdot b - y \cdot j\right) - c \cdot \left(b \cdot z - t \cdot j\right)\right)}\]
    6. Using strategy rm
    7. Applied sub-neg0.9

      \[\leadsto x \cdot \left(y \cdot z - t \cdot a\right) + \color{blue}{\left(i \cdot \left(a \cdot b - y \cdot j\right) + \left(-c \cdot \left(b \cdot z - t \cdot j\right)\right)\right)}\]
    8. Applied associate-+r+0.9

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

Runtime

Time bar (total: 9.9m)Debug logProfile

herbie shell --seed '#(376638549 3830080768 3905278455 3542335916 3807831211 3252027093)' 
(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)))))