| Alternative 1 | |
|---|---|
| Error | 4.1 |
| Cost | 2120 |
(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))
(* (* j 27.0) k))))
(if (<= t_1 -2e+302)
(-
(- (+ (* 18.0 (* y (* (* z x) t))) (* b c)) (* x (* i 4.0)))
(* j (* k 27.0)))
(if (<= t_1 1e+308)
t_1
(-
(- (+ (* y (* 18.0 (* z (* x 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) {
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)) - ((j * 27.0) * k);
double tmp;
if (t_1 <= -2e+302) {
tmp = (((18.0 * (y * ((z * x) * t))) + (b * c)) - (x * (i * 4.0))) - (j * (k * 27.0));
} else if (t_1 <= 1e+308) {
tmp = t_1;
} else {
tmp = (((y * (18.0 * (z * (x * t)))) + (b * c)) - (x * (4.0 * i))) - (j * (27.0 * k));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
code = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
end function
real(8) function code(x, y, z, t, a, b, c, i, j, k)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (((((((x * 18.0d0) * y) * z) * t) - ((a * 4.0d0) * t)) + (b * c)) - ((x * 4.0d0) * i)) - ((j * 27.0d0) * k)
if (t_1 <= (-2d+302)) then
tmp = (((18.0d0 * (y * ((z * x) * t))) + (b * c)) - (x * (i * 4.0d0))) - (j * (k * 27.0d0))
else if (t_1 <= 1d+308) then
tmp = t_1
else
tmp = (((y * (18.0d0 * (z * (x * t)))) + (b * c)) - (x * (4.0d0 * i))) - (j * (27.0d0 * k))
end if
code = tmp
end function
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)) - ((j * 27.0) * k);
double tmp;
if (t_1 <= -2e+302) {
tmp = (((18.0 * (y * ((z * x) * t))) + (b * c)) - (x * (i * 4.0))) - (j * (k * 27.0));
} else if (t_1 <= 1e+308) {
tmp = t_1;
} else {
tmp = (((y * (18.0 * (z * (x * t)))) + (b * c)) - (x * (4.0 * i))) - (j * (27.0 * k));
}
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)) - ((j * 27.0) * k) tmp = 0 if t_1 <= -2e+302: tmp = (((18.0 * (y * ((z * x) * t))) + (b * c)) - (x * (i * 4.0))) - (j * (k * 27.0)) elif t_1 <= 1e+308: tmp = t_1 else: tmp = (((y * (18.0 * (z * (x * t)))) + (b * c)) - (x * (4.0 * i))) - (j * (27.0 * k)) 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(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_1 <= -2e+302) tmp = Float64(Float64(Float64(Float64(18.0 * Float64(y * Float64(Float64(z * x) * t))) + Float64(b * c)) - Float64(x * Float64(i * 4.0))) - Float64(j * Float64(k * 27.0))); elseif (t_1 <= 1e+308) tmp = t_1; else tmp = Float64(Float64(Float64(Float64(y * Float64(18.0 * Float64(z * Float64(x * t)))) + Float64(b * c)) - Float64(x * Float64(4.0 * i))) - Float64(j * Float64(27.0 * k))); 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)) - ((j * 27.0) * k); tmp = 0.0; if (t_1 <= -2e+302) tmp = (((18.0 * (y * ((z * x) * t))) + (b * c)) - (x * (i * 4.0))) - (j * (k * 27.0)); elseif (t_1 <= 1e+308) tmp = t_1; else tmp = (((y * (18.0 * (z * (x * t)))) + (b * c)) - (x * (4.0 * i))) - (j * (27.0 * k)); 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[(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$1, -2e+302], N[(N[(N[(N[(18.0 * N[(y * N[(N[(z * x), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(x * N[(i * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(k * 27.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+308], t$95$1, N[(N[(N[(N[(y * N[(18.0 * N[(z * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(27.0 * k), $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 - \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_1 \leq -2 \cdot 10^{+302}:\\
\;\;\;\;\left(\left(18 \cdot \left(y \cdot \left(\left(z \cdot x\right) \cdot t\right)\right) + b \cdot c\right) - x \cdot \left(i \cdot 4\right)\right) - j \cdot \left(k \cdot 27\right)\\
\mathbf{elif}\;t_1 \leq 10^{+308}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y \cdot \left(18 \cdot \left(z \cdot \left(x \cdot t\right)\right)\right) + b \cdot c\right) - x \cdot \left(4 \cdot i\right)\right) - j \cdot \left(27 \cdot k\right)\\
\end{array}
Results
| Original | 5.7 |
|---|---|
| Target | 1.8 |
| Herbie | 1.5 |
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)) < -2.0000000000000002e302Initial program 50.8
Simplified32.8
[Start]50.8 | \[ \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_best-simplify-2 [=>]50.8 | \[ \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) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-2 [=>]50.8 | \[ \left(\left(\left(t \cdot \left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) - \color{blue}{t \cdot \left(a \cdot 4\right)}\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-50 [=>]50.8 | \[ \left(\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(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-2 [=>]50.8 | \[ \left(\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(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-44 [=>]33.1 | \[ \left(\left(t \cdot \left(\color{blue}{\left(x \cdot 18\right) \cdot \left(z \cdot y\right)} - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-2 [=>]33.1 | \[ \left(\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot y\right) - a \cdot 4\right) + b \cdot c\right) - \color{blue}{i \cdot \left(x \cdot 4\right)}\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-44 [=>]33.1 | \[ \left(\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot y\right) - a \cdot 4\right) + b \cdot c\right) - \color{blue}{x \cdot \left(i \cdot 4\right)}\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-2 [=>]33.1 | \[ \left(\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot y\right) - a \cdot 4\right) + b \cdot c\right) - x \cdot \left(i \cdot 4\right)\right) - \color{blue}{k \cdot \left(j \cdot 27\right)}
\] |
rational_best-simplify-44 [=>]32.8 | \[ \left(\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(z \cdot y\right) - a \cdot 4\right) + b \cdot c\right) - x \cdot \left(i \cdot 4\right)\right) - \color{blue}{j \cdot \left(k \cdot 27\right)}
\] |
Taylor expanded in x around inf 16.8
Simplified16.8
[Start]16.8 | \[ \left(\left(18 \cdot \left(y \cdot \left(t \cdot \left(z \cdot x\right)\right)\right) + b \cdot c\right) - x \cdot \left(i \cdot 4\right)\right) - j \cdot \left(k \cdot 27\right)
\] |
|---|---|
rational_best-simplify-2 [=>]16.8 | \[ \left(\left(18 \cdot \left(y \cdot \color{blue}{\left(\left(z \cdot x\right) \cdot t\right)}\right) + b \cdot c\right) - x \cdot \left(i \cdot 4\right)\right) - j \cdot \left(k \cdot 27\right)
\] |
if -2.0000000000000002e302 < (-.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)) < 1e308Initial program 0.2
if 1e308 < (-.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 62.9
Simplified38.2
[Start]62.9 | \[ \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_best-simplify-2 [=>]62.9 | \[ \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) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-2 [=>]62.9 | \[ \left(\left(\left(t \cdot \left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) - \color{blue}{t \cdot \left(a \cdot 4\right)}\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-50 [=>]62.9 | \[ \left(\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(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-2 [=>]62.9 | \[ \left(\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(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-2 [=>]62.9 | \[ \left(\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(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-44 [=>]39.9 | \[ \left(\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(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-2 [=>]39.9 | \[ \left(\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(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-44 [=>]39.7 | \[ \left(\left(t \cdot \left(y \cdot \color{blue}{\left(18 \cdot \left(z \cdot x\right)\right)} - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-2 [=>]39.7 | \[ \left(\left(t \cdot \left(y \cdot \left(18 \cdot \color{blue}{\left(x \cdot z\right)}\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-2 [=>]39.7 | \[ \left(\left(t \cdot \left(y \cdot \left(18 \cdot \left(x \cdot z\right)\right) - a \cdot 4\right) + b \cdot c\right) - \color{blue}{i \cdot \left(x \cdot 4\right)}\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-44 [=>]39.7 | \[ \left(\left(t \cdot \left(y \cdot \left(18 \cdot \left(x \cdot z\right)\right) - a \cdot 4\right) + b \cdot c\right) - \color{blue}{x \cdot \left(i \cdot 4\right)}\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-2 [=>]39.7 | \[ \left(\left(t \cdot \left(y \cdot \left(18 \cdot \left(x \cdot z\right)\right) - a \cdot 4\right) + b \cdot c\right) - x \cdot \color{blue}{\left(4 \cdot i\right)}\right) - \left(j \cdot 27\right) \cdot k
\] |
rational_best-simplify-2 [=>]39.7 | \[ \left(\left(t \cdot \left(y \cdot \left(18 \cdot \left(x \cdot z\right)\right) - a \cdot 4\right) + b \cdot c\right) - x \cdot \left(4 \cdot i\right)\right) - \color{blue}{k \cdot \left(j \cdot 27\right)}
\] |
Taylor expanded in y around inf 13.6
Simplified7.8
[Start]13.6 | \[ \left(\left(18 \cdot \left(y \cdot \left(t \cdot \left(z \cdot x\right)\right)\right) + b \cdot c\right) - x \cdot \left(4 \cdot i\right)\right) - j \cdot \left(27 \cdot k\right)
\] |
|---|---|
rational_best-simplify-44 [=>]13.5 | \[ \left(\left(\color{blue}{y \cdot \left(18 \cdot \left(t \cdot \left(z \cdot x\right)\right)\right)} + b \cdot c\right) - x \cdot \left(4 \cdot i\right)\right) - j \cdot \left(27 \cdot k\right)
\] |
rational_best-simplify-44 [=>]7.8 | \[ \left(\left(y \cdot \left(18 \cdot \color{blue}{\left(z \cdot \left(t \cdot x\right)\right)}\right) + b \cdot c\right) - x \cdot \left(4 \cdot i\right)\right) - j \cdot \left(27 \cdot k\right)
\] |
rational_best-simplify-2 [=>]7.8 | \[ \left(\left(y \cdot \left(18 \cdot \left(z \cdot \color{blue}{\left(x \cdot t\right)}\right)\right) + b \cdot c\right) - x \cdot \left(4 \cdot i\right)\right) - j \cdot \left(27 \cdot k\right)
\] |
Final simplification1.5
| Alternative 1 | |
|---|---|
| Error | 4.1 |
| Cost | 2120 |
| Alternative 2 | |
|---|---|
| Error | 4.5 |
| Cost | 2120 |
| Alternative 3 | |
|---|---|
| Error | 22.9 |
| Cost | 2012 |
| Alternative 4 | |
|---|---|
| Error | 9.7 |
| Cost | 1996 |
| Alternative 5 | |
|---|---|
| Error | 9.6 |
| Cost | 1996 |
| Alternative 6 | |
|---|---|
| Error | 31.4 |
| Cost | 1896 |
| Alternative 7 | |
|---|---|
| Error | 8.8 |
| Cost | 1864 |
| Alternative 8 | |
|---|---|
| Error | 9.2 |
| Cost | 1864 |
| Alternative 9 | |
|---|---|
| Error | 9.0 |
| Cost | 1736 |
| Alternative 10 | |
|---|---|
| Error | 45.4 |
| Cost | 1640 |
| Alternative 11 | |
|---|---|
| Error | 45.4 |
| Cost | 1640 |
| Alternative 12 | |
|---|---|
| Error | 45.6 |
| Cost | 1640 |
| Alternative 13 | |
|---|---|
| Error | 31.0 |
| Cost | 1632 |
| Alternative 14 | |
|---|---|
| Error | 19.0 |
| Cost | 1616 |
| Alternative 15 | |
|---|---|
| Error | 32.2 |
| Cost | 1500 |
| Alternative 16 | |
|---|---|
| Error | 22.1 |
| Cost | 1488 |
| Alternative 17 | |
|---|---|
| Error | 34.9 |
| Cost | 1368 |
| Alternative 18 | |
|---|---|
| Error | 17.6 |
| Cost | 1352 |
| Alternative 19 | |
|---|---|
| Error | 9.8 |
| Cost | 1344 |
| Alternative 20 | |
|---|---|
| Error | 45.0 |
| Cost | 1244 |
| Alternative 21 | |
|---|---|
| Error | 32.0 |
| Cost | 1236 |
| Alternative 22 | |
|---|---|
| Error | 18.1 |
| Cost | 1224 |
| Alternative 23 | |
|---|---|
| Error | 43.9 |
| Cost | 584 |
| Alternative 24 | |
|---|---|
| Error | 48.3 |
| Cost | 192 |
herbie shell --seed 2023096
(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)))