\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z \cdot c}\frac{\frac{\left(\left(x \cdot 9\right) \cdot y - \left(\left(z \cdot 4\right) \cdot t\right) \cdot a\right) + b}{z}}{c}double f(double x, double y, double z, double t, double a, double b, double c) {
double r676312 = x;
double r676313 = 9.0;
double r676314 = r676312 * r676313;
double r676315 = y;
double r676316 = r676314 * r676315;
double r676317 = z;
double r676318 = 4.0;
double r676319 = r676317 * r676318;
double r676320 = t;
double r676321 = r676319 * r676320;
double r676322 = a;
double r676323 = r676321 * r676322;
double r676324 = r676316 - r676323;
double r676325 = b;
double r676326 = r676324 + r676325;
double r676327 = c;
double r676328 = r676317 * r676327;
double r676329 = r676326 / r676328;
return r676329;
}
double f(double x, double y, double z, double t, double a, double b, double c) {
double r676330 = x;
double r676331 = 9.0;
double r676332 = r676330 * r676331;
double r676333 = y;
double r676334 = r676332 * r676333;
double r676335 = z;
double r676336 = 4.0;
double r676337 = r676335 * r676336;
double r676338 = t;
double r676339 = r676337 * r676338;
double r676340 = a;
double r676341 = r676339 * r676340;
double r676342 = r676334 - r676341;
double r676343 = b;
double r676344 = r676342 + r676343;
double r676345 = r676344 / r676335;
double r676346 = c;
double r676347 = r676345 / r676346;
return r676347;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a




Bits error versus b




Bits error versus c
Results
| Original | 20.7 |
|---|---|
| Target | 14.4 |
| Herbie | 21.9 |
if c < -2.243153237979781e+231 or -5.938891893988862e+208 < c < -1.8554615827904675e-49 or 5.006216764803239e-41 < c Initial program 22.4
Taylor expanded around 0 13.2
rmApplied associate-/l*10.5
rmApplied associate-/r/10.2
rmApplied *-un-lft-identity10.2
Applied times-frac9.2
if -2.243153237979781e+231 < c < -5.938891893988862e+208Initial program 24.4
Taylor expanded around 0 15.8
rmApplied times-frac16.8
Applied associate-*r*16.8
if -1.8554615827904675e-49 < c < 5.006216764803239e-41Initial program 15.1
rmApplied associate-/r*11.9
Final simplification21.9
herbie shell --seed 2019303
(FPCore (x y z t a b c)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, J"
:precision binary64
:herbie-target
(if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) -1.1001567408041049e-171) (/ (+ (- (* (* x 9) y) (* (* z 4) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) -0.0) (/ (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) z) c) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) 1.17088779117474882e-53) (/ (+ (- (* (* x 9) y) (* (* z 4) (* t a))) b) (* z c)) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) 2.8768236795461372e130) (- (+ (* (* 9 (/ y c)) (/ x z)) (/ b (* c z))) (* 4 (/ (* a t) c))) (if (< (/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)) 1.3838515042456319e158) (/ (+ (- (* (* x 9) y) (* (* z 4) (* t a))) b) (* z c)) (- (+ (* 9 (* (/ y (* c z)) x)) (/ b (* c z))) (* 4 (/ (* a t) c))))))))
(/ (+ (- (* (* x 9) y) (* (* (* z 4) t) a)) b) (* z c)))