\frac{x \cdot y - z \cdot t}{a}\begin{array}{l}
\mathbf{if}\;x \cdot y - z \cdot t \le -5.672988066853380499272591542768303552197 \cdot 10^{151}:\\
\;\;\;\;\frac{x}{\frac{a}{y}} - z \cdot \frac{t}{a}\\
\mathbf{elif}\;x \cdot y - z \cdot t \le 2.560348681674806982161079926590341946882 \cdot 10^{214}:\\
\;\;\;\;\frac{x \cdot \left(\sqrt[3]{y} \cdot \sqrt[3]{y}\right)}{\frac{a}{\sqrt[3]{y}}} - \frac{z \cdot t}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{a}{y}} - z \cdot \frac{t}{a}\\
\end{array}double f(double x, double y, double z, double t, double a) {
double r213151622 = x;
double r213151623 = y;
double r213151624 = r213151622 * r213151623;
double r213151625 = z;
double r213151626 = t;
double r213151627 = r213151625 * r213151626;
double r213151628 = r213151624 - r213151627;
double r213151629 = a;
double r213151630 = r213151628 / r213151629;
return r213151630;
}
double f(double x, double y, double z, double t, double a) {
double r213151631 = x;
double r213151632 = y;
double r213151633 = r213151631 * r213151632;
double r213151634 = z;
double r213151635 = t;
double r213151636 = r213151634 * r213151635;
double r213151637 = r213151633 - r213151636;
double r213151638 = -5.67298806685338e+151;
bool r213151639 = r213151637 <= r213151638;
double r213151640 = a;
double r213151641 = r213151640 / r213151632;
double r213151642 = r213151631 / r213151641;
double r213151643 = r213151635 / r213151640;
double r213151644 = r213151634 * r213151643;
double r213151645 = r213151642 - r213151644;
double r213151646 = 2.560348681674807e+214;
bool r213151647 = r213151637 <= r213151646;
double r213151648 = cbrt(r213151632);
double r213151649 = r213151648 * r213151648;
double r213151650 = r213151631 * r213151649;
double r213151651 = r213151640 / r213151648;
double r213151652 = r213151650 / r213151651;
double r213151653 = r213151636 / r213151640;
double r213151654 = r213151652 - r213151653;
double r213151655 = r213151647 ? r213151654 : r213151645;
double r213151656 = r213151639 ? r213151645 : r213151655;
return r213151656;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 7.7 |
|---|---|
| Target | 6.0 |
| Herbie | 2.2 |
if (- (* x y) (* z t)) < -5.67298806685338e+151 or 2.560348681674807e+214 < (- (* x y) (* z t)) Initial program 25.3
rmApplied div-sub25.3
rmApplied associate-/l*13.5
rmApplied *-un-lft-identity13.5
Applied times-frac1.6
Simplified1.6
if -5.67298806685338e+151 < (- (* x y) (* z t)) < 2.560348681674807e+214Initial program 1.0
rmApplied div-sub1.0
rmApplied associate-/l*5.7
rmApplied add-cube-cbrt6.1
Applied *-un-lft-identity6.1
Applied times-frac6.1
Applied associate-/r*2.4
Simplified2.4
Final simplification2.2
herbie shell --seed 2019173
(FPCore (x y z t a)
:name "Data.Colour.Matrix:inverse from colour-2.3.3, B"
:herbie-target
(if (< z -2.468684968699548e+170) (- (* (/ y a) x) (* (/ t a) z)) (if (< z 6.309831121978371e-71) (/ (- (* x y) (* z t)) a) (- (* (/ y a) x) (* (/ t a) z))))
(/ (- (* x y) (* z t)) a))