(FPCore (x y z) :precision binary64 (* x (- 1.0 (* (- 1.0 y) z))))
↓
(FPCore (x y z)
:precision binary64
(if (<= z -9500000000000.0)
(+ (* z (* (- y 1.0) x)) x)
(if (<= z 1e-105)
(* x (- 1.0 (* (- 1.0 y) z)))
(+ (* y (* z x)) (* (- 1.0 z) x)))))
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 (z <= -9500000000000.0) {
tmp = (z * ((y - 1.0) * x)) + x;
} else if (z <= 1e-105) {
tmp = x * (1.0 - ((1.0 - y) * z));
} else {
tmp = (y * (z * x)) + ((1.0 - z) * 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 - ((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 (z <= (-9500000000000.0d0)) then
tmp = (z * ((y - 1.0d0) * x)) + x
else if (z <= 1d-105) then
tmp = x * (1.0d0 - ((1.0d0 - y) * z))
else
tmp = (y * (z * x)) + ((1.0d0 - z) * x)
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 (z <= -9500000000000.0) {
tmp = (z * ((y - 1.0) * x)) + x;
} else if (z <= 1e-105) {
tmp = x * (1.0 - ((1.0 - y) * z));
} else {
tmp = (y * (z * x)) + ((1.0 - z) * x);
}
return tmp;
}
def code(x, y, z):
return x * (1.0 - ((1.0 - y) * z))
↓
def code(x, y, z):
tmp = 0
if z <= -9500000000000.0:
tmp = (z * ((y - 1.0) * x)) + x
elif z <= 1e-105:
tmp = x * (1.0 - ((1.0 - y) * z))
else:
tmp = (y * (z * x)) + ((1.0 - z) * x)
return tmp
function code(x, y, z)
return Float64(x * Float64(1.0 - Float64(Float64(1.0 - y) * z)))
end
↓
function code(x, y, z)
tmp = 0.0
if (z <= -9500000000000.0)
tmp = Float64(Float64(z * Float64(Float64(y - 1.0) * x)) + x);
elseif (z <= 1e-105)
tmp = Float64(x * Float64(1.0 - Float64(Float64(1.0 - y) * z)));
else
tmp = Float64(Float64(y * Float64(z * x)) + Float64(Float64(1.0 - z) * x));
end
return tmp
end
function tmp = code(x, y, z)
tmp = x * (1.0 - ((1.0 - y) * z));
end
↓
function tmp_2 = code(x, y, z)
tmp = 0.0;
if (z <= -9500000000000.0)
tmp = (z * ((y - 1.0) * x)) + x;
elseif (z <= 1e-105)
tmp = x * (1.0 - ((1.0 - y) * z));
else
tmp = (y * (z * x)) + ((1.0 - z) * x);
end
tmp_2 = tmp;
end