real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = sqrt(((((x * x) + (y * y)) + (z * z)) / 3.0d0))
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) :: t_1
real(8) :: tmp
t_0 = 0.3333333333333333d0 * (z / sqrt(0.3333333333333333d0))
t_1 = sqrt(((((x * x) + (y * y)) + (z * z)) / 3.0d0))
if (x <= (-1.3d+134)) then
tmp = (x / sqrt(0.3333333333333333d0)) * (-0.3333333333333333d0)
else if (x <= (-1.7d+16)) then
tmp = t_1
else if (x <= (-2.8d-35)) then
tmp = t_0
else if (x <= (-1.9d-64)) then
tmp = t_1
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
return Math.sqrt(((((x * x) + (y * y)) + (z * z)) / 3.0));
}
\[\sqrt{\frac{\left(x \cdot x + y \cdot y\right) + z \cdot z}{3}}
\]
Applied egg-rr64.0
\[\leadsto \color{blue}{\frac{1}{\sqrt{\frac{x \cdot x + \left(y \cdot y + z \cdot z\right)}{3}}} \cdot \sqrt{\frac{x \cdot x + \left(y \cdot y + z \cdot z\right)}{3} \cdot \frac{x \cdot x + \left(y \cdot y + z \cdot z\right)}{3}}}
\]
if -1.3000000000000001e134 < x < -1.7e16 or -2.8e-35 < x < -1.9000000000000001e-64
Initial program 18.1
\[\sqrt{\frac{\left(x \cdot x + y \cdot y\right) + z \cdot z}{3}}
\]
if -1.7e16 < x < -2.8e-35 or -1.9000000000000001e-64 < x
Initial program 30.1
\[\sqrt{\frac{\left(x \cdot x + y \cdot y\right) + z \cdot z}{3}}
\]
Applied egg-rr45.1
\[\leadsto \color{blue}{\frac{1}{\sqrt{\frac{x \cdot x + \left(y \cdot y + z \cdot z\right)}{3}}} \cdot \sqrt{\frac{x \cdot x + \left(y \cdot y + z \cdot z\right)}{3} \cdot \frac{x \cdot x + \left(y \cdot y + z \cdot z\right)}{3}}}
\]