\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\begin{array}{l}
\mathbf{if}\;t \le -1.92814178504205926 \cdot 10^{65}:\\
\;\;\;\;\frac{z \cdot y}{t} + x\\
\mathbf{elif}\;t \le -4.6307853694461238 \cdot 10^{-40}:\\
\;\;\;\;\left(x + y\right) - \left(\left(\sqrt[3]{\frac{z - t}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}}} \cdot \sqrt[3]{\frac{y}{\sqrt[3]{a - t}}}\right) \cdot \sqrt[3]{\frac{z - t}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \frac{y}{\sqrt[3]{a - t}}}\right) \cdot \left(\sqrt[3]{\frac{z - t}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}}} \cdot \sqrt[3]{\frac{y}{\sqrt[3]{a - t}}}\right)\\
\mathbf{elif}\;t \le 1.0295390085908576 \cdot 10^{-86}:\\
\;\;\;\;x + \left(y - \frac{\left(z - t\right) \cdot y}{a - t}\right)\\
\mathbf{elif}\;t \le 2.22011034175908575 \cdot 10^{51}:\\
\;\;\;\;\left(x + y\right) - \left(\sqrt[3]{\frac{z - t}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \frac{y}{\sqrt[3]{a - t}}} \cdot \sqrt[3]{\frac{z - t}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \frac{y}{\sqrt[3]{a - t}}}\right) \cdot \left(\left(\sqrt[3]{\sqrt[3]{\frac{z - t}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \frac{y}{\sqrt[3]{a - t}}}} \cdot \sqrt[3]{\sqrt[3]{\frac{z - t}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \frac{y}{\sqrt[3]{a - t}}}}\right) \cdot \sqrt[3]{\sqrt[3]{\frac{z - t}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \frac{y}{\sqrt[3]{a - t}}}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{z \cdot y}{t} + x\\
\end{array}double f(double x, double y, double z, double t, double a) {
double r653146 = x;
double r653147 = y;
double r653148 = r653146 + r653147;
double r653149 = z;
double r653150 = t;
double r653151 = r653149 - r653150;
double r653152 = r653151 * r653147;
double r653153 = a;
double r653154 = r653153 - r653150;
double r653155 = r653152 / r653154;
double r653156 = r653148 - r653155;
return r653156;
}
double f(double x, double y, double z, double t, double a) {
double r653157 = t;
double r653158 = -1.9281417850420593e+65;
bool r653159 = r653157 <= r653158;
double r653160 = z;
double r653161 = y;
double r653162 = r653160 * r653161;
double r653163 = r653162 / r653157;
double r653164 = x;
double r653165 = r653163 + r653164;
double r653166 = -4.630785369446124e-40;
bool r653167 = r653157 <= r653166;
double r653168 = r653164 + r653161;
double r653169 = r653160 - r653157;
double r653170 = a;
double r653171 = r653170 - r653157;
double r653172 = cbrt(r653171);
double r653173 = r653172 * r653172;
double r653174 = r653169 / r653173;
double r653175 = cbrt(r653174);
double r653176 = r653161 / r653172;
double r653177 = cbrt(r653176);
double r653178 = r653175 * r653177;
double r653179 = r653174 * r653176;
double r653180 = cbrt(r653179);
double r653181 = r653178 * r653180;
double r653182 = r653181 * r653178;
double r653183 = r653168 - r653182;
double r653184 = 1.0295390085908576e-86;
bool r653185 = r653157 <= r653184;
double r653186 = r653169 * r653161;
double r653187 = r653186 / r653171;
double r653188 = r653161 - r653187;
double r653189 = r653164 + r653188;
double r653190 = 2.2201103417590857e+51;
bool r653191 = r653157 <= r653190;
double r653192 = r653180 * r653180;
double r653193 = cbrt(r653180);
double r653194 = r653193 * r653193;
double r653195 = r653194 * r653193;
double r653196 = r653192 * r653195;
double r653197 = r653168 - r653196;
double r653198 = r653191 ? r653197 : r653165;
double r653199 = r653185 ? r653189 : r653198;
double r653200 = r653167 ? r653183 : r653199;
double r653201 = r653159 ? r653165 : r653200;
return r653201;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 16.3 |
|---|---|
| Target | 8.1 |
| Herbie | 11.0 |
if t < -1.9281417850420593e+65 or 2.2201103417590857e+51 < t Initial program 28.2
Taylor expanded around inf 17.5
if -1.9281417850420593e+65 < t < -4.630785369446124e-40Initial program 13.0
rmApplied add-cube-cbrt13.0
Applied times-frac9.5
rmApplied add-cube-cbrt9.6
rmApplied cbrt-prod9.6
rmApplied cbrt-prod9.6
if -4.630785369446124e-40 < t < 1.0295390085908576e-86Initial program 5.0
rmApplied associate--l+4.7
if 1.0295390085908576e-86 < t < 2.2201103417590857e+51Initial program 9.0
rmApplied add-cube-cbrt9.2
Applied times-frac7.1
rmApplied add-cube-cbrt7.2
rmApplied add-cube-cbrt7.3
Final simplification11.0
herbie shell --seed 2020065
(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))))