| Alternative 1 | |
|---|---|
| Error | 18.1 |
| Cost | 2272 |
(FPCore (x y z t a b c i j k) :precision binary64 (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))
(FPCore (x y z t a b c i j k)
:precision binary64
(let* ((t_1 (* j (* 27.0 k)))
(t_2
(-
(-
(+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c))
(* (* x 4.0) i))
(* (* j 27.0) k))))
(if (<= t_2 (- INFINITY))
(+ (* x (- (* -4.0 i) (* y (* z (* t -18.0))))) (- (* b c) t_1))
(if (<= t_2 -4e+127)
t_2
(+
(* t (- (* y (* x (* 18.0 z))) (* a 4.0)))
(- (- (* b c) (* x (* 4.0 i))) t_1))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (27.0 * k);
double t_2 = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = (x * ((-4.0 * i) - (y * (z * (t * -18.0))))) + ((b * c) - t_1);
} else if (t_2 <= -4e+127) {
tmp = t_2;
} else {
tmp = (t * ((y * (x * (18.0 * z))) - (a * 4.0))) + (((b * c) - (x * (4.0 * i))) - t_1);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
double t_1 = j * (27.0 * k);
double t_2 = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = (x * ((-4.0 * i) - (y * (z * (t * -18.0))))) + ((b * c) - t_1);
} else if (t_2 <= -4e+127) {
tmp = t_2;
} else {
tmp = (t * ((y * (x * (18.0 * z))) - (a * 4.0))) + (((b * c) - (x * (4.0 * i))) - t_1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k): return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
def code(x, y, z, t, a, b, c, i, j, k): t_1 = j * (27.0 * k) t_2 = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k) tmp = 0 if t_2 <= -math.inf: tmp = (x * ((-4.0 * i) - (y * (z * (t * -18.0))))) + ((b * c) - t_1) elif t_2 <= -4e+127: tmp = t_2 else: tmp = (t * ((y * (x * (18.0 * z))) - (a * 4.0))) + (((b * c) - (x * (4.0 * i))) - t_1) return tmp
function code(x, y, z, t, a, b, c, i, j, k) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) end
function code(x, y, z, t, a, b, c, i, j, k) t_1 = Float64(j * Float64(27.0 * k)) t_2 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k)) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(Float64(x * Float64(Float64(-4.0 * i) - Float64(y * Float64(z * Float64(t * -18.0))))) + Float64(Float64(b * c) - t_1)); elseif (t_2 <= -4e+127) tmp = t_2; else tmp = Float64(Float64(t * Float64(Float64(y * Float64(x * Float64(18.0 * z))) - Float64(a * 4.0))) + Float64(Float64(Float64(b * c) - Float64(x * Float64(4.0 * i))) - t_1)); end return tmp end
function tmp = code(x, y, z, t, a, b, c, i, j, k) tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k) t_1 = j * (27.0 * k); t_2 = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k); tmp = 0.0; if (t_2 <= -Inf) tmp = (x * ((-4.0 * i) - (y * (z * (t * -18.0))))) + ((b * c) - t_1); elseif (t_2 <= -4e+127) tmp = t_2; else tmp = (t * ((y * (x * (18.0 * z))) - (a * 4.0))) + (((b * c) - (x * (4.0 * i))) - t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(N[(x * N[(N[(-4.0 * i), $MachinePrecision] - N[(y * N[(z * N[(t * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, -4e+127], t$95$2, N[(N[(t * N[(N[(y * N[(x * N[(18.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * c), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]]]]]
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\begin{array}{l}
t_1 := j \cdot \left(27 \cdot k\right)\\
t_2 := \left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;x \cdot \left(-4 \cdot i - y \cdot \left(z \cdot \left(t \cdot -18\right)\right)\right) + \left(b \cdot c - t_1\right)\\
\mathbf{elif}\;t_2 \leq -4 \cdot 10^{+127}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(y \cdot \left(x \cdot \left(18 \cdot z\right)\right) - a \cdot 4\right) + \left(\left(b \cdot c - x \cdot \left(4 \cdot i\right)\right) - t_1\right)\\
\end{array}
Results
| Original | 5.8 |
|---|---|
| Target | 1.7 |
| Herbie | 3.6 |
if (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x 18) y) z) t) (*.f64 (*.f64 a 4) t)) (*.f64 b c)) (*.f64 (*.f64 x 4) i)) (*.f64 (*.f64 j 27) k)) < -inf.0Initial program 64.0
Simplified38.2
[Start]64.0 | \[ \left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
|---|---|
rational.json-simplify-48 [=>]64.0 | \[ \color{blue}{\left(b \cdot c + \left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) - \left(x \cdot 4\right) \cdot i\right)\right)} - \left(j \cdot 27\right) \cdot k
\] |
rational.json-simplify-48 [=>]64.0 | \[ \color{blue}{\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) - \left(x \cdot 4\right) \cdot i\right) + \left(b \cdot c - \left(j \cdot 27\right) \cdot k\right)}
\] |
rational.json-simplify-2 [=>]64.0 | \[ \left(\left(\color{blue}{t \cdot \left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right)} - \left(a \cdot 4\right) \cdot t\right) - \left(x \cdot 4\right) \cdot i\right) + \left(b \cdot c - \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-52 [=>]64.0 | \[ \left(\color{blue}{t \cdot \left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z - a \cdot 4\right)} - \left(x \cdot 4\right) \cdot i\right) + \left(b \cdot c - \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]64.0 | \[ \left(t \cdot \left(\color{blue}{z \cdot \left(\left(x \cdot 18\right) \cdot y\right)} - a \cdot 4\right) - \left(x \cdot 4\right) \cdot i\right) + \left(b \cdot c - \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-43 [=>]39.4 | \[ \left(t \cdot \left(\color{blue}{\left(x \cdot 18\right) \cdot \left(y \cdot z\right)} - a \cdot 4\right) - \left(x \cdot 4\right) \cdot i\right) + \left(b \cdot c - \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]39.4 | \[ \left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) - \color{blue}{i \cdot \left(x \cdot 4\right)}\right) + \left(b \cdot c - \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-43 [=>]39.4 | \[ \left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) - \color{blue}{x \cdot \left(4 \cdot i\right)}\right) + \left(b \cdot c - \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]39.4 | \[ \left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) - x \cdot \left(4 \cdot i\right)\right) + \left(b \cdot c - \color{blue}{k \cdot \left(j \cdot 27\right)}\right)
\] |
rational.json-simplify-43 [=>]38.2 | \[ \left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) - x \cdot \left(4 \cdot i\right)\right) + \left(b \cdot c - \color{blue}{j \cdot \left(27 \cdot k\right)}\right)
\] |
Taylor expanded in x around -inf 8.3
Simplified8.3
[Start]8.3 | \[ -1 \cdot \left(\left(-18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - -4 \cdot i\right) \cdot x\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
|---|---|
rational.json-simplify-2 [=>]8.3 | \[ -1 \cdot \color{blue}{\left(x \cdot \left(-18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - -4 \cdot i\right)\right)} + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-43 [=>]8.3 | \[ \color{blue}{x \cdot \left(\left(-18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - -4 \cdot i\right) \cdot -1\right)} + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-9 [=>]8.3 | \[ x \cdot \color{blue}{\left(-\left(-18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - -4 \cdot i\right)\right)} + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-12 [=>]8.3 | \[ x \cdot \color{blue}{\left(0 - \left(-18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - -4 \cdot i\right)\right)} + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-2 [=>]8.3 | \[ x \cdot \left(0 - \left(-18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - \color{blue}{i \cdot -4}\right)\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
metadata-eval [<=]8.3 | \[ x \cdot \left(0 - \left(-18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - i \cdot \color{blue}{\frac{4}{-1}}\right)\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-49 [<=]8.3 | \[ x \cdot \left(0 - \left(-18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - \color{blue}{\frac{4 \cdot i}{-1}}\right)\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-45 [=>]8.3 | \[ x \cdot \color{blue}{\left(\frac{4 \cdot i}{-1} - \left(-18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 0\right)\right)} + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-49 [=>]8.3 | \[ x \cdot \left(\color{blue}{i \cdot \frac{4}{-1}} - \left(-18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 0\right)\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
metadata-eval [=>]8.3 | \[ x \cdot \left(i \cdot \color{blue}{-4} - \left(-18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 0\right)\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-2 [<=]8.3 | \[ x \cdot \left(\color{blue}{-4 \cdot i} - \left(-18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 0\right)\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-5 [=>]8.3 | \[ x \cdot \left(-4 \cdot i - \color{blue}{-18 \cdot \left(y \cdot \left(t \cdot z\right)\right)}\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-43 [=>]8.3 | \[ x \cdot \left(-4 \cdot i - \color{blue}{y \cdot \left(\left(t \cdot z\right) \cdot -18\right)}\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-2 [=>]8.3 | \[ x \cdot \left(-4 \cdot i - y \cdot \color{blue}{\left(-18 \cdot \left(t \cdot z\right)\right)}\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-2 [=>]8.3 | \[ x \cdot \left(-4 \cdot i - y \cdot \left(-18 \cdot \color{blue}{\left(z \cdot t\right)}\right)\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-43 [=>]8.3 | \[ x \cdot \left(-4 \cdot i - y \cdot \color{blue}{\left(z \cdot \left(t \cdot -18\right)\right)}\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)
\] |
if -inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x 18) y) z) t) (*.f64 (*.f64 a 4) t)) (*.f64 b c)) (*.f64 (*.f64 x 4) i)) (*.f64 (*.f64 j 27) k)) < -3.99999999999999982e127Initial program 0.2
if -3.99999999999999982e127 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x 18) y) z) t) (*.f64 (*.f64 a 4) t)) (*.f64 b c)) (*.f64 (*.f64 x 4) i)) (*.f64 (*.f64 j 27) k)) Initial program 4.6
Simplified4.7
[Start]4.6 | \[ \left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
|---|---|
rational.json-simplify-1 [=>]4.6 | \[ \left(\color{blue}{\left(b \cdot c + \left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right)\right)} - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
rational.json-simplify-48 [=>]4.6 | \[ \color{blue}{\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + \left(b \cdot c - \left(x \cdot 4\right) \cdot i\right)\right)} - \left(j \cdot 27\right) \cdot k
\] |
rational.json-simplify-1 [=>]4.6 | \[ \color{blue}{\left(\left(b \cdot c - \left(x \cdot 4\right) \cdot i\right) + \left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right)\right)} - \left(j \cdot 27\right) \cdot k
\] |
rational.json-simplify-48 [=>]4.6 | \[ \color{blue}{\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + \left(\left(b \cdot c - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\right)}
\] |
rational.json-simplify-2 [=>]4.6 | \[ \left(\color{blue}{t \cdot \left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right)} - \left(a \cdot 4\right) \cdot t\right) + \left(\left(b \cdot c - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-52 [=>]4.6 | \[ \color{blue}{t \cdot \left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z - a \cdot 4\right)} + \left(\left(b \cdot c - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]4.6 | \[ t \cdot \left(\color{blue}{z \cdot \left(\left(x \cdot 18\right) \cdot y\right)} - a \cdot 4\right) + \left(\left(b \cdot c - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-43 [<=]4.6 | \[ t \cdot \left(\color{blue}{y \cdot \left(z \cdot \left(x \cdot 18\right)\right)} - a \cdot 4\right) + \left(\left(b \cdot c - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-43 [=>]4.7 | \[ t \cdot \left(y \cdot \color{blue}{\left(x \cdot \left(18 \cdot z\right)\right)} - a \cdot 4\right) + \left(\left(b \cdot c - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\right)
\] |
Final simplification3.6
| Alternative 1 | |
|---|---|
| Error | 18.1 |
| Cost | 2272 |
| Alternative 2 | |
|---|---|
| Error | 5.0 |
| Cost | 2252 |
| Alternative 3 | |
|---|---|
| Error | 18.7 |
| Cost | 2140 |
| Alternative 4 | |
|---|---|
| Error | 18.6 |
| Cost | 2140 |
| Alternative 5 | |
|---|---|
| Error | 8.1 |
| Cost | 2120 |
| Alternative 6 | |
|---|---|
| Error | 8.0 |
| Cost | 2120 |
| Alternative 7 | |
|---|---|
| Error | 8.1 |
| Cost | 2120 |
| Alternative 8 | |
|---|---|
| Error | 7.8 |
| Cost | 2120 |
| Alternative 9 | |
|---|---|
| Error | 5.4 |
| Cost | 2120 |
| Alternative 10 | |
|---|---|
| Error | 5.0 |
| Cost | 2120 |
| Alternative 11 | |
|---|---|
| Error | 8.5 |
| Cost | 1864 |
| Alternative 12 | |
|---|---|
| Error | 21.1 |
| Cost | 1752 |
| Alternative 13 | |
|---|---|
| Error | 19.8 |
| Cost | 1620 |
| Alternative 14 | |
|---|---|
| Error | 10.2 |
| Cost | 1608 |
| Alternative 15 | |
|---|---|
| Error | 10.6 |
| Cost | 1608 |
| Alternative 16 | |
|---|---|
| Error | 44.8 |
| Cost | 1508 |
| Alternative 17 | |
|---|---|
| Error | 44.8 |
| Cost | 1508 |
| Alternative 18 | |
|---|---|
| Error | 35.2 |
| Cost | 1492 |
| Alternative 19 | |
|---|---|
| Error | 34.5 |
| Cost | 1492 |
| Alternative 20 | |
|---|---|
| Error | 22.6 |
| Cost | 1224 |
| Alternative 21 | |
|---|---|
| Error | 23.0 |
| Cost | 1224 |
| Alternative 22 | |
|---|---|
| Error | 33.4 |
| Cost | 1104 |
| Alternative 23 | |
|---|---|
| Error | 31.1 |
| Cost | 972 |
| Alternative 24 | |
|---|---|
| Error | 43.1 |
| Cost | 848 |
| Alternative 25 | |
|---|---|
| Error | 32.1 |
| Cost | 708 |
| Alternative 26 | |
|---|---|
| Error | 48.4 |
| Cost | 192 |
herbie shell --seed 2023068
(FPCore (x y z t a b c i j k)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, E"
:precision binary64
:herbie-target
(if (< t -1.6210815397541398e-69) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b))) (if (< t 165.68027943805222) (+ (- (* (* 18.0 y) (* x (* z t))) (* (+ (* a t) (* i x)) 4.0)) (- (* c b) (* 27.0 (* k j)))) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b)))))
(- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))