double code(double x, double y, double z) {
double t_0 = (x * (y - z)) / y;
double tmp;
if (t_0 <= -5e+289) {
tmp = x * (1.0 - (z / y));
} else if (t_0 <= -4e-81) {
tmp = t_0;
} else if (t_0 <= 4e+70) {
tmp = x / (y / (y - z));
} else if (t_0 <= 5e+282) {
tmp = t_0;
} else {
tmp = x;
}
return tmp;
}
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)) / y
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) :: t_0
real(8) :: tmp
t_0 = (x * (y - z)) / y
if (t_0 <= (-5d+289)) then
tmp = x * (1.0d0 - (z / y))
else if (t_0 <= (-4d-81)) then
tmp = t_0
else if (t_0 <= 4d+70) then
tmp = x / (y / (y - z))
else if (t_0 <= 5d+282) then
tmp = t_0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
return (x * (y - z)) / y;
}
↓
public static double code(double x, double y, double z) {
double t_0 = (x * (y - z)) / y;
double tmp;
if (t_0 <= -5e+289) {
tmp = x * (1.0 - (z / y));
} else if (t_0 <= -4e-81) {
tmp = t_0;
} else if (t_0 <= 4e+70) {
tmp = x / (y / (y - z));
} else if (t_0 <= 5e+282) {
tmp = t_0;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z):
return (x * (y - z)) / y
↓
def code(x, y, z):
t_0 = (x * (y - z)) / y
tmp = 0
if t_0 <= -5e+289:
tmp = x * (1.0 - (z / y))
elif t_0 <= -4e-81:
tmp = t_0
elif t_0 <= 4e+70:
tmp = x / (y / (y - z))
elif t_0 <= 5e+282:
tmp = t_0
else:
tmp = x
return tmp
function code(x, y, z)
return Float64(Float64(x * Float64(y - z)) / y)
end
\[ x \cdot \color{blue}{\left(\frac{y}{y} - \frac{z}{y}\right)}
\]
*-inverses [=>]2.18
\[ x \cdot \left(\color{blue}{1} - \frac{z}{y}\right)
\]
if -5.00000000000000031e289 < (/.f64 (*.f64 x (-.f64 y z)) y) < -3.9999999999999998e-81 or 4.00000000000000029e70 < (/.f64 (*.f64 x (-.f64 y z)) y) < 4.99999999999999978e282
Initial program 0.37
\[\frac{x \cdot \left(y - z\right)}{y}
\]
if -3.9999999999999998e-81 < (/.f64 (*.f64 x (-.f64 y z)) y) < 4.00000000000000029e70
herbie shell --seed 2023090
(FPCore (x y z)
:name "Diagrams.Backend.Cairo.Internal:setTexture from diagrams-cairo-1.3.0.3"
:precision binary64
:herbie-target
(if (< z -2.060202331921739e+104) (- x (/ (* z x) y)) (if (< z 1.6939766013828526e+213) (/ x (/ y (- y z))) (* (- y z) (/ x y))))
(/ (* x (- y z)) y))