(FPCore (x y z) :precision binary64 (* x (- 1.0 (* y z))))
↓
(FPCore (x y z)
:precision binary64
(if (<= (* y z) -2e+285)
(- x (/ y (/ (/ 1.0 x) z)))
(if (<= (* y z) 1e+165) (* x (- 1.0 (* y z))) (* z (* y (- x))))))
double code(double x, double y, double z) {
return x * (1.0 - (y * z));
}
↓
double code(double x, double y, double z) {
double tmp;
if ((y * z) <= -2e+285) {
tmp = x - (y / ((1.0 / x) / z));
} else if ((y * z) <= 1e+165) {
tmp = x * (1.0 - (y * z));
} else {
tmp = z * (y * -x);
}
return 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 * (1.0d0 - (y * 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 * z) <= (-2d+285)) then
tmp = x - (y / ((1.0d0 / x) / z))
else if ((y * z) <= 1d+165) then
tmp = x * (1.0d0 - (y * z))
else
tmp = z * (y * -x)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
return x * (1.0 - (y * z));
}
↓
public static double code(double x, double y, double z) {
double tmp;
if ((y * z) <= -2e+285) {
tmp = x - (y / ((1.0 / x) / z));
} else if ((y * z) <= 1e+165) {
tmp = x * (1.0 - (y * z));
} else {
tmp = z * (y * -x);
}
return tmp;
}
def code(x, y, z):
return x * (1.0 - (y * z))
↓
def code(x, y, z):
tmp = 0
if (y * z) <= -2e+285:
tmp = x - (y / ((1.0 / x) / z))
elif (y * z) <= 1e+165:
tmp = x * (1.0 - (y * z))
else:
tmp = z * (y * -x)
return tmp
function code(x, y, z)
return Float64(x * Float64(1.0 - Float64(y * z)))
end