Average Error: 11.5 → 8.8
Time: 1.8m
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 \cdot \left(c \cdot t - i \cdot y\right) + \left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right) \le -1.5278892343421557 \cdot 10^{+308} \lor \neg \left(j \cdot \left(c \cdot t - i \cdot y\right) + \left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right) \le 9.878143750742444 \cdot 10^{+303}\right):\\ \;\;\;\;i \cdot \left(b \cdot a - j \cdot y\right) + j \cdot \left(c \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(\sqrt[3]{\left(z \cdot c - i \cdot a\right) \cdot b} \cdot \sqrt[3]{\left(z \cdot c - i \cdot a\right) \cdot b}\right) \cdot \sqrt[3]{\left(z \cdot c - i \cdot a\right) \cdot b}\right) + j \cdot \left(c \cdot t - i \cdot y\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

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Split input into 2 regimes
  2. if (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))) < -1.5278892343421557e+308 or 9.878143750742444e+303 < (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y))))

    1. Initial program 58.1

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

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

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

    if -1.5278892343421557e+308 < (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))) < 9.878143750742444e+303

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

      \[\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)\]
  3. Recombined 2 regimes into one program.
  4. Applied simplify8.8

    \[\leadsto \color{blue}{\begin{array}{l} \mathbf{if}\;j \cdot \left(c \cdot t - i \cdot y\right) + \left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right) \le -1.5278892343421557 \cdot 10^{+308} \lor \neg \left(j \cdot \left(c \cdot t - i \cdot y\right) + \left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right) \le 9.878143750742444 \cdot 10^{+303}\right):\\ \;\;\;\;i \cdot \left(b \cdot a - j \cdot y\right) + j \cdot \left(c \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(\sqrt[3]{\left(z \cdot c - i \cdot a\right) \cdot b} \cdot \sqrt[3]{\left(z \cdot c - i \cdot a\right) \cdot b}\right) \cdot \sqrt[3]{\left(z \cdot c - i \cdot a\right) \cdot b}\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\ \end{array}}\]

Runtime

Time bar (total: 1.8m)Debug logProfile

herbie shell --seed 2018214 
(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)))))