| Alternative 1 | |
|---|---|
| Error | 12.44% |
| Cost | 5704 |
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (- t_1 (+ (* b (- (* z c) (* a i))) (* x (- (* t a) (* y z)))))))
(if (<= t_2 (- INFINITY))
(- (* i (* a b)) (* c (* z b)))
(if (<= t_2 2e+303)
(fma x (- (* y z) (* t a)) (fma b (- (* a i) (* z c)) t_1))
(- (* y (- (* x z) (* i j))) (* a (* x t)))))))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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t_1 - ((b * ((z * c) - (a * i))) + (x * ((t * a) - (y * z))));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = (i * (a * b)) - (c * (z * b));
} else if (t_2 <= 2e+303) {
tmp = fma(x, ((y * z) - (t * a)), fma(b, ((a * i) - (z * c)), t_1));
} else {
tmp = (y * ((x * z) - (i * j))) - (a * (x * t));
}
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(t_1 - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(Float64(i * Float64(a * b)) - Float64(c * Float64(z * b))); elseif (t_2 <= 2e+303) tmp = fma(x, Float64(Float64(y * z) - Float64(t * a)), fma(b, Float64(Float64(a * i) - Float64(z * c)), t_1)); else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(a * Float64(x * t))); 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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+303], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\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)
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t_1 - \left(b \cdot \left(z \cdot c - a \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;i \cdot \left(a \cdot b\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{+303}:\\
\;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, a \cdot i - z \cdot c, t_1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - a \cdot \left(x \cdot t\right)\\
\end{array}
| Original | 18.9% |
|---|---|
| Target | 24.87% |
| Herbie | 12.44% |
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < -inf.0Initial program 100
Simplified100
[Start]100 | \[ \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)
\] |
|---|---|
associate-+l- [=>]100 | \[ \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z - i \cdot a\right) - j \cdot \left(c \cdot t - i \cdot y\right)\right)}
\] |
fma-neg [=>]100 | \[ \color{blue}{\mathsf{fma}\left(x, y \cdot z - t \cdot a, -\left(b \cdot \left(c \cdot z - i \cdot a\right) - j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)}
\] |
neg-sub0 [=>]100 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{0 - \left(b \cdot \left(c \cdot z - i \cdot a\right) - j \cdot \left(c \cdot t - i \cdot y\right)\right)}\right)
\] |
associate-+l- [<=]100 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(0 - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)}\right)
\] |
neg-sub0 [<=]100 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(-b \cdot \left(c \cdot z - i \cdot a\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right)\right)
\] |
distribute-rgt-neg-in [=>]100 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{b \cdot \left(-\left(c \cdot z - i \cdot a\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right)\right)
\] |
fma-def [=>]100 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - i \cdot a\right), j \cdot \left(c \cdot t - i \cdot y\right)\right)}\right)
\] |
sub-neg [=>]100 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-i \cdot a\right)\right)}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
distribute-neg-in [=>]100 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-c \cdot z\right) + \left(-\left(-i \cdot a\right)\right)}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
+-commutative [=>]100 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-\left(-i \cdot a\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
remove-double-neg [=>]100 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{i \cdot a} + \left(-c \cdot z\right), j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
sub-neg [<=]100 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{i \cdot a - c \cdot z}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
*-commutative [=>]100 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{a \cdot i} - c \cdot z, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
*-commutative [=>]100 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, a \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
Taylor expanded in b around inf 89.1
Taylor expanded in a around 0 69.72
if -inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < 2e303Initial program 1.36
Simplified1.36
[Start]1.36 | \[ \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)
\] |
|---|---|
associate-+l- [=>]1.36 | \[ \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z - i \cdot a\right) - j \cdot \left(c \cdot t - i \cdot y\right)\right)}
\] |
fma-neg [=>]1.36 | \[ \color{blue}{\mathsf{fma}\left(x, y \cdot z - t \cdot a, -\left(b \cdot \left(c \cdot z - i \cdot a\right) - j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)}
\] |
neg-sub0 [=>]1.36 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{0 - \left(b \cdot \left(c \cdot z - i \cdot a\right) - j \cdot \left(c \cdot t - i \cdot y\right)\right)}\right)
\] |
associate-+l- [<=]1.36 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(0 - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)}\right)
\] |
neg-sub0 [<=]1.36 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(-b \cdot \left(c \cdot z - i \cdot a\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right)\right)
\] |
distribute-rgt-neg-in [=>]1.36 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{b \cdot \left(-\left(c \cdot z - i \cdot a\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right)\right)
\] |
fma-def [=>]1.36 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - i \cdot a\right), j \cdot \left(c \cdot t - i \cdot y\right)\right)}\right)
\] |
sub-neg [=>]1.36 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-i \cdot a\right)\right)}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
distribute-neg-in [=>]1.36 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-c \cdot z\right) + \left(-\left(-i \cdot a\right)\right)}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
+-commutative [=>]1.36 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-\left(-i \cdot a\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
remove-double-neg [=>]1.36 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{i \cdot a} + \left(-c \cdot z\right), j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
sub-neg [<=]1.36 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{i \cdot a - c \cdot z}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
*-commutative [=>]1.36 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{a \cdot i} - c \cdot z, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
*-commutative [=>]1.36 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, a \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
if 2e303 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 94.1
Simplified94.1
[Start]94.1 | \[ \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)
\] |
|---|---|
associate-+l- [=>]94.1 | \[ \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z - i \cdot a\right) - j \cdot \left(c \cdot t - i \cdot y\right)\right)}
\] |
fma-neg [=>]94.1 | \[ \color{blue}{\mathsf{fma}\left(x, y \cdot z - t \cdot a, -\left(b \cdot \left(c \cdot z - i \cdot a\right) - j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)}
\] |
neg-sub0 [=>]94.1 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{0 - \left(b \cdot \left(c \cdot z - i \cdot a\right) - j \cdot \left(c \cdot t - i \cdot y\right)\right)}\right)
\] |
associate-+l- [<=]94.1 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(0 - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)}\right)
\] |
neg-sub0 [<=]94.1 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(-b \cdot \left(c \cdot z - i \cdot a\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right)\right)
\] |
distribute-rgt-neg-in [=>]94.1 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{b \cdot \left(-\left(c \cdot z - i \cdot a\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right)\right)
\] |
fma-def [=>]94.1 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - i \cdot a\right), j \cdot \left(c \cdot t - i \cdot y\right)\right)}\right)
\] |
sub-neg [=>]94.1 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-i \cdot a\right)\right)}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
distribute-neg-in [=>]94.1 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-c \cdot z\right) + \left(-\left(-i \cdot a\right)\right)}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
+-commutative [=>]94.1 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-\left(-i \cdot a\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
remove-double-neg [=>]94.1 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{i \cdot a} + \left(-c \cdot z\right), j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
sub-neg [<=]94.1 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{i \cdot a - c \cdot z}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
*-commutative [=>]94.1 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{a \cdot i} - c \cdot z, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
*-commutative [=>]94.1 | \[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, a \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\] |
Taylor expanded in b around 0 85.3
Taylor expanded in c around 0 76
Simplified55
[Start]76 | \[ \left(y \cdot z - a \cdot t\right) \cdot x + -1 \cdot \left(y \cdot \left(i \cdot j\right)\right)
\] |
|---|---|
*-commutative [=>]76 | \[ \left(y \cdot z - \color{blue}{t \cdot a}\right) \cdot x + -1 \cdot \left(y \cdot \left(i \cdot j\right)\right)
\] |
mul-1-neg [=>]76 | \[ \left(y \cdot z - t \cdot a\right) \cdot x + \color{blue}{\left(-y \cdot \left(i \cdot j\right)\right)}
\] |
unsub-neg [=>]76 | \[ \color{blue}{\left(y \cdot z - t \cdot a\right) \cdot x - y \cdot \left(i \cdot j\right)}
\] |
*-commutative [=>]76 | \[ \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right)} - y \cdot \left(i \cdot j\right)
\] |
*-commutative [<=]76 | \[ x \cdot \left(y \cdot z - \color{blue}{a \cdot t}\right) - y \cdot \left(i \cdot j\right)
\] |
cancel-sign-sub-inv [=>]76 | \[ x \cdot \color{blue}{\left(y \cdot z + \left(-a\right) \cdot t\right)} - y \cdot \left(i \cdot j\right)
\] |
distribute-rgt-in [=>]76 | \[ \color{blue}{\left(\left(y \cdot z\right) \cdot x + \left(\left(-a\right) \cdot t\right) \cdot x\right)} - y \cdot \left(i \cdot j\right)
\] |
associate-*r* [<=]65.11 | \[ \left(\color{blue}{y \cdot \left(z \cdot x\right)} + \left(\left(-a\right) \cdot t\right) \cdot x\right) - y \cdot \left(i \cdot j\right)
\] |
mul-1-neg [<=]65.11 | \[ \left(y \cdot \left(z \cdot x\right) + \left(\color{blue}{\left(-1 \cdot a\right)} \cdot t\right) \cdot x\right) - y \cdot \left(i \cdot j\right)
\] |
associate-*r* [<=]54.99 | \[ \left(y \cdot \left(z \cdot x\right) + \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot x\right)}\right) - y \cdot \left(i \cdot j\right)
\] |
associate-*r* [<=]54.99 | \[ \left(y \cdot \left(z \cdot x\right) + \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x\right)\right)}\right) - y \cdot \left(i \cdot j\right)
\] |
mul-1-neg [=>]54.99 | \[ \left(y \cdot \left(z \cdot x\right) + \color{blue}{\left(-a \cdot \left(t \cdot x\right)\right)}\right) - y \cdot \left(i \cdot j\right)
\] |
unsub-neg [=>]54.99 | \[ \color{blue}{\left(y \cdot \left(z \cdot x\right) - a \cdot \left(t \cdot x\right)\right)} - y \cdot \left(i \cdot j\right)
\] |
associate--l- [=>]54.99 | \[ \color{blue}{y \cdot \left(z \cdot x\right) - \left(a \cdot \left(t \cdot x\right) + y \cdot \left(i \cdot j\right)\right)}
\] |
Final simplification12.44
| Alternative 1 | |
|---|---|
| Error | 12.44% |
| Cost | 5704 |
| Alternative 2 | |
|---|---|
| Error | 60.57% |
| Cost | 2556 |
| Alternative 3 | |
|---|---|
| Error | 56.85% |
| Cost | 2544 |
| Alternative 4 | |
|---|---|
| Error | 60.52% |
| Cost | 2420 |
| Alternative 5 | |
|---|---|
| Error | 59.35% |
| Cost | 2292 |
| Alternative 6 | |
|---|---|
| Error | 50.23% |
| Cost | 2280 |
| Alternative 7 | |
|---|---|
| Error | 32.31% |
| Cost | 2269 |
| Alternative 8 | |
|---|---|
| Error | 32.31% |
| Cost | 2268 |
| Alternative 9 | |
|---|---|
| Error | 28.11% |
| Cost | 2260 |
| Alternative 10 | |
|---|---|
| Error | 60.18% |
| Cost | 2160 |
| Alternative 11 | |
|---|---|
| Error | 60.15% |
| Cost | 2156 |
| Alternative 12 | |
|---|---|
| Error | 49.32% |
| Cost | 2148 |
| Alternative 13 | |
|---|---|
| Error | 58.55% |
| Cost | 2028 |
| Alternative 14 | |
|---|---|
| Error | 59.73% |
| Cost | 2028 |
| Alternative 15 | |
|---|---|
| Error | 40.5% |
| Cost | 2008 |
| Alternative 16 | |
|---|---|
| Error | 32.04% |
| Cost | 1744 |
| Alternative 17 | |
|---|---|
| Error | 71.68% |
| Cost | 1500 |
| Alternative 18 | |
|---|---|
| Error | 33.58% |
| Cost | 1480 |
| Alternative 19 | |
|---|---|
| Error | 58.71% |
| Cost | 1368 |
| Alternative 20 | |
|---|---|
| Error | 60.69% |
| Cost | 1368 |
| Alternative 21 | |
|---|---|
| Error | 77.55% |
| Cost | 1309 |
| Alternative 22 | |
|---|---|
| Error | 77.08% |
| Cost | 1308 |
| Alternative 23 | |
|---|---|
| Error | 78% |
| Cost | 1176 |
| Alternative 24 | |
|---|---|
| Error | 78.75% |
| Cost | 1176 |
| Alternative 25 | |
|---|---|
| Error | 63.23% |
| Cost | 1104 |
| Alternative 26 | |
|---|---|
| Error | 77.69% |
| Cost | 980 |
| Alternative 27 | |
|---|---|
| Error | 78.72% |
| Cost | 848 |
| Alternative 28 | |
|---|---|
| Error | 77.71% |
| Cost | 585 |
| Alternative 29 | |
|---|---|
| Error | 84.25% |
| Cost | 320 |
| Alternative 30 | |
|---|---|
| Error | 83.92% |
| Cost | 320 |
herbie shell --seed 2023090
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))