(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+267)
t_2
(if (<= (/ y z) -5e-229)
t_1
(if (<= (/ y z) 1e-310)
(* y (/ x z))
(if (<= (/ y z) 5e+142) t_1 t_2))))))
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+267)) then
tmp = t_2
else if ((y / z) <= (-5d-229)) then
tmp = t_1
else if ((y / z) <= 1d-310) then
tmp = y * (x / z)
else if ((y / z) <= 5d+142) then
tmp = t_1
else
tmp = t_2
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+267) {
tmp = t_2;
} else if ((y / z) <= -5e-229) {
tmp = t_1;
} else if ((y / z) <= 1e-310) {
tmp = y * (x / z);
} else if ((y / z) <= 5e+142) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t):
return x * (((y / z) * t) / t)