| Alternative 1 | |
|---|---|
| Error | 5.4 |
| Cost | 12680 |
(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 (* x (- (* y z) (* t a))))
(t_2 (* c (* a j)))
(t_3 (* j (- (* a c) (* y i))))
(t_4 (+ t_3 (+ t_1 (* b (- (* t i) (* z c)))))))
(if (<= t_4 (- INFINITY))
(- (+ (+ t_1 t_2) (* i (- (* t b) (* y j)))) (* c (* z b)))
(if (<= t_4 2e+306)
(+
(- t_1 (fma b (- (* z c) (* t i)) (* (+ b b) (fma (- i) t (* t i)))))
t_3)
(+ (* t (- (* b i) (* x a))) (- t_2 (* y (* 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 = x * ((y * z) - (t * a));
double t_2 = c * (a * j);
double t_3 = j * ((a * c) - (y * i));
double t_4 = t_3 + (t_1 + (b * ((t * i) - (z * c))));
double tmp;
if (t_4 <= -((double) INFINITY)) {
tmp = ((t_1 + t_2) + (i * ((t * b) - (y * j)))) - (c * (z * b));
} else if (t_4 <= 2e+306) {
tmp = (t_1 - fma(b, ((z * c) - (t * i)), ((b + b) * fma(-i, t, (t * i))))) + t_3;
} else {
tmp = (t * ((b * i) - (x * a))) + (t_2 - (y * (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(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(c * Float64(a * j)) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_4 = Float64(t_3 + Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c))))) tmp = 0.0 if (t_4 <= Float64(-Inf)) tmp = Float64(Float64(Float64(t_1 + t_2) + Float64(i * Float64(Float64(t * b) - Float64(y * j)))) - Float64(c * Float64(z * b))); elseif (t_4 <= 2e+306) tmp = Float64(Float64(t_1 - fma(b, Float64(Float64(z * c) - Float64(t * i)), Float64(Float64(b + b) * fma(Float64(-i), t, Float64(t * i))))) + t_3); else tmp = Float64(Float64(t * Float64(Float64(b * i) - Float64(x * a))) + Float64(t_2 - Float64(y * 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 + N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, (-Infinity)], N[(N[(N[(t$95$1 + t$95$2), $MachinePrecision] + N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$4, 2e+306], N[(N[(t$95$1 - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision] + N[(N[(b + b), $MachinePrecision] * N[((-i) * t + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision], N[(N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 - N[(y * 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 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := c \cdot \left(a \cdot j\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_4 := t_3 + \left(t_1 + b \cdot \left(t \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t_4 \leq -\infty:\\
\;\;\;\;\left(\left(t_1 + t_2\right) + i \cdot \left(t \cdot b - y \cdot j\right)\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;t_4 \leq 2 \cdot 10^{+306}:\\
\;\;\;\;\left(t_1 - \mathsf{fma}\left(b, z \cdot c - t \cdot i, \left(b + b\right) \cdot \mathsf{fma}\left(-i, t, t \cdot i\right)\right)\right) + t_3\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right) + \left(t_2 - y \cdot \left(i \cdot j\right)\right)\\
\end{array}
| Original | 12.2 |
|---|---|
| Target | 20.0 |
| Herbie | 5.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 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)
\] |
|---|---|
+-commutative [=>]64.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 [=>]64.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 [=>]64.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 [=>]64.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 i around -inf 22.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)))) < 2.00000000000000003e306Initial 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)
\] |
|---|---|
sub-neg [=>]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 \color{blue}{\left(c \cdot a + \left(-y \cdot i\right)\right)}
\] |
distribute-rgt-in [=>]1.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+ [=>]1.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 [=>]1.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 [<=]1.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- [<=]1.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 [=>]1.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 [=>]1.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 [<=]1.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 [<=]1.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)}
\] |
sub-neg [<=]1.0 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \color{blue}{\left(c \cdot a - y \cdot i\right)}
\] |
*-commutative [=>]1.0 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(\color{blue}{a \cdot c} - y \cdot i\right)
\] |
Applied egg-rr1.0
Simplified1.0
[Start]1.0 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(z \cdot c - t \cdot i\right) + \left(b \cdot \mathsf{fma}\left(-i, t, t \cdot i\right) + b \cdot \mathsf{fma}\left(-i, t, t \cdot i\right)\right)\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)
\] |
|---|---|
fma-def [=>]1.0 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - \color{blue}{\mathsf{fma}\left(b, z \cdot c - t \cdot i, b \cdot \mathsf{fma}\left(-i, t, t \cdot i\right) + b \cdot \mathsf{fma}\left(-i, t, t \cdot i\right)\right)}\right) + j \cdot \left(a \cdot c - y \cdot i\right)
\] |
*-commutative [=>]1.0 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - \mathsf{fma}\left(b, \color{blue}{c \cdot z} - t \cdot i, b \cdot \mathsf{fma}\left(-i, t, t \cdot i\right) + b \cdot \mathsf{fma}\left(-i, t, t \cdot i\right)\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)
\] |
*-commutative [<=]1.0 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - \mathsf{fma}\left(b, c \cdot z - \color{blue}{i \cdot t}, b \cdot \mathsf{fma}\left(-i, t, t \cdot i\right) + b \cdot \mathsf{fma}\left(-i, t, t \cdot i\right)\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)
\] |
distribute-rgt-out [=>]1.0 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - \mathsf{fma}\left(b, c \cdot z - i \cdot t, \color{blue}{\mathsf{fma}\left(-i, t, t \cdot i\right) \cdot \left(b + b\right)}\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)
\] |
*-commutative [<=]1.0 | \[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - \mathsf{fma}\left(b, c \cdot z - i \cdot t, \mathsf{fma}\left(-i, t, \color{blue}{i \cdot t}\right) \cdot \left(b + b\right)\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)
\] |
if 2.00000000000000003e306 < (+.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 62.5
Simplified62.5
[Start]62.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- [=>]62.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 [=>]62.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 [=>]62.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- [<=]62.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 [<=]62.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 [=>]62.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 [=>]62.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 [=>]62.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 [=>]62.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 [=>]62.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 [=>]62.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 [<=]62.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 [=>]62.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 [=>]62.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)
\] |
Taylor expanded in z around 0 44.8
Simplified41.7
[Start]44.8 | \[ i \cdot \left(t \cdot b\right) + \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)
\] |
|---|---|
associate-+r+ [=>]44.8 | \[ \color{blue}{\left(i \cdot \left(t \cdot b\right) + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)}
\] |
mul-1-neg [=>]44.8 | \[ \left(i \cdot \left(t \cdot b\right) + \color{blue}{\left(-a \cdot \left(t \cdot x\right)\right)}\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\] |
unsub-neg [=>]44.8 | \[ \color{blue}{\left(i \cdot \left(t \cdot b\right) - a \cdot \left(t \cdot x\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right)
\] |
*-commutative [=>]44.8 | \[ \left(i \cdot \left(t \cdot b\right) - a \cdot \color{blue}{\left(x \cdot t\right)}\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\] |
associate-*r* [=>]43.3 | \[ \left(i \cdot \left(t \cdot b\right) - \color{blue}{\left(a \cdot x\right) \cdot t}\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\] |
*-commutative [=>]43.3 | \[ \left(i \cdot \color{blue}{\left(b \cdot t\right)} - \left(a \cdot x\right) \cdot t\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\] |
associate-*r* [=>]41.7 | \[ \left(\color{blue}{\left(i \cdot b\right) \cdot t} - \left(a \cdot x\right) \cdot t\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\] |
distribute-rgt-out-- [=>]41.7 | \[ \color{blue}{t \cdot \left(i \cdot b - a \cdot x\right)} + j \cdot \left(c \cdot a - y \cdot i\right)
\] |
*-commutative [<=]41.7 | \[ t \cdot \left(i \cdot b - a \cdot x\right) + j \cdot \left(c \cdot a - \color{blue}{i \cdot y}\right)
\] |
Taylor expanded in c around 0 27.7
Final simplification5.4
| Alternative 1 | |
|---|---|
| Error | 5.4 |
| Cost | 12680 |
| Alternative 2 | |
|---|---|
| Error | 5.4 |
| Cost | 12680 |
| Alternative 3 | |
|---|---|
| Error | 5.9 |
| Cost | 5833 |
| Alternative 4 | |
|---|---|
| Error | 5.4 |
| Cost | 5832 |
| Alternative 5 | |
|---|---|
| Error | 5.9 |
| Cost | 5705 |
| Alternative 6 | |
|---|---|
| Error | 36.8 |
| Cost | 2820 |
| Alternative 7 | |
|---|---|
| Error | 35.6 |
| Cost | 2808 |
| Alternative 8 | |
|---|---|
| Error | 20.3 |
| Cost | 2784 |
| Alternative 9 | |
|---|---|
| Error | 28.4 |
| Cost | 2668 |
| Alternative 10 | |
|---|---|
| Error | 24.3 |
| Cost | 2404 |
| Alternative 11 | |
|---|---|
| Error | 23.5 |
| Cost | 2404 |
| Alternative 12 | |
|---|---|
| Error | 42.5 |
| Cost | 2292 |
| Alternative 13 | |
|---|---|
| Error | 23.7 |
| Cost | 2272 |
| Alternative 14 | |
|---|---|
| Error | 39.0 |
| Cost | 2161 |
| Alternative 15 | |
|---|---|
| Error | 45.9 |
| Cost | 2029 |
| Alternative 16 | |
|---|---|
| Error | 23.2 |
| Cost | 2008 |
| Alternative 17 | |
|---|---|
| Error | 38.1 |
| Cost | 1896 |
| Alternative 18 | |
|---|---|
| Error | 39.1 |
| Cost | 1765 |
| Alternative 19 | |
|---|---|
| Error | 51.7 |
| Cost | 1245 |
| Alternative 20 | |
|---|---|
| Error | 49.5 |
| Cost | 1244 |
| Alternative 21 | |
|---|---|
| Error | 49.5 |
| Cost | 1244 |
| Alternative 22 | |
|---|---|
| Error | 42.2 |
| Cost | 1236 |
| Alternative 23 | |
|---|---|
| Error | 37.4 |
| Cost | 1236 |
| Alternative 24 | |
|---|---|
| Error | 38.1 |
| Cost | 1236 |
| Alternative 25 | |
|---|---|
| Error | 49.4 |
| Cost | 716 |
| Alternative 26 | |
|---|---|
| Error | 49.6 |
| Cost | 585 |
| Alternative 27 | |
|---|---|
| Error | 53.4 |
| Cost | 320 |
herbie shell --seed 2022364
(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)))))