(FPCore (x y z t) :precision binary64 (* x (/ (* (/ y z) t) t)))
↓
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (/ x (/ z y))) (t_2 (/ (* y x) z)))
(if (<= (/ y z) -1e+158)
t_2
(if (<= (/ y z) -2e-134)
t_1
(if (<= (/ y z) 0.0) t_2 (if (<= (/ y z) 1e+94) t_1 (* y (/ x z))))))))
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x * (((y / z) * t) / t)
end function
↓
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (z / y)
t_2 = (y * x) / z
if ((y / z) <= (-1d+158)) then
tmp = t_2
else if ((y / z) <= (-2d-134)) then
tmp = t_1
else if ((y / z) <= 0.0d0) then
tmp = t_2
else if ((y / z) <= 1d+94) then
tmp = t_1
else
tmp = y * (x / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
return x * (((y / z) * t) / t);
}
↓
public static double code(double x, double y, double z, double t) {
double t_1 = x / (z / y);
double t_2 = (y * x) / z;
double tmp;
if ((y / z) <= -1e+158) {
tmp = t_2;
} else if ((y / z) <= -2e-134) {
tmp = t_1;
} else if ((y / z) <= 0.0) {
tmp = t_2;
} else if ((y / z) <= 1e+94) {
tmp = t_1;
} else {
tmp = y * (x / z);
}
return tmp;
}
def code(x, y, z, t):
return x * (((y / z) * t) / t)