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+283)) then
tmp = x - (x / (y / z))
else if ((t_0 <= (-1d+31)) .or. (.not. (t_0 <= 1d+39)) .and. (t_0 <= 1d+266)) then
tmp = t_0
else
tmp = x - (x * (z / y))
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+283) {
tmp = x - (x / (y / z));
} else if ((t_0 <= -1e+31) || (!(t_0 <= 1e+39) && (t_0 <= 1e+266))) {
tmp = t_0;
} else {
tmp = x - (x * (z / y));
}
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+283:
tmp = x - (x / (y / z))
elif (t_0 <= -1e+31) or (not (t_0 <= 1e+39) and (t_0 <= 1e+266)):
tmp = t_0
else:
tmp = x - (x * (z / y))
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)}
\]
distribute-rgt-out-- [<=]96.9
\[ \color{blue}{\frac{y}{y} \cdot x - \frac{z}{y} \cdot x}
\]
*-inverses [=>]96.9
\[ \color{blue}{1} \cdot x - \frac{z}{y} \cdot x
\]
*-lft-identity [=>]96.9
\[ \color{blue}{x} - \frac{z}{y} \cdot x
\]
associate-*l/ [=>]69.1
\[ x - \color{blue}{\frac{z \cdot x}{y}}
\]
*-commutative [<=]69.1
\[ x - \frac{\color{blue}{x \cdot z}}{y}
\]
associate-/l* [=>]97.1
\[ x - \color{blue}{\frac{x}{\frac{y}{z}}}
\]
if -5.0000000000000004e283 < (/.f64 (*.f64 x (-.f64 y z)) y) < -9.9999999999999996e30 or 9.9999999999999994e38 < (/.f64 (*.f64 x (-.f64 y z)) y) < 1e266
Initial program 99.7%
\[\frac{x \cdot \left(y - z\right)}{y}
\]
if -9.9999999999999996e30 < (/.f64 (*.f64 x (-.f64 y z)) y) < 9.9999999999999994e38 or 1e266 < (/.f64 (*.f64 x (-.f64 y z)) y)
herbie shell --seed 2023129
(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))