| Alternative 1 | |
|---|---|
| Error | 22.5 |
| Cost | 2404 |
(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 18.0) y) z) t) (* (* a 4.0) t)) (* b c))
(* (* x 4.0) i)))
(t_2 (+ (* x (* 4.0 i)) (* j (* 27.0 k)))))
(if (<= t_1 (- INFINITY))
(- (+ (/ (* x (* (* t z) (* y 18.0))) 1.0) (* b c)) t_2)
(if (<= t_1 5e+306)
(- (+ (* t (- (* 18.0 (* (* x y) z)) (* a 4.0))) (* b c)) t_2)
(- (+ (* y (* (* z x) (* t 18.0))) (* b c)) 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 * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i);
double t_2 = (x * (4.0 * i)) + (j * (27.0 * k));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (((x * ((t * z) * (y * 18.0))) / 1.0) + (b * c)) - t_2;
} else if (t_1 <= 5e+306) {
tmp = ((t * ((18.0 * ((x * y) * z)) - (a * 4.0))) + (b * c)) - t_2;
} else {
tmp = ((y * ((z * x) * (t * 18.0))) + (b * c)) - 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 * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i);
double t_2 = (x * (4.0 * i)) + (j * (27.0 * k));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (((x * ((t * z) * (y * 18.0))) / 1.0) + (b * c)) - t_2;
} else if (t_1 <= 5e+306) {
tmp = ((t * ((18.0 * ((x * y) * z)) - (a * 4.0))) + (b * c)) - t_2;
} else {
tmp = ((y * ((z * x) * (t * 18.0))) + (b * c)) - 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 * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i) t_2 = (x * (4.0 * i)) + (j * (27.0 * k)) tmp = 0 if t_1 <= -math.inf: tmp = (((x * ((t * z) * (y * 18.0))) / 1.0) + (b * c)) - t_2 elif t_1 <= 5e+306: tmp = ((t * ((18.0 * ((x * y) * z)) - (a * 4.0))) + (b * c)) - t_2 else: tmp = ((y * ((z * x) * (t * 18.0))) + (b * c)) - 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(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)) t_2 = Float64(Float64(x * Float64(4.0 * i)) + Float64(j * Float64(27.0 * k))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(Float64(Float64(x * Float64(Float64(t * z) * Float64(y * 18.0))) / 1.0) + Float64(b * c)) - t_2); elseif (t_1 <= 5e+306) tmp = Float64(Float64(Float64(t * Float64(Float64(18.0 * Float64(Float64(x * y) * z)) - Float64(a * 4.0))) + Float64(b * c)) - t_2); else tmp = Float64(Float64(Float64(y * Float64(Float64(z * x) * Float64(t * 18.0))) + Float64(b * c)) - 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 * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i); t_2 = (x * (4.0 * i)) + (j * (27.0 * k)); tmp = 0.0; if (t_1 <= -Inf) tmp = (((x * ((t * z) * (y * 18.0))) / 1.0) + (b * c)) - t_2; elseif (t_1 <= 5e+306) tmp = ((t * ((18.0 * ((x * y) * z)) - (a * 4.0))) + (b * c)) - t_2; else tmp = ((y * ((z * x) * (t * 18.0))) + (b * c)) - 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[(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]}, Block[{t$95$2 = N[(N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision] + N[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(N[(x * N[(N[(t * z), $MachinePrecision] * N[(y * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 1.0), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision], If[LessEqual[t$95$1, 5e+306], N[(N[(N[(t * N[(N[(18.0 * N[(N[(x * y), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision], N[(N[(N[(y * N[(N[(z * x), $MachinePrecision] * N[(t * 18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - t$95$2), $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 := \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\\
t_2 := x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;\left(\frac{x \cdot \left(\left(t \cdot z\right) \cdot \left(y \cdot 18\right)\right)}{1} + b \cdot c\right) - t_2\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+306}:\\
\;\;\;\;\left(t \cdot \left(18 \cdot \left(\left(x \cdot y\right) \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - t_2\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot \left(\left(z \cdot x\right) \cdot \left(t \cdot 18\right)\right) + b \cdot c\right) - t_2\\
\end{array}
Results
| Original | 5.2 |
|---|---|
| Target | 1.5 |
| Herbie | 1.2 |
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
Simplified40.7
[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-45 [=>]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) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \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) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-48 [=>]64.0 | \[ \left(\color{blue}{t \cdot \left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z - a \cdot 4\right)} + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \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) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-43 [<=]41.1 | \[ \left(t \cdot \left(\color{blue}{y \cdot \left(z \cdot \left(x \cdot 18\right)\right)} - a \cdot 4\right) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]41.1 | \[ \left(t \cdot \left(y \cdot \left(z \cdot \color{blue}{\left(18 \cdot x\right)}\right) - a \cdot 4\right) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-43 [=>]40.9 | \[ \left(t \cdot \left(y \cdot \color{blue}{\left(18 \cdot \left(x \cdot z\right)\right)} - a \cdot 4\right) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]40.9 | \[ \left(t \cdot \left(y \cdot \left(18 \cdot \left(x \cdot z\right)\right) - a \cdot 4\right) + b \cdot c\right) - \left(\color{blue}{i \cdot \left(x \cdot 4\right)} + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-43 [=>]40.6 | \[ \left(t \cdot \left(y \cdot \left(18 \cdot \left(x \cdot z\right)\right) - a \cdot 4\right) + b \cdot c\right) - \left(\color{blue}{x \cdot \left(4 \cdot i\right)} + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]40.6 | \[ \left(t \cdot \left(y \cdot \left(18 \cdot \left(x \cdot z\right)\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + \color{blue}{k \cdot \left(j \cdot 27\right)}\right)
\] |
rational.json-simplify-43 [=>]40.7 | \[ \left(t \cdot \left(y \cdot \left(18 \cdot \left(x \cdot z\right)\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + \color{blue}{j \cdot \left(27 \cdot k\right)}\right)
\] |
Taylor expanded in y around inf 14.1
Simplified5.9
[Start]14.1 | \[ \left(18 \cdot \left(y \cdot \left(t \cdot \left(z \cdot x\right)\right)\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)
\] |
|---|---|
exponential.json-simplify-11 [<=]14.1 | \[ \left(\color{blue}{{\left(18 \cdot \left(y \cdot \left(t \cdot \left(z \cdot x\right)\right)\right)\right)}^{1}} + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)
\] |
exponential.json-simplify-26 [=>]14.1 | \[ \left(\color{blue}{{18}^{1} \cdot {\left(y \cdot \left(t \cdot \left(z \cdot x\right)\right)\right)}^{1}} + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)
\] |
metadata-eval [=>]14.1 | \[ \left(\color{blue}{18} \cdot {\left(y \cdot \left(t \cdot \left(z \cdot x\right)\right)\right)}^{1} + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)
\] |
exponential.json-simplify-11 [=>]14.1 | \[ \left(18 \cdot \color{blue}{\left(y \cdot \left(t \cdot \left(z \cdot x\right)\right)\right)} + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-43 [=>]7.9 | \[ \left(18 \cdot \left(y \cdot \color{blue}{\left(z \cdot \left(x \cdot t\right)\right)}\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-43 [=>]5.9 | \[ \left(18 \cdot \left(y \cdot \color{blue}{\left(x \cdot \left(t \cdot z\right)\right)}\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-43 [=>]5.9 | \[ \left(18 \cdot \color{blue}{\left(x \cdot \left(\left(t \cdot z\right) \cdot y\right)\right)} + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-2 [=>]5.9 | \[ \left(18 \cdot \left(x \cdot \color{blue}{\left(y \cdot \left(t \cdot z\right)\right)}\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)
\] |
Applied egg-rr6.3
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)) < 4.99999999999999993e306Initial program 0.3
Simplified0.4
[Start]0.3 | \[ \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-45 [=>]0.3 | \[ \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) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)}
\] |
rational.json-simplify-2 [=>]0.3 | \[ \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) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-48 [=>]0.3 | \[ \left(\color{blue}{t \cdot \left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z - a \cdot 4\right)} + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]0.3 | \[ \left(t \cdot \left(\color{blue}{z \cdot \left(\left(x \cdot 18\right) \cdot y\right)} - a \cdot 4\right) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]0.3 | \[ \left(t \cdot \left(z \cdot \color{blue}{\left(y \cdot \left(x \cdot 18\right)\right)} - a \cdot 4\right) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]0.3 | \[ \left(t \cdot \left(z \cdot \left(y \cdot \color{blue}{\left(18 \cdot x\right)}\right) - a \cdot 4\right) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-43 [=>]0.3 | \[ \left(t \cdot \left(z \cdot \color{blue}{\left(18 \cdot \left(x \cdot y\right)\right)} - a \cdot 4\right) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-43 [=>]0.3 | \[ \left(t \cdot \left(\color{blue}{18 \cdot \left(\left(x \cdot y\right) \cdot z\right)} - a \cdot 4\right) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]0.3 | \[ \left(t \cdot \left(18 \cdot \left(\left(x \cdot y\right) \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(\color{blue}{i \cdot \left(x \cdot 4\right)} + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-43 [=>]0.4 | \[ \left(t \cdot \left(18 \cdot \left(\left(x \cdot y\right) \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(\color{blue}{x \cdot \left(4 \cdot i\right)} + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]0.4 | \[ \left(t \cdot \left(18 \cdot \left(\left(x \cdot y\right) \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + \color{blue}{k \cdot \left(j \cdot 27\right)}\right)
\] |
rational.json-simplify-43 [=>]0.4 | \[ \left(t \cdot \left(18 \cdot \left(\left(x \cdot y\right) \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + \color{blue}{j \cdot \left(27 \cdot k\right)}\right)
\] |
if 4.99999999999999993e306 < (-.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 61.7
Simplified60.9
[Start]61.7 | \[ \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-45 [=>]61.7 | \[ \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) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)}
\] |
rational.json-simplify-2 [=>]61.7 | \[ \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) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-48 [=>]61.7 | \[ \left(\color{blue}{t \cdot \left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z - a \cdot 4\right)} + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]61.7 | \[ \left(t \cdot \left(\color{blue}{z \cdot \left(\left(x \cdot 18\right) \cdot y\right)} - a \cdot 4\right) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]61.7 | \[ \left(t \cdot \left(z \cdot \color{blue}{\left(y \cdot \left(x \cdot 18\right)\right)} - a \cdot 4\right) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]61.7 | \[ \left(t \cdot \left(z \cdot \left(y \cdot \color{blue}{\left(18 \cdot x\right)}\right) - a \cdot 4\right) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-43 [=>]61.7 | \[ \left(t \cdot \left(z \cdot \color{blue}{\left(18 \cdot \left(x \cdot y\right)\right)} - a \cdot 4\right) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-43 [=>]61.5 | \[ \left(t \cdot \left(\color{blue}{18 \cdot \left(\left(x \cdot y\right) \cdot z\right)} - a \cdot 4\right) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]61.5 | \[ \left(t \cdot \left(18 \cdot \left(\left(x \cdot y\right) \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(\color{blue}{i \cdot \left(x \cdot 4\right)} + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-43 [=>]60.9 | \[ \left(t \cdot \left(18 \cdot \left(\left(x \cdot y\right) \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(\color{blue}{x \cdot \left(4 \cdot i\right)} + \left(j \cdot 27\right) \cdot k\right)
\] |
rational.json-simplify-2 [=>]60.9 | \[ \left(t \cdot \left(18 \cdot \left(\left(x \cdot y\right) \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + \color{blue}{k \cdot \left(j \cdot 27\right)}\right)
\] |
rational.json-simplify-43 [=>]60.9 | \[ \left(t \cdot \left(18 \cdot \left(\left(x \cdot y\right) \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + \color{blue}{j \cdot \left(27 \cdot k\right)}\right)
\] |
Taylor expanded in x around inf 14.4
Simplified14.4
[Start]14.4 | \[ \left(18 \cdot \left(y \cdot \left(t \cdot \left(z \cdot x\right)\right)\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)
\] |
|---|---|
rational.json-simplify-43 [=>]14.4 | \[ \left(\color{blue}{y \cdot \left(\left(t \cdot \left(z \cdot x\right)\right) \cdot 18\right)} + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-2 [=>]14.4 | \[ \left(y \cdot \color{blue}{\left(18 \cdot \left(t \cdot \left(z \cdot x\right)\right)\right)} + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-2 [=>]14.4 | \[ \left(y \cdot \left(18 \cdot \color{blue}{\left(\left(z \cdot x\right) \cdot t\right)}\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)
\] |
rational.json-simplify-43 [=>]14.4 | \[ \left(y \cdot \color{blue}{\left(\left(z \cdot x\right) \cdot \left(t \cdot 18\right)\right)} + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)
\] |
Final simplification1.2
| Alternative 1 | |
|---|---|
| Error | 22.5 |
| Cost | 2404 |
| Alternative 2 | |
|---|---|
| Error | 36.9 |
| Cost | 2160 |
| Alternative 3 | |
|---|---|
| Error | 33.3 |
| Cost | 2156 |
| Alternative 4 | |
|---|---|
| Error | 9.6 |
| Cost | 2132 |
| Alternative 5 | |
|---|---|
| Error | 8.5 |
| Cost | 2128 |
| Alternative 6 | |
|---|---|
| Error | 31.7 |
| Cost | 2020 |
| Alternative 7 | |
|---|---|
| Error | 33.3 |
| Cost | 1892 |
| Alternative 8 | |
|---|---|
| Error | 10.6 |
| Cost | 1872 |
| Alternative 9 | |
|---|---|
| Error | 11.3 |
| Cost | 1740 |
| Alternative 10 | |
|---|---|
| Error | 46.6 |
| Cost | 1632 |
| Alternative 11 | |
|---|---|
| Error | 46.5 |
| Cost | 1632 |
| Alternative 12 | |
|---|---|
| Error | 18.7 |
| Cost | 1620 |
| Alternative 13 | |
|---|---|
| Error | 24.0 |
| Cost | 1496 |
| Alternative 14 | |
|---|---|
| Error | 18.9 |
| Cost | 1488 |
| Alternative 15 | |
|---|---|
| Error | 18.5 |
| Cost | 1488 |
| Alternative 16 | |
|---|---|
| Error | 45.9 |
| Cost | 1244 |
| Alternative 17 | |
|---|---|
| Error | 45.9 |
| Cost | 1244 |
| Alternative 18 | |
|---|---|
| Error | 45.2 |
| Cost | 1112 |
| Alternative 19 | |
|---|---|
| Error | 45.3 |
| Cost | 1112 |
| Alternative 20 | |
|---|---|
| Error | 37.0 |
| Cost | 972 |
| Alternative 21 | |
|---|---|
| Error | 45.1 |
| Cost | 584 |
| Alternative 22 | |
|---|---|
| Error | 48.0 |
| Cost | 192 |
herbie shell --seed 2023077
(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)))