
(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 12 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 (* 2.0 (fma z t (- (* x y) (* (fma b c a) (* c i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return 2.0 * fma(z, t, ((x * y) - (fma(b, c, a) * (c * i))));
}
function code(x, y, z, t, a, b, c, i) return Float64(2.0 * fma(z, t, Float64(Float64(x * y) - Float64(fma(b, c, a) * Float64(c * i))))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(2.0 * N[(z * t + N[(N[(x * y), $MachinePrecision] - N[(N[(b * c + a), $MachinePrecision] * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
2 \cdot \mathsf{fma}\left(z, t, x \cdot y - \mathsf{fma}\left(b, c, a\right) \cdot \left(c \cdot i\right)\right)
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (* b c))) (t_2 (+ (* x y) (* z t))))
(if (<= (- t_2 (* i (* c t_1))) INFINITY)
(* 2.0 (- t_2 (* (* c i) t_1)))
(* 2.0 (- (* x y) (* c (* i t_1)))))))
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 = (x * y) + (z * t);
double tmp;
if ((t_2 - (i * (c * t_1))) <= ((double) INFINITY)) {
tmp = 2.0 * (t_2 - ((c * i) * t_1));
} else {
tmp = 2.0 * ((x * y) - (c * (i * t_1)));
}
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 = (x * y) + (z * t);
double tmp;
if ((t_2 - (i * (c * t_1))) <= Double.POSITIVE_INFINITY) {
tmp = 2.0 * (t_2 - ((c * i) * t_1));
} else {
tmp = 2.0 * ((x * y) - (c * (i * t_1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a + (b * c) t_2 = (x * y) + (z * t) tmp = 0 if (t_2 - (i * (c * t_1))) <= math.inf: tmp = 2.0 * (t_2 - ((c * i) * t_1)) else: tmp = 2.0 * ((x * y) - (c * (i * t_1))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a + Float64(b * c)) t_2 = Float64(Float64(x * y) + Float64(z * t)) tmp = 0.0 if (Float64(t_2 - Float64(i * Float64(c * t_1))) <= Inf) tmp = Float64(2.0 * Float64(t_2 - Float64(Float64(c * i) * t_1))); else tmp = Float64(2.0 * Float64(Float64(x * y) - Float64(c * Float64(i * t_1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = a + (b * c); t_2 = (x * y) + (z * t); tmp = 0.0; if ((t_2 - (i * (c * t_1))) <= Inf) tmp = 2.0 * (t_2 - ((c * i) * t_1)); else tmp = 2.0 * ((x * y) - (c * (i * t_1))); 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[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$2 - N[(i * N[(c * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(2.0 * N[(t$95$2 - N[(N[(c * i), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(x * y), $MachinePrecision] - N[(c * N[(i * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + b \cdot c\\
t_2 := x \cdot y + z \cdot t\\
\mathbf{if}\;t_2 - i \cdot \left(c \cdot t_1\right) \leq \infty:\\
\;\;\;\;2 \cdot \left(t_2 - \left(c \cdot i\right) \cdot t_1\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(x \cdot y - c \cdot \left(i \cdot t_1\right)\right)\\
\end{array}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ a (* b c))) (t_2 (* c t_1)))
(if (<= t_2 (- INFINITY))
(* 2.0 (* c (* i (- (- a) (* b c)))))
(if (<= t_2 5e+273)
(* 2.0 (- (+ (* x y) (* z t)) (* i t_2)))
(* 2.0 (- (* x y) (* c (* i t_1))))))))
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;
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = 2.0 * (c * (i * (-a - (b * c))));
} else if (t_2 <= 5e+273) {
tmp = 2.0 * (((x * y) + (z * t)) - (i * t_2));
} else {
tmp = 2.0 * ((x * y) - (c * (i * t_1)));
}
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;
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = 2.0 * (c * (i * (-a - (b * c))));
} else if (t_2 <= 5e+273) {
tmp = 2.0 * (((x * y) + (z * t)) - (i * t_2));
} else {
tmp = 2.0 * ((x * y) - (c * (i * t_1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a + (b * c) t_2 = c * t_1 tmp = 0 if t_2 <= -math.inf: tmp = 2.0 * (c * (i * (-a - (b * c)))) elif t_2 <= 5e+273: tmp = 2.0 * (((x * y) + (z * t)) - (i * t_2)) else: tmp = 2.0 * ((x * y) - (c * (i * t_1))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a + Float64(b * c)) t_2 = Float64(c * t_1) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(2.0 * Float64(c * Float64(i * Float64(Float64(-a) - Float64(b * c))))); elseif (t_2 <= 5e+273) tmp = Float64(2.0 * Float64(Float64(Float64(x * y) + Float64(z * t)) - Float64(i * t_2))); else tmp = Float64(2.0 * Float64(Float64(x * y) - Float64(c * Float64(i * t_1)))); 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; tmp = 0.0; if (t_2 <= -Inf) tmp = 2.0 * (c * (i * (-a - (b * c)))); elseif (t_2 <= 5e+273) tmp = 2.0 * (((x * y) + (z * t)) - (i * t_2)); else tmp = 2.0 * ((x * y) - (c * (i * t_1))); 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[(c * t$95$1), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(2.0 * N[(c * N[(i * N[((-a) - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+273], N[(2.0 * N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(i * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(x * y), $MachinePrecision] - N[(c * N[(i * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a + b \cdot c\\
t_2 := c \cdot t_1\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;2 \cdot \left(c \cdot \left(i \cdot \left(\left(-a\right) - b \cdot c\right)\right)\right)\\
\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+273}:\\
\;\;\;\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - i \cdot t_2\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(x \cdot y - c \cdot \left(i \cdot t_1\right)\right)\\
\end{array}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* c (* i (+ a (* b c))))) (t_2 (* 2.0 (- (* x y) t_1))))
(if (<= (* x y) -1.1e+155)
(* 2.0 (+ (* x y) (* z t)))
(if (<= (* x y) -3.15e-52)
t_2
(if (<= (* x y) -2.3e-249)
(* 2.0 (- (* z t) (* a (* c i))))
(if (<= (* x y) 1.6e-95) (* 2.0 (- (* z t) t_1)) t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = c * (i * (a + (b * c)));
double t_2 = 2.0 * ((x * y) - t_1);
double tmp;
if ((x * y) <= -1.1e+155) {
tmp = 2.0 * ((x * y) + (z * t));
} else if ((x * y) <= -3.15e-52) {
tmp = t_2;
} else if ((x * y) <= -2.3e-249) {
tmp = 2.0 * ((z * t) - (a * (c * i)));
} else if ((x * y) <= 1.6e-95) {
tmp = 2.0 * ((z * t) - t_1);
} 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 = c * (i * (a + (b * c)))
t_2 = 2.0d0 * ((x * y) - t_1)
if ((x * y) <= (-1.1d+155)) then
tmp = 2.0d0 * ((x * y) + (z * t))
else if ((x * y) <= (-3.15d-52)) then
tmp = t_2
else if ((x * y) <= (-2.3d-249)) then
tmp = 2.0d0 * ((z * t) - (a * (c * i)))
else if ((x * y) <= 1.6d-95) then
tmp = 2.0d0 * ((z * t) - t_1)
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 = c * (i * (a + (b * c)));
double t_2 = 2.0 * ((x * y) - t_1);
double tmp;
if ((x * y) <= -1.1e+155) {
tmp = 2.0 * ((x * y) + (z * t));
} else if ((x * y) <= -3.15e-52) {
tmp = t_2;
} else if ((x * y) <= -2.3e-249) {
tmp = 2.0 * ((z * t) - (a * (c * i)));
} else if ((x * y) <= 1.6e-95) {
tmp = 2.0 * ((z * t) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = c * (i * (a + (b * c))) t_2 = 2.0 * ((x * y) - t_1) tmp = 0 if (x * y) <= -1.1e+155: tmp = 2.0 * ((x * y) + (z * t)) elif (x * y) <= -3.15e-52: tmp = t_2 elif (x * y) <= -2.3e-249: tmp = 2.0 * ((z * t) - (a * (c * i))) elif (x * y) <= 1.6e-95: tmp = 2.0 * ((z * t) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(c * Float64(i * Float64(a + Float64(b * c)))) t_2 = Float64(2.0 * Float64(Float64(x * y) - t_1)) tmp = 0.0 if (Float64(x * y) <= -1.1e+155) tmp = Float64(2.0 * Float64(Float64(x * y) + Float64(z * t))); elseif (Float64(x * y) <= -3.15e-52) tmp = t_2; elseif (Float64(x * y) <= -2.3e-249) tmp = Float64(2.0 * Float64(Float64(z * t) - Float64(a * Float64(c * i)))); elseif (Float64(x * y) <= 1.6e-95) tmp = Float64(2.0 * Float64(Float64(z * t) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = c * (i * (a + (b * c))); t_2 = 2.0 * ((x * y) - t_1); tmp = 0.0; if ((x * y) <= -1.1e+155) tmp = 2.0 * ((x * y) + (z * t)); elseif ((x * y) <= -3.15e-52) tmp = t_2; elseif ((x * y) <= -2.3e-249) tmp = 2.0 * ((z * t) - (a * (c * i))); elseif ((x * y) <= 1.6e-95) tmp = 2.0 * ((z * t) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(c * N[(i * N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(2.0 * N[(N[(x * y), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x * y), $MachinePrecision], -1.1e+155], N[(2.0 * N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], -3.15e-52], t$95$2, If[LessEqual[N[(x * y), $MachinePrecision], -2.3e-249], N[(2.0 * N[(N[(z * t), $MachinePrecision] - N[(a * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 1.6e-95], N[(2.0 * N[(N[(z * t), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\\
t_2 := 2 \cdot \left(x \cdot y - t_1\right)\\
\mathbf{if}\;x \cdot y \leq -1.1 \cdot 10^{+155}:\\
\;\;\;\;2 \cdot \left(x \cdot y + z \cdot t\right)\\
\mathbf{elif}\;x \cdot y \leq -3.15 \cdot 10^{-52}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \cdot y \leq -2.3 \cdot 10^{-249}:\\
\;\;\;\;2 \cdot \left(z \cdot t - a \cdot \left(c \cdot i\right)\right)\\
\mathbf{elif}\;x \cdot y \leq 1.6 \cdot 10^{-95}:\\
\;\;\;\;2 \cdot \left(z \cdot t - t_1\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (* a (* c i)) -2.0))
(t_2 (* 2.0 (* z t)))
(t_3 (* 2.0 (* x y))))
(if (<= (* x y) -3.4e+154)
t_3
(if (<= (* x y) -2.6e+53)
t_1
(if (<= (* x y) -3.5e-140)
t_2
(if (<= (* x y) -6.3e-301) t_1 (if (<= (* x y) 1.9e+69) t_2 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (a * (c * i)) * -2.0;
double t_2 = 2.0 * (z * t);
double t_3 = 2.0 * (x * y);
double tmp;
if ((x * y) <= -3.4e+154) {
tmp = t_3;
} else if ((x * y) <= -2.6e+53) {
tmp = t_1;
} else if ((x * y) <= -3.5e-140) {
tmp = t_2;
} else if ((x * y) <= -6.3e-301) {
tmp = t_1;
} else if ((x * y) <= 1.9e+69) {
tmp = t_2;
} else {
tmp = t_3;
}
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) :: t_3
real(8) :: tmp
t_1 = (a * (c * i)) * (-2.0d0)
t_2 = 2.0d0 * (z * t)
t_3 = 2.0d0 * (x * y)
if ((x * y) <= (-3.4d+154)) then
tmp = t_3
else if ((x * y) <= (-2.6d+53)) then
tmp = t_1
else if ((x * y) <= (-3.5d-140)) then
tmp = t_2
else if ((x * y) <= (-6.3d-301)) then
tmp = t_1
else if ((x * y) <= 1.9d+69) then
tmp = t_2
else
tmp = t_3
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 = (a * (c * i)) * -2.0;
double t_2 = 2.0 * (z * t);
double t_3 = 2.0 * (x * y);
double tmp;
if ((x * y) <= -3.4e+154) {
tmp = t_3;
} else if ((x * y) <= -2.6e+53) {
tmp = t_1;
} else if ((x * y) <= -3.5e-140) {
tmp = t_2;
} else if ((x * y) <= -6.3e-301) {
tmp = t_1;
} else if ((x * y) <= 1.9e+69) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (a * (c * i)) * -2.0 t_2 = 2.0 * (z * t) t_3 = 2.0 * (x * y) tmp = 0 if (x * y) <= -3.4e+154: tmp = t_3 elif (x * y) <= -2.6e+53: tmp = t_1 elif (x * y) <= -3.5e-140: tmp = t_2 elif (x * y) <= -6.3e-301: tmp = t_1 elif (x * y) <= 1.9e+69: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(a * Float64(c * i)) * -2.0) t_2 = Float64(2.0 * Float64(z * t)) t_3 = Float64(2.0 * Float64(x * y)) tmp = 0.0 if (Float64(x * y) <= -3.4e+154) tmp = t_3; elseif (Float64(x * y) <= -2.6e+53) tmp = t_1; elseif (Float64(x * y) <= -3.5e-140) tmp = t_2; elseif (Float64(x * y) <= -6.3e-301) tmp = t_1; elseif (Float64(x * y) <= 1.9e+69) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (a * (c * i)) * -2.0; t_2 = 2.0 * (z * t); t_3 = 2.0 * (x * y); tmp = 0.0; if ((x * y) <= -3.4e+154) tmp = t_3; elseif ((x * y) <= -2.6e+53) tmp = t_1; elseif ((x * y) <= -3.5e-140) tmp = t_2; elseif ((x * y) <= -6.3e-301) tmp = t_1; elseif ((x * y) <= 1.9e+69) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(a * N[(c * i), $MachinePrecision]), $MachinePrecision] * -2.0), $MachinePrecision]}, Block[{t$95$2 = N[(2.0 * N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(2.0 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x * y), $MachinePrecision], -3.4e+154], t$95$3, If[LessEqual[N[(x * y), $MachinePrecision], -2.6e+53], t$95$1, If[LessEqual[N[(x * y), $MachinePrecision], -3.5e-140], t$95$2, If[LessEqual[N[(x * y), $MachinePrecision], -6.3e-301], t$95$1, If[LessEqual[N[(x * y), $MachinePrecision], 1.9e+69], t$95$2, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot \left(c \cdot i\right)\right) \cdot -2\\
t_2 := 2 \cdot \left(z \cdot t\right)\\
t_3 := 2 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \cdot y \leq -3.4 \cdot 10^{+154}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \cdot y \leq -2.6 \cdot 10^{+53}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \cdot y \leq -3.5 \cdot 10^{-140}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \cdot y \leq -6.3 \cdot 10^{-301}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \cdot y \leq 1.9 \cdot 10^{+69}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= (* x y) -3.3e+161) (not (<= (* x y) 2.15e+33))) (* 2.0 (+ (* x y) (* z t))) (* 2.0 (- (* z t) (* a (* c i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((x * y) <= -3.3e+161) || !((x * y) <= 2.15e+33)) {
tmp = 2.0 * ((x * y) + (z * t));
} else {
tmp = 2.0 * ((z * t) - (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) :: tmp
if (((x * y) <= (-3.3d+161)) .or. (.not. ((x * y) <= 2.15d+33))) then
tmp = 2.0d0 * ((x * y) + (z * t))
else
tmp = 2.0d0 * ((z * t) - (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 tmp;
if (((x * y) <= -3.3e+161) || !((x * y) <= 2.15e+33)) {
tmp = 2.0 * ((x * y) + (z * t));
} else {
tmp = 2.0 * ((z * t) - (a * (c * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if ((x * y) <= -3.3e+161) or not ((x * y) <= 2.15e+33): tmp = 2.0 * ((x * y) + (z * t)) else: tmp = 2.0 * ((z * t) - (a * (c * i))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((Float64(x * y) <= -3.3e+161) || !(Float64(x * y) <= 2.15e+33)) tmp = Float64(2.0 * Float64(Float64(x * y) + Float64(z * t))); else tmp = Float64(2.0 * Float64(Float64(z * t) - Float64(a * Float64(c * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (((x * y) <= -3.3e+161) || ~(((x * y) <= 2.15e+33))) tmp = 2.0 * ((x * y) + (z * t)); else tmp = 2.0 * ((z * t) - (a * (c * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[N[(x * y), $MachinePrecision], -3.3e+161], N[Not[LessEqual[N[(x * y), $MachinePrecision], 2.15e+33]], $MachinePrecision]], N[(2.0 * N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(z * t), $MachinePrecision] - N[(a * N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -3.3 \cdot 10^{+161} \lor \neg \left(x \cdot y \leq 2.15 \cdot 10^{+33}\right):\\
\;\;\;\;2 \cdot \left(x \cdot y + z \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(z \cdot t - a \cdot \left(c \cdot i\right)\right)\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= c -1.18e-70) (not (<= c 2.1e-22))) (* 2.0 (- (* z t) (* c (* i (+ a (* b c)))))) (* 2.0 (+ (* x y) (* z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((c <= -1.18e-70) || !(c <= 2.1e-22)) {
tmp = 2.0 * ((z * t) - (c * (i * (a + (b * c)))));
} else {
tmp = 2.0 * ((x * y) + (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 <= (-1.18d-70)) .or. (.not. (c <= 2.1d-22))) then
tmp = 2.0d0 * ((z * t) - (c * (i * (a + (b * c)))))
else
tmp = 2.0d0 * ((x * y) + (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 <= -1.18e-70) || !(c <= 2.1e-22)) {
tmp = 2.0 * ((z * t) - (c * (i * (a + (b * c)))));
} else {
tmp = 2.0 * ((x * y) + (z * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (c <= -1.18e-70) or not (c <= 2.1e-22): tmp = 2.0 * ((z * t) - (c * (i * (a + (b * c))))) else: tmp = 2.0 * ((x * y) + (z * t)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((c <= -1.18e-70) || !(c <= 2.1e-22)) tmp = Float64(2.0 * Float64(Float64(z * t) - Float64(c * Float64(i * Float64(a + Float64(b * c)))))); else tmp = Float64(2.0 * Float64(Float64(x * y) + Float64(z * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((c <= -1.18e-70) || ~((c <= 2.1e-22))) tmp = 2.0 * ((z * t) - (c * (i * (a + (b * c))))); else tmp = 2.0 * ((x * y) + (z * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[c, -1.18e-70], N[Not[LessEqual[c, 2.1e-22]], $MachinePrecision]], N[(2.0 * N[(N[(z * t), $MachinePrecision] - N[(c * N[(i * N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.18 \cdot 10^{-70} \lor \neg \left(c \leq 2.1 \cdot 10^{-22}\right):\\
\;\;\;\;2 \cdot \left(z \cdot t - c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(x \cdot y + z \cdot t\right)\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= c -1e+107) (not (<= c 3.8e+43))) (* 2.0 (- (* x y) (* c (* i (+ a (* b c)))))) (* 2.0 (- (+ (* x y) (* z t)) (* i (* c a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((c <= -1e+107) || !(c <= 3.8e+43)) {
tmp = 2.0 * ((x * y) - (c * (i * (a + (b * c)))));
} else {
tmp = 2.0 * (((x * y) + (z * t)) - (i * (c * a)));
}
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 <= (-1d+107)) .or. (.not. (c <= 3.8d+43))) then
tmp = 2.0d0 * ((x * y) - (c * (i * (a + (b * c)))))
else
tmp = 2.0d0 * (((x * y) + (z * t)) - (i * (c * a)))
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 <= -1e+107) || !(c <= 3.8e+43)) {
tmp = 2.0 * ((x * y) - (c * (i * (a + (b * c)))));
} else {
tmp = 2.0 * (((x * y) + (z * t)) - (i * (c * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (c <= -1e+107) or not (c <= 3.8e+43): tmp = 2.0 * ((x * y) - (c * (i * (a + (b * c))))) else: tmp = 2.0 * (((x * y) + (z * t)) - (i * (c * a))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((c <= -1e+107) || !(c <= 3.8e+43)) tmp = Float64(2.0 * Float64(Float64(x * y) - Float64(c * Float64(i * Float64(a + Float64(b * c)))))); else tmp = Float64(2.0 * Float64(Float64(Float64(x * y) + Float64(z * t)) - Float64(i * Float64(c * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((c <= -1e+107) || ~((c <= 3.8e+43))) tmp = 2.0 * ((x * y) - (c * (i * (a + (b * c))))); else tmp = 2.0 * (((x * y) + (z * t)) - (i * (c * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[c, -1e+107], N[Not[LessEqual[c, 3.8e+43]], $MachinePrecision]], N[(2.0 * N[(N[(x * y), $MachinePrecision] - N[(c * N[(i * N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(i * N[(c * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1 \cdot 10^{+107} \lor \neg \left(c \leq 3.8 \cdot 10^{+43}\right):\\
\;\;\;\;2 \cdot \left(x \cdot y - c \cdot \left(i \cdot \left(a + b \cdot c\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - i \cdot \left(c \cdot a\right)\right)\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= c -8e+102) (not (<= c 1.7e+75))) (* 2.0 (* c (* i (- (- a) (* b c))))) (* 2.0 (+ (* x y) (* z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((c <= -8e+102) || !(c <= 1.7e+75)) {
tmp = 2.0 * (c * (i * (-a - (b * c))));
} else {
tmp = 2.0 * ((x * y) + (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 <= (-8d+102)) .or. (.not. (c <= 1.7d+75))) then
tmp = 2.0d0 * (c * (i * (-a - (b * c))))
else
tmp = 2.0d0 * ((x * y) + (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 <= -8e+102) || !(c <= 1.7e+75)) {
tmp = 2.0 * (c * (i * (-a - (b * c))));
} else {
tmp = 2.0 * ((x * y) + (z * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (c <= -8e+102) or not (c <= 1.7e+75): tmp = 2.0 * (c * (i * (-a - (b * c)))) else: tmp = 2.0 * ((x * y) + (z * t)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((c <= -8e+102) || !(c <= 1.7e+75)) tmp = Float64(2.0 * Float64(c * Float64(i * Float64(Float64(-a) - Float64(b * c))))); else tmp = Float64(2.0 * Float64(Float64(x * y) + Float64(z * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((c <= -8e+102) || ~((c <= 1.7e+75))) tmp = 2.0 * (c * (i * (-a - (b * c)))); else tmp = 2.0 * ((x * y) + (z * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[c, -8e+102], N[Not[LessEqual[c, 1.7e+75]], $MachinePrecision]], N[(2.0 * N[(c * N[(i * N[((-a) - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -8 \cdot 10^{+102} \lor \neg \left(c \leq 1.7 \cdot 10^{+75}\right):\\
\;\;\;\;2 \cdot \left(c \cdot \left(i \cdot \left(\left(-a\right) - b \cdot c\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(x \cdot y + z \cdot t\right)\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= (* x y) -2.7e+161) (not (<= (* x y) 1.9e+69))) (* 2.0 (* x y)) (* 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 (((x * y) <= -2.7e+161) || !((x * y) <= 1.9e+69)) {
tmp = 2.0 * (x * y);
} 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 (((x * y) <= (-2.7d+161)) .or. (.not. ((x * y) <= 1.9d+69))) then
tmp = 2.0d0 * (x * y)
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 (((x * y) <= -2.7e+161) || !((x * y) <= 1.9e+69)) {
tmp = 2.0 * (x * y);
} else {
tmp = 2.0 * (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if ((x * y) <= -2.7e+161) or not ((x * y) <= 1.9e+69): tmp = 2.0 * (x * y) else: tmp = 2.0 * (z * t) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((Float64(x * y) <= -2.7e+161) || !(Float64(x * y) <= 1.9e+69)) tmp = Float64(2.0 * Float64(x * y)); 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 (((x * y) <= -2.7e+161) || ~(((x * y) <= 1.9e+69))) tmp = 2.0 * (x * y); else tmp = 2.0 * (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[N[(x * y), $MachinePrecision], -2.7e+161], N[Not[LessEqual[N[(x * y), $MachinePrecision], 1.9e+69]], $MachinePrecision]], N[(2.0 * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(2.0 * N[(z * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -2.7 \cdot 10^{+161} \lor \neg \left(x \cdot y \leq 1.9 \cdot 10^{+69}\right):\\
\;\;\;\;2 \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(z \cdot t\right)\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= c -3.1e+102) (not (<= c 4.4e+127))) (* (* a (* c i)) -2.0) (* 2.0 (+ (* x y) (* z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((c <= -3.1e+102) || !(c <= 4.4e+127)) {
tmp = (a * (c * i)) * -2.0;
} else {
tmp = 2.0 * ((x * y) + (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 <= (-3.1d+102)) .or. (.not. (c <= 4.4d+127))) then
tmp = (a * (c * i)) * (-2.0d0)
else
tmp = 2.0d0 * ((x * y) + (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 <= -3.1e+102) || !(c <= 4.4e+127)) {
tmp = (a * (c * i)) * -2.0;
} else {
tmp = 2.0 * ((x * y) + (z * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (c <= -3.1e+102) or not (c <= 4.4e+127): tmp = (a * (c * i)) * -2.0 else: tmp = 2.0 * ((x * y) + (z * t)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((c <= -3.1e+102) || !(c <= 4.4e+127)) tmp = Float64(Float64(a * Float64(c * i)) * -2.0); else tmp = Float64(2.0 * Float64(Float64(x * y) + Float64(z * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((c <= -3.1e+102) || ~((c <= 4.4e+127))) tmp = (a * (c * i)) * -2.0; else tmp = 2.0 * ((x * y) + (z * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[c, -3.1e+102], N[Not[LessEqual[c, 4.4e+127]], $MachinePrecision]], N[(N[(a * N[(c * i), $MachinePrecision]), $MachinePrecision] * -2.0), $MachinePrecision], N[(2.0 * N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.1 \cdot 10^{+102} \lor \neg \left(c \leq 4.4 \cdot 10^{+127}\right):\\
\;\;\;\;\left(a \cdot \left(c \cdot i\right)\right) \cdot -2\\
\mathbf{else}:\\
\;\;\;\;2 \cdot \left(x \cdot y + z \cdot t\right)\\
\end{array}
\end{array}
(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}
(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 2024003
(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))))