| Alternative 1 | |
|---|---|
| Error | 34.1 |
| Cost | 2290 |
(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) (* t (* a -4.0))) (* b c))
(* i (* x -4.0)))
(* k (* j -27.0)))))
(if (<= t_1 (- INFINITY))
(* x (+ (* y (* t (* 18.0 z))) (* i -4.0)))
(if (<= t_1 2e+304)
t_1
(+
(+ (* b c) (* 18.0 (* y (* t (* x z)))))
(+ (* x (* i -4.0)) (* j (* k -27.0))))))))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) + (t * (a * -4.0))) + (b * c)) + (i * (x * -4.0))) + (k * (j * -27.0));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x * ((y * (t * (18.0 * z))) + (i * -4.0));
} else if (t_1 <= 2e+304) {
tmp = t_1;
} else {
tmp = ((b * c) + (18.0 * (y * (t * (x * z))))) + ((x * (i * -4.0)) + (j * (k * -27.0)));
}
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) + (t * (a * -4.0))) + (b * c)) + (i * (x * -4.0))) + (k * (j * -27.0));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = x * ((y * (t * (18.0 * z))) + (i * -4.0));
} else if (t_1 <= 2e+304) {
tmp = t_1;
} else {
tmp = ((b * c) + (18.0 * (y * (t * (x * z))))) + ((x * (i * -4.0)) + (j * (k * -27.0)));
}
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) + (t * (a * -4.0))) + (b * c)) + (i * (x * -4.0))) + (k * (j * -27.0)) tmp = 0 if t_1 <= -math.inf: tmp = x * ((y * (t * (18.0 * z))) + (i * -4.0)) elif t_1 <= 2e+304: tmp = t_1 else: tmp = ((b * c) + (18.0 * (y * (t * (x * z))))) + ((x * (i * -4.0)) + (j * (k * -27.0))) 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(Float64(x * 18.0) * y) * z) * t) + Float64(t * Float64(a * -4.0))) + Float64(b * c)) + Float64(i * Float64(x * -4.0))) + Float64(k * Float64(j * -27.0))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(x * Float64(Float64(y * Float64(t * Float64(18.0 * z))) + Float64(i * -4.0))); elseif (t_1 <= 2e+304) tmp = t_1; else tmp = Float64(Float64(Float64(b * c) + Float64(18.0 * Float64(y * Float64(t * Float64(x * z))))) + Float64(Float64(x * Float64(i * -4.0)) + Float64(j * Float64(k * -27.0)))); 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) + (t * (a * -4.0))) + (b * c)) + (i * (x * -4.0))) + (k * (j * -27.0)); tmp = 0.0; if (t_1 <= -Inf) tmp = x * ((y * (t * (18.0 * z))) + (i * -4.0)); elseif (t_1 <= 2e+304) tmp = t_1; else tmp = ((b * c) + (18.0 * (y * (t * (x * z))))) + ((x * (i * -4.0)) + (j * (k * -27.0))); 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[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] + N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] + N[(i * N[(x * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x * N[(N[(y * N[(t * N[(18.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+304], t$95$1, N[(N[(N[(b * c), $MachinePrecision] + N[(18.0 * N[(y * N[(t * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(i * -4.0), $MachinePrecision]), $MachinePrecision] + N[(j * N[(k * -27.0), $MachinePrecision]), $MachinePrecision]), $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 := \left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t + t \cdot \left(a \cdot -4\right)\right) + b \cdot c\right) + i \cdot \left(x \cdot -4\right)\right) + k \cdot \left(j \cdot -27\right)\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;x \cdot \left(y \cdot \left(t \cdot \left(18 \cdot z\right)\right) + i \cdot -4\right)\\
\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot c + 18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\right) + \left(x \cdot \left(i \cdot -4\right) + j \cdot \left(k \cdot -27\right)\right)\\
\end{array}
Results
| Original | 5.7 |
|---|---|
| Target | 1.6 |
| Herbie | 2.0 |
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
Simplified40.6
[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
\] |
|---|---|
sub-neg [=>]64.0 | \[ \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) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) + \left(-\left(j \cdot 27\right) \cdot k\right)}
\] |
+-commutative [=>]64.0 | \[ \color{blue}{\left(-\left(j \cdot 27\right) \cdot k\right) + \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)}
\] |
associate-*l* [=>]63.7 | \[ \left(-\color{blue}{j \cdot \left(27 \cdot k\right)}\right) + \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)
\] |
distribute-rgt-neg-in [=>]63.7 | \[ \color{blue}{j \cdot \left(-27 \cdot k\right)} + \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)
\] |
fma-def [=>]63.7 | \[ \color{blue}{\mathsf{fma}\left(j, -27 \cdot k, \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)}
\] |
*-commutative [=>]63.7 | \[ \mathsf{fma}\left(j, -\color{blue}{k \cdot 27}, \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)
\] |
distribute-rgt-neg-in [=>]63.7 | \[ \mathsf{fma}\left(j, \color{blue}{k \cdot \left(-27\right)}, \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)
\] |
metadata-eval [=>]63.7 | \[ \mathsf{fma}\left(j, k \cdot \color{blue}{-27}, \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)
\] |
sub-neg [=>]63.7 | \[ \mathsf{fma}\left(j, k \cdot -27, \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\right)}\right)
\] |
+-commutative [=>]63.7 | \[ \mathsf{fma}\left(j, k \cdot -27, \color{blue}{\left(-\left(x \cdot 4\right) \cdot i\right) + \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)}\right)
\] |
associate-*l* [=>]63.7 | \[ \mathsf{fma}\left(j, k \cdot -27, \left(-\color{blue}{x \cdot \left(4 \cdot i\right)}\right) + \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)\right)
\] |
distribute-rgt-neg-in [=>]63.7 | \[ \mathsf{fma}\left(j, k \cdot -27, \color{blue}{x \cdot \left(-4 \cdot i\right)} + \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)\right)
\] |
fma-def [=>]63.7 | \[ \mathsf{fma}\left(j, k \cdot -27, \color{blue}{\mathsf{fma}\left(x, -4 \cdot i, \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)}\right)
\] |
*-commutative [=>]63.7 | \[ \mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, -\color{blue}{i \cdot 4}, \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)\right)
\] |
distribute-rgt-neg-in [=>]63.7 | \[ \mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, \color{blue}{i \cdot \left(-4\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) + b \cdot c\right)\right)
\] |
metadata-eval [=>]63.7 | \[ \mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, i \cdot \color{blue}{-4}, \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)\right)
\] |
distribute-rgt-out-- [=>]63.7 | \[ \mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, i \cdot -4, \color{blue}{t \cdot \left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z - a \cdot 4\right)} + b \cdot c\right)\right)
\] |
fma-def [=>]63.7 | \[ \mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, i \cdot -4, \color{blue}{\mathsf{fma}\left(t, \left(\left(x \cdot 18\right) \cdot y\right) \cdot z - a \cdot 4, b \cdot c\right)}\right)\right)
\] |
associate-*l* [=>]63.3 | \[ \mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \color{blue}{\left(x \cdot \left(18 \cdot y\right)\right)} \cdot z - a \cdot 4, b \cdot c\right)\right)\right)
\] |
associate-*l* [=>]40.6 | \[ \mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \color{blue}{x \cdot \left(\left(18 \cdot y\right) \cdot z\right)} - a \cdot 4, b \cdot c\right)\right)\right)
\] |
fma-neg [=>]40.6 | \[ \mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(x, \left(18 \cdot y\right) \cdot z, -a \cdot 4\right)}, b \cdot c\right)\right)\right)
\] |
*-commutative [=>]40.6 | \[ \mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, \color{blue}{z \cdot \left(18 \cdot y\right)}, -a \cdot 4\right), b \cdot c\right)\right)\right)
\] |
distribute-rgt-neg-in [=>]40.6 | \[ \mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, z \cdot \left(18 \cdot y\right), \color{blue}{a \cdot \left(-4\right)}\right), b \cdot c\right)\right)\right)
\] |
metadata-eval [=>]40.6 | \[ \mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, z \cdot \left(18 \cdot y\right), a \cdot \color{blue}{-4}\right), b \cdot c\right)\right)\right)
\] |
Taylor expanded in x around inf 21.7
Applied egg-rr41.4
Simplified21.8
[Start]41.4 | \[ \left(\left(e^{\mathsf{log1p}\left(\left(y \cdot t\right) \cdot \left(z \cdot 18\right)\right)} - 1\right) + -4 \cdot i\right) \cdot x
\] |
|---|---|
expm1-def [=>]35.9 | \[ \left(\color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\left(y \cdot t\right) \cdot \left(z \cdot 18\right)\right)\right)} + -4 \cdot i\right) \cdot x
\] |
expm1-log1p [=>]23.3 | \[ \left(\color{blue}{\left(y \cdot t\right) \cdot \left(z \cdot 18\right)} + -4 \cdot i\right) \cdot x
\] |
associate-*l* [=>]21.8 | \[ \left(\color{blue}{y \cdot \left(t \cdot \left(z \cdot 18\right)\right)} + -4 \cdot i\right) \cdot x
\] |
*-commutative [=>]21.8 | \[ \left(y \cdot \left(t \cdot \color{blue}{\left(18 \cdot z\right)}\right) + -4 \cdot i\right) \cdot x
\] |
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)) < 1.9999999999999999e304Initial program 0.3
if 1.9999999999999999e304 < (-.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 51.7
Simplified32.6
[Start]51.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
\] |
|---|---|
associate--l- [=>]51.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)}
\] |
associate-+l- [=>]51.7 | \[ \color{blue}{\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(\left(a \cdot 4\right) \cdot t - b \cdot c\right)\right)} - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)
\] |
associate-+l- [<=]51.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)
\] |
distribute-rgt-out-- [=>]51.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)
\] |
associate-*l* [=>]33.6 | \[ \left(t \cdot \left(\color{blue}{\left(x \cdot 18\right) \cdot \left(y \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)
\] |
associate-*l* [=>]33.6 | \[ \left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \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)
\] |
associate-*l* [=>]32.6 | \[ \left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \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 a around 0 14.8
Final simplification2.0
| Alternative 1 | |
|---|---|
| Error | 34.1 |
| Cost | 2290 |
| Alternative 2 | |
|---|---|
| Error | 34.0 |
| Cost | 2289 |
| Alternative 3 | |
|---|---|
| Error | 32.8 |
| Cost | 2289 |
| Alternative 4 | |
|---|---|
| Error | 32.8 |
| Cost | 2289 |
| Alternative 5 | |
|---|---|
| Error | 6.7 |
| Cost | 2252 |
| Alternative 6 | |
|---|---|
| Error | 36.6 |
| Cost | 2161 |
| Alternative 7 | |
|---|---|
| Error | 36.6 |
| Cost | 2160 |
| Alternative 8 | |
|---|---|
| Error | 31.3 |
| Cost | 2152 |
| Alternative 9 | |
|---|---|
| Error | 21.6 |
| Cost | 2016 |
| Alternative 10 | |
|---|---|
| Error | 10.0 |
| Cost | 1740 |
| Alternative 11 | |
|---|---|
| Error | 20.4 |
| Cost | 1620 |
| Alternative 12 | |
|---|---|
| Error | 45.5 |
| Cost | 1508 |
| Alternative 13 | |
|---|---|
| Error | 45.5 |
| Cost | 1508 |
| Alternative 14 | |
|---|---|
| Error | 19.5 |
| Cost | 1488 |
| Alternative 15 | |
|---|---|
| Error | 10.0 |
| Cost | 1476 |
| Alternative 16 | |
|---|---|
| Error | 16.9 |
| Cost | 1225 |
| Alternative 17 | |
|---|---|
| Error | 34.4 |
| Cost | 1104 |
| Alternative 18 | |
|---|---|
| Error | 43.2 |
| Cost | 981 |
| Alternative 19 | |
|---|---|
| Error | 43.2 |
| Cost | 585 |
| Alternative 20 | |
|---|---|
| Error | 43.3 |
| Cost | 584 |
| Alternative 21 | |
|---|---|
| Error | 48.2 |
| Cost | 192 |
herbie shell --seed 2022364
(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)))