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