Average Error: 11.5 → 7.9
Time: 2.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}\;\left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right) + \left(j \cdot \left(c \cdot t\right) - y \cdot \left(j \cdot i\right)\right) \le -5.756495905662776 \cdot 10^{+307}:\\ \;\;\;\;\left(b \cdot a - j \cdot y\right) \cdot i + \left(t \cdot j\right) \cdot c\\ \mathbf{elif}\;\left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right) + \left(j \cdot \left(c \cdot t\right) - y \cdot \left(j \cdot i\right)\right) \le 3.3508103339192373 \cdot 10^{+301}:\\ \;\;\;\;\left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right) + \left(j \cdot \left(c \cdot t\right) - y \cdot \left(j \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot a - j \cdot y\right) \cdot i + \left(t \cdot j\right) \cdot c\\ \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)) (* y (* j i)))) < -5.756495905662776e+307 or 3.3508103339192373e+301 < (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (- (* j (* c t)) (* y (* j i))))

    1. Initial program 47.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. Taylor expanded around inf 45.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. Simplified36.1

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

    if -5.756495905662776e+307 < (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (- (* j (* c t)) (* y (* j i)))) < 3.3508103339192373e+301

    1. Initial program 2.6

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right) + \left(j \cdot \left(c \cdot t\right) - y \cdot \left(j \cdot i\right)\right) \le -5.756495905662776 \cdot 10^{+307}:\\ \;\;\;\;\left(b \cdot a - j \cdot y\right) \cdot i + \left(t \cdot j\right) \cdot c\\ \mathbf{elif}\;\left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right) + \left(j \cdot \left(c \cdot t\right) - y \cdot \left(j \cdot i\right)\right) \le 3.3508103339192373 \cdot 10^{+301}:\\ \;\;\;\;\left(\left(z \cdot y - a \cdot t\right) \cdot x - \left(z \cdot c - i \cdot a\right) \cdot b\right) + \left(j \cdot \left(c \cdot t\right) - y \cdot \left(j \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot a - j \cdot y\right) \cdot i + \left(t \cdot j\right) \cdot c\\ \end{array}\]

Runtime

Time bar (total: 2.1m)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)))))