Average Error: 11.3 → 10.8
Time: 1.1m
Precision: 64
Internal Precision: 320
\[\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 \le -4.895274132972605 \cdot 10^{-164} \lor \neg \left(j \le 2.0844785333044515 \cdot 10^{-105}\right):\\ \;\;\;\;(\left(z \cdot y - a \cdot t\right) \cdot x + \left(\left(c \cdot t - y \cdot i\right) \cdot j - \left(\left(\sqrt[3]{\sqrt[3]{z \cdot c - a \cdot i}} \cdot \sqrt[3]{\sqrt[3]{z \cdot c - a \cdot i} \cdot \sqrt[3]{z \cdot c - a \cdot i}}\right) \cdot b\right) \cdot \left(\left(\sqrt[3]{\sqrt[3]{z \cdot c - a \cdot i}} \cdot \sqrt[3]{\sqrt[3]{z \cdot c - a \cdot i} \cdot \sqrt[3]{z \cdot c - a \cdot i}}\right) \cdot \sqrt[3]{z \cdot c - a \cdot i}\right)\right))_*\\ \mathbf{else}:\\ \;\;\;\;(\left(z \cdot y - a \cdot t\right) \cdot x + \left((b \cdot \left(a \cdot i - z \cdot c\right) + \left(\left(i \cdot j\right) \cdot \left(-y\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 2 regimes
  2. if j < -4.895274132972605e-164 or 2.0844785333044515e-105 < j

    1. Initial program 8.9

      \[\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.9

      \[\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.1

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

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

      \[\leadsto (\left(z \cdot y - t \cdot a\right) \cdot x + \left(\left(t \cdot c - y \cdot i\right) \cdot j - \left(\sqrt[3]{z \cdot c - i \cdot a} \cdot \sqrt[3]{z \cdot c - i \cdot a}\right) \cdot \left(\sqrt[3]{\color{blue}{\left(\sqrt[3]{z \cdot c - i \cdot a} \cdot \sqrt[3]{z \cdot c - i \cdot a}\right) \cdot \sqrt[3]{z \cdot c - i \cdot a}}} \cdot b\right)\right))_*\]
    8. Applied cbrt-prod9.2

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

      \[\leadsto (\left(z \cdot y - t \cdot a\right) \cdot x + \left(\left(t \cdot c - y \cdot i\right) \cdot j - \left(\sqrt[3]{z \cdot c - i \cdot a} \cdot \sqrt[3]{\color{blue}{\left(\sqrt[3]{z \cdot c - i \cdot a} \cdot \sqrt[3]{z \cdot c - i \cdot a}\right) \cdot \sqrt[3]{z \cdot c - i \cdot a}}}\right) \cdot \left(\left(\sqrt[3]{\sqrt[3]{z \cdot c - i \cdot a} \cdot \sqrt[3]{z \cdot c - i \cdot a}} \cdot \sqrt[3]{\sqrt[3]{z \cdot c - i \cdot a}}\right) \cdot b\right)\right))_*\]
    11. Applied cbrt-prod9.2

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

    if -4.895274132972605e-164 < j < 2.0844785333044515e-105

    1. Initial program 15.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. Initial simplification15.8

      \[\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 14.5

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

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

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

Runtime

Time bar (total: 1.1m)Debug logProfile

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