Average Error: 11.7 → 9.5
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}\;x \cdot \left(y \cdot z\right) + \left(\left(j \cdot \left(c \cdot t - y \cdot i\right) - \left(t \cdot x\right) \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) \le -7.524380074088922 \cdot 10^{+303}:\\ \;\;\;\;j \cdot \left(t \cdot c - i \cdot y\right) + \left(z \cdot y - a \cdot t\right) \cdot x\\ \mathbf{if}\;x \cdot \left(y \cdot z\right) + \left(\left(j \cdot \left(c \cdot t - y \cdot i\right) - \left(t \cdot x\right) \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) \le 8.273427533740238 \cdot 10^{+303}:\\ \;\;\;\;x \cdot \left(y \cdot z\right) + \left(\left(j \cdot \left(c \cdot t - y \cdot i\right) - \left(t \cdot x\right) \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(a \cdot b - j \cdot y\right) \cdot i + \left(t \cdot c\right) \cdot j\\ \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 3 regimes
  2. if (+ (* x (* y z)) (- (- (* j (- (* c t) (* y i))) (* (* t x) a)) (* b (- (* z c) (* a i))))) < -7.524380074088922e+303

    1. Initial program 47.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. Taylor expanded around 0 45.1

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \color{blue}{0}\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    3. Applied simplify45.1

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

    if -7.524380074088922e+303 < (+ (* x (* y z)) (- (- (* j (- (* c t) (* y i))) (* (* t x) a)) (* b (- (* z c) (* a i))))) < 8.273427533740238e+303

    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. Using strategy rm
    3. Applied sub-neg2.6

      \[\leadsto \left(x \cdot \color{blue}{\left(y \cdot z + \left(-t \cdot a\right)\right)} - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    4. Applied distribute-lft-in2.6

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

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z\right) + \left(x \cdot \left(-t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right)\]
    6. Applied associate-+l+2.6

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right) + \left(\left(x \cdot \left(-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)\right)}\]
    7. Applied simplify0.8

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

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

    1. Initial program 48.4

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

      \[\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 simplify43.3

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

Runtime

Time bar (total: 2.0m)Debug logProfile

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