\left(x \cdot y - z \cdot y\right) \cdot t
\begin{array}{l}
\mathbf{if}\;t \le -5.778870560051466615397553491583293903962 \cdot 10^{-114}:\\
\;\;\;\;\left(x - z\right) \cdot \left(t \cdot y\right) + \left(y \cdot \mathsf{fma}\left(-z, 1, z\right)\right) \cdot t\\
\mathbf{elif}\;t \le 3.77456076307271755413490715590529886874 \cdot 10^{62}:\\
\;\;\;\;\left(\left(x - z\right) \cdot t\right) \cdot y + \left(y \cdot \mathsf{fma}\left(-z, 1, z\right)\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\left(\sqrt[3]{t \cdot \left(x \cdot y\right)} \cdot \sqrt[3]{t \cdot \left(x \cdot y\right)}\right) \cdot \sqrt[3]{t \cdot \left(x \cdot y\right)} + t \cdot \left(\left(-z\right) \cdot y\right)\\
\end{array}double f(double x, double y, double z, double t) {
double r538134 = x;
double r538135 = y;
double r538136 = r538134 * r538135;
double r538137 = z;
double r538138 = r538137 * r538135;
double r538139 = r538136 - r538138;
double r538140 = t;
double r538141 = r538139 * r538140;
return r538141;
}
double f(double x, double y, double z, double t) {
double r538142 = t;
double r538143 = -5.7788705600514666e-114;
bool r538144 = r538142 <= r538143;
double r538145 = x;
double r538146 = z;
double r538147 = r538145 - r538146;
double r538148 = y;
double r538149 = r538142 * r538148;
double r538150 = r538147 * r538149;
double r538151 = -r538146;
double r538152 = 1.0;
double r538153 = fma(r538151, r538152, r538146);
double r538154 = r538148 * r538153;
double r538155 = r538154 * r538142;
double r538156 = r538150 + r538155;
double r538157 = 3.7745607630727176e+62;
bool r538158 = r538142 <= r538157;
double r538159 = r538147 * r538142;
double r538160 = r538159 * r538148;
double r538161 = r538160 + r538155;
double r538162 = r538145 * r538148;
double r538163 = r538142 * r538162;
double r538164 = cbrt(r538163);
double r538165 = r538164 * r538164;
double r538166 = r538165 * r538164;
double r538167 = r538151 * r538148;
double r538168 = r538142 * r538167;
double r538169 = r538166 + r538168;
double r538170 = r538158 ? r538161 : r538169;
double r538171 = r538144 ? r538156 : r538170;
return r538171;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
| Original | 7.0 |
|---|---|
| Target | 3.0 |
| Herbie | 3.1 |
if t < -5.7788705600514666e-114Initial program 3.6
Simplified3.6
rmApplied add-cube-cbrt4.1
Applied add-sqr-sqrt34.7
Applied prod-diff34.7
Applied distribute-lft-in34.7
Applied distribute-lft-in34.7
Simplified4.3
Simplified3.7
if -5.7788705600514666e-114 < t < 3.7745607630727176e+62Initial program 9.2
Simplified9.2
rmApplied add-cube-cbrt9.6
Applied add-sqr-sqrt36.9
Applied prod-diff36.9
Applied distribute-lft-in36.9
Applied distribute-lft-in36.9
Simplified14.0
Simplified9.6
rmApplied associate-*r*2.3
if 3.7745607630727176e+62 < t Initial program 4.7
Simplified4.7
rmApplied sub-neg4.7
Applied distribute-lft-in4.7
Applied distribute-lft-in4.7
Simplified4.7
Simplified4.7
rmApplied add-cube-cbrt5.2
Final simplification3.1
herbie shell --seed 2019353 +o rules:numerics
(FPCore (x y z t)
:name "Linear.Projection:inverseInfinitePerspective from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -9.231879582886777e-80) (* (* y t) (- x z)) (if (< t 2.543067051564877e+83) (* y (* t (- x z))) (* (* y (- x z)) t)))
(* (- (* x y) (* z y)) t))