(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) t) (- a z))))
↓
(FPCore (x y z t a) :precision binary64 (+ x (/ t (/ (- a z) (- y z)))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * t) / (a - z));
}
↓
double code(double x, double y, double z, double t, double a) {
return x + (t / ((a - z) / (y - z)));
}
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) / (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
code = x + (t / ((a - z) / (y - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * t) / (a - z));
}
↓
public static double code(double x, double y, double z, double t, double a) {
return x + (t / ((a - z) / (y - z)));
}
def code(x, y, z, t, a):
return x + (((y - z) * t) / (a - z))
↓
def code(x, y, z, t, a):
return x + (t / ((a - z) / (y - z)))
function code(x, y, z, t, a)
return Float64(x + Float64(Float64(Float64(y - z) * t) / Float64(a - z)))
end
↓
function code(x, y, z, t, a)
return Float64(x + Float64(t / Float64(Float64(a - z) / Float64(y - z))))
end
function tmp = code(x, y, z, t, a)
tmp = x + (((y - z) * t) / (a - z));
end
↓
function tmp = code(x, y, z, t, a)
tmp = x + (t / ((a - z) / (y - z)));
end
(*.f64 (/.f64 (-.f64 y z) (-.f64 a z)) t): 0 points increase in error, 0 points decrease in error
(Rewrite<= associate-/r/_binary64 (/.f64 (-.f64 y z) (/.f64 (-.f64 a z) t))): 64 points increase in error, 52 points decrease in error
(Rewrite=> div-sub_binary64 (-.f64 (/.f64 y (/.f64 (-.f64 a z) t)) (/.f64 z (/.f64 (-.f64 a z) t)))): 1 points increase in error, 2 points decrease in error
(-.f64 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 y t) (-.f64 a z))) (/.f64 z (/.f64 (-.f64 a z) t))): 38 points increase in error, 29 points decrease in error
(-.f64 (/.f64 (*.f64 y t) (-.f64 a z)) (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 z t) (-.f64 a z)))): 52 points increase in error, 30 points decrease in error
(-.f64 (/.f64 (*.f64 y t) (-.f64 a z)) (/.f64 (Rewrite<= *-commutative_binary64 (*.f64 t z)) (-.f64 a z))): 0 points increase in error, 0 points decrease in error
(Rewrite<= unsub-neg_binary64 (+.f64 (/.f64 (*.f64 y t) (-.f64 a z)) (neg.f64 (/.f64 (*.f64 t z) (-.f64 a z))))): 0 points increase in error, 0 points decrease in error
(+.f64 (/.f64 (*.f64 y t) (-.f64 a z)) (Rewrite<= mul-1-neg_binary64 (*.f64 -1 (/.f64 (*.f64 t z) (-.f64 a z))))): 0 points increase in error, 0 points decrease in error
Applied egg-rr1.2
\[\leadsto x + \color{blue}{\frac{t}{\frac{a - z}{y - z}}}
\]
herbie shell --seed 2022291
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(if (< t -1.0682974490174067e-39) (+ x (* (/ (- y z) (- a z)) t)) (if (< t 3.9110949887586375e-141) (+ x (/ (* (- y z) t) (- a z))) (+ x (* (/ (- y z) (- a z)) t))))
(+ x (/ (* (- y z) t) (- a z))))