(FPCore (x y z) :precision binary64 (+ x (* (* y z) z)))
↓
(FPCore (x y z)
:precision binary64
(+ x (if (!= z 0.0) (/ (* z y) (/ 1.0 z)) (* (* z y) z))))
double code(double x, double y, double z) {
return x + ((y * z) * z);
}
↓
double code(double x, double y, double z) {
double tmp;
if (z != 0.0) {
tmp = (z * y) / (1.0 / z);
} else {
tmp = (z * y) * z;
}
return x + 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) * 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 (z /= 0.0d0) then
tmp = (z * y) / (1.0d0 / z)
else
tmp = (z * y) * z
end if
code = x + tmp
end function
public static double code(double x, double y, double z) {
return x + ((y * z) * z);
}
↓
public static double code(double x, double y, double z) {
double tmp;
if (z != 0.0) {
tmp = (z * y) / (1.0 / z);
} else {
tmp = (z * y) * z;
}
return x + tmp;
}
def code(x, y, z):
return x + ((y * z) * z)
↓
def code(x, y, z):
tmp = 0
if z != 0.0:
tmp = (z * y) / (1.0 / z)
else:
tmp = (z * y) * z
return x + tmp
function code(x, y, z)
return Float64(x + Float64(Float64(y * z) * z))
end
↓
function code(x, y, z)
tmp = 0.0
if (z != 0.0)
tmp = Float64(Float64(z * y) / Float64(1.0 / z));
else
tmp = Float64(Float64(z * y) * z);
end
return Float64(x + tmp)
end
function tmp = code(x, y, z)
tmp = x + ((y * z) * z);
end
↓
function tmp_2 = code(x, y, z)
tmp = 0.0;
if (z ~= 0.0)
tmp = (z * y) / (1.0 / z);
else
tmp = (z * y) * z;
end
tmp_2 = x + tmp;
end