real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (cosh(x) * (y / x)) / 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) :: t_0
real(8) :: tmp
t_0 = cosh(x) * (y / x)
if (t_0 <= (-5d+280)) then
tmp = y / (x * z)
else if (t_0 <= 1d+202) then
tmp = t_0 / z
else
tmp = y * (1.0d0 / (x * z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
return (Math.cosh(x) * (y / x)) / z;
}
↓
public static double code(double x, double y, double z) {
double t_0 = Math.cosh(x) * (y / x);
double tmp;
if (t_0 <= -5e+280) {
tmp = y / (x * z);
} else if (t_0 <= 1e+202) {
tmp = t_0 / z;
} else {
tmp = y * (1.0 / (x * z));
}
return tmp;
}
def code(x, y, z):
return (math.cosh(x) * (y / x)) / z
↓
def code(x, y, z):
t_0 = math.cosh(x) * (y / x)
tmp = 0
if t_0 <= -5e+280:
tmp = y / (x * z)
elif t_0 <= 1e+202:
tmp = t_0 / z
else:
tmp = y * (1.0 / (x * z))
return tmp
function code(x, y, z)
return Float64(Float64(cosh(x) * Float64(y / x)) / z)
end
↓
function code(x, y, z)
t_0 = Float64(cosh(x) * Float64(y / x))
tmp = 0.0
if (t_0 <= -5e+280)
tmp = Float64(y / Float64(x * z));
elseif (t_0 <= 1e+202)
tmp = Float64(t_0 / z);
else
tmp = Float64(y * Float64(1.0 / Float64(x * z)));
end
return tmp
end
function tmp = code(x, y, z)
tmp = (cosh(x) * (y / x)) / z;
end
↓
function tmp_2 = code(x, y, z)
t_0 = cosh(x) * (y / x);
tmp = 0.0;
if (t_0 <= -5e+280)
tmp = y / (x * z);
elseif (t_0 <= 1e+202)
tmp = t_0 / z;
else
tmp = y * (1.0 / (x * z));
end
tmp_2 = tmp;
end