\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\begin{array}{l}
\mathbf{if}\;a \le -1.47322666539955977712838229113003878126 \cdot 10^{-157}:\\
\;\;\;\;\left(x + y\right) - \frac{\frac{z - t}{a - t}}{\frac{1}{y}}\\
\mathbf{elif}\;a \le 1.019767468767238742050870882472042955611 \cdot 10^{-151}:\\
\;\;\;\;\frac{z \cdot y}{t} + x\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) - \left(\left(\frac{\sqrt[3]{y}}{\sqrt[3]{a - t}} \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{a - t}}\right) \cdot \left(\sqrt[3]{z - t} \cdot \sqrt[3]{z - t}\right)\right) \cdot \frac{\sqrt[3]{z - t}}{\frac{\sqrt[3]{a - t}}{\sqrt[3]{y}}}\\
\end{array}double f(double x, double y, double z, double t, double a) {
double r390792 = x;
double r390793 = y;
double r390794 = r390792 + r390793;
double r390795 = z;
double r390796 = t;
double r390797 = r390795 - r390796;
double r390798 = r390797 * r390793;
double r390799 = a;
double r390800 = r390799 - r390796;
double r390801 = r390798 / r390800;
double r390802 = r390794 - r390801;
return r390802;
}
double f(double x, double y, double z, double t, double a) {
double r390803 = a;
double r390804 = -1.4732266653995598e-157;
bool r390805 = r390803 <= r390804;
double r390806 = x;
double r390807 = y;
double r390808 = r390806 + r390807;
double r390809 = z;
double r390810 = t;
double r390811 = r390809 - r390810;
double r390812 = r390803 - r390810;
double r390813 = r390811 / r390812;
double r390814 = 1.0;
double r390815 = r390814 / r390807;
double r390816 = r390813 / r390815;
double r390817 = r390808 - r390816;
double r390818 = 1.0197674687672387e-151;
bool r390819 = r390803 <= r390818;
double r390820 = r390809 * r390807;
double r390821 = r390820 / r390810;
double r390822 = r390821 + r390806;
double r390823 = cbrt(r390807);
double r390824 = cbrt(r390812);
double r390825 = r390823 / r390824;
double r390826 = r390825 * r390825;
double r390827 = cbrt(r390811);
double r390828 = r390827 * r390827;
double r390829 = r390826 * r390828;
double r390830 = r390824 / r390823;
double r390831 = r390827 / r390830;
double r390832 = r390829 * r390831;
double r390833 = r390808 - r390832;
double r390834 = r390819 ? r390822 : r390833;
double r390835 = r390805 ? r390817 : r390834;
return r390835;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 16.9 |
|---|---|
| Target | 8.5 |
| Herbie | 8.8 |
if a < -1.4732266653995598e-157Initial program 15.5
rmApplied associate-/l*9.4
rmApplied div-inv9.4
Applied associate-/r*8.5
if -1.4732266653995598e-157 < a < 1.0197674687672387e-151Initial program 21.6
Taylor expanded around inf 9.2
if 1.0197674687672387e-151 < a Initial program 15.6
rmApplied associate-/l*9.7
rmApplied add-cube-cbrt9.8
Applied add-cube-cbrt9.8
Applied times-frac9.9
Applied *-un-lft-identity9.9
Applied times-frac8.9
Simplified8.8
rmApplied *-un-lft-identity8.8
Applied cbrt-prod8.8
Applied *-un-lft-identity8.8
Applied cbrt-prod8.8
Applied times-frac8.8
Applied add-cube-cbrt8.9
Applied times-frac8.9
Applied associate-*r*8.9
Simplified8.9
Final simplification8.8
herbie shell --seed 2019322
(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 (- 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 (- a t))) y))))
(- (+ x y) (/ (* (- z t) y) (- a t))))