\[\begin{array}{l}
t_1 := x - x \cdot \frac{y}{t}\\
\mathbf{if}\;x \leq -4.0386396882280984 \cdot 10^{+22}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 5.886882456897662 \cdot 10^{-45}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
(FPCore (x y z t) :precision binary64 (+ x (/ (* y (- z x)) t)))
↓
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- x (* x (/ y t)))))
(if (<= x -4.0386396882280984e+22)
t_1
(if (<= x 5.886882456897662e-45) (+ x (* y (/ z t))) t_1))))
double code(double x, double y, double z, double t) {
return x + ((y * (z - x)) / t);
}
↓
double code(double x, double y, double z, double t) {
double t_1 = x - (x * (y / t));
double tmp;
if (x <= -4.0386396882280984e+22) {
tmp = t_1;
} else if (x <= 5.886882456897662e-45) {
tmp = x + (y * (z / t));
} else {
tmp = t_1;
}
return tmp;
}
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 - x)) / 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) :: tmp
t_1 = x - (x * (y / t))
if (x <= (-4.0386396882280984d+22)) then
tmp = t_1
else if (x <= 5.886882456897662d-45) then
tmp = x + (y * (z / t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
return x + ((y * (z - x)) / t);
}
↓
public static double code(double x, double y, double z, double t) {
double t_1 = x - (x * (y / t));
double tmp;
if (x <= -4.0386396882280984e+22) {
tmp = t_1;
} else if (x <= 5.886882456897662e-45) {
tmp = x + (y * (z / t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t):
return x + ((y * (z - x)) / t)
↓
def code(x, y, z, t):
t_1 = x - (x * (y / t))
tmp = 0
if x <= -4.0386396882280984e+22:
tmp = t_1
elif x <= 5.886882456897662e-45:
tmp = x + (y * (z / t))
else:
tmp = t_1
return tmp
function code(x, y, z, t)
return Float64(x + Float64(Float64(y * Float64(z - x)) / t))
end
↓
function code(x, y, z, t)
t_1 = Float64(x - Float64(x * Float64(y / t)))
tmp = 0.0
if (x <= -4.0386396882280984e+22)
tmp = t_1;
elseif (x <= 5.886882456897662e-45)
tmp = Float64(x + Float64(y * Float64(z / t)));
else
tmp = t_1;
end
return tmp
end
function tmp = code(x, y, z, t)
tmp = x + ((y * (z - x)) / t);
end
↓
function tmp_2 = code(x, y, z, t)
t_1 = x - (x * (y / t));
tmp = 0.0;
if (x <= -4.0386396882280984e+22)
tmp = t_1;
elseif (x <= 5.886882456897662e-45)
tmp = x + (y * (z / t));
else
tmp = t_1;
end
tmp_2 = tmp;
end
herbie shell --seed 2022325
(FPCore (x y z t)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, D"
:precision binary64
:herbie-target
(- x (+ (* x (/ y t)) (* (- z) (/ y t))))
(+ x (/ (* y (- z x)) t)))