\[\begin{array}{l}
\mathbf{if}\;x \cdot y \leq -1 \cdot 10^{+305}:\\
\;\;\;\;\frac{y}{\frac{z}{x}}\\
\mathbf{elif}\;x \cdot y \leq -1 \cdot 10^{-288} \lor \neg \left(x \cdot y \leq 5 \cdot 10^{-314}\right) \land x \cdot y \leq 10^{+127}:\\
\;\;\;\;\frac{x \cdot y}{z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\end{array}
\]
(FPCore (x y z) :precision binary64 (/ (* x y) z))
↓
(FPCore (x y z)
:precision binary64
(if (<= (* x y) -1e+305)
(/ y (/ z x))
(if (or (<= (* x y) -1e-288)
(and (not (<= (* x y) 5e-314)) (<= (* x y) 1e+127)))
(/ (* x y) z)
(* x (/ y z)))))
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x * y) / z
end function
↓
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x * y) <= (-1d+305)) then
tmp = y / (z / x)
else if (((x * y) <= (-1d-288)) .or. (.not. ((x * y) <= 5d-314)) .and. ((x * y) <= 1d+127)) then
tmp = (x * y) / z
else
tmp = x * (y / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
return (x * y) / z;
}
↓
public static double code(double x, double y, double z) {
double tmp;
if ((x * y) <= -1e+305) {
tmp = y / (z / x);
} else if (((x * y) <= -1e-288) || (!((x * y) <= 5e-314) && ((x * y) <= 1e+127))) {
tmp = (x * y) / z;
} else {
tmp = x * (y / z);
}
return tmp;
}
def code(x, y, z):
return (x * y) / z
↓
def code(x, y, z):
tmp = 0
if (x * y) <= -1e+305:
tmp = y / (z / x)
elif ((x * y) <= -1e-288) or (not ((x * y) <= 5e-314) and ((x * y) <= 1e+127)):
tmp = (x * y) / z
else:
tmp = x * (y / z)
return tmp
function code(x, y, z)
return Float64(Float64(x * y) / z)
end
herbie shell --seed 2022340
(FPCore (x y z)
:name "Diagrams.Solve.Tridiagonal:solveCyclicTriDiagonal from diagrams-solve-0.1, A"
:precision binary64
:herbie-target
(if (< z -4.262230790519429e-138) (/ (* x y) z) (if (< z 1.7042130660650472e-164) (/ x (/ z y)) (* (/ x z) y)))
(/ (* x y) z))