Average Error: 11.8 → 11.1
Time: 1.3m
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}\;(\left(z \cdot y - t \cdot a\right) \cdot x + \left(j \cdot \left(c \cdot t - i \cdot y\right)\right))_* \le -1.7815539211073733 \cdot 10^{+308}:\\ \;\;\;\;(b \cdot \left(a \cdot i - z \cdot c\right) + \left(\left(-y\right) \cdot \left(i \cdot j\right)\right))_*\\ \mathbf{else}:\\ \;\;\;\;(\left(z \cdot y - t \cdot a\right) \cdot x + \left(\left(\sqrt[3]{c \cdot t - i \cdot y} \cdot j\right) \cdot \left(\sqrt[3]{c \cdot t - i \cdot y} \cdot \sqrt[3]{c \cdot t - i \cdot y}\right) - b \cdot \left(z \cdot c - a \cdot i\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 (fma (- (* z y) (* t a)) x (- (* (- (* t c) (* y i)) j) 0)) < -1.7815539211073733e+308

    1. Initial program 60.3

      \[\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. Initial simplification60.3

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

      \[\leadsto \color{blue}{a \cdot \left(i \cdot b\right) - \left(z \cdot \left(b \cdot c\right) + i \cdot \left(j \cdot y\right)\right)}\]
    4. Simplified43.1

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

    if -1.7815539211073733e+308 < (fma (- (* z y) (* t a)) x (- (* (- (* t c) (* y i)) j) 0))

    1. Initial program 8.7

      \[\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. Initial simplification8.7

      \[\leadsto (\left(z \cdot y - t \cdot a\right) \cdot x + \left(\left(t \cdot c - y \cdot i\right) \cdot j - \left(z \cdot c - i \cdot a\right) \cdot b\right))_*\]
    3. Using strategy rm
    4. Applied add-cube-cbrt9.0

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;(\left(z \cdot y - t \cdot a\right) \cdot x + \left(j \cdot \left(c \cdot t - i \cdot y\right)\right))_* \le -1.7815539211073733 \cdot 10^{+308}:\\ \;\;\;\;(b \cdot \left(a \cdot i - z \cdot c\right) + \left(\left(-y\right) \cdot \left(i \cdot j\right)\right))_*\\ \mathbf{else}:\\ \;\;\;\;(\left(z \cdot y - t \cdot a\right) \cdot x + \left(\left(\sqrt[3]{c \cdot t - i \cdot y} \cdot j\right) \cdot \left(\sqrt[3]{c \cdot t - i \cdot y} \cdot \sqrt[3]{c \cdot t - i \cdot y}\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right))_*\\ \end{array}\]

Runtime

Time bar (total: 1.3m)Debug logProfile

herbie shell --seed 2018216 +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)))))