\[\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)\]
Test:
Linear.Matrix:det33 from linear-1.19.1.3
Bits:
128 bits
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
Time: 2.4 m
Input Error: 5.4
Output Error: 4.9
Log:
Profile: 🕒
\(\begin{cases} x \cdot \left(y \cdot z\right) + \left(\left(\left(-a\right) \cdot \left(t \cdot x - i \cdot b\right) + \left(t \cdot c - i \cdot y\right) \cdot j\right) - b \cdot \left(c \cdot z\right)\right) & \text{when } b \le -63.05097f0 \\ \left(\left(j \cdot \left(c \cdot t\right) + \left(a \cdot b\right) \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\right) - \left(\left(a \cdot t\right) \cdot x + j \cdot \left(y \cdot i\right)\right) & \text{when } b \le 3.3027935f-22 \\ \left(x \cdot \left(y \cdot z - t \cdot a\right) - {\left(\sqrt[3]{b \cdot \left(c \cdot z - i \cdot a\right)}\right)}^3\right) + j \cdot \left(c \cdot t - i \cdot y\right) & \text{otherwise} \end{cases}\)

    if b < -63.05097f0

    1. Started with
      \[\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)\]
      3.3
    2. Using strategy rm
      3.3
    3. Applied sub-neg to get
      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{red}{\left(c \cdot z - i \cdot a\right)}\right) + j \cdot \left(c \cdot t - i \cdot y\right) \leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-i \cdot a\right)\right)}\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
      3.3
    4. Applied distribute-lft-in to get
      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - \color{red}{b \cdot \left(c \cdot z + \left(-i \cdot a\right)\right)}\right) + j \cdot \left(c \cdot t - i \cdot y\right) \leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \color{blue}{\left(b \cdot \left(c \cdot z\right) + b \cdot \left(-i \cdot a\right)\right)}\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
      3.3
    5. Applied associate--r+ to get
      \[\color{red}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z\right) + b \cdot \left(-i \cdot a\right)\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right) \leadsto \color{blue}{\left(\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z\right)\right) - b \cdot \left(-i \cdot a\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right)\]
      3.3
    6. Using strategy rm
      3.3
    7. Applied sub-neg to get
      \[\left(\left(x \cdot \color{red}{\left(y \cdot z - t \cdot a\right)} - b \cdot \left(c \cdot z\right)\right) - b \cdot \left(-i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \leadsto \left(\left(x \cdot \color{blue}{\left(y \cdot z + \left(-t \cdot a\right)\right)} - b \cdot \left(c \cdot z\right)\right) - b \cdot \left(-i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
      3.3
    8. Applied distribute-lft-in to get
      \[\left(\left(\color{red}{x \cdot \left(y \cdot z + \left(-t \cdot a\right)\right)} - b \cdot \left(c \cdot z\right)\right) - b \cdot \left(-i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \leadsto \left(\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\right)\right) - b \cdot \left(-i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
      3.3
    9. Applied associate--l+ to get
      \[\left(\color{red}{\left(\left(x \cdot \left(y \cdot z\right) + x \cdot \left(-t \cdot a\right)\right) - b \cdot \left(c \cdot z\right)\right)} - b \cdot \left(-i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \leadsto \left(\color{blue}{\left(x \cdot \left(y \cdot z\right) + \left(x \cdot \left(-t \cdot a\right) - b \cdot \left(c \cdot z\right)\right)\right)} - b \cdot \left(-i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
      3.3
    10. Applied associate--l+ to get
      \[\color{red}{\left(\left(x \cdot \left(y \cdot z\right) + \left(x \cdot \left(-t \cdot a\right) - b \cdot \left(c \cdot z\right)\right)\right) - b \cdot \left(-i \cdot a\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right) \leadsto \color{blue}{\left(x \cdot \left(y \cdot z\right) + \left(\left(x \cdot \left(-t \cdot a\right) - b \cdot \left(c \cdot z\right)\right) - b \cdot \left(-i \cdot a\right)\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right)\]
      3.3
    11. Applied associate-+l+ to get
      \[\color{red}{\left(x \cdot \left(y \cdot z\right) + \left(\left(x \cdot \left(-t \cdot a\right) - b \cdot \left(c \cdot z\right)\right) - b \cdot \left(-i \cdot a\right)\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)} \leadsto \color{blue}{x \cdot \left(y \cdot z\right) + \left(\left(\left(x \cdot \left(-t \cdot a\right) - b \cdot \left(c \cdot z\right)\right) - b \cdot \left(-i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\right)}\]
      3.3
    12. Applied simplify to get
      \[x \cdot \left(y \cdot z\right) + \color{red}{\left(\left(\left(x \cdot \left(-t \cdot a\right) - b \cdot \left(c \cdot z\right)\right) - b \cdot \left(-i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\right)} \leadsto x \cdot \left(y \cdot z\right) + \color{blue}{\left(\left(\left(-a\right) \cdot \left(t \cdot x - i \cdot b\right) + \left(t \cdot c - i \cdot y\right) \cdot j\right) - b \cdot \left(c \cdot z\right)\right)}\]
      5.9

    if -63.05097f0 < b < 3.3027935f-22

    1. Started with
      \[\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)\]
      7.2
    2. Using strategy rm
      7.2
    3. Applied add-cube-cbrt to get
      \[\color{red}{\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)} \leadsto \color{blue}{{\left(\sqrt[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)}\right)}^3}\]
      7.5
    4. Applied taylor to get
      \[{\left(\sqrt[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)}\right)}^3 \leadsto {\left(\sqrt[3]{\left(j \cdot \left(c \cdot t\right) + \left(y \cdot \left(x \cdot z\right) + b \cdot \left(a \cdot i\right)\right)\right) - \left(t \cdot \left(a \cdot x\right) + \left(j \cdot \left(y \cdot i\right) + b \cdot \left(c \cdot z\right)\right)\right)}\right)}^3\]
      7.5
    5. Taylor expanded around 0 to get
      \[{\color{red}{\left(\sqrt[3]{\left(j \cdot \left(c \cdot t\right) + \left(y \cdot \left(x \cdot z\right) + b \cdot \left(a \cdot i\right)\right)\right) - \left(t \cdot \left(a \cdot x\right) + \left(j \cdot \left(y \cdot i\right) + b \cdot \left(c \cdot z\right)\right)\right)}\right)}}^3 \leadsto {\color{blue}{\left(\sqrt[3]{\left(j \cdot \left(c \cdot t\right) + \left(y \cdot \left(x \cdot z\right) + b \cdot \left(a \cdot i\right)\right)\right) - \left(t \cdot \left(a \cdot x\right) + \left(j \cdot \left(y \cdot i\right) + b \cdot \left(c \cdot z\right)\right)\right)}\right)}}^3\]
      7.5
    6. Applied simplify to get
      \[{\left(\sqrt[3]{\left(j \cdot \left(c \cdot t\right) + \left(y \cdot \left(x \cdot z\right) + b \cdot \left(a \cdot i\right)\right)\right) - \left(t \cdot \left(a \cdot x\right) + \left(j \cdot \left(y \cdot i\right) + b \cdot \left(c \cdot z\right)\right)\right)}\right)}^3 \leadsto \left(\left(j \cdot t\right) \cdot c + \left(\left(i \cdot b\right) \cdot a + z \cdot \left(x \cdot y\right)\right)\right) - \left(\left(\left(i \cdot y\right) \cdot j + \left(t \cdot x\right) \cdot a\right) + \left(b \cdot z\right) \cdot c\right)\]
      4.0

    7. Applied final simplification
    8. Applied simplify to get
      \[\color{red}{\left(\left(j \cdot t\right) \cdot c + \left(\left(i \cdot b\right) \cdot a + z \cdot \left(x \cdot y\right)\right)\right) - \left(\left(\left(i \cdot y\right) \cdot j + \left(t \cdot x\right) \cdot a\right) + \left(b \cdot z\right) \cdot c\right)} \leadsto \color{blue}{\left(\left(j \cdot \left(c \cdot t\right) + \left(a \cdot b\right) \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\right) - \left(\left(a \cdot t\right) \cdot x + j \cdot \left(y \cdot i\right)\right)}\]
      4.7

    if 3.3027935f-22 < b

    1. Started with
      \[\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)\]
      4.4
    2. Using strategy rm
      4.4
    3. Applied add-cube-cbrt to get
      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - \color{red}{b \cdot \left(c \cdot z - i \cdot a\right)}\right) + j \cdot \left(c \cdot t - i \cdot y\right) \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)}\right)}^3}\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
      4.5

  1. Removed slow pow expressions

Original test:


(lambda ((x default) (y default) (z default) (t default) (a default) (b default) (c default) (i default) (j default))
  #: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)))))