
(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 16 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 (if (<= (+ (+ (* a b) (+ (* x y) (* z t))) (* c i)) INFINITY) (fma c i (+ (+ (* x y) (* a b)) (* z t))) (fma i c (* 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) + ((x * y) + (z * t))) + (c * i)) <= ((double) INFINITY)) {
tmp = fma(c, i, (((x * y) + (a * b)) + (z * t)));
} else {
tmp = fma(i, c, (z * t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(Float64(Float64(a * b) + Float64(Float64(x * y) + Float64(z * t))) + Float64(c * i)) <= Inf) tmp = fma(c, i, Float64(Float64(Float64(x * y) + Float64(a * b)) + Float64(z * t))); else tmp = fma(i, c, Float64(z * t)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := 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[(c * i + N[(N[(N[(x * y), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * c + N[(z * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(a \cdot b + \left(x \cdot y + z \cdot t\right)\right) + c \cdot i \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(c, i, \left(x \cdot y + a \cdot b\right) + z \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i, c, z \cdot t\right)\\
\end{array}
\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 (+ (+ (* a b) (+ (* x y) (* z t))) (* c i)))) (if (<= t_1 INFINITY) t_1 (fma i c (* 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(i, c, (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(i, c, 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[(i * c + 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(i, c, z \cdot t\right)\\
\end{array}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(if (<= (* x y) -1.35e+63)
(* x y)
(if (<= (* x y) -6.4e+34)
(* z t)
(if (<= (* x y) -1.1e-23)
(* c i)
(if (<= (* x y) -1.06e-197)
(* z t)
(if (<= (* x y) 8.2e-229)
(* a b)
(if (<= (* x y) 6e-155)
(* z t)
(if (<= (* x y) 3.5e-57)
(* c i)
(if (<= (* x y) 1.22e+79) (* a b) (* x y))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((x * y) <= -1.35e+63) {
tmp = x * y;
} else if ((x * y) <= -6.4e+34) {
tmp = z * t;
} else if ((x * y) <= -1.1e-23) {
tmp = c * i;
} else if ((x * y) <= -1.06e-197) {
tmp = z * t;
} else if ((x * y) <= 8.2e-229) {
tmp = a * b;
} else if ((x * y) <= 6e-155) {
tmp = z * t;
} else if ((x * y) <= 3.5e-57) {
tmp = c * i;
} else if ((x * y) <= 1.22e+79) {
tmp = a * b;
} 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) :: tmp
if ((x * y) <= (-1.35d+63)) then
tmp = x * y
else if ((x * y) <= (-6.4d+34)) then
tmp = z * t
else if ((x * y) <= (-1.1d-23)) then
tmp = c * i
else if ((x * y) <= (-1.06d-197)) then
tmp = z * t
else if ((x * y) <= 8.2d-229) then
tmp = a * b
else if ((x * y) <= 6d-155) then
tmp = z * t
else if ((x * y) <= 3.5d-57) then
tmp = c * i
else if ((x * y) <= 1.22d+79) then
tmp = a * b
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 tmp;
if ((x * y) <= -1.35e+63) {
tmp = x * y;
} else if ((x * y) <= -6.4e+34) {
tmp = z * t;
} else if ((x * y) <= -1.1e-23) {
tmp = c * i;
} else if ((x * y) <= -1.06e-197) {
tmp = z * t;
} else if ((x * y) <= 8.2e-229) {
tmp = a * b;
} else if ((x * y) <= 6e-155) {
tmp = z * t;
} else if ((x * y) <= 3.5e-57) {
tmp = c * i;
} else if ((x * y) <= 1.22e+79) {
tmp = a * b;
} else {
tmp = x * y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x * y) <= -1.35e+63: tmp = x * y elif (x * y) <= -6.4e+34: tmp = z * t elif (x * y) <= -1.1e-23: tmp = c * i elif (x * y) <= -1.06e-197: tmp = z * t elif (x * y) <= 8.2e-229: tmp = a * b elif (x * y) <= 6e-155: tmp = z * t elif (x * y) <= 3.5e-57: tmp = c * i elif (x * y) <= 1.22e+79: tmp = a * b else: tmp = x * y return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(x * y) <= -1.35e+63) tmp = Float64(x * y); elseif (Float64(x * y) <= -6.4e+34) tmp = Float64(z * t); elseif (Float64(x * y) <= -1.1e-23) tmp = Float64(c * i); elseif (Float64(x * y) <= -1.06e-197) tmp = Float64(z * t); elseif (Float64(x * y) <= 8.2e-229) tmp = Float64(a * b); elseif (Float64(x * y) <= 6e-155) tmp = Float64(z * t); elseif (Float64(x * y) <= 3.5e-57) tmp = Float64(c * i); elseif (Float64(x * y) <= 1.22e+79) tmp = Float64(a * b); else tmp = Float64(x * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((x * y) <= -1.35e+63) tmp = x * y; elseif ((x * y) <= -6.4e+34) tmp = z * t; elseif ((x * y) <= -1.1e-23) tmp = c * i; elseif ((x * y) <= -1.06e-197) tmp = z * t; elseif ((x * y) <= 8.2e-229) tmp = a * b; elseif ((x * y) <= 6e-155) tmp = z * t; elseif ((x * y) <= 3.5e-57) tmp = c * i; elseif ((x * y) <= 1.22e+79) tmp = a * b; else tmp = x * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(x * y), $MachinePrecision], -1.35e+63], N[(x * y), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], -6.4e+34], N[(z * t), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], -1.1e-23], N[(c * i), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], -1.06e-197], N[(z * t), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 8.2e-229], N[(a * b), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 6e-155], N[(z * t), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 3.5e-57], N[(c * i), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 1.22e+79], N[(a * b), $MachinePrecision], N[(x * y), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -1.35 \cdot 10^{+63}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \cdot y \leq -6.4 \cdot 10^{+34}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;x \cdot y \leq -1.1 \cdot 10^{-23}:\\
\;\;\;\;c \cdot i\\
\mathbf{elif}\;x \cdot y \leq -1.06 \cdot 10^{-197}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;x \cdot y \leq 8.2 \cdot 10^{-229}:\\
\;\;\;\;a \cdot b\\
\mathbf{elif}\;x \cdot y \leq 6 \cdot 10^{-155}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;x \cdot y \leq 3.5 \cdot 10^{-57}:\\
\;\;\;\;c \cdot i\\
\mathbf{elif}\;x \cdot y \leq 1.22 \cdot 10^{+79}:\\
\;\;\;\;a \cdot b\\
\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 (<= (* x y) -3.7e+215)
(* x y)
(if (<= (* x y) -4.4e+122)
t_1
(if (<= (* x y) -6.2e+56)
(* x y)
(if (<= (* x y) -2.5e-70)
t_1
(if (<= (* x y) -1.22e-175)
(* z t)
(if (<= (* x y) 9.4e+263) 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) <= -3.7e+215) {
tmp = x * y;
} else if ((x * y) <= -4.4e+122) {
tmp = t_1;
} else if ((x * y) <= -6.2e+56) {
tmp = x * y;
} else if ((x * y) <= -2.5e-70) {
tmp = t_1;
} else if ((x * y) <= -1.22e-175) {
tmp = z * t;
} else if ((x * y) <= 9.4e+263) {
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) <= (-3.7d+215)) then
tmp = x * y
else if ((x * y) <= (-4.4d+122)) then
tmp = t_1
else if ((x * y) <= (-6.2d+56)) then
tmp = x * y
else if ((x * y) <= (-2.5d-70)) then
tmp = t_1
else if ((x * y) <= (-1.22d-175)) then
tmp = z * t
else if ((x * y) <= 9.4d+263) 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) <= -3.7e+215) {
tmp = x * y;
} else if ((x * y) <= -4.4e+122) {
tmp = t_1;
} else if ((x * y) <= -6.2e+56) {
tmp = x * y;
} else if ((x * y) <= -2.5e-70) {
tmp = t_1;
} else if ((x * y) <= -1.22e-175) {
tmp = z * t;
} else if ((x * y) <= 9.4e+263) {
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) <= -3.7e+215: tmp = x * y elif (x * y) <= -4.4e+122: tmp = t_1 elif (x * y) <= -6.2e+56: tmp = x * y elif (x * y) <= -2.5e-70: tmp = t_1 elif (x * y) <= -1.22e-175: tmp = z * t elif (x * y) <= 9.4e+263: 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) <= -3.7e+215) tmp = Float64(x * y); elseif (Float64(x * y) <= -4.4e+122) tmp = t_1; elseif (Float64(x * y) <= -6.2e+56) tmp = Float64(x * y); elseif (Float64(x * y) <= -2.5e-70) tmp = t_1; elseif (Float64(x * y) <= -1.22e-175) tmp = Float64(z * t); elseif (Float64(x * y) <= 9.4e+263) 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) <= -3.7e+215) tmp = x * y; elseif ((x * y) <= -4.4e+122) tmp = t_1; elseif ((x * y) <= -6.2e+56) tmp = x * y; elseif ((x * y) <= -2.5e-70) tmp = t_1; elseif ((x * y) <= -1.22e-175) tmp = z * t; elseif ((x * y) <= 9.4e+263) 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], -3.7e+215], N[(x * y), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], -4.4e+122], t$95$1, If[LessEqual[N[(x * y), $MachinePrecision], -6.2e+56], N[(x * y), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], -2.5e-70], t$95$1, If[LessEqual[N[(x * y), $MachinePrecision], -1.22e-175], N[(z * t), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 9.4e+263], 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 -3.7 \cdot 10^{+215}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \cdot y \leq -4.4 \cdot 10^{+122}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \cdot y \leq -6.2 \cdot 10^{+56}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \cdot y \leq -2.5 \cdot 10^{-70}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \cdot y \leq -1.22 \cdot 10^{-175}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;x \cdot y \leq 9.4 \cdot 10^{+263}:\\
\;\;\;\;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) (+ (* 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
(let* ((t_1 (+ (* a b) (* c i))))
(if (<= (* x y) -7.2e+31)
(+ (* x y) (* a b))
(if (<= (* x y) -2.7e-70)
t_1
(if (<= (* x y) -4.2e-176)
(* z t)
(if (<= (* x y) 2.3e+264) 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) <= -7.2e+31) {
tmp = (x * y) + (a * b);
} else if ((x * y) <= -2.7e-70) {
tmp = t_1;
} else if ((x * y) <= -4.2e-176) {
tmp = z * t;
} else if ((x * y) <= 2.3e+264) {
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) <= (-7.2d+31)) then
tmp = (x * y) + (a * b)
else if ((x * y) <= (-2.7d-70)) then
tmp = t_1
else if ((x * y) <= (-4.2d-176)) then
tmp = z * t
else if ((x * y) <= 2.3d+264) 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) <= -7.2e+31) {
tmp = (x * y) + (a * b);
} else if ((x * y) <= -2.7e-70) {
tmp = t_1;
} else if ((x * y) <= -4.2e-176) {
tmp = z * t;
} else if ((x * y) <= 2.3e+264) {
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) <= -7.2e+31: tmp = (x * y) + (a * b) elif (x * y) <= -2.7e-70: tmp = t_1 elif (x * y) <= -4.2e-176: tmp = z * t elif (x * y) <= 2.3e+264: 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) <= -7.2e+31) tmp = Float64(Float64(x * y) + Float64(a * b)); elseif (Float64(x * y) <= -2.7e-70) tmp = t_1; elseif (Float64(x * y) <= -4.2e-176) tmp = Float64(z * t); elseif (Float64(x * y) <= 2.3e+264) 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) <= -7.2e+31) tmp = (x * y) + (a * b); elseif ((x * y) <= -2.7e-70) tmp = t_1; elseif ((x * y) <= -4.2e-176) tmp = z * t; elseif ((x * y) <= 2.3e+264) 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], -7.2e+31], N[(N[(x * y), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], -2.7e-70], t$95$1, If[LessEqual[N[(x * y), $MachinePrecision], -4.2e-176], N[(z * t), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 2.3e+264], 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 -7.2 \cdot 10^{+31}:\\
\;\;\;\;x \cdot y + a \cdot b\\
\mathbf{elif}\;x \cdot y \leq -2.7 \cdot 10^{-70}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \cdot y \leq -4.2 \cdot 10^{-176}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;x \cdot y \leq 2.3 \cdot 10^{+264}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= z -1.8e+152)
(not
(or (<= z -2.6e+123)
(and (not (<= z -1.65e+91))
(or (<= z -7.2e+14)
(and (not (<= z -5.7e-42)) (<= z 4.2e-17)))))))
(+ (* c i) (* z t))
(+ (* x y) (* a b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((z <= -1.8e+152) || !((z <= -2.6e+123) || (!(z <= -1.65e+91) && ((z <= -7.2e+14) || (!(z <= -5.7e-42) && (z <= 4.2e-17)))))) {
tmp = (c * i) + (z * t);
} else {
tmp = (x * y) + (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 ((z <= (-1.8d+152)) .or. (.not. (z <= (-2.6d+123)) .or. (.not. (z <= (-1.65d+91))) .and. (z <= (-7.2d+14)) .or. (.not. (z <= (-5.7d-42))) .and. (z <= 4.2d-17))) then
tmp = (c * i) + (z * t)
else
tmp = (x * y) + (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 ((z <= -1.8e+152) || !((z <= -2.6e+123) || (!(z <= -1.65e+91) && ((z <= -7.2e+14) || (!(z <= -5.7e-42) && (z <= 4.2e-17)))))) {
tmp = (c * i) + (z * t);
} else {
tmp = (x * y) + (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (z <= -1.8e+152) or not ((z <= -2.6e+123) or (not (z <= -1.65e+91) and ((z <= -7.2e+14) or (not (z <= -5.7e-42) and (z <= 4.2e-17))))): tmp = (c * i) + (z * t) else: tmp = (x * y) + (a * b) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((z <= -1.8e+152) || !((z <= -2.6e+123) || (!(z <= -1.65e+91) && ((z <= -7.2e+14) || (!(z <= -5.7e-42) && (z <= 4.2e-17)))))) tmp = Float64(Float64(c * i) + Float64(z * t)); else tmp = Float64(Float64(x * y) + Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((z <= -1.8e+152) || ~(((z <= -2.6e+123) || (~((z <= -1.65e+91)) && ((z <= -7.2e+14) || (~((z <= -5.7e-42)) && (z <= 4.2e-17))))))) tmp = (c * i) + (z * t); else tmp = (x * y) + (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[z, -1.8e+152], N[Not[Or[LessEqual[z, -2.6e+123], And[N[Not[LessEqual[z, -1.65e+91]], $MachinePrecision], Or[LessEqual[z, -7.2e+14], And[N[Not[LessEqual[z, -5.7e-42]], $MachinePrecision], LessEqual[z, 4.2e-17]]]]]], $MachinePrecision]], N[(N[(c * i), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.8 \cdot 10^{+152} \lor \neg \left(z \leq -2.6 \cdot 10^{+123} \lor \neg \left(z \leq -1.65 \cdot 10^{+91}\right) \land \left(z \leq -7.2 \cdot 10^{+14} \lor \neg \left(z \leq -5.7 \cdot 10^{-42}\right) \land z \leq 4.2 \cdot 10^{-17}\right)\right):\\
\;\;\;\;c \cdot i + z \cdot t\\
\mathbf{else}:\\
\;\;\;\;x \cdot y + a \cdot b\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= (* x y) -4.4e-8) (not (<= (* x y) 2.2e+75))) (+ (* c i) (+ (* x y) (* 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 (((x * y) <= -4.4e-8) || !((x * y) <= 2.2e+75)) {
tmp = (c * i) + ((x * y) + (a * b));
} 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) <= (-4.4d-8)) .or. (.not. ((x * y) <= 2.2d+75))) then
tmp = (c * i) + ((x * y) + (a * b))
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) <= -4.4e-8) || !((x * y) <= 2.2e+75)) {
tmp = (c * i) + ((x * y) + (a * b));
} 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) <= -4.4e-8) or not ((x * y) <= 2.2e+75): tmp = (c * i) + ((x * y) + (a * b)) 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) <= -4.4e-8) || !(Float64(x * y) <= 2.2e+75)) tmp = Float64(Float64(c * i) + Float64(Float64(x * y) + Float64(a * b))); 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) <= -4.4e-8) || ~(((x * y) <= 2.2e+75))) tmp = (c * i) + ((x * y) + (a * b)); 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], -4.4e-8], N[Not[LessEqual[N[(x * y), $MachinePrecision], 2.2e+75]], $MachinePrecision]], N[(N[(c * i), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(a * b), $MachinePrecision]), $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 -4.4 \cdot 10^{-8} \lor \neg \left(x \cdot y \leq 2.2 \cdot 10^{+75}\right):\\
\;\;\;\;c \cdot i + \left(x \cdot y + a \cdot b\right)\\
\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 (<= (* x y) -8.5e+69)
(+ (* x y) (* a b))
(if (<= (* x y) 5.4e+224)
(+ (* c i) (+ (* a b) (* z t)))
(+ (* 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 ((x * y) <= -8.5e+69) {
tmp = (x * y) + (a * b);
} else if ((x * y) <= 5.4e+224) {
tmp = (c * i) + ((a * b) + (z * t));
} else {
tmp = (x * y) + (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) <= (-8.5d+69)) then
tmp = (x * y) + (a * b)
else if ((x * y) <= 5.4d+224) then
tmp = (c * i) + ((a * b) + (z * t))
else
tmp = (x * y) + (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) <= -8.5e+69) {
tmp = (x * y) + (a * b);
} else if ((x * y) <= 5.4e+224) {
tmp = (c * i) + ((a * b) + (z * t));
} else {
tmp = (x * y) + (c * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (x * y) <= -8.5e+69: tmp = (x * y) + (a * b) elif (x * y) <= 5.4e+224: tmp = (c * i) + ((a * b) + (z * t)) else: tmp = (x * y) + (c * i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(x * y) <= -8.5e+69) tmp = Float64(Float64(x * y) + Float64(a * b)); elseif (Float64(x * y) <= 5.4e+224) tmp = Float64(Float64(c * i) + Float64(Float64(a * b) + Float64(z * t))); else tmp = Float64(Float64(x * y) + 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) <= -8.5e+69) tmp = (x * y) + (a * b); elseif ((x * y) <= 5.4e+224) tmp = (c * i) + ((a * b) + (z * t)); else tmp = (x * y) + (c * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(x * y), $MachinePrecision], -8.5e+69], N[(N[(x * y), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 5.4e+224], N[(N[(c * i), $MachinePrecision] + N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -8.5 \cdot 10^{+69}:\\
\;\;\;\;x \cdot y + a \cdot b\\
\mathbf{elif}\;x \cdot y \leq 5.4 \cdot 10^{+224}:\\
\;\;\;\;c \cdot i + \left(a \cdot b + z \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot y + c \cdot i\\
\end{array}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* x y) (* z t))) (t_2 (+ (* c i) (* z t))))
(if (<= z -3.5e+152)
t_2
(if (<= z -2.45e+58)
t_1
(if (<= z -130000.0)
(+ (* a b) (* c i))
(if (<= z -3.5e-46)
t_1
(if (<= z 6.4e-13) (+ (* x y) (* a b)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (x * y) + (z * t);
double t_2 = (c * i) + (z * t);
double tmp;
if (z <= -3.5e+152) {
tmp = t_2;
} else if (z <= -2.45e+58) {
tmp = t_1;
} else if (z <= -130000.0) {
tmp = (a * b) + (c * i);
} else if (z <= -3.5e-46) {
tmp = t_1;
} else if (z <= 6.4e-13) {
tmp = (x * y) + (a * b);
} 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 = (x * y) + (z * t)
t_2 = (c * i) + (z * t)
if (z <= (-3.5d+152)) then
tmp = t_2
else if (z <= (-2.45d+58)) then
tmp = t_1
else if (z <= (-130000.0d0)) then
tmp = (a * b) + (c * i)
else if (z <= (-3.5d-46)) then
tmp = t_1
else if (z <= 6.4d-13) then
tmp = (x * y) + (a * b)
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 = (x * y) + (z * t);
double t_2 = (c * i) + (z * t);
double tmp;
if (z <= -3.5e+152) {
tmp = t_2;
} else if (z <= -2.45e+58) {
tmp = t_1;
} else if (z <= -130000.0) {
tmp = (a * b) + (c * i);
} else if (z <= -3.5e-46) {
tmp = t_1;
} else if (z <= 6.4e-13) {
tmp = (x * y) + (a * b);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x * y) + (z * t) t_2 = (c * i) + (z * t) tmp = 0 if z <= -3.5e+152: tmp = t_2 elif z <= -2.45e+58: tmp = t_1 elif z <= -130000.0: tmp = (a * b) + (c * i) elif z <= -3.5e-46: tmp = t_1 elif z <= 6.4e-13: tmp = (x * y) + (a * b) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x * y) + Float64(z * t)) t_2 = Float64(Float64(c * i) + Float64(z * t)) tmp = 0.0 if (z <= -3.5e+152) tmp = t_2; elseif (z <= -2.45e+58) tmp = t_1; elseif (z <= -130000.0) tmp = Float64(Float64(a * b) + Float64(c * i)); elseif (z <= -3.5e-46) tmp = t_1; elseif (z <= 6.4e-13) tmp = Float64(Float64(x * y) + Float64(a * b)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (x * y) + (z * t); t_2 = (c * i) + (z * t); tmp = 0.0; if (z <= -3.5e+152) tmp = t_2; elseif (z <= -2.45e+58) tmp = t_1; elseif (z <= -130000.0) tmp = (a * b) + (c * i); elseif (z <= -3.5e-46) tmp = t_1; elseif (z <= 6.4e-13) tmp = (x * y) + (a * b); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * i), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.5e+152], t$95$2, If[LessEqual[z, -2.45e+58], t$95$1, If[LessEqual[z, -130000.0], N[(N[(a * b), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.5e-46], t$95$1, If[LessEqual[z, 6.4e-13], N[(N[(x * y), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y + z \cdot t\\
t_2 := c \cdot i + z \cdot t\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+152}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -2.45 \cdot 10^{+58}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -130000:\\
\;\;\;\;a \cdot b + c \cdot i\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{-46}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{-13}:\\
\;\;\;\;x \cdot y + a \cdot b\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(if (<= z -8.8e+130)
(+ (* c i) (+ (* a b) (* z t)))
(if (<= z -4e+59)
(+ (* c i) (+ (* x y) (* z t)))
(if (<= z 5.2e-13) (+ (* c i) (+ (* x y) (* a b))) (+ (* 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 (z <= -8.8e+130) {
tmp = (c * i) + ((a * b) + (z * t));
} else if (z <= -4e+59) {
tmp = (c * i) + ((x * y) + (z * t));
} else if (z <= 5.2e-13) {
tmp = (c * i) + ((x * y) + (a * b));
} 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 (z <= (-8.8d+130)) then
tmp = (c * i) + ((a * b) + (z * t))
else if (z <= (-4d+59)) then
tmp = (c * i) + ((x * y) + (z * t))
else if (z <= 5.2d-13) then
tmp = (c * i) + ((x * y) + (a * b))
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 (z <= -8.8e+130) {
tmp = (c * i) + ((a * b) + (z * t));
} else if (z <= -4e+59) {
tmp = (c * i) + ((x * y) + (z * t));
} else if (z <= 5.2e-13) {
tmp = (c * i) + ((x * y) + (a * b));
} else {
tmp = (c * i) + (z * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if z <= -8.8e+130: tmp = (c * i) + ((a * b) + (z * t)) elif z <= -4e+59: tmp = (c * i) + ((x * y) + (z * t)) elif z <= 5.2e-13: tmp = (c * i) + ((x * y) + (a * b)) else: tmp = (c * i) + (z * t) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (z <= -8.8e+130) tmp = Float64(Float64(c * i) + Float64(Float64(a * b) + Float64(z * t))); elseif (z <= -4e+59) tmp = Float64(Float64(c * i) + Float64(Float64(x * y) + Float64(z * t))); elseif (z <= 5.2e-13) tmp = Float64(Float64(c * i) + Float64(Float64(x * y) + Float64(a * b))); 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 (z <= -8.8e+130) tmp = (c * i) + ((a * b) + (z * t)); elseif (z <= -4e+59) tmp = (c * i) + ((x * y) + (z * t)); elseif (z <= 5.2e-13) tmp = (c * i) + ((x * y) + (a * b)); else tmp = (c * i) + (z * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[z, -8.8e+130], N[(N[(c * i), $MachinePrecision] + N[(N[(a * b), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4e+59], N[(N[(c * i), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.2e-13], N[(N[(c * i), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(c * i), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.8 \cdot 10^{+130}:\\
\;\;\;\;c \cdot i + \left(a \cdot b + z \cdot t\right)\\
\mathbf{elif}\;z \leq -4 \cdot 10^{+59}:\\
\;\;\;\;c \cdot i + \left(x \cdot y + z \cdot t\right)\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-13}:\\
\;\;\;\;c \cdot i + \left(x \cdot y + a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot i + z \cdot t\\
\end{array}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (* c i) (* z t))))
(if (<= z -7.7e+151)
t_1
(if (<= z -2.35e+58)
(+ (* x y) (* z t))
(if (<= z -2.2e-219)
(+ (* x y) (* c i))
(if (<= z 2.85e-21) (+ (* x y) (* a b)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (c * i) + (z * t);
double tmp;
if (z <= -7.7e+151) {
tmp = t_1;
} else if (z <= -2.35e+58) {
tmp = (x * y) + (z * t);
} else if (z <= -2.2e-219) {
tmp = (x * y) + (c * i);
} else if (z <= 2.85e-21) {
tmp = (x * y) + (a * b);
} else {
tmp = t_1;
}
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 = (c * i) + (z * t)
if (z <= (-7.7d+151)) then
tmp = t_1
else if (z <= (-2.35d+58)) then
tmp = (x * y) + (z * t)
else if (z <= (-2.2d-219)) then
tmp = (x * y) + (c * i)
else if (z <= 2.85d-21) then
tmp = (x * y) + (a * b)
else
tmp = t_1
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) + (z * t);
double tmp;
if (z <= -7.7e+151) {
tmp = t_1;
} else if (z <= -2.35e+58) {
tmp = (x * y) + (z * t);
} else if (z <= -2.2e-219) {
tmp = (x * y) + (c * i);
} else if (z <= 2.85e-21) {
tmp = (x * y) + (a * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (c * i) + (z * t) tmp = 0 if z <= -7.7e+151: tmp = t_1 elif z <= -2.35e+58: tmp = (x * y) + (z * t) elif z <= -2.2e-219: tmp = (x * y) + (c * i) elif z <= 2.85e-21: tmp = (x * y) + (a * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(c * i) + Float64(z * t)) tmp = 0.0 if (z <= -7.7e+151) tmp = t_1; elseif (z <= -2.35e+58) tmp = Float64(Float64(x * y) + Float64(z * t)); elseif (z <= -2.2e-219) tmp = Float64(Float64(x * y) + Float64(c * i)); elseif (z <= 2.85e-21) tmp = Float64(Float64(x * y) + Float64(a * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (c * i) + (z * t); tmp = 0.0; if (z <= -7.7e+151) tmp = t_1; elseif (z <= -2.35e+58) tmp = (x * y) + (z * t); elseif (z <= -2.2e-219) tmp = (x * y) + (c * i); elseif (z <= 2.85e-21) tmp = (x * y) + (a * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(c * i), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.7e+151], t$95$1, If[LessEqual[z, -2.35e+58], N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.2e-219], N[(N[(x * y), $MachinePrecision] + N[(c * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.85e-21], N[(N[(x * y), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot i + z \cdot t\\
\mathbf{if}\;z \leq -7.7 \cdot 10^{+151}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.35 \cdot 10^{+58}:\\
\;\;\;\;x \cdot y + z \cdot t\\
\mathbf{elif}\;z \leq -2.2 \cdot 10^{-219}:\\
\;\;\;\;x \cdot y + c \cdot i\\
\mathbf{elif}\;z \leq 2.85 \cdot 10^{-21}:\\
\;\;\;\;x \cdot y + a \cdot b\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(if (<= (* c i) -6.5e+71)
(* c i)
(if (<= (* c i) 1.05e-306)
(* z t)
(if (<= (* c i) 7.2e+33) (* 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 ((c * i) <= -6.5e+71) {
tmp = c * i;
} else if ((c * i) <= 1.05e-306) {
tmp = z * t;
} else if ((c * i) <= 7.2e+33) {
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 ((c * i) <= (-6.5d+71)) then
tmp = c * i
else if ((c * i) <= 1.05d-306) then
tmp = z * t
else if ((c * i) <= 7.2d+33) 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 ((c * i) <= -6.5e+71) {
tmp = c * i;
} else if ((c * i) <= 1.05e-306) {
tmp = z * t;
} else if ((c * i) <= 7.2e+33) {
tmp = a * b;
} else {
tmp = c * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (c * i) <= -6.5e+71: tmp = c * i elif (c * i) <= 1.05e-306: tmp = z * t elif (c * i) <= 7.2e+33: tmp = a * b else: tmp = c * i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(c * i) <= -6.5e+71) tmp = Float64(c * i); elseif (Float64(c * i) <= 1.05e-306) tmp = Float64(z * t); elseif (Float64(c * i) <= 7.2e+33) 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 ((c * i) <= -6.5e+71) tmp = c * i; elseif ((c * i) <= 1.05e-306) tmp = z * t; elseif ((c * i) <= 7.2e+33) tmp = a * b; else tmp = c * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(c * i), $MachinePrecision], -6.5e+71], N[(c * i), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], 1.05e-306], N[(z * t), $MachinePrecision], If[LessEqual[N[(c * i), $MachinePrecision], 7.2e+33], N[(a * b), $MachinePrecision], N[(c * i), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \cdot i \leq -6.5 \cdot 10^{+71}:\\
\;\;\;\;c \cdot i\\
\mathbf{elif}\;c \cdot i \leq 1.05 \cdot 10^{-306}:\\
\;\;\;\;z \cdot t\\
\mathbf{elif}\;c \cdot i \leq 7.2 \cdot 10^{+33}:\\
\;\;\;\;a \cdot b\\
\mathbf{else}:\\
\;\;\;\;c \cdot i\\
\end{array}
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= (* c i) -4e+47) (not (<= (* c i) 1.9e+32))) (* c i) (* a b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((c * i) <= -4e+47) || !((c * i) <= 1.9e+32)) {
tmp = c * i;
} 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 (((c * i) <= (-4d+47)) .or. (.not. ((c * i) <= 1.9d+32))) then
tmp = c * i
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 (((c * i) <= -4e+47) || !((c * i) <= 1.9e+32)) {
tmp = c * i;
} else {
tmp = a * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if ((c * i) <= -4e+47) or not ((c * i) <= 1.9e+32): tmp = c * i else: tmp = a * b return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((Float64(c * i) <= -4e+47) || !(Float64(c * i) <= 1.9e+32)) tmp = Float64(c * i); 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 (((c * i) <= -4e+47) || ~(((c * i) <= 1.9e+32))) tmp = c * i; else tmp = a * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[N[(c * i), $MachinePrecision], -4e+47], N[Not[LessEqual[N[(c * i), $MachinePrecision], 1.9e+32]], $MachinePrecision]], N[(c * i), $MachinePrecision], N[(a * b), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \cdot i \leq -4 \cdot 10^{+47} \lor \neg \left(c \cdot i \leq 1.9 \cdot 10^{+32}\right):\\
\;\;\;\;c \cdot i\\
\mathbf{else}:\\
\;\;\;\;a \cdot b\\
\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 2023350
(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)))