| Alternative 1 | |
|---|---|
| Accuracy | 90.4% |
| Cost | 5832 |
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (- (* y z) (* t a)))
(t_3 (+ (- (* x t_2) (* b (- (* z c) (* t i)))) t_1)))
(if (<= t_3 (- INFINITY))
(- (+ (* y (* x z)) (* c (* a j))) (* a (* x t)))
(if (<= t_3 5e+307)
(fma x t_2 (fma b (- (* t i) (* z c)) t_1))
(+ (* a (- (* c j) (* x t))) (* y (- (* x z) (* i j))))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = (y * z) - (t * a);
double t_3 = ((x * t_2) - (b * ((z * c) - (t * i)))) + t_1;
double tmp;
if (t_3 <= -((double) INFINITY)) {
tmp = ((y * (x * z)) + (c * (a * j))) - (a * (x * t));
} else if (t_3 <= 5e+307) {
tmp = fma(x, t_2, fma(b, ((t * i) - (z * c)), t_1));
} else {
tmp = (a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(Float64(y * z) - Float64(t * a)) t_3 = Float64(Float64(Float64(x * t_2) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))) + t_1) tmp = 0.0 if (t_3 <= Float64(-Inf)) tmp = Float64(Float64(Float64(y * Float64(x * z)) + Float64(c * Float64(a * j))) - Float64(a * Float64(x * t))); elseif (t_3 <= 5e+307) tmp = fma(x, t_2, fma(b, Float64(Float64(t * i) - Float64(z * c)), t_1)); else tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(x * t$95$2), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[t$95$3, (-Infinity)], N[(N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 5e+307], N[(x * t$95$2 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := y \cdot z - t \cdot a\\
t_3 := \left(x \cdot t_2 - b \cdot \left(z \cdot c - t \cdot i\right)\right) + t_1\\
\mathbf{if}\;t_3 \leq -\infty:\\
\;\;\;\;\left(y \cdot \left(x \cdot z\right) + c \cdot \left(a \cdot j\right)\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;t_3 \leq 5 \cdot 10^{+307}:\\
\;\;\;\;\mathsf{fma}\left(x, t_2, \mathsf{fma}\left(b, t \cdot i - z \cdot c, t_1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
| Original | 81.0% |
|---|---|
| Target | 69.4% |
| Herbie | 90.4% |
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < -inf.0Initial program 0.0%
Simplified0.0%
[Start]0.0 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\] |
|---|---|
associate-+l- [=>]0.0 | \[ \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z - t \cdot i\right) - j \cdot \left(c \cdot a - y \cdot i\right)\right)}
\] |
fma-neg [=>]0.0 | \[ \color{blue}{\mathsf{fma}\left(x, y \cdot z - t \cdot a, -\left(b \cdot \left(c \cdot z - t \cdot i\right) - j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)}
\] |
neg-sub0 [=>]0.0 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{0 - \left(b \cdot \left(c \cdot z - t \cdot i\right) - j \cdot \left(c \cdot a - y \cdot i\right)\right)}\right)
\] |
associate-+l- [<=]0.0 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(0 - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)}\right)
\] |
neg-sub0 [<=]0.0 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right)\right)
\] |
distribute-rgt-neg-in [=>]0.0 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right)\right)
\] |
fma-def [=>]0.0 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right)\right)}\right)
\] |
sub-neg [=>]0.0 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
distribute-neg-in [=>]0.0 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-c \cdot z\right) + \left(-\left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
+-commutative [=>]0.0 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
remove-double-neg [=>]0.0 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{t \cdot i} + \left(-c \cdot z\right), j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
sub-neg [<=]0.0 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{t \cdot i - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
*-commutative [=>]0.0 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
*-commutative [=>]0.0 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, t \cdot i - z \cdot c, j \cdot \left(\color{blue}{a \cdot c} - y \cdot i\right)\right)\right)
\] |
Taylor expanded in b around 0 10.3%
Taylor expanded in z around 0 36.2%
Taylor expanded in c around inf 43.4%
Simplified43.4%
[Start]43.4 | \[ -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \left(y \cdot \left(z \cdot x\right) + c \cdot \left(a \cdot j\right)\right)
\] |
|---|---|
*-commutative [=>]43.4 | \[ -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \left(y \cdot \left(z \cdot x\right) + c \cdot \color{blue}{\left(j \cdot a\right)}\right)
\] |
if -inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < 5e307Initial program 98.5%
Simplified98.5%
[Start]98.5 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\] |
|---|---|
associate-+l- [=>]98.5 | \[ \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z - t \cdot i\right) - j \cdot \left(c \cdot a - y \cdot i\right)\right)}
\] |
fma-neg [=>]98.5 | \[ \color{blue}{\mathsf{fma}\left(x, y \cdot z - t \cdot a, -\left(b \cdot \left(c \cdot z - t \cdot i\right) - j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)}
\] |
neg-sub0 [=>]98.5 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{0 - \left(b \cdot \left(c \cdot z - t \cdot i\right) - j \cdot \left(c \cdot a - y \cdot i\right)\right)}\right)
\] |
associate-+l- [<=]98.5 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(0 - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)}\right)
\] |
neg-sub0 [<=]98.5 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right)\right)
\] |
distribute-rgt-neg-in [=>]98.5 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right)\right)
\] |
fma-def [=>]98.5 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right)\right)}\right)
\] |
sub-neg [=>]98.5 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
distribute-neg-in [=>]98.5 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-c \cdot z\right) + \left(-\left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
+-commutative [=>]98.5 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
remove-double-neg [=>]98.5 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{t \cdot i} + \left(-c \cdot z\right), j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
sub-neg [<=]98.5 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{t \cdot i - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
*-commutative [=>]98.5 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
*-commutative [=>]98.5 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, t \cdot i - z \cdot c, j \cdot \left(\color{blue}{a \cdot c} - y \cdot i\right)\right)\right)
\] |
if 5e307 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.4%
Simplified0.4%
[Start]0.4 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\] |
|---|---|
associate-+l- [=>]0.4 | \[ \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z - t \cdot i\right) - j \cdot \left(c \cdot a - y \cdot i\right)\right)}
\] |
fma-neg [=>]0.4 | \[ \color{blue}{\mathsf{fma}\left(x, y \cdot z - t \cdot a, -\left(b \cdot \left(c \cdot z - t \cdot i\right) - j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)}
\] |
neg-sub0 [=>]0.4 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{0 - \left(b \cdot \left(c \cdot z - t \cdot i\right) - j \cdot \left(c \cdot a - y \cdot i\right)\right)}\right)
\] |
associate-+l- [<=]0.4 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(0 - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)}\right)
\] |
neg-sub0 [<=]0.4 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right)\right)
\] |
distribute-rgt-neg-in [=>]0.4 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right)\right)
\] |
fma-def [=>]0.4 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right)\right)}\right)
\] |
sub-neg [=>]0.4 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
distribute-neg-in [=>]0.4 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-c \cdot z\right) + \left(-\left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
+-commutative [=>]0.4 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
remove-double-neg [=>]0.4 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{t \cdot i} + \left(-c \cdot z\right), j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
sub-neg [<=]0.4 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{t \cdot i - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
*-commutative [=>]0.4 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\] |
*-commutative [=>]0.4 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, t \cdot i - z \cdot c, j \cdot \left(\color{blue}{a \cdot c} - y \cdot i\right)\right)\right)
\] |
Taylor expanded in b around 0 8.5%
Taylor expanded in a around -inf 60.0%
Simplified60.0%
[Start]60.0 | \[ -1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + y \cdot \left(z \cdot x\right)\right)
\] |
|---|---|
+-commutative [=>]60.0 | \[ \color{blue}{\left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + y \cdot \left(z \cdot x\right)\right) + -1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right)}
\] |
mul-1-neg [=>]60.0 | \[ \left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + y \cdot \left(z \cdot x\right)\right) + \color{blue}{\left(-a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right)}
\] |
unsub-neg [=>]60.0 | \[ \color{blue}{\left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + y \cdot \left(z \cdot x\right)\right) - a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)}
\] |
+-commutative [=>]60.0 | \[ \color{blue}{\left(y \cdot \left(z \cdot x\right) + -1 \cdot \left(y \cdot \left(i \cdot j\right)\right)\right)} - a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)
\] |
*-commutative [=>]60.0 | \[ \left(y \cdot \left(z \cdot x\right) + \color{blue}{\left(y \cdot \left(i \cdot j\right)\right) \cdot -1}\right) - a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)
\] |
associate-*l* [=>]60.0 | \[ \left(y \cdot \left(z \cdot x\right) + \color{blue}{y \cdot \left(\left(i \cdot j\right) \cdot -1\right)}\right) - a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)
\] |
*-commutative [<=]60.0 | \[ \left(y \cdot \left(z \cdot x\right) + y \cdot \color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right)}\right) - a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)
\] |
distribute-lft-in [<=]60.0 | \[ \color{blue}{y \cdot \left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right)} - a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)
\] |
mul-1-neg [=>]60.0 | \[ y \cdot \left(z \cdot x + \color{blue}{\left(-i \cdot j\right)}\right) - a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)
\] |
unsub-neg [=>]60.0 | \[ y \cdot \color{blue}{\left(z \cdot x - i \cdot j\right)} - a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)
\] |
*-commutative [=>]60.0 | \[ y \cdot \left(\color{blue}{x \cdot z} - i \cdot j\right) - a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)
\] |
mul-1-neg [=>]60.0 | \[ y \cdot \left(x \cdot z - i \cdot j\right) - a \cdot \left(t \cdot x + \color{blue}{\left(-c \cdot j\right)}\right)
\] |
unsub-neg [=>]60.0 | \[ y \cdot \left(x \cdot z - i \cdot j\right) - a \cdot \color{blue}{\left(t \cdot x - c \cdot j\right)}
\] |
Final simplification90.4%
| Alternative 1 | |
|---|---|
| Accuracy | 90.4% |
| Cost | 5832 |
| Alternative 2 | |
|---|---|
| Accuracy | 90.4% |
| Cost | 5704 |
| Alternative 3 | |
|---|---|
| Accuracy | 40.9% |
| Cost | 2952 |
| Alternative 4 | |
|---|---|
| Accuracy | 40.9% |
| Cost | 2952 |
| Alternative 5 | |
|---|---|
| Accuracy | 45.0% |
| Cost | 2940 |
| Alternative 6 | |
|---|---|
| Accuracy | 45.5% |
| Cost | 2940 |
| Alternative 7 | |
|---|---|
| Accuracy | 50.0% |
| Cost | 2940 |
| Alternative 8 | |
|---|---|
| Accuracy | 50.5% |
| Cost | 2940 |
| Alternative 9 | |
|---|---|
| Accuracy | 44.0% |
| Cost | 2676 |
| Alternative 10 | |
|---|---|
| Accuracy | 33.1% |
| Cost | 2556 |
| Alternative 11 | |
|---|---|
| Accuracy | 33.2% |
| Cost | 2556 |
| Alternative 12 | |
|---|---|
| Accuracy | 41.3% |
| Cost | 2545 |
| Alternative 13 | |
|---|---|
| Accuracy | 51.1% |
| Cost | 2412 |
| Alternative 14 | |
|---|---|
| Accuracy | 67.4% |
| Cost | 2392 |
| Alternative 15 | |
|---|---|
| Accuracy | 40.9% |
| Cost | 2292 |
| Alternative 16 | |
|---|---|
| Accuracy | 53.8% |
| Cost | 2149 |
| Alternative 17 | |
|---|---|
| Accuracy | 58.5% |
| Cost | 2141 |
| Alternative 18 | |
|---|---|
| Accuracy | 41.1% |
| Cost | 1896 |
| Alternative 19 | |
|---|---|
| Accuracy | 49.8% |
| Cost | 1884 |
| Alternative 20 | |
|---|---|
| Accuracy | 60.6% |
| Cost | 1877 |
| Alternative 21 | |
|---|---|
| Accuracy | 67.1% |
| Cost | 1877 |
| Alternative 22 | |
|---|---|
| Accuracy | 67.3% |
| Cost | 1877 |
| Alternative 23 | |
|---|---|
| Accuracy | 41.8% |
| Cost | 1764 |
| Alternative 24 | |
|---|---|
| Accuracy | 24.8% |
| Cost | 1704 |
| Alternative 25 | |
|---|---|
| Accuracy | 40.0% |
| Cost | 1632 |
| Alternative 26 | |
|---|---|
| Accuracy | 22.9% |
| Cost | 1508 |
| Alternative 27 | |
|---|---|
| Accuracy | 35.2% |
| Cost | 1500 |
| Alternative 28 | |
|---|---|
| Accuracy | 22.7% |
| Cost | 1244 |
| Alternative 29 | |
|---|---|
| Accuracy | 22.9% |
| Cost | 1244 |
| Alternative 30 | |
|---|---|
| Accuracy | 21.9% |
| Cost | 1176 |
| Alternative 31 | |
|---|---|
| Accuracy | 22.5% |
| Cost | 1112 |
| Alternative 32 | |
|---|---|
| Accuracy | 22.3% |
| Cost | 981 |
| Alternative 33 | |
|---|---|
| Accuracy | 21.6% |
| Cost | 585 |
| Alternative 34 | |
|---|---|
| Accuracy | 22.5% |
| Cost | 585 |
| Alternative 35 | |
|---|---|
| Accuracy | 16.2% |
| Cost | 320 |
herbie shell --seed 2023133
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))