| Alternative 1 | |
|---|---|
| Error | 5.6 |
| Cost | 5704 |
(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 (* b (- (* t i) (* z c))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* j (- (* a c) (* y i))))
(t_4 (+ (+ t_2 t_1) t_3)))
(if (<= t_4 (- INFINITY))
(+ (- (* z (* x y)) (* z (* b c))) (- (* c (* a j)) (* y (* i j))))
(if (<= t_4 2e+304)
(+ (+ (+ (* x (fma (- a) t (* t a))) t_2) t_1) t_3)
(+ (* t (- (* b i) (* x a))) (* z (- (* x y) (* b c))))))))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 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = j * ((a * c) - (y * i));
double t_4 = (t_2 + t_1) + t_3;
double tmp;
if (t_4 <= -((double) INFINITY)) {
tmp = ((z * (x * y)) - (z * (b * c))) + ((c * (a * j)) - (y * (i * j)));
} else if (t_4 <= 2e+304) {
tmp = (((x * fma(-a, t, (t * a))) + t_2) + t_1) + t_3;
} else {
tmp = (t * ((b * i) - (x * a))) + (z * ((x * y) - (b * c)));
}
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(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_4 = Float64(Float64(t_2 + t_1) + t_3) tmp = 0.0 if (t_4 <= Float64(-Inf)) tmp = Float64(Float64(Float64(z * Float64(x * y)) - Float64(z * Float64(b * c))) + Float64(Float64(c * Float64(a * j)) - Float64(y * Float64(i * j)))); elseif (t_4 <= 2e+304) tmp = Float64(Float64(Float64(Float64(x * fma(Float64(-a), t, Float64(t * a))) + t_2) + t_1) + t_3); else tmp = Float64(Float64(t * Float64(Float64(b * i) - Float64(x * a))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); 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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(t$95$2 + t$95$1), $MachinePrecision] + t$95$3), $MachinePrecision]}, If[LessEqual[t$95$4, (-Infinity)], N[(N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$4, 2e+304], N[(N[(N[(N[(x * N[((-a) * t + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision] + t$95$1), $MachinePrecision] + t$95$3), $MachinePrecision], N[(N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $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 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_4 := \left(t_2 + t_1\right) + t_3\\
\mathbf{if}\;t_4 \leq -\infty:\\
\;\;\;\;\left(z \cdot \left(x \cdot y\right) - z \cdot \left(b \cdot c\right)\right) + \left(c \cdot \left(a \cdot j\right) - y \cdot \left(i \cdot j\right)\right)\\
\mathbf{elif}\;t_4 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;\left(\left(x \cdot \mathsf{fma}\left(-a, t, t \cdot a\right) + t_2\right) + t_1\right) + t_3\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
| Original | 12.4 |
|---|---|
| Target | 20.3 |
| Herbie | 5.6 |
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 64.0
Simplified64.0
[Start]64.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)
\] |
|---|---|
sub-neg [=>]64.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 \color{blue}{\left(c \cdot a + \left(-y \cdot i\right)\right)}
\] |
distribute-rgt-in [=>]64.0 | \[ \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+ [=>]64.0 | \[ \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 [=>]64.0 | \[ \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 [<=]64.0 | \[ \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- [<=]64.0 | \[ \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 [=>]64.0 | \[ \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 [=>]64.0 | \[ \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 [<=]64.0 | \[ \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 [<=]64.0 | \[ \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)}
\] |
Taylor expanded in y around 0 44.4
Taylor expanded in y around inf 31.8
Simplified33.3
[Start]31.8 | \[ \left(y \cdot \left(z \cdot x\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + c \cdot \left(a \cdot j\right)\right)
\] |
|---|---|
associate-*r* [=>]43.0 | \[ \left(\color{blue}{\left(y \cdot z\right) \cdot x} - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + c \cdot \left(a \cdot j\right)\right)
\] |
*-commutative [=>]43.0 | \[ \left(\color{blue}{x \cdot \left(y \cdot z\right)} - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + c \cdot \left(a \cdot j\right)\right)
\] |
associate-*r* [=>]33.3 | \[ \left(\color{blue}{\left(x \cdot y\right) \cdot z} - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + c \cdot \left(a \cdot j\right)\right)
\] |
Taylor expanded in z around inf 29.0
Simplified28.9
[Start]29.0 | \[ \left(\left(x \cdot y\right) \cdot z - c \cdot \left(z \cdot b\right)\right) + \left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + c \cdot \left(a \cdot j\right)\right)
\] |
|---|---|
associate-*r* [=>]35.2 | \[ \left(\left(x \cdot y\right) \cdot z - \color{blue}{\left(c \cdot z\right) \cdot b}\right) + \left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + c \cdot \left(a \cdot j\right)\right)
\] |
*-commutative [=>]35.2 | \[ \left(\left(x \cdot y\right) \cdot z - \color{blue}{\left(z \cdot c\right)} \cdot b\right) + \left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + c \cdot \left(a \cdot j\right)\right)
\] |
associate-*l* [=>]28.9 | \[ \left(\left(x \cdot y\right) \cdot z - \color{blue}{z \cdot \left(c \cdot b\right)}\right) + \left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + c \cdot \left(a \cdot j\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)))) < 1.9999999999999999e304Initial program 0.8
Simplified0.8
[Start]0.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 [=>]0.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 [=>]0.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+ [=>]0.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 [=>]0.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 [<=]0.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- [<=]0.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 [=>]0.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 [=>]0.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 [<=]0.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 [<=]0.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-rr0.8
if 1.9999999999999999e304 < (+.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 60.9
Simplified60.9
[Start]60.9 | \[ \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- [=>]60.9 | \[ \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 [=>]60.9 | \[ \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 [=>]60.9 | \[ \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- [<=]60.9 | \[ \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 [<=]60.9 | \[ \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 [=>]60.9 | \[ \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 [=>]60.9 | \[ \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 [=>]60.9 | \[ \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 [=>]60.9 | \[ \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 [=>]60.9 | \[ \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 [=>]60.9 | \[ \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 [<=]60.9 | \[ \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 [=>]60.9 | \[ \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 [=>]60.9 | \[ \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 j around 0 55.3
Taylor expanded in z around -inf 26.2
Simplified24.6
[Start]26.2 | \[ i \cdot \left(t \cdot b\right) + \left(-1 \cdot \left(\left(c \cdot b + -1 \cdot \left(y \cdot x\right)\right) \cdot z\right) + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right)
\] |
|---|---|
+-commutative [=>]26.2 | \[ i \cdot \left(t \cdot b\right) + \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + -1 \cdot \left(\left(c \cdot b + -1 \cdot \left(y \cdot x\right)\right) \cdot z\right)\right)}
\] |
mul-1-neg [=>]26.2 | \[ i \cdot \left(t \cdot b\right) + \left(\color{blue}{\left(-a \cdot \left(t \cdot x\right)\right)} + -1 \cdot \left(\left(c \cdot b + -1 \cdot \left(y \cdot x\right)\right) \cdot z\right)\right)
\] |
associate-*r* [=>]33.9 | \[ i \cdot \left(t \cdot b\right) + \left(\left(-\color{blue}{\left(a \cdot t\right) \cdot x}\right) + -1 \cdot \left(\left(c \cdot b + -1 \cdot \left(y \cdot x\right)\right) \cdot z\right)\right)
\] |
distribute-lft-neg-out [<=]33.9 | \[ i \cdot \left(t \cdot b\right) + \left(\color{blue}{\left(-a \cdot t\right) \cdot x} + -1 \cdot \left(\left(c \cdot b + -1 \cdot \left(y \cdot x\right)\right) \cdot z\right)\right)
\] |
mul-1-neg [=>]33.9 | \[ i \cdot \left(t \cdot b\right) + \left(\left(-a \cdot t\right) \cdot x + \color{blue}{\left(-\left(c \cdot b + -1 \cdot \left(y \cdot x\right)\right) \cdot z\right)}\right)
\] |
unsub-neg [=>]33.9 | \[ i \cdot \left(t \cdot b\right) + \color{blue}{\left(\left(-a \cdot t\right) \cdot x - \left(c \cdot b + -1 \cdot \left(y \cdot x\right)\right) \cdot z\right)}
\] |
associate-+r- [=>]33.9 | \[ \color{blue}{\left(i \cdot \left(t \cdot b\right) + \left(-a \cdot t\right) \cdot x\right) - \left(c \cdot b + -1 \cdot \left(y \cdot x\right)\right) \cdot z}
\] |
Final simplification5.6
| Alternative 1 | |
|---|---|
| Error | 5.6 |
| Cost | 5704 |
| Alternative 2 | |
|---|---|
| Error | 17.9 |
| Cost | 2656 |
| Alternative 3 | |
|---|---|
| Error | 18.4 |
| Cost | 2656 |
| Alternative 4 | |
|---|---|
| Error | 23.1 |
| Cost | 2401 |
| Alternative 5 | |
|---|---|
| Error | 38.9 |
| Cost | 2293 |
| Alternative 6 | |
|---|---|
| Error | 38.9 |
| Cost | 2293 |
| Alternative 7 | |
|---|---|
| Error | 35.9 |
| Cost | 2280 |
| Alternative 8 | |
|---|---|
| Error | 24.7 |
| Cost | 2272 |
| Alternative 9 | |
|---|---|
| Error | 38.9 |
| Cost | 2160 |
| Alternative 10 | |
|---|---|
| Error | 35.7 |
| Cost | 2148 |
| Alternative 11 | |
|---|---|
| Error | 22.6 |
| Cost | 2140 |
| Alternative 12 | |
|---|---|
| Error | 20.9 |
| Cost | 2140 |
| Alternative 13 | |
|---|---|
| Error | 37.8 |
| Cost | 2028 |
| Alternative 14 | |
|---|---|
| Error | 22.7 |
| Cost | 2008 |
| Alternative 15 | |
|---|---|
| Error | 49.6 |
| Cost | 1768 |
| Alternative 16 | |
|---|---|
| Error | 42.4 |
| Cost | 1764 |
| Alternative 17 | |
|---|---|
| Error | 37.3 |
| Cost | 1764 |
| Alternative 18 | |
|---|---|
| Error | 25.5 |
| Cost | 1746 |
| Alternative 19 | |
|---|---|
| Error | 49.3 |
| Cost | 1704 |
| Alternative 20 | |
|---|---|
| Error | 49.5 |
| Cost | 1704 |
| Alternative 21 | |
|---|---|
| Error | 49.7 |
| Cost | 1704 |
| Alternative 22 | |
|---|---|
| Error | 41.7 |
| Cost | 1632 |
| Alternative 23 | |
|---|---|
| Error | 36.9 |
| Cost | 1632 |
| Alternative 24 | |
|---|---|
| Error | 37.3 |
| Cost | 1632 |
| Alternative 25 | |
|---|---|
| Error | 51.0 |
| Cost | 1244 |
| Alternative 26 | |
|---|---|
| Error | 51.0 |
| Cost | 1244 |
| Alternative 27 | |
|---|---|
| Error | 50.6 |
| Cost | 1112 |
| Alternative 28 | |
|---|---|
| Error | 50.9 |
| Cost | 585 |
| Alternative 29 | |
|---|---|
| Error | 49.7 |
| Cost | 585 |
| Alternative 30 | |
|---|---|
| Error | 53.6 |
| Cost | 320 |
| Alternative 31 | |
|---|---|
| Error | 53.6 |
| Cost | 320 |
herbie shell --seed 2023031
(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)))))