Average Error: 11.9 → 11.6
Time: 1.1m
Precision: 64
Internal Precision: 128
\[\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}\;i \le 2.9539427350729864 \cdot 10^{+138}:\\ \;\;\;\;\left(t \cdot c - y \cdot i\right) \cdot j + \left(\left(y \cdot z - t \cdot a\right) \cdot x - \left(\sqrt[3]{b \cdot \left(z \cdot c - i \cdot a\right)} \cdot \sqrt[3]{b \cdot \left(z \cdot c - i \cdot a\right)}\right) \cdot \left(\sqrt[3]{b} \cdot \sqrt[3]{z \cdot c - i \cdot a}\right)\right)\\ \mathbf{else}:\\ \;\;\;\;(\left(b \cdot a - y \cdot j\right) \cdot i + \left(\left(c \cdot j\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 i < 2.9539427350729864e+138

    1. Initial program 10.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. Using strategy rm
    3. Applied add-cube-cbrt11.0

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \color{blue}{\left(\sqrt[3]{b \cdot \left(c \cdot z - i \cdot a\right)} \cdot \sqrt[3]{b \cdot \left(c \cdot z - i \cdot a\right)}\right) \cdot \sqrt[3]{b \cdot \left(c \cdot z - i \cdot a\right)}}\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    4. Using strategy rm
    5. Applied cbrt-prod11.0

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

    if 2.9539427350729864e+138 < i

    1. Initial program 23.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. Taylor expanded around -inf 25.3

      \[\leadsto \color{blue}{\left(t \cdot \left(j \cdot c\right) + a \cdot \left(i \cdot b\right)\right) - i \cdot \left(j \cdot y\right)}\]
    3. Simplified18.5

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

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

Runtime

Time bar (total: 1.1m)Debug logProfile

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