(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- z a)))))
↓
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ y (/ (- z a) (- z t))))))
(if (<= y -2.1098577455461332e-10)
t_1
(if (<= y 2.807804593935509e-240)
(fma (* y (- z t)) (/ 1.0 (- z a)) x)
t_1))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (z - a)));
}
↓
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y / ((z - a) / (z - t)));
double tmp;
if (y <= -2.1098577455461332e-10) {
tmp = t_1;
} else if (y <= 2.807804593935509e-240) {
tmp = fma((y * (z - t)), (1.0 / (z - a)), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a)
return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(z - a))))
end
↓
function code(x, y, z, t, a)
t_1 = Float64(x + Float64(y / Float64(Float64(z - a) / Float64(z - t))))
tmp = 0.0
if (y <= -2.1098577455461332e-10)
tmp = t_1;
elseif (y <= 2.807804593935509e-240)
tmp = fma(Float64(y * Float64(z - t)), Float64(1.0 / Float64(z - a)), x);
else
tmp = t_1;
end
return tmp
end
herbie shell --seed 2022291
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ x (/ y (/ (- z a) (- z t))))
(+ x (* y (/ (- z t) (- z a)))))