\frac{x \cdot y - z \cdot t}{a}\begin{array}{l}
\mathbf{if}\;x \cdot y - z \cdot t \leq -\infty:\\
\;\;\;\;\left(x \cdot \left(\sqrt[3]{y} \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{a} \cdot \sqrt[3]{a}}\right)\right) \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{a}} - z \cdot \frac{t}{a}\\
\mathbf{elif}\;x \cdot y - z \cdot t \leq 7.116535952425097 \cdot 10^{+286}:\\
\;\;\;\;\frac{x \cdot y - z \cdot t}{a}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{y}{a} - \sqrt[3]{\frac{t}{a}} \cdot \left(z \cdot \left(\sqrt[3]{\frac{t}{a}} \cdot \sqrt[3]{\frac{t}{a}}\right)\right)\\
\end{array}double code(double x, double y, double z, double t, double a) {
return (((double) (((double) (x * y)) - ((double) (z * t)))) / a);
}
double code(double x, double y, double z, double t, double a) {
double VAR;
if ((((double) (((double) (x * y)) - ((double) (z * t)))) <= ((double) -(((double) INFINITY))))) {
VAR = ((double) (((double) (((double) (x * ((double) (((double) cbrt(y)) * (((double) cbrt(y)) / ((double) (((double) cbrt(a)) * ((double) cbrt(a))))))))) * (((double) cbrt(y)) / ((double) cbrt(a))))) - ((double) (z * (t / a)))));
} else {
double VAR_1;
if ((((double) (((double) (x * y)) - ((double) (z * t)))) <= 7.116535952425097e+286)) {
VAR_1 = (((double) (((double) (x * y)) - ((double) (z * t)))) / a);
} else {
VAR_1 = ((double) (((double) (x * (y / a))) - ((double) (((double) cbrt((t / a))) * ((double) (z * ((double) (((double) cbrt((t / a))) * ((double) cbrt((t / a)))))))))));
}
VAR = VAR_1;
}
return VAR;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 7.5 |
|---|---|
| Target | 6.2 |
| Herbie | 0.8 |
if (- (* x y) (* z t)) < -inf.0Initial program Error: 64.0 bits
rmApplied div-subError: 64.0 bits
SimplifiedError: 31.0 bits
SimplifiedError: 0.3 bits
rmApplied add-cube-cbrtError: 0.9 bits
Applied add-cube-cbrtError: 1.0 bits
Applied times-fracError: 1.0 bits
Applied associate-*r*Error: 1.0 bits
SimplifiedError: 0.9 bits
if -inf.0 < (- (* x y) (* z t)) < 7.1165359524250968e286Initial program Error: 0.8 bits
if 7.1165359524250968e286 < (- (* x y) (* z t)) Initial program Error: 52.6 bits
rmApplied div-subError: 52.6 bits
SimplifiedError: 28.8 bits
SimplifiedError: 0.2 bits
rmApplied add-cube-cbrtError: 0.8 bits
Applied associate-*r*Error: 0.8 bits
Final simplificationError: 0.8 bits
herbie shell --seed 2020200
(FPCore (x y z t a)
:name "Data.Colour.Matrix:inverse from colour-2.3.3, B"
:precision binary64
: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))