\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\begin{array}{l}
\mathbf{if}\;a \le -6.796987859803041 \cdot 10^{-120}:\\
\;\;\;\;\left(x + y\right) + \frac{\sqrt[3]{y}}{\sqrt[3]{a - t}} \cdot \left(\frac{t - z}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \left(\sqrt[3]{y} \cdot \sqrt[3]{y}\right)\right)\\
\mathbf{elif}\;a \le 2.976075834772394 \cdot 10^{-120}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - z}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}}, \frac{y}{\sqrt[3]{a - t}}, x + y\right)\\
\end{array}double f(double x, double y, double z, double t, double a) {
double r27279051 = x;
double r27279052 = y;
double r27279053 = r27279051 + r27279052;
double r27279054 = z;
double r27279055 = t;
double r27279056 = r27279054 - r27279055;
double r27279057 = r27279056 * r27279052;
double r27279058 = a;
double r27279059 = r27279058 - r27279055;
double r27279060 = r27279057 / r27279059;
double r27279061 = r27279053 - r27279060;
return r27279061;
}
double f(double x, double y, double z, double t, double a) {
double r27279062 = a;
double r27279063 = -6.796987859803041e-120;
bool r27279064 = r27279062 <= r27279063;
double r27279065 = x;
double r27279066 = y;
double r27279067 = r27279065 + r27279066;
double r27279068 = cbrt(r27279066);
double r27279069 = t;
double r27279070 = r27279062 - r27279069;
double r27279071 = cbrt(r27279070);
double r27279072 = r27279068 / r27279071;
double r27279073 = z;
double r27279074 = r27279069 - r27279073;
double r27279075 = r27279071 * r27279071;
double r27279076 = r27279074 / r27279075;
double r27279077 = r27279068 * r27279068;
double r27279078 = r27279076 * r27279077;
double r27279079 = r27279072 * r27279078;
double r27279080 = r27279067 + r27279079;
double r27279081 = 2.976075834772394e-120;
bool r27279082 = r27279062 <= r27279081;
double r27279083 = r27279073 / r27279069;
double r27279084 = fma(r27279083, r27279066, r27279065);
double r27279085 = r27279066 / r27279071;
double r27279086 = fma(r27279076, r27279085, r27279067);
double r27279087 = r27279082 ? r27279084 : r27279086;
double r27279088 = r27279064 ? r27279080 : r27279087;
return r27279088;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
| Original | 16.0 |
|---|---|
| Target | 8.1 |
| Herbie | 8.3 |
if a < -6.796987859803041e-120Initial program 14.2
Simplified8.2
rmApplied fma-udef8.2
rmApplied add-cube-cbrt8.4
Applied *-un-lft-identity8.4
Applied times-frac8.4
Applied associate-*r*7.8
Simplified7.8
rmApplied *-un-lft-identity7.8
Applied cbrt-prod7.8
Applied add-cube-cbrt7.8
Applied times-frac7.8
Applied associate-*r*7.5
Simplified7.5
if -6.796987859803041e-120 < a < 2.976075834772394e-120Initial program 19.8
Simplified19.6
Taylor expanded around inf 10.3
Simplified9.1
if 2.976075834772394e-120 < a Initial program 14.7
Simplified8.9
rmApplied fma-udef9.0
rmApplied add-cube-cbrt9.1
Applied *-un-lft-identity9.1
Applied times-frac9.1
Applied associate-*r*8.5
Simplified8.5
rmApplied fma-def8.5
Final simplification8.3
herbie shell --seed 2019163 +o rules:numerics
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
: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))))