\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}x + \left(y - \frac{\sqrt[3]{z - t}}{\sqrt[3]{a - t}} \cdot \left(\sqrt[3]{z - t} \cdot \left(\frac{\sqrt[3]{z - t}}{\sqrt[3]{a - t}} \cdot \frac{y}{\sqrt[3]{a - t}}\right)\right)\right)(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
(FPCore (x y z t a)
:precision binary64
(+
x
(-
y
(*
(/ (cbrt (- z t)) (cbrt (- a t)))
(*
(cbrt (- z t))
(* (/ (cbrt (- z t)) (cbrt (- a t))) (/ y (cbrt (- a t)))))))))double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - t));
}
double code(double x, double y, double z, double t, double a) {
return x + (y - ((cbrt(z - t) / cbrt(a - t)) * (cbrt(z - t) * ((cbrt(z - t) / cbrt(a - t)) * (y / cbrt(a - t))))));
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 16.4 |
|---|---|
| Target | 8.7 |
| Herbie | 7.6 |
Initial program 16.4
rmApplied add-cube-cbrt_binary64_1628516.6
Applied times-frac_binary64_1625911.7
rmApplied add-cube-cbrt_binary64_1628511.8
Applied times-frac_binary64_1625911.8
Applied associate-*l*_binary64_1619611.2
Simplified11.2
rmApplied associate-*r*_binary64_1619511.1
Simplified11.2
rmApplied associate--l+_binary64_161927.6
Simplified7.6
Final simplification7.6
herbie shell --seed 2020280
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
:precision binary64
:herbie-target
(if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -1.3664970889390727e-07) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)) (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) 1.4754293444577233e-239) (/ (- (* y (- a z)) (* x t)) (- a t)) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y))))
(- (+ x y) (/ (* (- z t) y) (- a t))))