| Alternative 1 | |
|---|---|
| Accuracy | 91.4% |
| Cost | 11976 |
(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 (- (* y z) (* t a)))
(t_2 (* j (- (* a c) (* y i))))
(t_3 (* b (- (* t i) (* z c))))
(t_4 (+ t_2 (+ (* x t_1) t_3))))
(if (<= t_4 (- INFINITY))
(- (+ (+ (* y (* x z)) t_2) (* t (- (* b i) (* x a)))) (* c (* z b)))
(if (<= t_4 5e+307)
(+ t_2 (+ (fma x t_1 (* (fma (- a) t (* t a)) (+ x x))) t_3))
(+ (* i (- (* t b) (* y j))) (* c (- (* a j) (* z b))))))))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 = (y * z) - (t * a);
double t_2 = j * ((a * c) - (y * i));
double t_3 = b * ((t * i) - (z * c));
double t_4 = t_2 + ((x * t_1) + t_3);
double tmp;
if (t_4 <= -((double) INFINITY)) {
tmp = (((y * (x * z)) + t_2) + (t * ((b * i) - (x * a)))) - (c * (z * b));
} else if (t_4 <= 5e+307) {
tmp = t_2 + (fma(x, t_1, (fma(-a, t, (t * a)) * (x + x))) + t_3);
} else {
tmp = (i * ((t * b) - (y * j))) + (c * ((a * j) - (z * b)));
}
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(Float64(y * z) - Float64(t * a)) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_4 = Float64(t_2 + Float64(Float64(x * t_1) + t_3)) tmp = 0.0 if (t_4 <= Float64(-Inf)) tmp = Float64(Float64(Float64(Float64(y * Float64(x * z)) + t_2) + Float64(t * Float64(Float64(b * i) - Float64(x * a)))) - Float64(c * Float64(z * b))); elseif (t_4 <= 5e+307) tmp = Float64(t_2 + Float64(fma(x, t_1, Float64(fma(Float64(-a), t, Float64(t * a)) * Float64(x + x))) + t_3)); else tmp = Float64(Float64(i * Float64(Float64(t * b) - Float64(y * j))) + Float64(c * Float64(Float64(a * j) - Float64(z * b)))); 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[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$2 + N[(N[(x * t$95$1), $MachinePrecision] + t$95$3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, (-Infinity)], N[(N[(N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision] + N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$4, 5e+307], N[(t$95$2 + N[(N[(x * t$95$1 + N[(N[((-a) * t + N[(t * a), $MachinePrecision]), $MachinePrecision] * N[(x + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision]), $MachinePrecision], N[(N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $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 := y \cdot z - t \cdot a\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_4 := t_2 + \left(x \cdot t_1 + t_3\right)\\
\mathbf{if}\;t_4 \leq -\infty:\\
\;\;\;\;\left(\left(y \cdot \left(x \cdot z\right) + t_2\right) + t \cdot \left(b \cdot i - x \cdot a\right)\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;t_4 \leq 5 \cdot 10^{+307}:\\
\;\;\;\;t_2 + \left(\mathsf{fma}\left(x, t_1, \mathsf{fma}\left(-a, t, t \cdot a\right) \cdot \left(x + x\right)\right) + t_3\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right) + c \cdot \left(a \cdot j - z \cdot b\right)\\
\end{array}
| Original | 80.8% |
|---|---|
| Target | 68.5% |
| Herbie | 91.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)
\] |
|---|---|
+-commutative [=>]0.0 | \[ \color{blue}{j \cdot \left(c \cdot a - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right)}
\] |
fma-def [=>]0.0 | \[ \color{blue}{\mathsf{fma}\left(j, c \cdot a - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right)}
\] |
*-commutative [=>]0.0 | \[ \mathsf{fma}\left(j, \color{blue}{a \cdot c} - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right)
\] |
*-commutative [=>]0.0 | \[ \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - t \cdot i\right)\right)
\] |
Taylor expanded in t around -inf 53.8%
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.8%
Simplified98.8%
[Start]98.8 | \[ \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)
\] |
|---|---|
sub-neg [=>]98.8 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \color{blue}{\left(c \cdot a + \left(-y \cdot i\right)\right)}
\] |
distribute-rgt-in [=>]98.8 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(\left(c \cdot a\right) \cdot j + \left(-y \cdot i\right) \cdot j\right)}
\] |
associate-+r+ [=>]98.8 | \[ \color{blue}{\left(\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(c \cdot a\right) \cdot j\right) + \left(-y \cdot i\right) \cdot j}
\] |
*-commutative [=>]98.8 | \[ \left(\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(c \cdot a\right) \cdot j\right) + \color{blue}{j \cdot \left(-y \cdot i\right)}
\] |
cancel-sign-sub [<=]98.8 | \[ \color{blue}{\left(\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(c \cdot a\right) \cdot j\right) - \left(-j\right) \cdot \left(-y \cdot i\right)}
\] |
associate-+r- [<=]98.8 | \[ \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(\left(c \cdot a\right) \cdot j - \left(-j\right) \cdot \left(-y \cdot i\right)\right)}
\] |
*-commutative [=>]98.8 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - t \cdot i\right)\right) + \left(\left(c \cdot a\right) \cdot j - \left(-j\right) \cdot \left(-y \cdot i\right)\right)
\] |
cancel-sign-sub [=>]98.8 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \color{blue}{\left(\left(c \cdot a\right) \cdot j + j \cdot \left(-y \cdot i\right)\right)}
\] |
*-commutative [<=]98.8 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \left(\left(c \cdot a\right) \cdot j + \color{blue}{\left(-y \cdot i\right) \cdot j}\right)
\] |
distribute-rgt-in [<=]98.8 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \color{blue}{j \cdot \left(c \cdot a + \left(-y \cdot i\right)\right)}
\] |
Applied egg-rr98.8%
Simplified98.8%
[Start]98.8 | \[ \left(\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(x \cdot \mathsf{fma}\left(-a, t, t \cdot a\right) + x \cdot \mathsf{fma}\left(-a, t, t \cdot a\right)\right)\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)
\] |
|---|---|
distribute-lft-out [=>]98.8 | \[ \left(\left(x \cdot \left(y \cdot z - t \cdot a\right) + \color{blue}{x \cdot \left(\mathsf{fma}\left(-a, t, t \cdot a\right) + \mathsf{fma}\left(-a, t, t \cdot a\right)\right)}\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)
\] |
distribute-rgt-out [<=]98.8 | \[ \left(\left(x \cdot \left(y \cdot z - t \cdot a\right) + \color{blue}{\left(\mathsf{fma}\left(-a, t, t \cdot a\right) \cdot x + \mathsf{fma}\left(-a, t, t \cdot a\right) \cdot x\right)}\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)
\] |
fma-def [=>]98.8 | \[ \left(\color{blue}{\mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(-a, t, t \cdot a\right) \cdot x + \mathsf{fma}\left(-a, t, t \cdot a\right) \cdot x\right)} - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)
\] |
*-commutative [<=]98.8 | \[ \left(\mathsf{fma}\left(x, y \cdot z - \color{blue}{a \cdot t}, \mathsf{fma}\left(-a, t, t \cdot a\right) \cdot x + \mathsf{fma}\left(-a, t, t \cdot a\right) \cdot x\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)
\] |
distribute-lft-out [=>]98.8 | \[ \left(\mathsf{fma}\left(x, y \cdot z - a \cdot t, \color{blue}{\mathsf{fma}\left(-a, t, t \cdot a\right) \cdot \left(x + x\right)}\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)
\] |
*-commutative [<=]98.8 | \[ \left(\mathsf{fma}\left(x, y \cdot z - a \cdot t, \mathsf{fma}\left(-a, t, \color{blue}{a \cdot t}\right) \cdot \left(x + x\right)\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\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 1.0%
Simplified1.0%
[Start]1.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)
\] |
|---|---|
+-commutative [=>]1.0 | \[ \color{blue}{j \cdot \left(c \cdot a - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right)}
\] |
fma-def [=>]1.0 | \[ \color{blue}{\mathsf{fma}\left(j, c \cdot a - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right)}
\] |
*-commutative [=>]1.0 | \[ \mathsf{fma}\left(j, \color{blue}{a \cdot c} - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right)
\] |
*-commutative [=>]1.0 | \[ \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - t \cdot i\right)\right)
\] |
Taylor expanded in x around 0 8.9%
Simplified8.9%
[Start]8.9 | \[ \left(c \cdot a - i \cdot y\right) \cdot j - \left(c \cdot z - i \cdot t\right) \cdot b
\] |
|---|---|
sub-neg [=>]8.9 | \[ \color{blue}{\left(c \cdot a - i \cdot y\right) \cdot j + \left(-\left(c \cdot z - i \cdot t\right) \cdot b\right)}
\] |
*-commutative [=>]8.9 | \[ \color{blue}{j \cdot \left(c \cdot a - i \cdot y\right)} + \left(-\left(c \cdot z - i \cdot t\right) \cdot b\right)
\] |
*-commutative [=>]8.9 | \[ j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) + \left(-\left(c \cdot z - i \cdot t\right) \cdot b\right)
\] |
*-commutative [=>]8.9 | \[ j \cdot \left(a \cdot c - \color{blue}{y \cdot i}\right) + \left(-\left(c \cdot z - i \cdot t\right) \cdot b\right)
\] |
distribute-rgt-neg-out [<=]8.9 | \[ j \cdot \left(a \cdot c - y \cdot i\right) + \color{blue}{\left(c \cdot z - i \cdot t\right) \cdot \left(-b\right)}
\] |
+-commutative [=>]8.9 | \[ \color{blue}{\left(c \cdot z - i \cdot t\right) \cdot \left(-b\right) + j \cdot \left(a \cdot c - y \cdot i\right)}
\] |
distribute-rgt-neg-out [=>]8.9 | \[ \color{blue}{\left(-\left(c \cdot z - i \cdot t\right) \cdot b\right)} + j \cdot \left(a \cdot c - y \cdot i\right)
\] |
distribute-lft-neg-in [=>]8.9 | \[ \color{blue}{\left(-\left(c \cdot z - i \cdot t\right)\right) \cdot b} + j \cdot \left(a \cdot c - y \cdot i\right)
\] |
*-commutative [=>]8.9 | \[ \color{blue}{b \cdot \left(-\left(c \cdot z - i \cdot t\right)\right)} + j \cdot \left(a \cdot c - y \cdot i\right)
\] |
fma-udef [<=]8.9 | \[ \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - i \cdot t\right), j \cdot \left(a \cdot c - y \cdot i\right)\right)}
\] |
neg-sub0 [=>]8.9 | \[ \mathsf{fma}\left(b, \color{blue}{0 - \left(c \cdot z - i \cdot t\right)}, j \cdot \left(a \cdot c - y \cdot i\right)\right)
\] |
associate--r- [=>]8.9 | \[ \mathsf{fma}\left(b, \color{blue}{\left(0 - c \cdot z\right) + i \cdot t}, j \cdot \left(a \cdot c - y \cdot i\right)\right)
\] |
neg-sub0 [<=]8.9 | \[ \mathsf{fma}\left(b, \color{blue}{\left(-c \cdot z\right)} + i \cdot t, j \cdot \left(a \cdot c - y \cdot i\right)\right)
\] |
+-commutative [<=]8.9 | \[ \mathsf{fma}\left(b, \color{blue}{i \cdot t + \left(-c \cdot z\right)}, j \cdot \left(a \cdot c - y \cdot i\right)\right)
\] |
sub-neg [<=]8.9 | \[ \mathsf{fma}\left(b, \color{blue}{i \cdot t - c \cdot z}, j \cdot \left(a \cdot c - y \cdot i\right)\right)
\] |
*-commutative [=>]8.9 | \[ \mathsf{fma}\left(b, i \cdot t - \color{blue}{z \cdot c}, j \cdot \left(a \cdot c - y \cdot i\right)\right)
\] |
*-commutative [=>]8.9 | \[ \mathsf{fma}\left(b, \color{blue}{t \cdot i} - z \cdot c, j \cdot \left(a \cdot c - y \cdot i\right)\right)
\] |
Taylor expanded in c around -inf 59.5%
Simplified61.9%
[Start]59.5 | \[ i \cdot \left(t \cdot b\right) + \left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + -1 \cdot \left(c \cdot \left(z \cdot b + -1 \cdot \left(a \cdot j\right)\right)\right)\right)
\] |
|---|---|
associate-+r+ [=>]59.5 | \[ \color{blue}{\left(i \cdot \left(t \cdot b\right) + -1 \cdot \left(y \cdot \left(i \cdot j\right)\right)\right) + -1 \cdot \left(c \cdot \left(z \cdot b + -1 \cdot \left(a \cdot j\right)\right)\right)}
\] |
*-commutative [=>]59.5 | \[ \left(i \cdot \left(t \cdot b\right) + -1 \cdot \left(y \cdot \color{blue}{\left(j \cdot i\right)}\right)\right) + -1 \cdot \left(c \cdot \left(z \cdot b + -1 \cdot \left(a \cdot j\right)\right)\right)
\] |
associate-*r* [=>]61.9 | \[ \left(i \cdot \left(t \cdot b\right) + -1 \cdot \color{blue}{\left(\left(y \cdot j\right) \cdot i\right)}\right) + -1 \cdot \left(c \cdot \left(z \cdot b + -1 \cdot \left(a \cdot j\right)\right)\right)
\] |
associate-*l* [<=]61.9 | \[ \left(i \cdot \left(t \cdot b\right) + \color{blue}{\left(-1 \cdot \left(y \cdot j\right)\right) \cdot i}\right) + -1 \cdot \left(c \cdot \left(z \cdot b + -1 \cdot \left(a \cdot j\right)\right)\right)
\] |
*-commutative [=>]61.9 | \[ \left(\color{blue}{\left(t \cdot b\right) \cdot i} + \left(-1 \cdot \left(y \cdot j\right)\right) \cdot i\right) + -1 \cdot \left(c \cdot \left(z \cdot b + -1 \cdot \left(a \cdot j\right)\right)\right)
\] |
distribute-rgt-in [<=]61.9 | \[ \color{blue}{i \cdot \left(t \cdot b + -1 \cdot \left(y \cdot j\right)\right)} + -1 \cdot \left(c \cdot \left(z \cdot b + -1 \cdot \left(a \cdot j\right)\right)\right)
\] |
mul-1-neg [=>]61.9 | \[ i \cdot \left(t \cdot b + -1 \cdot \left(y \cdot j\right)\right) + \color{blue}{\left(-c \cdot \left(z \cdot b + -1 \cdot \left(a \cdot j\right)\right)\right)}
\] |
unsub-neg [=>]61.9 | \[ \color{blue}{i \cdot \left(t \cdot b + -1 \cdot \left(y \cdot j\right)\right) - c \cdot \left(z \cdot b + -1 \cdot \left(a \cdot j\right)\right)}
\] |
mul-1-neg [=>]61.9 | \[ i \cdot \left(t \cdot b + \color{blue}{\left(-y \cdot j\right)}\right) - c \cdot \left(z \cdot b + -1 \cdot \left(a \cdot j\right)\right)
\] |
unsub-neg [=>]61.9 | \[ i \cdot \color{blue}{\left(t \cdot b - y \cdot j\right)} - c \cdot \left(z \cdot b + -1 \cdot \left(a \cdot j\right)\right)
\] |
mul-1-neg [=>]61.9 | \[ i \cdot \left(t \cdot b - y \cdot j\right) - c \cdot \left(z \cdot b + \color{blue}{\left(-a \cdot j\right)}\right)
\] |
unsub-neg [=>]61.9 | \[ i \cdot \left(t \cdot b - y \cdot j\right) - c \cdot \color{blue}{\left(z \cdot b - a \cdot j\right)}
\] |
Final simplification91.4%
| Alternative 1 | |
|---|---|
| Accuracy | 91.4% |
| Cost | 11976 |
| Alternative 2 | |
|---|---|
| Accuracy | 90.1% |
| Cost | 5832 |
| Alternative 3 | |
|---|---|
| Accuracy | 91.4% |
| Cost | 5832 |
| Alternative 4 | |
|---|---|
| Accuracy | 90.1% |
| Cost | 5704 |
| Alternative 5 | |
|---|---|
| Accuracy | 51.0% |
| Cost | 2932 |
| Alternative 6 | |
|---|---|
| Accuracy | 57.4% |
| Cost | 2536 |
| Alternative 7 | |
|---|---|
| Accuracy | 36.6% |
| Cost | 2292 |
| Alternative 8 | |
|---|---|
| Accuracy | 48.1% |
| Cost | 2281 |
| Alternative 9 | |
|---|---|
| Accuracy | 62.3% |
| Cost | 2272 |
| Alternative 10 | |
|---|---|
| Accuracy | 40.3% |
| Cost | 2028 |
| Alternative 11 | |
|---|---|
| Accuracy | 44.8% |
| Cost | 2016 |
| Alternative 12 | |
|---|---|
| Accuracy | 50.5% |
| Cost | 2016 |
| Alternative 13 | |
|---|---|
| Accuracy | 66.9% |
| Cost | 2008 |
| Alternative 14 | |
|---|---|
| Accuracy | 40.1% |
| Cost | 1892 |
| Alternative 15 | |
|---|---|
| Accuracy | 40.0% |
| Cost | 1892 |
| Alternative 16 | |
|---|---|
| Accuracy | 21.8% |
| Cost | 1836 |
| Alternative 17 | |
|---|---|
| Accuracy | 21.6% |
| Cost | 1836 |
| Alternative 18 | |
|---|---|
| Accuracy | 33.8% |
| Cost | 1764 |
| Alternative 19 | |
|---|---|
| Accuracy | 40.7% |
| Cost | 1764 |
| Alternative 20 | |
|---|---|
| Accuracy | 41.2% |
| Cost | 1764 |
| Alternative 21 | |
|---|---|
| Accuracy | 40.2% |
| Cost | 1764 |
| Alternative 22 | |
|---|---|
| Accuracy | 47.1% |
| Cost | 1752 |
| Alternative 23 | |
|---|---|
| Accuracy | 51.2% |
| Cost | 1752 |
| Alternative 24 | |
|---|---|
| Accuracy | 21.7% |
| Cost | 1704 |
| Alternative 25 | |
|---|---|
| Accuracy | 39.9% |
| Cost | 1632 |
| Alternative 26 | |
|---|---|
| Accuracy | 21.5% |
| Cost | 1376 |
| Alternative 27 | |
|---|---|
| Accuracy | 34.2% |
| Cost | 1368 |
| Alternative 28 | |
|---|---|
| Accuracy | 20.4% |
| Cost | 1245 |
| Alternative 29 | |
|---|---|
| Accuracy | 22.0% |
| Cost | 1112 |
| Alternative 30 | |
|---|---|
| Accuracy | 21.0% |
| Cost | 717 |
| Alternative 31 | |
|---|---|
| Accuracy | 16.3% |
| Cost | 320 |
herbie shell --seed 2023141
(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)))))