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