Average Error: 11.7 → 7.3
Time: 2.0m
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}\;(b \cdot \left((z \cdot \left(-c\right) + \left(a \cdot i\right))_*\right) + \left(\left(y \cdot z - t \cdot a\right) \cdot x\right))_* \le -4.003618947400749 \cdot 10^{+305}:\\ \;\;\;\;(\left(t \cdot c - y \cdot i\right) \cdot j + \left((a \cdot \left(b \cdot i - x \cdot t\right) + \left(\left(-z\right) \cdot \left(b \cdot c\right)\right))_*\right))_*\\ \mathbf{if}\;(b \cdot \left((z \cdot \left(-c\right) + \left(a \cdot i\right))_*\right) + \left(\left(y \cdot z - t \cdot a\right) \cdot x\right))_* \le -2.1541483089475933 \cdot 10^{+148}:\\ \;\;\;\;(b \cdot \left((z \cdot \left(-c\right) + \left(a \cdot i\right))_*\right) + \left(\left(y \cdot z - t \cdot a\right) \cdot x\right))_*\\ \mathbf{if}\;(b \cdot \left((z \cdot \left(-c\right) + \left(a \cdot i\right))_*\right) + \left(\left(y \cdot z - t \cdot a\right) \cdot x\right))_* \le 1.5754270791658508 \cdot 10^{+303}:\\ \;\;\;\;(j \cdot \left(t \cdot c - y \cdot i\right) + \left((\left(\left(\sqrt[3]{y \cdot z - t \cdot a} \cdot \sqrt[3]{y \cdot z - t \cdot a}\right) \cdot \sqrt[3]{y \cdot z - t \cdot a}\right) \cdot x + \left(b \cdot (z \cdot \left(-c\right) + \left(a \cdot i\right))_*\right))_*\right))_*\\ \mathbf{else}:\\ \;\;\;\;(\left(t \cdot c - y \cdot i\right) \cdot j + \left((a \cdot \left(b \cdot i - x \cdot t\right) + \left(\left(-z\right) \cdot \left(b \cdot c\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

Derivation

  1. Split input into 3 regimes
  2. if (fma b (fma z (- c) (* i a)) (* x (- (* y z) (* a t)))) < -4.003618947400749e+305 or 1.5754270791658508e+303 < (fma b (fma z (- c) (* i a)) (* x (- (* y z) (* a t))))

    1. Initial program 57.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. Applied simplify57.5

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

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

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

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

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

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

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

    if -4.003618947400749e+305 < (fma b (fma z (- c) (* i a)) (* x (- (* y z) (* a t)))) < -2.1541483089475933e+148

    1. Initial program 5.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. Applied simplify5.7

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

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

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

    if -2.1541483089475933e+148 < (fma b (fma z (- c) (* i a)) (* x (- (* y z) (* a t)))) < 1.5754270791658508e+303

    1. Initial program 4.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. Applied simplify4.0

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

      \[\leadsto \color{blue}{1 \cdot (\left(z \cdot y - a \cdot t\right) \cdot x + \left(j \cdot \left(c \cdot t - i \cdot y\right)\right))_*} - \left(z \cdot c - i \cdot a\right) \cdot b\]
    5. Applied prod-diff4.0

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

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

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

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

    \[\leadsto \color{blue}{\begin{array}{l} \mathbf{if}\;(b \cdot \left((z \cdot \left(-c\right) + \left(a \cdot i\right))_*\right) + \left(\left(y \cdot z - t \cdot a\right) \cdot x\right))_* \le -4.003618947400749 \cdot 10^{+305}:\\ \;\;\;\;(\left(t \cdot c - y \cdot i\right) \cdot j + \left((a \cdot \left(b \cdot i - x \cdot t\right) + \left(\left(-z\right) \cdot \left(b \cdot c\right)\right))_*\right))_*\\ \mathbf{if}\;(b \cdot \left((z \cdot \left(-c\right) + \left(a \cdot i\right))_*\right) + \left(\left(y \cdot z - t \cdot a\right) \cdot x\right))_* \le -2.1541483089475933 \cdot 10^{+148}:\\ \;\;\;\;(b \cdot \left((z \cdot \left(-c\right) + \left(a \cdot i\right))_*\right) + \left(\left(y \cdot z - t \cdot a\right) \cdot x\right))_*\\ \mathbf{if}\;(b \cdot \left((z \cdot \left(-c\right) + \left(a \cdot i\right))_*\right) + \left(\left(y \cdot z - t \cdot a\right) \cdot x\right))_* \le 1.5754270791658508 \cdot 10^{+303}:\\ \;\;\;\;(j \cdot \left(t \cdot c - y \cdot i\right) + \left((\left(\left(\sqrt[3]{y \cdot z - t \cdot a} \cdot \sqrt[3]{y \cdot z - t \cdot a}\right) \cdot \sqrt[3]{y \cdot z - t \cdot a}\right) \cdot x + \left(b \cdot (z \cdot \left(-c\right) + \left(a \cdot i\right))_*\right))_*\right))_*\\ \mathbf{else}:\\ \;\;\;\;(\left(t \cdot c - y \cdot i\right) \cdot j + \left((a \cdot \left(b \cdot i - x \cdot t\right) + \left(\left(-z\right) \cdot \left(b \cdot c\right)\right))_*\right))_*\\ \end{array}}\]

Runtime

Time bar (total: 2.0m)Debug logProfile

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