(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
↓
(FPCore (x y z t a)
:precision binary64
(if (or (<= z -6.2e+213)
(not (or (<= z 1.5e+50) (and (not (<= z 6.1e+125)) (<= z 1.5e+203)))))
(+ t (/ (- x t) (/ z (- y a))))
(+ x (* (- t x) (/ (- y z) (- a z))))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
↓
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -6.2e+213) || !((z <= 1.5e+50) || (!(z <= 6.1e+125) && (z <= 1.5e+203)))) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((t - x) * ((y - z) / (a - z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - z) * (t - x)) / (a - z))
end function
↓
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-6.2d+213)) .or. (.not. (z <= 1.5d+50) .or. (.not. (z <= 6.1d+125)) .and. (z <= 1.5d+203))) then
tmp = t + ((x - t) / (z / (y - a)))
else
tmp = x + ((t - x) * ((y - z) / (a - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
↓
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -6.2e+213) || !((z <= 1.5e+50) || (!(z <= 6.1e+125) && (z <= 1.5e+203)))) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + ((t - x) * ((y - z) / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a):
return x + (((y - z) * (t - x)) / (a - z))
↓
def code(x, y, z, t, a):
tmp = 0
if (z <= -6.2e+213) or not ((z <= 1.5e+50) or (not (z <= 6.1e+125) and (z <= 1.5e+203))):
tmp = t + ((x - t) / (z / (y - a)))
else:
tmp = x + ((t - x) * ((y - z) / (a - z)))
return tmp
function code(x, y, z, t, a)
return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z)))
end
↓
function code(x, y, z, t, a)
tmp = 0.0
if ((z <= -6.2e+213) || !((z <= 1.5e+50) || (!(z <= 6.1e+125) && (z <= 1.5e+203))))
tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a))));
else
tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / Float64(a - z))));
end
return tmp
end
function tmp = code(x, y, z, t, a)
tmp = x + (((y - z) * (t - x)) / (a - z));
end
↓
function tmp_2 = code(x, y, z, t, a)
tmp = 0.0;
if ((z <= -6.2e+213) || ~(((z <= 1.5e+50) || (~((z <= 6.1e+125)) && (z <= 1.5e+203)))))
tmp = t + ((x - t) / (z / (y - a)));
else
tmp = x + ((t - x) * ((y - z) / (a - z)));
end
tmp_2 = tmp;
end
herbie shell --seed 2023147
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:herbie-target
(if (< z -1.2536131056095036e+188) (- t (* (/ y z) (- t x))) (if (< z 4.446702369113811e+64) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x)))))
(+ x (/ (* (- y z) (- t x)) (- a z))))