
(FPCore (x y z t a b c i) :precision binary64 (* 2.0 (- (+ (* x y) (* z t)) (* (* (+ a (* b c)) c) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i));
}
real(8) function code(x, y, z, t, a, b, c, i)
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
code = 2.0d0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i));
}
def code(x, y, z, t, a, b, c, i): return 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i))
function code(x, y, z, t, a, b, c, i) return Float64(2.0 * Float64(Float64(Float64(x * y) + Float64(z * t)) - Float64(Float64(Float64(a + Float64(b * c)) * c) * i))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i)); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(2.0 * N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 11 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (* 2.0 (- (+ (* x y) (* z t)) (* (* (+ a (* b c)) c) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i));
}
real(8) function code(x, y, z, t, a, b, c, i)
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
code = 2.0d0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i));
}
def code(x, y, z, t, a, b, c, i): return 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i))
function code(x, y, z, t, a, b, c, i) return Float64(2.0 * Float64(Float64(Float64(x * y) + Float64(z * t)) - Float64(Float64(Float64(a + Float64(b * c)) * c) * i))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i)); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(2.0 * N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right)
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (* b c))))
(if (<= (- (+ (* z t) (* x y)) (* (* c t_1) i)) INFINITY)
(* 2.0 (- (fma x y (* z t)) (* t_1 (* c i))))
(* -2.0 (* (* c i) (fma c b a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a + (b * c);
double tmp;
if ((((z * t) + (x * y)) - ((c * t_1) * i)) <= ((double) INFINITY)) {
tmp = 2.0 * (fma(x, y, (z * t)) - (t_1 * (c * i)));
} else {
tmp = -2.0 * ((c * i) * fma(c, b, a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a + Float64(b * c)) tmp = 0.0 if (Float64(Float64(Float64(z * t) + Float64(x * y)) - Float64(Float64(c * t_1) * i)) <= Inf) tmp = Float64(2.0 * Float64(fma(x, y, Float64(z * t)) - Float64(t_1 * Float64(c * i)))); else tmp = Float64(-2.0 * Float64(Float64(c * i) * fma(c, b, a))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(z * t), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(N[(c * t$95$1), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], Infinity], N[(2.0 * N[(N[(x * y + N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-2.0 * N[(N[(c * i), $MachinePrecision] * N[(c * b + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + b \cdot c\\
\mathbf{if}\;\left(z \cdot t + x \cdot y\right) - \left(c \cdot t_1\right) \cdot i \leq \infty:\\
\;\;\;\;2 \cdot \left(\mathsf{fma}\left(x, y, z \cdot t\right) - t_1 \cdot \left(c \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;-2 \cdot \left(\left(c \cdot i\right) \cdot \mathsf{fma}\left(c, b, a\right)\right)\\
\end{array}
\end{array}
if (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)) < +inf.0Initial program 94.5%
associate-*l*99.1%
fma-def99.1%
Simplified99.1%
if +inf.0 < (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)) Initial program 0.0%
Taylor expanded in i around inf 64.3%
Taylor expanded in i around 0 64.3%
fma-def64.3%
associate-*r*64.3%
*-commutative64.3%
Simplified64.3%
Final simplification97.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (* b c))) (t_2 (* (* c t_1) i)))
(if (<= t_2 (- INFINITY))
(* -2.0 (* c (* t_1 i)))
(if (<= t_2 1e+268)
(* (- (+ (* z t) (* x y)) t_2) 2.0)
(* -2.0 (* (* c i) (fma c b a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a + (b * c);
double t_2 = (c * t_1) * i;
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = -2.0 * (c * (t_1 * i));
} else if (t_2 <= 1e+268) {
tmp = (((z * t) + (x * y)) - t_2) * 2.0;
} else {
tmp = -2.0 * ((c * i) * fma(c, b, a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a + Float64(b * c)) t_2 = Float64(Float64(c * t_1) * i) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(-2.0 * Float64(c * Float64(t_1 * i))); elseif (t_2 <= 1e+268) tmp = Float64(Float64(Float64(Float64(z * t) + Float64(x * y)) - t_2) * 2.0); else tmp = Float64(-2.0 * Float64(Float64(c * i) * fma(c, b, a))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * t$95$1), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(-2.0 * N[(c * N[(t$95$1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+268], N[(N[(N[(N[(z * t), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision] * 2.0), $MachinePrecision], N[(-2.0 * N[(N[(c * i), $MachinePrecision] * N[(c * b + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + b \cdot c\\
t_2 := \left(c \cdot t_1\right) \cdot i\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;-2 \cdot \left(c \cdot \left(t_1 \cdot i\right)\right)\\
\mathbf{elif}\;t_2 \leq 10^{+268}:\\
\;\;\;\;\left(\left(z \cdot t + x \cdot y\right) - t_2\right) \cdot 2\\
\mathbf{else}:\\
\;\;\;\;-2 \cdot \left(\left(c \cdot i\right) \cdot \mathsf{fma}\left(c, b, a\right)\right)\\
\end{array}
\end{array}
if (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < -inf.0Initial program 78.3%
Taylor expanded in i around inf 90.0%
Taylor expanded in i around 0 90.0%
if -inf.0 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 9.9999999999999997e267Initial program 99.2%
if 9.9999999999999997e267 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) Initial program 67.3%
Taylor expanded in i around inf 86.5%
Taylor expanded in i around 0 86.5%
fma-def86.5%
associate-*r*88.3%
*-commutative88.3%
Simplified88.3%
Final simplification95.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (* b c))) (t_2 (* (* c t_1) i)))
(if (or (<= t_2 (- INFINITY)) (not (<= t_2 5e+280)))
(* -2.0 (* c (* t_1 i)))
(* (- (+ (* z t) (* x y)) t_2) 2.0))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a + (b * c);
double t_2 = (c * t_1) * i;
double tmp;
if ((t_2 <= -((double) INFINITY)) || !(t_2 <= 5e+280)) {
tmp = -2.0 * (c * (t_1 * i));
} else {
tmp = (((z * t) + (x * y)) - t_2) * 2.0;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a + (b * c);
double t_2 = (c * t_1) * i;
double tmp;
if ((t_2 <= -Double.POSITIVE_INFINITY) || !(t_2 <= 5e+280)) {
tmp = -2.0 * (c * (t_1 * i));
} else {
tmp = (((z * t) + (x * y)) - t_2) * 2.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a + (b * c) t_2 = (c * t_1) * i tmp = 0 if (t_2 <= -math.inf) or not (t_2 <= 5e+280): tmp = -2.0 * (c * (t_1 * i)) else: tmp = (((z * t) + (x * y)) - t_2) * 2.0 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a + Float64(b * c)) t_2 = Float64(Float64(c * t_1) * i) tmp = 0.0 if ((t_2 <= Float64(-Inf)) || !(t_2 <= 5e+280)) tmp = Float64(-2.0 * Float64(c * Float64(t_1 * i))); else tmp = Float64(Float64(Float64(Float64(z * t) + Float64(x * y)) - t_2) * 2.0); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = a + (b * c); t_2 = (c * t_1) * i; tmp = 0.0; if ((t_2 <= -Inf) || ~((t_2 <= 5e+280))) tmp = -2.0 * (c * (t_1 * i)); else tmp = (((z * t) + (x * y)) - t_2) * 2.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * t$95$1), $MachinePrecision] * i), $MachinePrecision]}, If[Or[LessEqual[t$95$2, (-Infinity)], N[Not[LessEqual[t$95$2, 5e+280]], $MachinePrecision]], N[(-2.0 * N[(c * N[(t$95$1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(z * t), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] - t$95$2), $MachinePrecision] * 2.0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + b \cdot c\\
t_2 := \left(c \cdot t_1\right) \cdot i\\
\mathbf{if}\;t_2 \leq -\infty \lor \neg \left(t_2 \leq 5 \cdot 10^{+280}\right):\\
\;\;\;\;-2 \cdot \left(c \cdot \left(t_1 \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(z \cdot t + x \cdot y\right) - t_2\right) \cdot 2\\
\end{array}
\end{array}
if (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < -inf.0 or 5.0000000000000002e280 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) Initial program 72.2%
Taylor expanded in i around inf 89.0%
Taylor expanded in i around 0 89.0%
if -inf.0 < (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i) < 5.0000000000000002e280Initial program 99.2%
Final simplification95.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (+ (* z t) (* x y)) 2.0)) (t_2 (* -2.0 (* c (* c (* b i))))))
(if (<= c -7e+102)
t_2
(if (<= c 4.2e+23)
t_1
(if (<= c 4.9e+89)
t_2
(if (<= c 3e+171)
t_1
(if (<= c 1.65e+208) (* -2.0 (* a (* c i))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = ((z * t) + (x * y)) * 2.0;
double t_2 = -2.0 * (c * (c * (b * i)));
double tmp;
if (c <= -7e+102) {
tmp = t_2;
} else if (c <= 4.2e+23) {
tmp = t_1;
} else if (c <= 4.9e+89) {
tmp = t_2;
} else if (c <= 3e+171) {
tmp = t_1;
} else if (c <= 1.65e+208) {
tmp = -2.0 * (a * (c * i));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((z * t) + (x * y)) * 2.0d0
t_2 = (-2.0d0) * (c * (c * (b * i)))
if (c <= (-7d+102)) then
tmp = t_2
else if (c <= 4.2d+23) then
tmp = t_1
else if (c <= 4.9d+89) then
tmp = t_2
else if (c <= 3d+171) then
tmp = t_1
else if (c <= 1.65d+208) then
tmp = (-2.0d0) * (a * (c * i))
else
tmp = t_2
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 t_1 = ((z * t) + (x * y)) * 2.0;
double t_2 = -2.0 * (c * (c * (b * i)));
double tmp;
if (c <= -7e+102) {
tmp = t_2;
} else if (c <= 4.2e+23) {
tmp = t_1;
} else if (c <= 4.9e+89) {
tmp = t_2;
} else if (c <= 3e+171) {
tmp = t_1;
} else if (c <= 1.65e+208) {
tmp = -2.0 * (a * (c * i));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = ((z * t) + (x * y)) * 2.0 t_2 = -2.0 * (c * (c * (b * i))) tmp = 0 if c <= -7e+102: tmp = t_2 elif c <= 4.2e+23: tmp = t_1 elif c <= 4.9e+89: tmp = t_2 elif c <= 3e+171: tmp = t_1 elif c <= 1.65e+208: tmp = -2.0 * (a * (c * i)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(z * t) + Float64(x * y)) * 2.0) t_2 = Float64(-2.0 * Float64(c * Float64(c * Float64(b * i)))) tmp = 0.0 if (c <= -7e+102) tmp = t_2; elseif (c <= 4.2e+23) tmp = t_1; elseif (c <= 4.9e+89) tmp = t_2; elseif (c <= 3e+171) tmp = t_1; elseif (c <= 1.65e+208) tmp = Float64(-2.0 * Float64(a * Float64(c * i))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = ((z * t) + (x * y)) * 2.0; t_2 = -2.0 * (c * (c * (b * i))); tmp = 0.0; if (c <= -7e+102) tmp = t_2; elseif (c <= 4.2e+23) tmp = t_1; elseif (c <= 4.9e+89) tmp = t_2; elseif (c <= 3e+171) tmp = t_1; elseif (c <= 1.65e+208) tmp = -2.0 * (a * (c * i)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(z * t), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] * 2.0), $MachinePrecision]}, Block[{t$95$2 = N[(-2.0 * N[(c * N[(c * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -7e+102], t$95$2, If[LessEqual[c, 4.2e+23], t$95$1, If[LessEqual[c, 4.9e+89], t$95$2, If[LessEqual[c, 3e+171], t$95$1, If[LessEqual[c, 1.65e+208], N[(-2.0 * N[(a * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot t + x \cdot y\right) \cdot 2\\
t_2 := -2 \cdot \left(c \cdot \left(c \cdot \left(b \cdot i\right)\right)\right)\\
\mathbf{if}\;c \leq -7 \cdot 10^{+102}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{+23}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 4.9 \cdot 10^{+89}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 3 \cdot 10^{+171}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.65 \cdot 10^{+208}:\\
\;\;\;\;-2 \cdot \left(a \cdot \left(c \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -7.00000000000000021e102 or 4.2000000000000003e23 < c < 4.89999999999999996e89 or 1.65e208 < c Initial program 79.2%
Taylor expanded in b around inf 67.1%
mul-1-neg67.1%
distribute-rgt-neg-in67.1%
unpow267.1%
Simplified67.1%
Taylor expanded in c around 0 67.1%
unpow267.1%
*-commutative67.1%
associate-*r*71.2%
Simplified71.2%
if -7.00000000000000021e102 < c < 4.2000000000000003e23 or 4.89999999999999996e89 < c < 3.0000000000000001e171Initial program 94.3%
Taylor expanded in c around 0 76.6%
if 3.0000000000000001e171 < c < 1.65e208Initial program 75.0%
Taylor expanded in i around inf 87.3%
Taylor expanded in c around 0 64.4%
*-commutative64.4%
*-commutative64.4%
associate-*r*76.3%
*-commutative76.3%
Simplified76.3%
Final simplification75.0%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= c -2.4e-57) (not (<= c 2.9e+21))) (* 2.0 (- (* z t) (* c (* (+ a (* b c)) i)))) (* (+ (* z t) (* x y)) 2.0)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((c <= -2.4e-57) || !(c <= 2.9e+21)) {
tmp = 2.0 * ((z * t) - (c * ((a + (b * c)) * i)));
} else {
tmp = ((z * t) + (x * y)) * 2.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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) :: tmp
if ((c <= (-2.4d-57)) .or. (.not. (c <= 2.9d+21))) then
tmp = 2.0d0 * ((z * t) - (c * ((a + (b * c)) * i)))
else
tmp = ((z * t) + (x * y)) * 2.0d0
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 tmp;
if ((c <= -2.4e-57) || !(c <= 2.9e+21)) {
tmp = 2.0 * ((z * t) - (c * ((a + (b * c)) * i)));
} else {
tmp = ((z * t) + (x * y)) * 2.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (c <= -2.4e-57) or not (c <= 2.9e+21): tmp = 2.0 * ((z * t) - (c * ((a + (b * c)) * i))) else: tmp = ((z * t) + (x * y)) * 2.0 return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((c <= -2.4e-57) || !(c <= 2.9e+21)) tmp = Float64(2.0 * Float64(Float64(z * t) - Float64(c * Float64(Float64(a + Float64(b * c)) * i)))); else tmp = Float64(Float64(Float64(z * t) + Float64(x * y)) * 2.0); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((c <= -2.4e-57) || ~((c <= 2.9e+21))) tmp = 2.0 * ((z * t) - (c * ((a + (b * c)) * i))); else tmp = ((z * t) + (x * y)) * 2.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[c, -2.4e-57], N[Not[LessEqual[c, 2.9e+21]], $MachinePrecision]], N[(2.0 * N[(N[(z * t), $MachinePrecision] - N[(c * N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z * t), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] * 2.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.4 \cdot 10^{-57} \lor \neg \left(c \leq 2.9 \cdot 10^{+21}\right):\\
\;\;\;\;2 \cdot \left(z \cdot t - c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot t + x \cdot y\right) \cdot 2\\
\end{array}
\end{array}
if c < -2.40000000000000006e-57 or 2.9e21 < c Initial program 80.4%
Taylor expanded in x around 0 81.7%
if -2.40000000000000006e-57 < c < 2.9e21Initial program 97.6%
Taylor expanded in c around 0 83.2%
Final simplification82.5%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= c -2.15e-57) (not (<= c 5e+22))) (* 2.0 (- (* z t) (* c (* (+ a (* b c)) i)))) (* 2.0 (- (+ (* z t) (* x y)) (* i (* a c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((c <= -2.15e-57) || !(c <= 5e+22)) {
tmp = 2.0 * ((z * t) - (c * ((a + (b * c)) * i)));
} else {
tmp = 2.0 * (((z * t) + (x * y)) - (i * (a * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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) :: tmp
if ((c <= (-2.15d-57)) .or. (.not. (c <= 5d+22))) then
tmp = 2.0d0 * ((z * t) - (c * ((a + (b * c)) * i)))
else
tmp = 2.0d0 * (((z * t) + (x * y)) - (i * (a * c)))
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 tmp;
if ((c <= -2.15e-57) || !(c <= 5e+22)) {
tmp = 2.0 * ((z * t) - (c * ((a + (b * c)) * i)));
} else {
tmp = 2.0 * (((z * t) + (x * y)) - (i * (a * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (c <= -2.15e-57) or not (c <= 5e+22): tmp = 2.0 * ((z * t) - (c * ((a + (b * c)) * i))) else: tmp = 2.0 * (((z * t) + (x * y)) - (i * (a * c))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((c <= -2.15e-57) || !(c <= 5e+22)) tmp = Float64(2.0 * Float64(Float64(z * t) - Float64(c * Float64(Float64(a + Float64(b * c)) * i)))); else tmp = Float64(2.0 * Float64(Float64(Float64(z * t) + Float64(x * y)) - Float64(i * Float64(a * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((c <= -2.15e-57) || ~((c <= 5e+22))) tmp = 2.0 * ((z * t) - (c * ((a + (b * c)) * i))); else tmp = 2.0 * (((z * t) + (x * y)) - (i * (a * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[c, -2.15e-57], N[Not[LessEqual[c, 5e+22]], $MachinePrecision]], N[(2.0 * N[(N[(z * t), $MachinePrecision] - N[(c * N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(z * t), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(i * N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.15 \cdot 10^{-57} \lor \neg \left(c \leq 5 \cdot 10^{+22}\right):\\
\;\;\;\;2 \cdot \left(z \cdot t - c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(z \cdot t + x \cdot y\right) - i \cdot \left(a \cdot c\right)\right)\\
\end{array}
\end{array}
if c < -2.15000000000000011e-57 or 4.9999999999999996e22 < c Initial program 80.6%
Taylor expanded in x around 0 81.8%
if -2.15000000000000011e-57 < c < 4.9999999999999996e22Initial program 97.6%
Taylor expanded in a around inf 96.6%
Final simplification89.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* 2.0 (* z t))))
(if (<= t -1.8e-25)
t_1
(if (<= t 3.5e+58)
(* 2.0 (* x y))
(if (or (<= t 6e+129) (not (<= t 1.4e+155)))
t_1
(* -2.0 (* a (* c i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = 2.0 * (z * t);
double tmp;
if (t <= -1.8e-25) {
tmp = t_1;
} else if (t <= 3.5e+58) {
tmp = 2.0 * (x * y);
} else if ((t <= 6e+129) || !(t <= 1.4e+155)) {
tmp = t_1;
} else {
tmp = -2.0 * (a * (c * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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) :: t_1
real(8) :: tmp
t_1 = 2.0d0 * (z * t)
if (t <= (-1.8d-25)) then
tmp = t_1
else if (t <= 3.5d+58) then
tmp = 2.0d0 * (x * y)
else if ((t <= 6d+129) .or. (.not. (t <= 1.4d+155))) then
tmp = t_1
else
tmp = (-2.0d0) * (a * (c * i))
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 t_1 = 2.0 * (z * t);
double tmp;
if (t <= -1.8e-25) {
tmp = t_1;
} else if (t <= 3.5e+58) {
tmp = 2.0 * (x * y);
} else if ((t <= 6e+129) || !(t <= 1.4e+155)) {
tmp = t_1;
} else {
tmp = -2.0 * (a * (c * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = 2.0 * (z * t) tmp = 0 if t <= -1.8e-25: tmp = t_1 elif t <= 3.5e+58: tmp = 2.0 * (x * y) elif (t <= 6e+129) or not (t <= 1.4e+155): tmp = t_1 else: tmp = -2.0 * (a * (c * i)) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(2.0 * Float64(z * t)) tmp = 0.0 if (t <= -1.8e-25) tmp = t_1; elseif (t <= 3.5e+58) tmp = Float64(2.0 * Float64(x * y)); elseif ((t <= 6e+129) || !(t <= 1.4e+155)) tmp = t_1; else tmp = Float64(-2.0 * Float64(a * Float64(c * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = 2.0 * (z * t); tmp = 0.0; if (t <= -1.8e-25) tmp = t_1; elseif (t <= 3.5e+58) tmp = 2.0 * (x * y); elseif ((t <= 6e+129) || ~((t <= 1.4e+155))) tmp = t_1; else tmp = -2.0 * (a * (c * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(2.0 * N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.8e-25], t$95$1, If[LessEqual[t, 3.5e+58], N[(2.0 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, 6e+129], N[Not[LessEqual[t, 1.4e+155]], $MachinePrecision]], t$95$1, N[(-2.0 * N[(a * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 2 \cdot \left(z \cdot t\right)\\
\mathbf{if}\;t \leq -1.8 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{+58}:\\
\;\;\;\;2 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;t \leq 6 \cdot 10^{+129} \lor \neg \left(t \leq 1.4 \cdot 10^{+155}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;-2 \cdot \left(a \cdot \left(c \cdot i\right)\right)\\
\end{array}
\end{array}
if t < -1.8e-25 or 3.4999999999999997e58 < t < 6.0000000000000006e129 or 1.40000000000000008e155 < t Initial program 85.1%
Taylor expanded in z around inf 46.3%
if -1.8e-25 < t < 3.4999999999999997e58Initial program 94.0%
Taylor expanded in x around inf 38.5%
if 6.0000000000000006e129 < t < 1.40000000000000008e155Initial program 70.3%
Taylor expanded in i around inf 51.4%
Taylor expanded in c around 0 35.6%
*-commutative35.6%
*-commutative35.6%
associate-*r*67.4%
*-commutative67.4%
Simplified67.4%
Final simplification42.8%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= c -2.1e+61) (not (<= c 6.4e+22))) (* -2.0 (* c (* (+ a (* b c)) i))) (* (+ (* z t) (* x y)) 2.0)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((c <= -2.1e+61) || !(c <= 6.4e+22)) {
tmp = -2.0 * (c * ((a + (b * c)) * i));
} else {
tmp = ((z * t) + (x * y)) * 2.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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) :: tmp
if ((c <= (-2.1d+61)) .or. (.not. (c <= 6.4d+22))) then
tmp = (-2.0d0) * (c * ((a + (b * c)) * i))
else
tmp = ((z * t) + (x * y)) * 2.0d0
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 tmp;
if ((c <= -2.1e+61) || !(c <= 6.4e+22)) {
tmp = -2.0 * (c * ((a + (b * c)) * i));
} else {
tmp = ((z * t) + (x * y)) * 2.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (c <= -2.1e+61) or not (c <= 6.4e+22): tmp = -2.0 * (c * ((a + (b * c)) * i)) else: tmp = ((z * t) + (x * y)) * 2.0 return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((c <= -2.1e+61) || !(c <= 6.4e+22)) tmp = Float64(-2.0 * Float64(c * Float64(Float64(a + Float64(b * c)) * i))); else tmp = Float64(Float64(Float64(z * t) + Float64(x * y)) * 2.0); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((c <= -2.1e+61) || ~((c <= 6.4e+22))) tmp = -2.0 * (c * ((a + (b * c)) * i)); else tmp = ((z * t) + (x * y)) * 2.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[c, -2.1e+61], N[Not[LessEqual[c, 6.4e+22]], $MachinePrecision]], N[(-2.0 * N[(c * N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z * t), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] * 2.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.1 \cdot 10^{+61} \lor \neg \left(c \leq 6.4 \cdot 10^{+22}\right):\\
\;\;\;\;-2 \cdot \left(c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot t + x \cdot y\right) \cdot 2\\
\end{array}
\end{array}
if c < -2.1000000000000001e61 or 6.4e22 < c Initial program 77.9%
Taylor expanded in i around inf 80.5%
Taylor expanded in i around 0 80.5%
if -2.1000000000000001e61 < c < 6.4e22Initial program 96.7%
Taylor expanded in c around 0 80.0%
Final simplification80.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= c -4.6e+61) (not (<= c 8.5e+20))) (* -2.0 (* c (* c (* b i)))) (* 2.0 (* z t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((c <= -4.6e+61) || !(c <= 8.5e+20)) {
tmp = -2.0 * (c * (c * (b * i)));
} else {
tmp = 2.0 * (z * t);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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) :: tmp
if ((c <= (-4.6d+61)) .or. (.not. (c <= 8.5d+20))) then
tmp = (-2.0d0) * (c * (c * (b * i)))
else
tmp = 2.0d0 * (z * t)
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 tmp;
if ((c <= -4.6e+61) || !(c <= 8.5e+20)) {
tmp = -2.0 * (c * (c * (b * i)));
} else {
tmp = 2.0 * (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (c <= -4.6e+61) or not (c <= 8.5e+20): tmp = -2.0 * (c * (c * (b * i))) else: tmp = 2.0 * (z * t) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((c <= -4.6e+61) || !(c <= 8.5e+20)) tmp = Float64(-2.0 * Float64(c * Float64(c * Float64(b * i)))); else tmp = Float64(2.0 * Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((c <= -4.6e+61) || ~((c <= 8.5e+20))) tmp = -2.0 * (c * (c * (b * i))); else tmp = 2.0 * (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[c, -4.6e+61], N[Not[LessEqual[c, 8.5e+20]], $MachinePrecision]], N[(-2.0 * N[(c * N[(c * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(z * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.6 \cdot 10^{+61} \lor \neg \left(c \leq 8.5 \cdot 10^{+20}\right):\\
\;\;\;\;-2 \cdot \left(c \cdot \left(c \cdot \left(b \cdot i\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(z \cdot t\right)\\
\end{array}
\end{array}
if c < -4.5999999999999999e61 or 8.5e20 < c Initial program 78.1%
Taylor expanded in b around inf 59.1%
mul-1-neg59.1%
distribute-rgt-neg-in59.1%
unpow259.1%
Simplified59.1%
Taylor expanded in c around 0 59.1%
unpow259.1%
*-commutative59.1%
associate-*r*62.1%
Simplified62.1%
if -4.5999999999999999e61 < c < 8.5e20Initial program 96.7%
Taylor expanded in z around inf 43.2%
Final simplification50.7%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= t -4.7e-25) (not (<= t 7.5e+59))) (* 2.0 (* z t)) (* 2.0 (* x y))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((t <= -4.7e-25) || !(t <= 7.5e+59)) {
tmp = 2.0 * (z * t);
} else {
tmp = 2.0 * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
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) :: tmp
if ((t <= (-4.7d-25)) .or. (.not. (t <= 7.5d+59))) then
tmp = 2.0d0 * (z * t)
else
tmp = 2.0d0 * (x * y)
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 tmp;
if ((t <= -4.7e-25) || !(t <= 7.5e+59)) {
tmp = 2.0 * (z * t);
} else {
tmp = 2.0 * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (t <= -4.7e-25) or not (t <= 7.5e+59): tmp = 2.0 * (z * t) else: tmp = 2.0 * (x * y) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((t <= -4.7e-25) || !(t <= 7.5e+59)) tmp = Float64(2.0 * Float64(z * t)); else tmp = Float64(2.0 * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((t <= -4.7e-25) || ~((t <= 7.5e+59))) tmp = 2.0 * (z * t); else tmp = 2.0 * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[t, -4.7e-25], N[Not[LessEqual[t, 7.5e+59]], $MachinePrecision]], N[(2.0 * N[(z * t), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.7 \cdot 10^{-25} \lor \neg \left(t \leq 7.5 \cdot 10^{+59}\right):\\
\;\;\;\;2 \cdot \left(z \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if t < -4.6999999999999995e-25 or 7.4999999999999996e59 < t Initial program 84.3%
Taylor expanded in z around inf 45.0%
if -4.6999999999999995e-25 < t < 7.4999999999999996e59Initial program 94.0%
Taylor expanded in x around inf 38.5%
Final simplification41.7%
(FPCore (x y z t a b c i) :precision binary64 (* 2.0 (* z t)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return 2.0 * (z * t);
}
real(8) function code(x, y, z, t, a, b, c, i)
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
code = 2.0d0 * (z * t)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return 2.0 * (z * t);
}
def code(x, y, z, t, a, b, c, i): return 2.0 * (z * t)
function code(x, y, z, t, a, b, c, i) return Float64(2.0 * Float64(z * t)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = 2.0 * (z * t); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(2.0 * N[(z * t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(z \cdot t\right)
\end{array}
Initial program 89.3%
Taylor expanded in z around inf 32.1%
Final simplification32.1%
(FPCore (x y z t a b c i) :precision binary64 (* 2.0 (- (+ (* x y) (* z t)) (* (+ a (* b c)) (* c i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return 2.0 * (((x * y) + (z * t)) - ((a + (b * c)) * (c * i)));
}
real(8) function code(x, y, z, t, a, b, c, i)
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
code = 2.0d0 * (((x * y) + (z * t)) - ((a + (b * c)) * (c * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return 2.0 * (((x * y) + (z * t)) - ((a + (b * c)) * (c * i)));
}
def code(x, y, z, t, a, b, c, i): return 2.0 * (((x * y) + (z * t)) - ((a + (b * c)) * (c * i)))
function code(x, y, z, t, a, b, c, i) return Float64(2.0 * Float64(Float64(Float64(x * y) + Float64(z * t)) - Float64(Float64(a + Float64(b * c)) * Float64(c * i)))) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = 2.0 * (((x * y) + (z * t)) - ((a + (b * c)) * (c * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(2.0 * N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(a + b \cdot c\right) \cdot \left(c \cdot i\right)\right)
\end{array}
herbie shell --seed 2023199
(FPCore (x y z t a b c i)
:name "Diagrams.ThreeD.Shapes:frustum from diagrams-lib-1.3.0.3, A"
:precision binary64
:herbie-target
(* 2.0 (- (+ (* x y) (* z t)) (* (+ a (* b c)) (* c i))))
(* 2.0 (- (+ (* x y) (* z t)) (* (* (+ a (* b c)) c) i))))