
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((x * y) + (z * t)) + (a * b)) + (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 = (((x * y) + (z * t)) + (a * b)) + (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 (((x * y) + (z * t)) + (a * b)) + (c * i);
}
def code(x, y, z, t, a, b, c, i): return (((x * y) + (z * t)) + (a * b)) + (c * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(x * y) + Float64(z * t)) + Float64(a * b)) + Float64(c * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((x * y) + (z * t)) + (a * b)) + (c * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((x * y) + (z * t)) + (a * b)) + (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 = (((x * y) + (z * t)) + (a * b)) + (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 (((x * y) + (z * t)) + (a * b)) + (c * i);
}
def code(x, y, z, t, a, b, c, i): return (((x * y) + (z * t)) + (a * b)) + (c * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(x * y) + Float64(z * t)) + Float64(a * b)) + Float64(c * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((x * y) + (z * t)) + (a * b)) + (c * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (fma c i (fma x y (fma z t (* a b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return fma(c, i, fma(x, y, fma(z, t, (a * b))));
}
function code(x, y, z, t, a, b, c, i) return fma(c, i, fma(x, y, fma(z, t, Float64(a * b)))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(c * i + N[(x * y + N[(z * t + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(c, i, \mathsf{fma}\left(x, y, \mathsf{fma}\left(z, t, a \cdot b\right)\right)\right)
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (fma c i (fma a b (fma x y (* z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return fma(c, i, fma(a, b, fma(x, y, (z * t))));
}
function code(x, y, z, t, a, b, c, i) return fma(c, i, fma(a, b, fma(x, y, Float64(z * t)))) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(c * i + N[(a * b + N[(x * y + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(c, i, \mathsf{fma}\left(a, b, \mathsf{fma}\left(x, y, z \cdot t\right)\right)\right)
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma z t (* a b))))
(if (<= (+ (+ (* a b) (+ (* x y) (* z t))) (* c i)) INFINITY)
(+ t_1 (+ (* 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 = fma(z, t, (a * b));
double tmp;
if ((((a * b) + ((x * y) + (z * t))) + (c * i)) <= ((double) INFINITY)) {
tmp = t_1 + ((x * y) + (c * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(z, t, Float64(a * b)) tmp = 0.0 if (Float64(Float64(Float64(a * b) + Float64(Float64(x * y) + Float64(z * t))) + Float64(c * i)) <= Inf) tmp = Float64(t_1 + Float64(Float64(x * y) + Float64(c * i))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(z * t + N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(a * b), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision], Infinity], N[(t$95$1 + N[(N[(x * y), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(z, t, a \cdot b\right)\\
\mathbf{if}\;\left(a \cdot b + \left(x \cdot y + z \cdot t\right)\right) + c \cdot i \leq \infty:\\
\;\;\;\;t_1 + \left(x \cdot y + c \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (if (<= (+ (* a b) (+ (* x y) (* z t))) INFINITY) (fma c i (+ (+ (* a b) (* x y)) (* z t))) (fma z t (* c i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((a * b) + ((x * y) + (z * t))) <= ((double) INFINITY)) {
tmp = fma(c, i, (((a * b) + (x * y)) + (z * t)));
} else {
tmp = fma(z, t, (c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(Float64(a * b) + Float64(Float64(x * y) + Float64(z * t))) <= Inf) tmp = fma(c, i, Float64(Float64(Float64(a * b) + Float64(x * y)) + Float64(z * t))); else tmp = fma(z, t, Float64(c * i)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(a * b), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(c * i + N[(N[(N[(a * b), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * t + N[(c * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b + \left(x \cdot y + z \cdot t\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(c, i, \left(a \cdot b + x \cdot y\right) + z \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, t, c \cdot i\right)\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (+ (+ (* a b) (+ (* x y) (* z t))) (* c i)))) (if (<= t_1 INFINITY) t_1 (fma c i (* z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = ((a * b) + ((x * y) + (z * t))) + (c * i);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(c, i, (z * t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(a * b) + Float64(Float64(x * y) + Float64(z * t))) + Float64(c * i)) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(c, i, Float64(z * t)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(a * b), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(c * i + N[(z * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot b + \left(x \cdot y + z \cdot t\right)\right) + c \cdot i\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(c, i, z \cdot t\right)\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (+ (+ (* a b) (+ (* x y) (* z t))) (* c i)))) (if (<= t_1 INFINITY) t_1 (fma z t (* a b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = ((a * b) + ((x * y) + (z * t))) + (c * i);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(z, t, (a * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(a * b) + Float64(Float64(x * y) + Float64(z * t))) + Float64(c * i)) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(z, t, Float64(a * b)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(a * b), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z * t + N[(a * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot b + \left(x \cdot y + z \cdot t\right)\right) + c \cdot i\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, t, a \cdot b\right)\\
\end{array}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(if (<= (* c i) -4.2e+203)
(* c i)
(if (<= (* c i) -1.7e+109)
(* z t)
(if (<= (* c i) -3.2e-121)
(* a b)
(if (<= (* c i) 0.0)
(* x y)
(if (<= (* c i) 1.56e-193)
(* a b)
(if (<= (* c i) 3.3e-108)
(* z t)
(if (<= (* c i) 0.4)
(* a b)
(if (<= (* c i) 3.1e+93) (* x y) (* c i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((c * i) <= -4.2e+203) {
tmp = c * i;
} else if ((c * i) <= -1.7e+109) {
tmp = z * t;
} else if ((c * i) <= -3.2e-121) {
tmp = a * b;
} else if ((c * i) <= 0.0) {
tmp = x * y;
} else if ((c * i) <= 1.56e-193) {
tmp = a * b;
} else if ((c * i) <= 3.3e-108) {
tmp = z * t;
} else if ((c * i) <= 0.4) {
tmp = a * b;
} else if ((c * i) <= 3.1e+93) {
tmp = x * y;
} else {
tmp = 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 ((c * i) <= (-4.2d+203)) then
tmp = c * i
else if ((c * i) <= (-1.7d+109)) then
tmp = z * t
else if ((c * i) <= (-3.2d-121)) then
tmp = a * b
else if ((c * i) <= 0.0d0) then
tmp = x * y
else if ((c * i) <= 1.56d-193) then
tmp = a * b
else if ((c * i) <= 3.3d-108) then
tmp = z * t
else if ((c * i) <= 0.4d0) then
tmp = a * b
else if ((c * i) <= 3.1d+93) then
tmp = x * y
else
tmp = 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 ((c * i) <= -4.2e+203) {
tmp = c * i;
} else if ((c * i) <= -1.7e+109) {
tmp = z * t;
} else if ((c * i) <= -3.2e-121) {
tmp = a * b;
} else if ((c * i) <= 0.0) {
tmp = x * y;
} else if ((c * i) <= 1.56e-193) {
tmp = a * b;
} else if ((c * i) <= 3.3e-108) {
tmp = z * t;
} else if ((c * i) <= 0.4) {
tmp = a * b;
} else if ((c * i) <= 3.1e+93) {
tmp = x * y;
} else {
tmp = c * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (c * i) <= -4.2e+203: tmp = c * i elif (c * i) <= -1.7e+109: tmp = z * t elif (c * i) <= -3.2e-121: tmp = a * b elif (c * i) <= 0.0: tmp = x * y elif (c * i) <= 1.56e-193: tmp = a * b elif (c * i) <= 3.3e-108: tmp = z * t elif (c * i) <= 0.4: tmp = a * b elif (c * i) <= 3.1e+93: tmp = x * y else: tmp = c * i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(c * i) <= -4.2e+203) tmp = Float64(c * i); elseif (Float64(c * i) <= -1.7e+109) tmp = Float64(z * t); elseif (Float64(c * i) <= -3.2e-121) tmp = Float64(a * b); elseif (Float64(c * i) <= 0.0) tmp = Float64(x * y); elseif (Float64(c * i) <= 1.56e-193) tmp = Float64(a * b); elseif (Float64(c * i) <= 3.3e-108) tmp = Float64(z * t); elseif (Float64(c * i) <= 0.4) tmp = Float64(a * b); elseif (Float64(c * i) <= 3.1e+93) tmp = Float64(x * y); else tmp = Float64(c * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((c * i) <= -4.2e+203) tmp = c * i; elseif ((c * i) <= -1.7e+109) tmp = z * t; elseif ((c * i) <= -3.2e-121) tmp = a * b; elseif ((c * i) <= 0.0) tmp = x * y; elseif ((c * i) <= 1.56e-193) tmp = a * b; elseif ((c * i) <= 3.3e-108) tmp = z * t; elseif ((c * i) <= 0.4) tmp = a * b; elseif ((c * i) <= 3.1e+93) tmp = x * y; else tmp = c * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(c * i), $MachinePrecision], -4.2e+203], N[(c * i), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], -1.7e+109], N[(z * t), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], -3.2e-121], N[(a * b), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], 0.0], N[(x * y), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], 1.56e-193], N[(a * b), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], 3.3e-108], N[(z * t), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], 0.4], N[(a * b), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], 3.1e+93], N[(x * y), $MachinePrecision], N[(c * i), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \cdot i \leq -4.2 \cdot 10^{+203}:\\
\;\;\;\;c \cdot i\\
\mathbf{elif}\;c \cdot i \leq -1.7 \cdot 10^{+109}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;c \cdot i \leq -3.2 \cdot 10^{-121}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;c \cdot i \leq 0:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;c \cdot i \leq 1.56 \cdot 10^{-193}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;c \cdot i \leq 3.3 \cdot 10^{-108}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;c \cdot i \leq 0.4:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;c \cdot i \leq 3.1 \cdot 10^{+93}:\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;c \cdot i\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (+ (+ (* a b) (+ (* x y) (* z t))) (* c i)))) (if (<= t_1 INFINITY) t_1 (+ (* c i) (* z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = ((a * b) + ((x * y) + (z * t))) + (c * i);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (c * i) + (z * t);
}
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) + ((x * y) + (z * t))) + (c * i);
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (c * i) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = ((a * b) + ((x * y) + (z * t))) + (c * i) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (c * i) + (z * t) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(a * b) + Float64(Float64(x * y) + Float64(z * t))) + Float64(c * i)) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(c * i) + Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = ((a * b) + ((x * y) + (z * t))) + (c * i); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (c * i) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(a * b), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(c * i), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot b + \left(x \cdot y + z \cdot t\right)\right) + c \cdot i\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot i + z \cdot t\\
\end{array}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(if (<= (* a b) -1.85e+120)
(* a b)
(if (<= (* a b) 5e-324)
(* c i)
(if (<= (* a b) 37000000.0)
(* z t)
(if (<= (* a b) 1.35e+42)
(* c i)
(if (<= (* a b) 9e+116) (* z t) (* a b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((a * b) <= -1.85e+120) {
tmp = a * b;
} else if ((a * b) <= 5e-324) {
tmp = c * i;
} else if ((a * b) <= 37000000.0) {
tmp = z * t;
} else if ((a * b) <= 1.35e+42) {
tmp = c * i;
} else if ((a * b) <= 9e+116) {
tmp = z * t;
} else {
tmp = a * b;
}
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 ((a * b) <= (-1.85d+120)) then
tmp = a * b
else if ((a * b) <= 5d-324) then
tmp = c * i
else if ((a * b) <= 37000000.0d0) then
tmp = z * t
else if ((a * b) <= 1.35d+42) then
tmp = c * i
else if ((a * b) <= 9d+116) then
tmp = z * t
else
tmp = a * b
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 ((a * b) <= -1.85e+120) {
tmp = a * b;
} else if ((a * b) <= 5e-324) {
tmp = c * i;
} else if ((a * b) <= 37000000.0) {
tmp = z * t;
} else if ((a * b) <= 1.35e+42) {
tmp = c * i;
} else if ((a * b) <= 9e+116) {
tmp = z * t;
} else {
tmp = a * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (a * b) <= -1.85e+120: tmp = a * b elif (a * b) <= 5e-324: tmp = c * i elif (a * b) <= 37000000.0: tmp = z * t elif (a * b) <= 1.35e+42: tmp = c * i elif (a * b) <= 9e+116: tmp = z * t else: tmp = a * b return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(a * b) <= -1.85e+120) tmp = Float64(a * b); elseif (Float64(a * b) <= 5e-324) tmp = Float64(c * i); elseif (Float64(a * b) <= 37000000.0) tmp = Float64(z * t); elseif (Float64(a * b) <= 1.35e+42) tmp = Float64(c * i); elseif (Float64(a * b) <= 9e+116) tmp = Float64(z * t); else tmp = Float64(a * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((a * b) <= -1.85e+120) tmp = a * b; elseif ((a * b) <= 5e-324) tmp = c * i; elseif ((a * b) <= 37000000.0) tmp = z * t; elseif ((a * b) <= 1.35e+42) tmp = c * i; elseif ((a * b) <= 9e+116) tmp = z * t; else tmp = a * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(a * b), $MachinePrecision], -1.85e+120], N[(a * b), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 5e-324], N[(c * i), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 37000000.0], N[(z * t), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 1.35e+42], N[(c * i), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 9e+116], N[(z * t), $MachinePrecision], N[(a * b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -1.85 \cdot 10^{+120}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;a \cdot b \leq 5 \cdot 10^{-324}:\\
\;\;\;\;c \cdot i\\
\mathbf{elif}\;a \cdot b \leq 37000000:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;a \cdot b \leq 1.35 \cdot 10^{+42}:\\
\;\;\;\;c \cdot i\\
\mathbf{elif}\;a \cdot b \leq 9 \cdot 10^{+116}:\\
\;\;\;\;z \cdot t\\
\mathbf{else}:\\
\;\;\;\;a \cdot b\\
\end{array}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* a b) (* c i))))
(if (<= (* x y) -5.4e+159)
(* x y)
(if (<= (* x y) -1.55e+75)
t_1
(if (<= (* x y) -4.6e-42)
(* z t)
(if (<= (* x y) 2.5e+224) t_1 (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (a * b) + (c * i);
double tmp;
if ((x * y) <= -5.4e+159) {
tmp = x * y;
} else if ((x * y) <= -1.55e+75) {
tmp = t_1;
} else if ((x * y) <= -4.6e-42) {
tmp = z * t;
} else if ((x * y) <= 2.5e+224) {
tmp = t_1;
} else {
tmp = 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) :: t_1
real(8) :: tmp
t_1 = (a * b) + (c * i)
if ((x * y) <= (-5.4d+159)) then
tmp = x * y
else if ((x * y) <= (-1.55d+75)) then
tmp = t_1
else if ((x * y) <= (-4.6d-42)) then
tmp = z * t
else if ((x * y) <= 2.5d+224) then
tmp = t_1
else
tmp = 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 t_1 = (a * b) + (c * i);
double tmp;
if ((x * y) <= -5.4e+159) {
tmp = x * y;
} else if ((x * y) <= -1.55e+75) {
tmp = t_1;
} else if ((x * y) <= -4.6e-42) {
tmp = z * t;
} else if ((x * y) <= 2.5e+224) {
tmp = t_1;
} else {
tmp = x * y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (a * b) + (c * i) tmp = 0 if (x * y) <= -5.4e+159: tmp = x * y elif (x * y) <= -1.55e+75: tmp = t_1 elif (x * y) <= -4.6e-42: tmp = z * t elif (x * y) <= 2.5e+224: tmp = t_1 else: tmp = x * y return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(a * b) + Float64(c * i)) tmp = 0.0 if (Float64(x * y) <= -5.4e+159) tmp = Float64(x * y); elseif (Float64(x * y) <= -1.55e+75) tmp = t_1; elseif (Float64(x * y) <= -4.6e-42) tmp = Float64(z * t); elseif (Float64(x * y) <= 2.5e+224) tmp = t_1; else tmp = Float64(x * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (a * b) + (c * i); tmp = 0.0; if ((x * y) <= -5.4e+159) tmp = x * y; elseif ((x * y) <= -1.55e+75) tmp = t_1; elseif ((x * y) <= -4.6e-42) tmp = z * t; elseif ((x * y) <= 2.5e+224) tmp = t_1; else tmp = x * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x * y), $MachinePrecision], -5.4e+159], N[(x * y), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], -1.55e+75], t$95$1, If[LessEqual[N[(x * y), $MachinePrecision], -4.6e-42], N[(z * t), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 2.5e+224], t$95$1, N[(x * y), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b + c \cdot i\\
\mathbf{if}\;x \cdot y \leq -5.4 \cdot 10^{+159}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \cdot y \leq -1.55 \cdot 10^{+75}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \cdot y \leq -4.6 \cdot 10^{-42}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;x \cdot y \leq 2.5 \cdot 10^{+224}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* a b) (* c i))))
(if (<= (* z t) -1e+112)
(+ (* c i) (* z t))
(if (<= (* z t) -1e-49)
t_1
(if (<= (* z t) -4e-142)
(* x y)
(if (<= (* z t) 4e+137) t_1 (+ (* x y) (* z t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (a * b) + (c * i);
double tmp;
if ((z * t) <= -1e+112) {
tmp = (c * i) + (z * t);
} else if ((z * t) <= -1e-49) {
tmp = t_1;
} else if ((z * t) <= -4e-142) {
tmp = x * y;
} else if ((z * t) <= 4e+137) {
tmp = t_1;
} else {
tmp = (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) :: t_1
real(8) :: tmp
t_1 = (a * b) + (c * i)
if ((z * t) <= (-1d+112)) then
tmp = (c * i) + (z * t)
else if ((z * t) <= (-1d-49)) then
tmp = t_1
else if ((z * t) <= (-4d-142)) then
tmp = x * y
else if ((z * t) <= 4d+137) then
tmp = t_1
else
tmp = (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 t_1 = (a * b) + (c * i);
double tmp;
if ((z * t) <= -1e+112) {
tmp = (c * i) + (z * t);
} else if ((z * t) <= -1e-49) {
tmp = t_1;
} else if ((z * t) <= -4e-142) {
tmp = x * y;
} else if ((z * t) <= 4e+137) {
tmp = t_1;
} else {
tmp = (x * y) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (a * b) + (c * i) tmp = 0 if (z * t) <= -1e+112: tmp = (c * i) + (z * t) elif (z * t) <= -1e-49: tmp = t_1 elif (z * t) <= -4e-142: tmp = x * y elif (z * t) <= 4e+137: tmp = t_1 else: tmp = (x * y) + (z * t) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(a * b) + Float64(c * i)) tmp = 0.0 if (Float64(z * t) <= -1e+112) tmp = Float64(Float64(c * i) + Float64(z * t)); elseif (Float64(z * t) <= -1e-49) tmp = t_1; elseif (Float64(z * t) <= -4e-142) tmp = Float64(x * y); elseif (Float64(z * t) <= 4e+137) tmp = t_1; else tmp = Float64(Float64(x * y) + Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (a * b) + (c * i); tmp = 0.0; if ((z * t) <= -1e+112) tmp = (c * i) + (z * t); elseif ((z * t) <= -1e-49) tmp = t_1; elseif ((z * t) <= -4e-142) tmp = x * y; elseif ((z * t) <= 4e+137) tmp = t_1; else tmp = (x * y) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(z * t), $MachinePrecision], -1e+112], N[(N[(c * i), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(z * t), $MachinePrecision], -1e-49], t$95$1, If[LessEqual[N[(z * t), $MachinePrecision], -4e-142], N[(x * y), $MachinePrecision], If[LessEqual[N[(z * t), $MachinePrecision], 4e+137], t$95$1, N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b + c \cdot i\\
\mathbf{if}\;z \cdot t \leq -1 \cdot 10^{+112}:\\
\;\;\;\;c \cdot i + z \cdot t\\
\mathbf{elif}\;z \cdot t \leq -1 \cdot 10^{-49}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \cdot t \leq -4 \cdot 10^{-142}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;z \cdot t \leq 4 \cdot 10^{+137}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot y + z \cdot t\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= (* x y) -8.4e+148) (not (<= (* x y) 3e+230))) (+ (* x y) (* z t)) (+ (* c i) (+ (* a b) (* 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) <= -8.4e+148) || !((x * y) <= 3e+230)) {
tmp = (x * y) + (z * t);
} else {
tmp = (c * i) + ((a * b) + (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) <= (-8.4d+148)) .or. (.not. ((x * y) <= 3d+230))) then
tmp = (x * y) + (z * t)
else
tmp = (c * i) + ((a * b) + (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) <= -8.4e+148) || !((x * y) <= 3e+230)) {
tmp = (x * y) + (z * t);
} else {
tmp = (c * i) + ((a * b) + (z * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if ((x * y) <= -8.4e+148) or not ((x * y) <= 3e+230): tmp = (x * y) + (z * t) else: tmp = (c * i) + ((a * b) + (z * t)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((Float64(x * y) <= -8.4e+148) || !(Float64(x * y) <= 3e+230)) tmp = Float64(Float64(x * y) + Float64(z * t)); else tmp = Float64(Float64(c * i) + Float64(Float64(a * b) + 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) <= -8.4e+148) || ~(((x * y) <= 3e+230))) tmp = (x * y) + (z * t); else tmp = (c * i) + ((a * b) + (z * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[N[(x * y), $MachinePrecision], -8.4e+148], N[Not[LessEqual[N[(x * y), $MachinePrecision], 3e+230]], $MachinePrecision]], N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], N[(N[(c * i), $MachinePrecision] + N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -8.4 \cdot 10^{+148} \lor \neg \left(x \cdot y \leq 3 \cdot 10^{+230}\right):\\
\;\;\;\;x \cdot y + z \cdot t\\
\mathbf{else}:\\
\;\;\;\;c \cdot i + \left(a \cdot b + z \cdot t\right)\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= (* a b) -2.25e+115) (not (<= (* a b) 1.12e+30))) (+ (* c i) (+ (* a b) (* z t))) (+ (* c i) (+ (* 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 (((a * b) <= -2.25e+115) || !((a * b) <= 1.12e+30)) {
tmp = (c * i) + ((a * b) + (z * t));
} else {
tmp = (c * i) + ((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 (((a * b) <= (-2.25d+115)) .or. (.not. ((a * b) <= 1.12d+30))) then
tmp = (c * i) + ((a * b) + (z * t))
else
tmp = (c * i) + ((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 (((a * b) <= -2.25e+115) || !((a * b) <= 1.12e+30)) {
tmp = (c * i) + ((a * b) + (z * t));
} else {
tmp = (c * i) + ((x * y) + (z * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if ((a * b) <= -2.25e+115) or not ((a * b) <= 1.12e+30): tmp = (c * i) + ((a * b) + (z * t)) else: tmp = (c * i) + ((x * y) + (z * t)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((Float64(a * b) <= -2.25e+115) || !(Float64(a * b) <= 1.12e+30)) tmp = Float64(Float64(c * i) + Float64(Float64(a * b) + Float64(z * t))); else tmp = Float64(Float64(c * i) + 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 (((a * b) <= -2.25e+115) || ~(((a * b) <= 1.12e+30))) tmp = (c * i) + ((a * b) + (z * t)); else tmp = (c * i) + ((x * y) + (z * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[N[(a * b), $MachinePrecision], -2.25e+115], N[Not[LessEqual[N[(a * b), $MachinePrecision], 1.12e+30]], $MachinePrecision]], N[(N[(c * i), $MachinePrecision] + N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(c * i), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -2.25 \cdot 10^{+115} \lor \neg \left(a \cdot b \leq 1.12 \cdot 10^{+30}\right):\\
\;\;\;\;c \cdot i + \left(a \cdot b + z \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot i + \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 i) -2.7e+202) (not (<= (* c i) 1e+81))) (+ (* a b) (* c i)) (+ (* a b) (* z t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((c * i) <= -2.7e+202) || !((c * i) <= 1e+81)) {
tmp = (a * b) + (c * i);
} else {
tmp = (a * b) + (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 * i) <= (-2.7d+202)) .or. (.not. ((c * i) <= 1d+81))) then
tmp = (a * b) + (c * i)
else
tmp = (a * b) + (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 * i) <= -2.7e+202) || !((c * i) <= 1e+81)) {
tmp = (a * b) + (c * i);
} else {
tmp = (a * b) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if ((c * i) <= -2.7e+202) or not ((c * i) <= 1e+81): tmp = (a * b) + (c * i) else: tmp = (a * b) + (z * t) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((Float64(c * i) <= -2.7e+202) || !(Float64(c * i) <= 1e+81)) tmp = Float64(Float64(a * b) + Float64(c * i)); else tmp = Float64(Float64(a * b) + Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (((c * i) <= -2.7e+202) || ~(((c * i) <= 1e+81))) tmp = (a * b) + (c * i); else tmp = (a * b) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[N[(c * i), $MachinePrecision], -2.7e+202], N[Not[LessEqual[N[(c * i), $MachinePrecision], 1e+81]], $MachinePrecision]], N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision], N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \cdot i \leq -2.7 \cdot 10^{+202} \lor \neg \left(c \cdot i \leq 10^{+81}\right):\\
\;\;\;\;a \cdot b + c \cdot i\\
\mathbf{else}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (if (<= (* c i) -9e+202) (+ (* a b) (* c i)) (if (<= (* c i) 4.3e-28) (+ (* a b) (* z t)) (+ (* c i) (* z t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((c * i) <= -9e+202) {
tmp = (a * b) + (c * i);
} else if ((c * i) <= 4.3e-28) {
tmp = (a * b) + (z * t);
} else {
tmp = (c * i) + (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 * i) <= (-9d+202)) then
tmp = (a * b) + (c * i)
else if ((c * i) <= 4.3d-28) then
tmp = (a * b) + (z * t)
else
tmp = (c * i) + (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 * i) <= -9e+202) {
tmp = (a * b) + (c * i);
} else if ((c * i) <= 4.3e-28) {
tmp = (a * b) + (z * t);
} else {
tmp = (c * i) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (c * i) <= -9e+202: tmp = (a * b) + (c * i) elif (c * i) <= 4.3e-28: tmp = (a * b) + (z * t) else: tmp = (c * i) + (z * t) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(c * i) <= -9e+202) tmp = Float64(Float64(a * b) + Float64(c * i)); elseif (Float64(c * i) <= 4.3e-28) tmp = Float64(Float64(a * b) + Float64(z * t)); else tmp = Float64(Float64(c * i) + Float64(z * t)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((c * i) <= -9e+202) tmp = (a * b) + (c * i); elseif ((c * i) <= 4.3e-28) tmp = (a * b) + (z * t); else tmp = (c * i) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(c * i), $MachinePrecision], -9e+202], N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], 4.3e-28], N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], N[(N[(c * i), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \cdot i \leq -9 \cdot 10^{+202}:\\
\;\;\;\;a \cdot b + c \cdot i\\
\mathbf{elif}\;c \cdot i \leq 4.3 \cdot 10^{-28}:\\
\;\;\;\;a \cdot b + z \cdot t\\
\mathbf{else}:\\
\;\;\;\;c \cdot i + z \cdot t\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= (* a b) -5.2e+121) (not (<= (* a b) 1.65e+40))) (* a b) (* c i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((a * b) <= -5.2e+121) || !((a * b) <= 1.65e+40)) {
tmp = a * b;
} else {
tmp = 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 (((a * b) <= (-5.2d+121)) .or. (.not. ((a * b) <= 1.65d+40))) then
tmp = a * b
else
tmp = 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 (((a * b) <= -5.2e+121) || !((a * b) <= 1.65e+40)) {
tmp = a * b;
} else {
tmp = c * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if ((a * b) <= -5.2e+121) or not ((a * b) <= 1.65e+40): tmp = a * b else: tmp = c * i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((Float64(a * b) <= -5.2e+121) || !(Float64(a * b) <= 1.65e+40)) tmp = Float64(a * b); else tmp = Float64(c * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (((a * b) <= -5.2e+121) || ~(((a * b) <= 1.65e+40))) tmp = a * b; else tmp = c * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[N[(a * b), $MachinePrecision], -5.2e+121], N[Not[LessEqual[N[(a * b), $MachinePrecision], 1.65e+40]], $MachinePrecision]], N[(a * b), $MachinePrecision], N[(c * i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -5.2 \cdot 10^{+121} \lor \neg \left(a \cdot b \leq 1.65 \cdot 10^{+40}\right):\\
\;\;\;\;a \cdot b\\
\mathbf{else}:\\
\;\;\;\;c \cdot i\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (* a b))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a * b;
}
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 = a * b
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return a * b;
}
def code(x, y, z, t, a, b, c, i): return a * b
function code(x, y, z, t, a, b, c, i) return Float64(a * b) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = a * b; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(a * b), $MachinePrecision]
\begin{array}{l}
\\
a \cdot b
\end{array}
herbie shell --seed 2023343
(FPCore (x y z t a b c i)
:name "Linear.V4:$cdot from linear-1.19.1.3, C"
:precision binary64
(+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))