
(FPCore (x y z t a b c) :precision binary64 (+ (- (+ (* x y) (/ (* z t) 16.0)) (/ (* a b) 4.0)) c))
double code(double x, double y, double z, double t, double a, double b, double c) {
return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c;
}
real(8) function code(x, y, z, t, a, b, c)
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
code = (((x * y) + ((z * t) / 16.0d0)) - ((a * b) / 4.0d0)) + c
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c;
}
def code(x, y, z, t, a, b, c): return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c
function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(x * y) + Float64(Float64(z * t) / 16.0)) - Float64(Float64(a * b) / 4.0)) + c) end
function tmp = code(x, y, z, t, a, b, c) tmp = (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c; end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(x * y), $MachinePrecision] + N[(N[(z * t), $MachinePrecision] / 16.0), $MachinePrecision]), $MachinePrecision] - N[(N[(a * b), $MachinePrecision] / 4.0), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot y + \frac{z \cdot t}{16}\right) - \frac{a \cdot b}{4}\right) + c
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c) :precision binary64 (+ (- (+ (* x y) (/ (* z t) 16.0)) (/ (* a b) 4.0)) c))
double code(double x, double y, double z, double t, double a, double b, double c) {
return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c;
}
real(8) function code(x, y, z, t, a, b, c)
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
code = (((x * y) + ((z * t) / 16.0d0)) - ((a * b) / 4.0d0)) + c
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c;
}
def code(x, y, z, t, a, b, c): return (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c
function code(x, y, z, t, a, b, c) return Float64(Float64(Float64(Float64(x * y) + Float64(Float64(z * t) / 16.0)) - Float64(Float64(a * b) / 4.0)) + c) end
function tmp = code(x, y, z, t, a, b, c) tmp = (((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0)) + c; end
code[x_, y_, z_, t_, a_, b_, c_] := N[(N[(N[(N[(x * y), $MachinePrecision] + N[(N[(z * t), $MachinePrecision] / 16.0), $MachinePrecision]), $MachinePrecision] - N[(N[(a * b), $MachinePrecision] / 4.0), $MachinePrecision]), $MachinePrecision] + c), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x \cdot y + \frac{z \cdot t}{16}\right) - \frac{a \cdot b}{4}\right) + c
\end{array}
(FPCore (x y z t a b c) :precision binary64 (fma x y (fma (/ z 16.0) t (fma (/ a -4.0) b c))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return fma(x, y, fma((z / 16.0), t, fma((a / -4.0), b, c)));
}
function code(x, y, z, t, a, b, c) return fma(x, y, fma(Float64(z / 16.0), t, fma(Float64(a / -4.0), b, c))) end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x * y + N[(N[(z / 16.0), $MachinePrecision] * t + N[(N[(a / -4.0), $MachinePrecision] * b + c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(x, y, \mathsf{fma}\left(\frac{z}{16}, t, \mathsf{fma}\left(\frac{a}{-4}, b, c\right)\right)\right)
\end{array}
(FPCore (x y z t a b c) :precision binary64 (let* ((t_1 (- (+ (* x y) (/ (* z t) 16.0)) (/ (* a b) 4.0)))) (if (<= t_1 INFINITY) (+ c t_1) (+ c (* a (* b -0.25))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = c + t_1;
} else {
tmp = c + (a * (b * -0.25));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0);
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = c + t_1;
} else {
tmp = c + (a * (b * -0.25));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0) tmp = 0 if t_1 <= math.inf: tmp = c + t_1 else: tmp = c + (a * (b * -0.25)) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(x * y) + Float64(Float64(z * t) / 16.0)) - Float64(Float64(a * b) / 4.0)) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(c + t_1); else tmp = Float64(c + Float64(a * Float64(b * -0.25))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((x * y) + ((z * t) / 16.0)) - ((a * b) / 4.0); tmp = 0.0; if (t_1 <= Inf) tmp = c + t_1; else tmp = c + (a * (b * -0.25)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(x * y), $MachinePrecision] + N[(N[(z * t), $MachinePrecision] / 16.0), $MachinePrecision]), $MachinePrecision] - N[(N[(a * b), $MachinePrecision] / 4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(c + t$95$1), $MachinePrecision], N[(c + N[(a * N[(b * -0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot y + \frac{z \cdot t}{16}\right) - \frac{a \cdot b}{4}\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;c + t_1\\
\mathbf{else}:\\
\;\;\;\;c + a \cdot \left(b \cdot -0.25\right)\\
\end{array}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (+ c (* (* z t) 0.0625))) (t_2 (- (* x y) (* (* a b) 0.25))))
(if (<= (* x y) -2.9e+112)
t_2
(if (<= (* x y) -5e-102)
t_1
(if (<= (* x y) -5e-252)
(+ c (* a (* b -0.25)))
(if (<= (* x y) 1.35e-63) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = c + ((z * t) * 0.0625);
double t_2 = (x * y) - ((a * b) * 0.25);
double tmp;
if ((x * y) <= -2.9e+112) {
tmp = t_2;
} else if ((x * y) <= -5e-102) {
tmp = t_1;
} else if ((x * y) <= -5e-252) {
tmp = c + (a * (b * -0.25));
} else if ((x * y) <= 1.35e-63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c + ((z * t) * 0.0625d0)
t_2 = (x * y) - ((a * b) * 0.25d0)
if ((x * y) <= (-2.9d+112)) then
tmp = t_2
else if ((x * y) <= (-5d-102)) then
tmp = t_1
else if ((x * y) <= (-5d-252)) then
tmp = c + (a * (b * (-0.25d0)))
else if ((x * y) <= 1.35d-63) then
tmp = 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 t_1 = c + ((z * t) * 0.0625);
double t_2 = (x * y) - ((a * b) * 0.25);
double tmp;
if ((x * y) <= -2.9e+112) {
tmp = t_2;
} else if ((x * y) <= -5e-102) {
tmp = t_1;
} else if ((x * y) <= -5e-252) {
tmp = c + (a * (b * -0.25));
} else if ((x * y) <= 1.35e-63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = c + ((z * t) * 0.0625) t_2 = (x * y) - ((a * b) * 0.25) tmp = 0 if (x * y) <= -2.9e+112: tmp = t_2 elif (x * y) <= -5e-102: tmp = t_1 elif (x * y) <= -5e-252: tmp = c + (a * (b * -0.25)) elif (x * y) <= 1.35e-63: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(c + Float64(Float64(z * t) * 0.0625)) t_2 = Float64(Float64(x * y) - Float64(Float64(a * b) * 0.25)) tmp = 0.0 if (Float64(x * y) <= -2.9e+112) tmp = t_2; elseif (Float64(x * y) <= -5e-102) tmp = t_1; elseif (Float64(x * y) <= -5e-252) tmp = Float64(c + Float64(a * Float64(b * -0.25))); elseif (Float64(x * y) <= 1.35e-63) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = c + ((z * t) * 0.0625); t_2 = (x * y) - ((a * b) * 0.25); tmp = 0.0; if ((x * y) <= -2.9e+112) tmp = t_2; elseif ((x * y) <= -5e-102) tmp = t_1; elseif ((x * y) <= -5e-252) tmp = c + (a * (b * -0.25)); elseif ((x * y) <= 1.35e-63) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(c + N[(N[(z * t), $MachinePrecision] * 0.0625), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(N[(a * b), $MachinePrecision] * 0.25), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x * y), $MachinePrecision], -2.9e+112], t$95$2, If[LessEqual[N[(x * y), $MachinePrecision], -5e-102], t$95$1, If[LessEqual[N[(x * y), $MachinePrecision], -5e-252], N[(c + N[(a * N[(b * -0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 1.35e-63], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c + \left(z \cdot t\right) \cdot 0.0625\\
t_2 := x \cdot y - \left(a \cdot b\right) \cdot 0.25\\
\mathbf{if}\;x \cdot y \leq -2.9 \cdot 10^{+112}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \cdot y \leq -5 \cdot 10^{-102}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \cdot y \leq -5 \cdot 10^{-252}:\\
\;\;\;\;c + a \cdot \left(b \cdot -0.25\right)\\
\mathbf{elif}\;x \cdot y \leq 1.35 \cdot 10^{-63}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(if (<= (* x y) -5.6e+110)
(* x y)
(if (<= (* x y) -8.8e-113)
c
(if (<= (* x y) -1.25e-225)
(* a (* b -0.25))
(if (<= (* x y) 2.3e-125)
(* z (* t 0.0625))
(if (<= (* x y) 4.5e+34) c (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((x * y) <= -5.6e+110) {
tmp = x * y;
} else if ((x * y) <= -8.8e-113) {
tmp = c;
} else if ((x * y) <= -1.25e-225) {
tmp = a * (b * -0.25);
} else if ((x * y) <= 2.3e-125) {
tmp = z * (t * 0.0625);
} else if ((x * y) <= 4.5e+34) {
tmp = c;
} else {
tmp = x * y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((x * y) <= (-5.6d+110)) then
tmp = x * y
else if ((x * y) <= (-8.8d-113)) then
tmp = c
else if ((x * y) <= (-1.25d-225)) then
tmp = a * (b * (-0.25d0))
else if ((x * y) <= 2.3d-125) then
tmp = z * (t * 0.0625d0)
else if ((x * y) <= 4.5d+34) then
tmp = c
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 tmp;
if ((x * y) <= -5.6e+110) {
tmp = x * y;
} else if ((x * y) <= -8.8e-113) {
tmp = c;
} else if ((x * y) <= -1.25e-225) {
tmp = a * (b * -0.25);
} else if ((x * y) <= 2.3e-125) {
tmp = z * (t * 0.0625);
} else if ((x * y) <= 4.5e+34) {
tmp = c;
} else {
tmp = x * y;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (x * y) <= -5.6e+110: tmp = x * y elif (x * y) <= -8.8e-113: tmp = c elif (x * y) <= -1.25e-225: tmp = a * (b * -0.25) elif (x * y) <= 2.3e-125: tmp = z * (t * 0.0625) elif (x * y) <= 4.5e+34: tmp = c else: tmp = x * y return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(x * y) <= -5.6e+110) tmp = Float64(x * y); elseif (Float64(x * y) <= -8.8e-113) tmp = c; elseif (Float64(x * y) <= -1.25e-225) tmp = Float64(a * Float64(b * -0.25)); elseif (Float64(x * y) <= 2.3e-125) tmp = Float64(z * Float64(t * 0.0625)); elseif (Float64(x * y) <= 4.5e+34) tmp = c; else tmp = Float64(x * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((x * y) <= -5.6e+110) tmp = x * y; elseif ((x * y) <= -8.8e-113) tmp = c; elseif ((x * y) <= -1.25e-225) tmp = a * (b * -0.25); elseif ((x * y) <= 2.3e-125) tmp = z * (t * 0.0625); elseif ((x * y) <= 4.5e+34) tmp = c; else tmp = x * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(x * y), $MachinePrecision], -5.6e+110], N[(x * y), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], -8.8e-113], c, If[LessEqual[N[(x * y), $MachinePrecision], -1.25e-225], N[(a * N[(b * -0.25), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 2.3e-125], N[(z * N[(t * 0.0625), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 4.5e+34], c, N[(x * y), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -5.6 \cdot 10^{+110}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \cdot y \leq -8.8 \cdot 10^{-113}:\\
\;\;\;\;c\\
\mathbf{elif}\;x \cdot y \leq -1.25 \cdot 10^{-225}:\\
\;\;\;\;a \cdot \left(b \cdot -0.25\right)\\
\mathbf{elif}\;x \cdot y \leq 2.3 \cdot 10^{-125}:\\
\;\;\;\;z \cdot \left(t \cdot 0.0625\right)\\
\mathbf{elif}\;x \cdot y \leq 4.5 \cdot 10^{+34}:\\
\;\;\;\;c\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (+ c (* (* z t) 0.0625))) (t_2 (+ c (* x y))))
(if (<= (* x y) -3.4e+112)
t_2
(if (<= (* x y) -1.45e-113)
t_1
(if (<= (* x y) -3.4e-188)
(* a (* b -0.25))
(if (<= (* x y) 3.5e-50) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = c + ((z * t) * 0.0625);
double t_2 = c + (x * y);
double tmp;
if ((x * y) <= -3.4e+112) {
tmp = t_2;
} else if ((x * y) <= -1.45e-113) {
tmp = t_1;
} else if ((x * y) <= -3.4e-188) {
tmp = a * (b * -0.25);
} else if ((x * y) <= 3.5e-50) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c + ((z * t) * 0.0625d0)
t_2 = c + (x * y)
if ((x * y) <= (-3.4d+112)) then
tmp = t_2
else if ((x * y) <= (-1.45d-113)) then
tmp = t_1
else if ((x * y) <= (-3.4d-188)) then
tmp = a * (b * (-0.25d0))
else if ((x * y) <= 3.5d-50) then
tmp = 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 t_1 = c + ((z * t) * 0.0625);
double t_2 = c + (x * y);
double tmp;
if ((x * y) <= -3.4e+112) {
tmp = t_2;
} else if ((x * y) <= -1.45e-113) {
tmp = t_1;
} else if ((x * y) <= -3.4e-188) {
tmp = a * (b * -0.25);
} else if ((x * y) <= 3.5e-50) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = c + ((z * t) * 0.0625) t_2 = c + (x * y) tmp = 0 if (x * y) <= -3.4e+112: tmp = t_2 elif (x * y) <= -1.45e-113: tmp = t_1 elif (x * y) <= -3.4e-188: tmp = a * (b * -0.25) elif (x * y) <= 3.5e-50: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(c + Float64(Float64(z * t) * 0.0625)) t_2 = Float64(c + Float64(x * y)) tmp = 0.0 if (Float64(x * y) <= -3.4e+112) tmp = t_2; elseif (Float64(x * y) <= -1.45e-113) tmp = t_1; elseif (Float64(x * y) <= -3.4e-188) tmp = Float64(a * Float64(b * -0.25)); elseif (Float64(x * y) <= 3.5e-50) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = c + ((z * t) * 0.0625); t_2 = c + (x * y); tmp = 0.0; if ((x * y) <= -3.4e+112) tmp = t_2; elseif ((x * y) <= -1.45e-113) tmp = t_1; elseif ((x * y) <= -3.4e-188) tmp = a * (b * -0.25); elseif ((x * y) <= 3.5e-50) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(c + N[(N[(z * t), $MachinePrecision] * 0.0625), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c + N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(x * y), $MachinePrecision], -3.4e+112], t$95$2, If[LessEqual[N[(x * y), $MachinePrecision], -1.45e-113], t$95$1, If[LessEqual[N[(x * y), $MachinePrecision], -3.4e-188], N[(a * N[(b * -0.25), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 3.5e-50], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c + \left(z \cdot t\right) \cdot 0.0625\\
t_2 := c + x \cdot y\\
\mathbf{if}\;x \cdot y \leq -3.4 \cdot 10^{+112}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \cdot y \leq -1.45 \cdot 10^{-113}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \cdot y \leq -3.4 \cdot 10^{-188}:\\
\;\;\;\;a \cdot \left(b \cdot -0.25\right)\\
\mathbf{elif}\;x \cdot y \leq 3.5 \cdot 10^{-50}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* (* a b) 0.25)) (t_2 (* (* z t) 0.0625)))
(if (<= (* a b) -5e+20)
(- (+ c (* x y)) t_1)
(if (<= (* a b) 2e+157) (+ c (+ (* x y) t_2)) (- (+ c t_2) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (a * b) * 0.25;
double t_2 = (z * t) * 0.0625;
double tmp;
if ((a * b) <= -5e+20) {
tmp = (c + (x * y)) - t_1;
} else if ((a * b) <= 2e+157) {
tmp = c + ((x * y) + t_2);
} else {
tmp = (c + t_2) - t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (a * b) * 0.25d0
t_2 = (z * t) * 0.0625d0
if ((a * b) <= (-5d+20)) then
tmp = (c + (x * y)) - t_1
else if ((a * b) <= 2d+157) then
tmp = c + ((x * y) + t_2)
else
tmp = (c + t_2) - 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 t_1 = (a * b) * 0.25;
double t_2 = (z * t) * 0.0625;
double tmp;
if ((a * b) <= -5e+20) {
tmp = (c + (x * y)) - t_1;
} else if ((a * b) <= 2e+157) {
tmp = c + ((x * y) + t_2);
} else {
tmp = (c + t_2) - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (a * b) * 0.25 t_2 = (z * t) * 0.0625 tmp = 0 if (a * b) <= -5e+20: tmp = (c + (x * y)) - t_1 elif (a * b) <= 2e+157: tmp = c + ((x * y) + t_2) else: tmp = (c + t_2) - t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(a * b) * 0.25) t_2 = Float64(Float64(z * t) * 0.0625) tmp = 0.0 if (Float64(a * b) <= -5e+20) tmp = Float64(Float64(c + Float64(x * y)) - t_1); elseif (Float64(a * b) <= 2e+157) tmp = Float64(c + Float64(Float64(x * y) + t_2)); else tmp = Float64(Float64(c + t_2) - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (a * b) * 0.25; t_2 = (z * t) * 0.0625; tmp = 0.0; if ((a * b) <= -5e+20) tmp = (c + (x * y)) - t_1; elseif ((a * b) <= 2e+157) tmp = c + ((x * y) + t_2); else tmp = (c + t_2) - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] * 0.25), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * t), $MachinePrecision] * 0.0625), $MachinePrecision]}, If[LessEqual[N[(a * b), $MachinePrecision], -5e+20], N[(N[(c + N[(x * y), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 2e+157], N[(c + N[(N[(x * y), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision], N[(N[(c + t$95$2), $MachinePrecision] - t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot b\right) \cdot 0.25\\
t_2 := \left(z \cdot t\right) \cdot 0.0625\\
\mathbf{if}\;a \cdot b \leq -5 \cdot 10^{+20}:\\
\;\;\;\;\left(c + x \cdot y\right) - t_1\\
\mathbf{elif}\;a \cdot b \leq 2 \cdot 10^{+157}:\\
\;\;\;\;c + \left(x \cdot y + t_2\right)\\
\mathbf{else}:\\
\;\;\;\;\left(c + t_2\right) - t_1\\
\end{array}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(if (<= (* x y) -1.6e+110)
(* x y)
(if (<= (* x y) -9e-113)
c
(if (<= (* x y) -7.5e-228)
(* a (* b -0.25))
(if (<= (* x y) 1e+35) c (* x y))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((x * y) <= -1.6e+110) {
tmp = x * y;
} else if ((x * y) <= -9e-113) {
tmp = c;
} else if ((x * y) <= -7.5e-228) {
tmp = a * (b * -0.25);
} else if ((x * y) <= 1e+35) {
tmp = c;
} else {
tmp = x * y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((x * y) <= (-1.6d+110)) then
tmp = x * y
else if ((x * y) <= (-9d-113)) then
tmp = c
else if ((x * y) <= (-7.5d-228)) then
tmp = a * (b * (-0.25d0))
else if ((x * y) <= 1d+35) then
tmp = c
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 tmp;
if ((x * y) <= -1.6e+110) {
tmp = x * y;
} else if ((x * y) <= -9e-113) {
tmp = c;
} else if ((x * y) <= -7.5e-228) {
tmp = a * (b * -0.25);
} else if ((x * y) <= 1e+35) {
tmp = c;
} else {
tmp = x * y;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (x * y) <= -1.6e+110: tmp = x * y elif (x * y) <= -9e-113: tmp = c elif (x * y) <= -7.5e-228: tmp = a * (b * -0.25) elif (x * y) <= 1e+35: tmp = c else: tmp = x * y return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(x * y) <= -1.6e+110) tmp = Float64(x * y); elseif (Float64(x * y) <= -9e-113) tmp = c; elseif (Float64(x * y) <= -7.5e-228) tmp = Float64(a * Float64(b * -0.25)); elseif (Float64(x * y) <= 1e+35) tmp = c; else tmp = Float64(x * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((x * y) <= -1.6e+110) tmp = x * y; elseif ((x * y) <= -9e-113) tmp = c; elseif ((x * y) <= -7.5e-228) tmp = a * (b * -0.25); elseif ((x * y) <= 1e+35) tmp = c; else tmp = x * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(x * y), $MachinePrecision], -1.6e+110], N[(x * y), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], -9e-113], c, If[LessEqual[N[(x * y), $MachinePrecision], -7.5e-228], N[(a * N[(b * -0.25), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 1e+35], c, N[(x * y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -1.6 \cdot 10^{+110}:\\
\;\;\;\;x \cdot y\\
\mathbf{elif}\;x \cdot y \leq -9 \cdot 10^{-113}:\\
\;\;\;\;c\\
\mathbf{elif}\;x \cdot y \leq -7.5 \cdot 10^{-228}:\\
\;\;\;\;a \cdot \left(b \cdot -0.25\right)\\
\mathbf{elif}\;x \cdot y \leq 10^{+35}:\\
\;\;\;\;c\\
\mathbf{else}:\\
\;\;\;\;x \cdot y\\
\end{array}
\end{array}
(FPCore (x y z t a b c) :precision binary64 (if (or (<= (* a b) -2e+62) (not (<= (* a b) 1e+166))) (+ c (* a (* b -0.25))) (+ c (+ (* x y) (* (* z t) 0.0625)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (((a * b) <= -2e+62) || !((a * b) <= 1e+166)) {
tmp = c + (a * (b * -0.25));
} else {
tmp = c + ((x * y) + ((z * t) * 0.0625));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if (((a * b) <= (-2d+62)) .or. (.not. ((a * b) <= 1d+166))) then
tmp = c + (a * (b * (-0.25d0)))
else
tmp = c + ((x * y) + ((z * t) * 0.0625d0))
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 tmp;
if (((a * b) <= -2e+62) || !((a * b) <= 1e+166)) {
tmp = c + (a * (b * -0.25));
} else {
tmp = c + ((x * y) + ((z * t) * 0.0625));
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if ((a * b) <= -2e+62) or not ((a * b) <= 1e+166): tmp = c + (a * (b * -0.25)) else: tmp = c + ((x * y) + ((z * t) * 0.0625)) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((Float64(a * b) <= -2e+62) || !(Float64(a * b) <= 1e+166)) tmp = Float64(c + Float64(a * Float64(b * -0.25))); else tmp = Float64(c + Float64(Float64(x * y) + Float64(Float64(z * t) * 0.0625))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (((a * b) <= -2e+62) || ~(((a * b) <= 1e+166))) tmp = c + (a * (b * -0.25)); else tmp = c + ((x * y) + ((z * t) * 0.0625)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[N[(a * b), $MachinePrecision], -2e+62], N[Not[LessEqual[N[(a * b), $MachinePrecision], 1e+166]], $MachinePrecision]], N[(c + N[(a * N[(b * -0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c + N[(N[(x * y), $MachinePrecision] + N[(N[(z * t), $MachinePrecision] * 0.0625), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot b \leq -2 \cdot 10^{+62} \lor \neg \left(a \cdot b \leq 10^{+166}\right):\\
\;\;\;\;c + a \cdot \left(b \cdot -0.25\right)\\
\mathbf{else}:\\
\;\;\;\;c + \left(x \cdot y + \left(z \cdot t\right) \cdot 0.0625\right)\\
\end{array}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* (* z t) 0.0625)))
(if (<= (* a b) -2e+62)
(+ c (* a (* b -0.25)))
(if (<= (* a b) 1e+167) (+ c (+ (* x y) t_1)) (- t_1 (* (* a b) 0.25))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (z * t) * 0.0625;
double tmp;
if ((a * b) <= -2e+62) {
tmp = c + (a * (b * -0.25));
} else if ((a * b) <= 1e+167) {
tmp = c + ((x * y) + t_1);
} else {
tmp = t_1 - ((a * b) * 0.25);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: tmp
t_1 = (z * t) * 0.0625d0
if ((a * b) <= (-2d+62)) then
tmp = c + (a * (b * (-0.25d0)))
else if ((a * b) <= 1d+167) then
tmp = c + ((x * y) + t_1)
else
tmp = t_1 - ((a * b) * 0.25d0)
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 t_1 = (z * t) * 0.0625;
double tmp;
if ((a * b) <= -2e+62) {
tmp = c + (a * (b * -0.25));
} else if ((a * b) <= 1e+167) {
tmp = c + ((x * y) + t_1);
} else {
tmp = t_1 - ((a * b) * 0.25);
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (z * t) * 0.0625 tmp = 0 if (a * b) <= -2e+62: tmp = c + (a * (b * -0.25)) elif (a * b) <= 1e+167: tmp = c + ((x * y) + t_1) else: tmp = t_1 - ((a * b) * 0.25) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(z * t) * 0.0625) tmp = 0.0 if (Float64(a * b) <= -2e+62) tmp = Float64(c + Float64(a * Float64(b * -0.25))); elseif (Float64(a * b) <= 1e+167) tmp = Float64(c + Float64(Float64(x * y) + t_1)); else tmp = Float64(t_1 - Float64(Float64(a * b) * 0.25)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (z * t) * 0.0625; tmp = 0.0; if ((a * b) <= -2e+62) tmp = c + (a * (b * -0.25)); elseif ((a * b) <= 1e+167) tmp = c + ((x * y) + t_1); else tmp = t_1 - ((a * b) * 0.25); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(z * t), $MachinePrecision] * 0.0625), $MachinePrecision]}, If[LessEqual[N[(a * b), $MachinePrecision], -2e+62], N[(c + N[(a * N[(b * -0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 1e+167], N[(c + N[(N[(x * y), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - N[(N[(a * b), $MachinePrecision] * 0.25), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot t\right) \cdot 0.0625\\
\mathbf{if}\;a \cdot b \leq -2 \cdot 10^{+62}:\\
\;\;\;\;c + a \cdot \left(b \cdot -0.25\right)\\
\mathbf{elif}\;a \cdot b \leq 10^{+167}:\\
\;\;\;\;c + \left(x \cdot y + t_1\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 - \left(a \cdot b\right) \cdot 0.25\\
\end{array}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* (* a b) 0.25)) (t_2 (* (* z t) 0.0625)))
(if (<= (* a b) -5e+20)
(- (+ c (* x y)) t_1)
(if (<= (* a b) 1e+167) (+ c (+ (* x y) t_2)) (- t_2 t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = (a * b) * 0.25;
double t_2 = (z * t) * 0.0625;
double tmp;
if ((a * b) <= -5e+20) {
tmp = (c + (x * y)) - t_1;
} else if ((a * b) <= 1e+167) {
tmp = c + ((x * y) + t_2);
} else {
tmp = t_2 - t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (a * b) * 0.25d0
t_2 = (z * t) * 0.0625d0
if ((a * b) <= (-5d+20)) then
tmp = (c + (x * y)) - t_1
else if ((a * b) <= 1d+167) then
tmp = c + ((x * y) + t_2)
else
tmp = t_2 - 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 t_1 = (a * b) * 0.25;
double t_2 = (z * t) * 0.0625;
double tmp;
if ((a * b) <= -5e+20) {
tmp = (c + (x * y)) - t_1;
} else if ((a * b) <= 1e+167) {
tmp = c + ((x * y) + t_2);
} else {
tmp = t_2 - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = (a * b) * 0.25 t_2 = (z * t) * 0.0625 tmp = 0 if (a * b) <= -5e+20: tmp = (c + (x * y)) - t_1 elif (a * b) <= 1e+167: tmp = c + ((x * y) + t_2) else: tmp = t_2 - t_1 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(a * b) * 0.25) t_2 = Float64(Float64(z * t) * 0.0625) tmp = 0.0 if (Float64(a * b) <= -5e+20) tmp = Float64(Float64(c + Float64(x * y)) - t_1); elseif (Float64(a * b) <= 1e+167) tmp = Float64(c + Float64(Float64(x * y) + t_2)); else tmp = Float64(t_2 - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = (a * b) * 0.25; t_2 = (z * t) * 0.0625; tmp = 0.0; if ((a * b) <= -5e+20) tmp = (c + (x * y)) - t_1; elseif ((a * b) <= 1e+167) tmp = c + ((x * y) + t_2); else tmp = t_2 - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] * 0.25), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * t), $MachinePrecision] * 0.0625), $MachinePrecision]}, If[LessEqual[N[(a * b), $MachinePrecision], -5e+20], N[(N[(c + N[(x * y), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[N[(a * b), $MachinePrecision], 1e+167], N[(c + N[(N[(x * y), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision], N[(t$95$2 - t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot b\right) \cdot 0.25\\
t_2 := \left(z \cdot t\right) \cdot 0.0625\\
\mathbf{if}\;a \cdot b \leq -5 \cdot 10^{+20}:\\
\;\;\;\;\left(c + x \cdot y\right) - t_1\\
\mathbf{elif}\;a \cdot b \leq 10^{+167}:\\
\;\;\;\;c + \left(x \cdot y + t_2\right)\\
\mathbf{else}:\\
\;\;\;\;t_2 - t_1\\
\end{array}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (+ c (* a (* b -0.25))))
(t_2 (+ c (* x y)))
(t_3 (+ c (* (* z t) 0.0625))))
(if (<= x -6.5e+122)
t_2
(if (<= x -2.3e-60)
t_1
(if (<= x -1.1e-141)
t_3
(if (<= x -1.6e-194) t_1 (if (<= x 3.2e-142) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = c + (a * (b * -0.25));
double t_2 = c + (x * y);
double t_3 = c + ((z * t) * 0.0625);
double tmp;
if (x <= -6.5e+122) {
tmp = t_2;
} else if (x <= -2.3e-60) {
tmp = t_1;
} else if (x <= -1.1e-141) {
tmp = t_3;
} else if (x <= -1.6e-194) {
tmp = t_1;
} else if (x <= 3.2e-142) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = c + (a * (b * (-0.25d0)))
t_2 = c + (x * y)
t_3 = c + ((z * t) * 0.0625d0)
if (x <= (-6.5d+122)) then
tmp = t_2
else if (x <= (-2.3d-60)) then
tmp = t_1
else if (x <= (-1.1d-141)) then
tmp = t_3
else if (x <= (-1.6d-194)) then
tmp = t_1
else if (x <= 3.2d-142) then
tmp = t_3
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 t_1 = c + (a * (b * -0.25));
double t_2 = c + (x * y);
double t_3 = c + ((z * t) * 0.0625);
double tmp;
if (x <= -6.5e+122) {
tmp = t_2;
} else if (x <= -2.3e-60) {
tmp = t_1;
} else if (x <= -1.1e-141) {
tmp = t_3;
} else if (x <= -1.6e-194) {
tmp = t_1;
} else if (x <= 3.2e-142) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = c + (a * (b * -0.25)) t_2 = c + (x * y) t_3 = c + ((z * t) * 0.0625) tmp = 0 if x <= -6.5e+122: tmp = t_2 elif x <= -2.3e-60: tmp = t_1 elif x <= -1.1e-141: tmp = t_3 elif x <= -1.6e-194: tmp = t_1 elif x <= 3.2e-142: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(c + Float64(a * Float64(b * -0.25))) t_2 = Float64(c + Float64(x * y)) t_3 = Float64(c + Float64(Float64(z * t) * 0.0625)) tmp = 0.0 if (x <= -6.5e+122) tmp = t_2; elseif (x <= -2.3e-60) tmp = t_1; elseif (x <= -1.1e-141) tmp = t_3; elseif (x <= -1.6e-194) tmp = t_1; elseif (x <= 3.2e-142) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = c + (a * (b * -0.25)); t_2 = c + (x * y); t_3 = c + ((z * t) * 0.0625); tmp = 0.0; if (x <= -6.5e+122) tmp = t_2; elseif (x <= -2.3e-60) tmp = t_1; elseif (x <= -1.1e-141) tmp = t_3; elseif (x <= -1.6e-194) tmp = t_1; elseif (x <= 3.2e-142) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(c + N[(a * N[(b * -0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c + N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c + N[(N[(z * t), $MachinePrecision] * 0.0625), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.5e+122], t$95$2, If[LessEqual[x, -2.3e-60], t$95$1, If[LessEqual[x, -1.1e-141], t$95$3, If[LessEqual[x, -1.6e-194], t$95$1, If[LessEqual[x, 3.2e-142], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c + a \cdot \left(b \cdot -0.25\right)\\
t_2 := c + x \cdot y\\
t_3 := c + \left(z \cdot t\right) \cdot 0.0625\\
\mathbf{if}\;x \leq -6.5 \cdot 10^{+122}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{-60}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.1 \cdot 10^{-141}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{-194}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-142}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
(FPCore (x y z t a b c) :precision binary64 (if (or (<= (* x y) -2.1e+110) (not (<= (* x y) 1.25e+32))) (* x y) c))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (((x * y) <= -2.1e+110) || !((x * y) <= 1.25e+32)) {
tmp = x * y;
} else {
tmp = c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if (((x * y) <= (-2.1d+110)) .or. (.not. ((x * y) <= 1.25d+32))) then
tmp = x * y
else
tmp = c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (((x * y) <= -2.1e+110) || !((x * y) <= 1.25e+32)) {
tmp = x * y;
} else {
tmp = c;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if ((x * y) <= -2.1e+110) or not ((x * y) <= 1.25e+32): tmp = x * y else: tmp = c return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((Float64(x * y) <= -2.1e+110) || !(Float64(x * y) <= 1.25e+32)) tmp = Float64(x * y); else tmp = c; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if (((x * y) <= -2.1e+110) || ~(((x * y) <= 1.25e+32))) tmp = x * y; else tmp = c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[N[(x * y), $MachinePrecision], -2.1e+110], N[Not[LessEqual[N[(x * y), $MachinePrecision], 1.25e+32]], $MachinePrecision]], N[(x * y), $MachinePrecision], c]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -2.1 \cdot 10^{+110} \lor \neg \left(x \cdot y \leq 1.25 \cdot 10^{+32}\right):\\
\;\;\;\;x \cdot y\\
\mathbf{else}:\\
\;\;\;\;c\\
\end{array}
\end{array}
(FPCore (x y z t a b c) :precision binary64 (if (or (<= a -3.6e+190) (not (<= a 6.5e-82))) (* a (* b -0.25)) (+ c (* x y))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((a <= -3.6e+190) || !(a <= 6.5e-82)) {
tmp = a * (b * -0.25);
} else {
tmp = c + (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((a <= (-3.6d+190)) .or. (.not. (a <= 6.5d-82))) then
tmp = a * (b * (-0.25d0))
else
tmp = c + (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 tmp;
if ((a <= -3.6e+190) || !(a <= 6.5e-82)) {
tmp = a * (b * -0.25);
} else {
tmp = c + (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (a <= -3.6e+190) or not (a <= 6.5e-82): tmp = a * (b * -0.25) else: tmp = c + (x * y) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if ((a <= -3.6e+190) || !(a <= 6.5e-82)) tmp = Float64(a * Float64(b * -0.25)); else tmp = Float64(c + Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((a <= -3.6e+190) || ~((a <= 6.5e-82))) tmp = a * (b * -0.25); else tmp = c + (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[Or[LessEqual[a, -3.6e+190], N[Not[LessEqual[a, 6.5e-82]], $MachinePrecision]], N[(a * N[(b * -0.25), $MachinePrecision]), $MachinePrecision], N[(c + N[(x * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.6 \cdot 10^{+190} \lor \neg \left(a \leq 6.5 \cdot 10^{-82}\right):\\
\;\;\;\;a \cdot \left(b \cdot -0.25\right)\\
\mathbf{else}:\\
\;\;\;\;c + x \cdot y\\
\end{array}
\end{array}
(FPCore (x y z t a b c) :precision binary64 c)
double code(double x, double y, double z, double t, double a, double b, double c) {
return c;
}
real(8) function code(x, y, z, t, a, b, c)
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
code = c
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return c;
}
def code(x, y, z, t, a, b, c): return c
function code(x, y, z, t, a, b, c) return c end
function tmp = code(x, y, z, t, a, b, c) tmp = c; end
code[x_, y_, z_, t_, a_, b_, c_] := c
\begin{array}{l}
\\
c
\end{array}
herbie shell --seed 2023350
(FPCore (x y z t a b c)
:name "Diagrams.Solve.Polynomial:quartForm from diagrams-solve-0.1, C"
:precision binary64
(+ (- (+ (* x y) (/ (* z t) 16.0)) (/ (* a b) 4.0)) c))