(FPCore (x y z t) :precision binary64 (+ x (* (- y x) (/ z t))))
↓
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (+ x (* (- y x) (/ z t)))))
(if (or (<= t_1 -5e+134) (and (not (<= t_1 5e-263)) (<= t_1 1e+307)))
t_1
(+ x (/ z (/ t (- y x)))))))
double code(double x, double y, double z, double t) {
return x + ((y - x) * (z / t));
}
↓
double code(double x, double y, double z, double t) {
double t_1 = x + ((y - x) * (z / t));
double tmp;
if ((t_1 <= -5e+134) || (!(t_1 <= 5e-263) && (t_1 <= 1e+307))) {
tmp = t_1;
} else {
tmp = x + (z / (t / (y - x)));
}
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 - x) * (z / 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 + ((y - x) * (z / t))
if ((t_1 <= (-5d+134)) .or. (.not. (t_1 <= 5d-263)) .and. (t_1 <= 1d+307)) then
tmp = t_1
else
tmp = x + (z / (t / (y - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
return x + ((y - x) * (z / t));
}
↓
public static double code(double x, double y, double z, double t) {
double t_1 = x + ((y - x) * (z / t));
double tmp;
if ((t_1 <= -5e+134) || (!(t_1 <= 5e-263) && (t_1 <= 1e+307))) {
tmp = t_1;
} else {
tmp = x + (z / (t / (y - x)));
}
return tmp;
}
def code(x, y, z, t):
return x + ((y - x) * (z / t))
↓
def code(x, y, z, t):
t_1 = x + ((y - x) * (z / t))
tmp = 0
if (t_1 <= -5e+134) or (not (t_1 <= 5e-263) and (t_1 <= 1e+307)):
tmp = t_1
else:
tmp = x + (z / (t / (y - x)))
return tmp
function code(x, y, z, t)
return Float64(x + Float64(Float64(y - x) * Float64(z / t)))
end
↓
function code(x, y, z, t)
t_1 = Float64(x + Float64(Float64(y - x) * Float64(z / t)))
tmp = 0.0
if ((t_1 <= -5e+134) || (!(t_1 <= 5e-263) && (t_1 <= 1e+307)))
tmp = t_1;
else
tmp = Float64(x + Float64(z / Float64(t / Float64(y - x))));
end
return tmp
end
function tmp = code(x, y, z, t)
tmp = x + ((y - x) * (z / t));
end
↓
function tmp_2 = code(x, y, z, t)
t_1 = x + ((y - x) * (z / t));
tmp = 0.0;
if ((t_1 <= -5e+134) || (~((t_1 <= 5e-263)) && (t_1 <= 1e+307)))
tmp = t_1;
else
tmp = x + (z / (t / (y - x)));
end
tmp_2 = tmp;
end
if (+.f64 x (*.f64 (-.f64 y x) (/.f64 z t))) < -4.99999999999999981e134 or 5.00000000000000006e-263 < (+.f64 x (*.f64 (-.f64 y x) (/.f64 z t))) < 9.99999999999999986e306
Initial program 1.3
\[x + \left(y - x\right) \cdot \frac{z}{t}
\]
if -4.99999999999999981e134 < (+.f64 x (*.f64 (-.f64 y x) (/.f64 z t))) < 5.00000000000000006e-263 or 9.99999999999999986e306 < (+.f64 x (*.f64 (-.f64 y x) (/.f64 z t)))
Initial program 2.7
\[x + \left(y - x\right) \cdot \frac{z}{t}
\]
Applied egg-rr2.5
\[\leadsto x + \color{blue}{\frac{z}{\frac{t}{y - x}}}
\]
herbie shell --seed 2023039
(FPCore (x y z t)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:tickPosition from plot-0.2.3.4"
:precision binary64
:herbie-target
(if (< (* (- y x) (/ z t)) -1013646692435.8867) (+ x (/ (- y x) (/ t z))) (if (< (* (- y x) (/ z t)) 0.0) (+ x (/ (* (- y x) z) t)) (+ x (/ (- y x) (/ t z)))))
(+ x (* (- y x) (/ z t))))