(FPCore (x y z t a)
:precision binary64
(- x (/ (- y z) (/ (+ (- t z) 1.0) a))))
↓
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* a (/ z (- (+ 1.0 t) z))))))
(if (<= z -1.8217880177163876e-65)
t_1
(if (<= z 2.7015733050017065e-175) (- x (* a y)) t_1))))
double code(double x, double y, double z, double t, double a) {
return x - ((y - z) / (((t - z) + 1.0) / a));
}
↓
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (a * (z / ((1.0 + t) - z)));
double tmp;
if (z <= -1.8217880177163876e-65) {
tmp = t_1;
} else if (z <= 2.7015733050017065e-175) {
tmp = x - (a * y);
} else {
tmp = t_1;
}
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 - z) + 1.0d0) / a))
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) :: t_1
real(8) :: tmp
t_1 = x + (a * (z / ((1.0d0 + t) - z)))
if (z <= (-1.8217880177163876d-65)) then
tmp = t_1
else if (z <= 2.7015733050017065d-175) then
tmp = x - (a * y)
else
tmp = t_1
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 - z) + 1.0) / a));
}
↓
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (a * (z / ((1.0 + t) - z)));
double tmp;
if (z <= -1.8217880177163876e-65) {
tmp = t_1;
} else if (z <= 2.7015733050017065e-175) {
tmp = x - (a * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a):
return x - ((y - z) / (((t - z) + 1.0) / a))
↓
def code(x, y, z, t, a):
t_1 = x + (a * (z / ((1.0 + t) - z)))
tmp = 0
if z <= -1.8217880177163876e-65:
tmp = t_1
elif z <= 2.7015733050017065e-175:
tmp = x - (a * y)
else:
tmp = t_1
return tmp
function code(x, y, z, t, a)
return Float64(x - Float64(Float64(y - z) / Float64(Float64(Float64(t - z) + 1.0) / a)))
end
↓
function code(x, y, z, t, a)
t_1 = Float64(x + Float64(a * Float64(z / Float64(Float64(1.0 + t) - z))))
tmp = 0.0
if (z <= -1.8217880177163876e-65)
tmp = t_1;
elseif (z <= 2.7015733050017065e-175)
tmp = Float64(x - Float64(a * y));
else
tmp = t_1;
end
return tmp
end
function tmp = code(x, y, z, t, a)
tmp = x - ((y - z) / (((t - z) + 1.0) / a));
end
↓
function tmp_2 = code(x, y, z, t, a)
t_1 = x + (a * (z / ((1.0 + t) - z)));
tmp = 0.0;
if (z <= -1.8217880177163876e-65)
tmp = t_1;
elseif (z <= 2.7015733050017065e-175)
tmp = x - (a * y);
else
tmp = t_1;
end
tmp_2 = tmp;
end
herbie shell --seed 2022228
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.SparkLine:renderSparkLine from Chart-1.5.3"
:precision binary64
:herbie-target
(- x (* (/ (- y z) (+ (- t z) 1.0)) a))
(- x (/ (- y z) (/ (+ (- t z) 1.0) a))))