| Alternative 1 | |
|---|---|
| Error | 29.9 |
| Cost | 2916 |
(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 (* x (* 4.0 i)))
(t_2 (* j (* 27.0 k)))
(t_3
(-
(+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c))
(* (* x 4.0) i))))
(if (<= t_3 (- INFINITY))
(+ (* y (* x (* t (* 18.0 z)))) (- (- (* b c) t_2) t_1))
(if (<= t_3 4e+291)
(- t_3 (* (* j 27.0) k))
(+ (* b c) (- (- (* y (* 18.0 (* z (* t x)))) t_1) t_2))))))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 = x * (4.0 * i);
double t_2 = j * (27.0 * k);
double t_3 = ((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i);
double tmp;
if (t_3 <= -((double) INFINITY)) {
tmp = (y * (x * (t * (18.0 * z)))) + (((b * c) - t_2) - t_1);
} else if (t_3 <= 4e+291) {
tmp = t_3 - ((j * 27.0) * k);
} else {
tmp = (b * c) + (((y * (18.0 * (z * (t * x)))) - t_1) - t_2);
}
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 = x * (4.0 * i);
double t_2 = j * (27.0 * k);
double t_3 = ((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i);
double tmp;
if (t_3 <= -Double.POSITIVE_INFINITY) {
tmp = (y * (x * (t * (18.0 * z)))) + (((b * c) - t_2) - t_1);
} else if (t_3 <= 4e+291) {
tmp = t_3 - ((j * 27.0) * k);
} else {
tmp = (b * c) + (((y * (18.0 * (z * (t * x)))) - t_1) - t_2);
}
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 = x * (4.0 * i) t_2 = j * (27.0 * k) t_3 = ((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i) tmp = 0 if t_3 <= -math.inf: tmp = (y * (x * (t * (18.0 * z)))) + (((b * c) - t_2) - t_1) elif t_3 <= 4e+291: tmp = t_3 - ((j * 27.0) * k) else: tmp = (b * c) + (((y * (18.0 * (z * (t * x)))) - t_1) - t_2) 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(x * Float64(4.0 * i)) t_2 = Float64(j * Float64(27.0 * k)) t_3 = 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)) tmp = 0.0 if (t_3 <= Float64(-Inf)) tmp = Float64(Float64(y * Float64(x * Float64(t * Float64(18.0 * z)))) + Float64(Float64(Float64(b * c) - t_2) - t_1)); elseif (t_3 <= 4e+291) tmp = Float64(t_3 - Float64(Float64(j * 27.0) * k)); else tmp = Float64(Float64(b * c) + Float64(Float64(Float64(y * Float64(18.0 * Float64(z * Float64(t * x)))) - t_1) - t_2)); 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 = x * (4.0 * i); t_2 = j * (27.0 * k); t_3 = ((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i); tmp = 0.0; if (t_3 <= -Inf) tmp = (y * (x * (t * (18.0 * z)))) + (((b * c) - t_2) - t_1); elseif (t_3 <= 4e+291) tmp = t_3 - ((j * 27.0) * k); else tmp = (b * c) + (((y * (18.0 * (z * (t * x)))) - t_1) - t_2); 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[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = 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]}, If[LessEqual[t$95$3, (-Infinity)], N[(N[(y * N[(x * N[(t * N[(18.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * c), $MachinePrecision] - t$95$2), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 4e+291], N[(t$95$3 - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision], N[(N[(b * c), $MachinePrecision] + N[(N[(N[(y * N[(18.0 * N[(z * N[(t * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - t$95$2), $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 := x \cdot \left(4 \cdot i\right)\\
t_2 := j \cdot \left(27 \cdot k\right)\\
t_3 := \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\\
\mathbf{if}\;t_3 \leq -\infty:\\
\;\;\;\;y \cdot \left(x \cdot \left(t \cdot \left(18 \cdot z\right)\right)\right) + \left(\left(b \cdot c - t_2\right) - t_1\right)\\
\mathbf{elif}\;t_3 \leq 4 \cdot 10^{+291}:\\
\;\;\;\;t_3 - \left(j \cdot 27\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;b \cdot c + \left(\left(y \cdot \left(18 \cdot \left(z \cdot \left(t \cdot x\right)\right)\right) - t_1\right) - t_2\right)\\
\end{array}
Results
| Original | 5.7 |
|---|---|
| Target | 1.7 |
| Herbie | 1.5 |
if (-.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)) < -inf.0Initial program 64.0
Simplified38.3
[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-1 [=>]64.0 | \[ \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 [=>]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(b \cdot c - \left(x \cdot 4\right) \cdot i\right)\right)} - \left(j \cdot 27\right) \cdot k
\] |
rational.json-simplify-1 [=>]64.0 | \[ \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 [=>]64.0 | \[ \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)}
\] |
Taylor expanded in x around inf 14.9
Simplified40.1
[Start]14.9 | \[ 18 \cdot \left(y \cdot \left(t \cdot \left(z \cdot x\right)\right)\right) + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
|---|---|
rational.json-simplify-43 [=>]39.5 | \[ 18 \cdot \color{blue}{\left(t \cdot \left(\left(z \cdot x\right) \cdot y\right)\right)} + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
rational.json-simplify-2 [<=]39.5 | \[ 18 \cdot \left(t \cdot \color{blue}{\left(y \cdot \left(z \cdot x\right)\right)}\right) + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
rational.json-simplify-43 [=>]39.9 | \[ \color{blue}{t \cdot \left(\left(y \cdot \left(z \cdot x\right)\right) \cdot 18\right)} + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
rational.json-simplify-2 [<=]39.9 | \[ t \cdot \color{blue}{\left(18 \cdot \left(y \cdot \left(z \cdot x\right)\right)\right)} + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
rational.json-simplify-43 [=>]39.9 | \[ t \cdot \color{blue}{\left(y \cdot \left(\left(z \cdot x\right) \cdot 18\right)\right)} + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
rational.json-simplify-2 [=>]39.9 | \[ t \cdot \left(y \cdot \color{blue}{\left(18 \cdot \left(z \cdot x\right)\right)}\right) + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
rational.json-simplify-43 [=>]40.1 | \[ t \cdot \left(y \cdot \color{blue}{\left(z \cdot \left(x \cdot 18\right)\right)}\right) + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
rational.json-simplify-2 [<=]40.1 | \[ t \cdot \left(y \cdot \left(z \cdot \color{blue}{\left(18 \cdot x\right)}\right)\right) + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
Taylor expanded in t around 0 14.9
Simplified6.0
[Start]14.9 | \[ 18 \cdot \left(y \cdot \left(t \cdot \left(z \cdot x\right)\right)\right) + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
|---|---|
rational.json-simplify-2 [=>]14.9 | \[ 18 \cdot \color{blue}{\left(\left(t \cdot \left(z \cdot x\right)\right) \cdot y\right)} + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
rational.json-simplify-43 [<=]14.9 | \[ \color{blue}{y \cdot \left(18 \cdot \left(t \cdot \left(z \cdot x\right)\right)\right)} + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
rational.json-simplify-43 [=>]14.9 | \[ y \cdot \color{blue}{\left(t \cdot \left(\left(z \cdot x\right) \cdot 18\right)\right)} + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
rational.json-simplify-2 [<=]14.9 | \[ y \cdot \left(t \cdot \color{blue}{\left(18 \cdot \left(z \cdot x\right)\right)}\right) + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
rational.json-simplify-43 [<=]14.9 | \[ y \cdot \left(t \cdot \color{blue}{\left(x \cdot \left(18 \cdot z\right)\right)}\right) + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
rational.json-simplify-43 [=>]6.0 | \[ y \cdot \color{blue}{\left(x \cdot \left(\left(18 \cdot z\right) \cdot t\right)\right)} + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
rational.json-simplify-2 [=>]6.0 | \[ y \cdot \left(x \cdot \color{blue}{\left(t \cdot \left(18 \cdot z\right)\right)}\right) + \left(\left(b \cdot c - j \cdot \left(27 \cdot k\right)\right) - x \cdot \left(4 \cdot i\right)\right)
\] |
if -inf.0 < (-.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)) < 3.9999999999999998e291Initial program 0.4
if 3.9999999999999998e291 < (-.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)) Initial program 43.1
Simplified29.8
[Start]43.1 | \[ \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 [=>]43.1 | \[ \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-1 [=>]43.1 | \[ \color{blue}{\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) - \left(x \cdot 4\right) \cdot i\right) + b \cdot c\right)} - \left(j \cdot 27\right) \cdot k
\] |
rational.json-simplify-48 [=>]43.1 | \[ \color{blue}{b \cdot c + \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) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\right)}
\] |
rational.json-simplify-2 [=>]43.1 | \[ b \cdot c + \left(\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(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-52 [=>]43.1 | \[ b \cdot c + \left(\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(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]43.1 | \[ b \cdot c + \left(\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(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]43.1 | \[ b \cdot c + \left(\left(t \cdot \left(z \cdot \color{blue}{\left(y \cdot \left(x \cdot 18\right)\right)} - a \cdot 4\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-43 [=>]29.8 | \[ b \cdot c + \left(\left(t \cdot \left(\color{blue}{y \cdot \left(\left(x \cdot 18\right) \cdot z\right)} - a \cdot 4\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]29.8 | \[ b \cdot c + \left(\left(t \cdot \left(y \cdot \left(\left(x \cdot 18\right) \cdot z\right) - a \cdot 4\right) - \color{blue}{i \cdot \left(x \cdot 4\right)}\right) - \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-43 [=>]29.8 | \[ b \cdot c + \left(\left(t \cdot \left(y \cdot \left(\left(x \cdot 18\right) \cdot z\right) - a \cdot 4\right) - \color{blue}{x \cdot \left(4 \cdot i\right)}\right) - \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]29.8 | \[ b \cdot c + \left(\left(t \cdot \left(y \cdot \left(\left(x \cdot 18\right) \cdot z\right) - a \cdot 4\right) - x \cdot \left(4 \cdot i\right)\right) - \color{blue}{k \cdot \left(j \cdot 27\right)}\right)
\] |
Taylor expanded in y around inf 21.2
Applied egg-rr49.2
Simplified31.8
[Start]49.2 | \[ b \cdot c + \left(\left(\left(t \cdot \left(z \cdot \left(18 \cdot \left(x \cdot y\right)\right)\right) + 0\right) - x \cdot \left(4 \cdot i\right)\right) - j \cdot \left(27 \cdot k\right)\right)
\] |
|---|---|
rational.json-simplify-4 [=>]49.2 | \[ b \cdot c + \left(\left(\color{blue}{t \cdot \left(z \cdot \left(18 \cdot \left(x \cdot y\right)\right)\right)} - x \cdot \left(4 \cdot i\right)\right) - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-2 [=>]49.2 | \[ b \cdot c + \left(\left(t \cdot \color{blue}{\left(\left(18 \cdot \left(x \cdot y\right)\right) \cdot z\right)} - x \cdot \left(4 \cdot i\right)\right) - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-43 [<=]31.8 | \[ b \cdot c + \left(\left(\color{blue}{z \cdot \left(t \cdot \left(18 \cdot \left(x \cdot y\right)\right)\right)} - x \cdot \left(4 \cdot i\right)\right) - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-2 [=>]31.8 | \[ b \cdot c + \left(\left(z \cdot \left(t \cdot \color{blue}{\left(\left(x \cdot y\right) \cdot 18\right)}\right) - x \cdot \left(4 \cdot i\right)\right) - j \cdot \left(27 \cdot k\right)\right)
\] |
Taylor expanded in z around 0 21.2
Simplified14.7
[Start]21.2 | \[ b \cdot c + \left(\left(18 \cdot \left(y \cdot \left(t \cdot \left(z \cdot x\right)\right)\right) - x \cdot \left(4 \cdot i\right)\right) - j \cdot \left(27 \cdot k\right)\right)
\] |
|---|---|
rational.json-simplify-43 [=>]21.2 | \[ b \cdot c + \left(\left(\color{blue}{y \cdot \left(\left(t \cdot \left(z \cdot x\right)\right) \cdot 18\right)} - x \cdot \left(4 \cdot i\right)\right) - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-2 [=>]21.2 | \[ b \cdot c + \left(\left(y \cdot \color{blue}{\left(18 \cdot \left(t \cdot \left(z \cdot x\right)\right)\right)} - x \cdot \left(4 \cdot i\right)\right) - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-43 [=>]14.7 | \[ b \cdot c + \left(\left(y \cdot \left(18 \cdot \color{blue}{\left(z \cdot \left(x \cdot t\right)\right)}\right) - x \cdot \left(4 \cdot i\right)\right) - j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-2 [<=]14.7 | \[ b \cdot c + \left(\left(y \cdot \left(18 \cdot \left(z \cdot \color{blue}{\left(t \cdot x\right)}\right)\right) - x \cdot \left(4 \cdot i\right)\right) - j \cdot \left(27 \cdot k\right)\right)
\] |
Final simplification1.5
| Alternative 1 | |
|---|---|
| Error | 29.9 |
| Cost | 2916 |
| Alternative 2 | |
|---|---|
| Error | 32.0 |
| Cost | 2420 |
| Alternative 3 | |
|---|---|
| Error | 24.7 |
| Cost | 2392 |
| Alternative 4 | |
|---|---|
| Error | 4.0 |
| Cost | 2384 |
| Alternative 5 | |
|---|---|
| Error | 4.4 |
| Cost | 2120 |
| Alternative 6 | |
|---|---|
| Error | 4.9 |
| Cost | 2120 |
| Alternative 7 | |
|---|---|
| Error | 14.7 |
| Cost | 2000 |
| Alternative 8 | |
|---|---|
| Error | 38.4 |
| Cost | 1876 |
| Alternative 9 | |
|---|---|
| Error | 27.9 |
| Cost | 1876 |
| Alternative 10 | |
|---|---|
| Error | 27.9 |
| Cost | 1876 |
| Alternative 11 | |
|---|---|
| Error | 9.7 |
| Cost | 1864 |
| Alternative 12 | |
|---|---|
| Error | 8.1 |
| Cost | 1864 |
| Alternative 13 | |
|---|---|
| Error | 7.7 |
| Cost | 1864 |
| Alternative 14 | |
|---|---|
| Error | 7.7 |
| Cost | 1864 |
| Alternative 15 | |
|---|---|
| Error | 8.0 |
| Cost | 1864 |
| Alternative 16 | |
|---|---|
| Error | 8.0 |
| Cost | 1864 |
| Alternative 17 | |
|---|---|
| Error | 43.9 |
| Cost | 1772 |
| Alternative 18 | |
|---|---|
| Error | 43.8 |
| Cost | 1772 |
| Alternative 19 | |
|---|---|
| Error | 31.1 |
| Cost | 1632 |
| Alternative 20 | |
|---|---|
| Error | 31.2 |
| Cost | 1632 |
| Alternative 21 | |
|---|---|
| Error | 19.1 |
| Cost | 1620 |
| Alternative 22 | |
|---|---|
| Error | 37.3 |
| Cost | 1616 |
| Alternative 23 | |
|---|---|
| Error | 37.3 |
| Cost | 1616 |
| Alternative 24 | |
|---|---|
| Error | 17.9 |
| Cost | 1488 |
| Alternative 25 | |
|---|---|
| Error | 9.8 |
| Cost | 1344 |
| Alternative 26 | |
|---|---|
| Error | 45.5 |
| Cost | 1244 |
| Alternative 27 | |
|---|---|
| Error | 45.3 |
| Cost | 848 |
| Alternative 28 | |
|---|---|
| Error | 48.6 |
| Cost | 192 |
herbie shell --seed 2023064
(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)))