\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}\left(\frac{b}{z \cdot c} + 9 \cdot \frac{x \cdot y}{z \cdot c}\right) - 4 \cdot \left(a \cdot \frac{t}{c}\right)double f(double x, double y, double z, double t, double a, double b, double c) {
double r505533 = x;
double r505534 = 9.0;
double r505535 = r505533 * r505534;
double r505536 = y;
double r505537 = r505535 * r505536;
double r505538 = z;
double r505539 = 4.0;
double r505540 = r505538 * r505539;
double r505541 = t;
double r505542 = r505540 * r505541;
double r505543 = a;
double r505544 = r505542 * r505543;
double r505545 = r505537 - r505544;
double r505546 = b;
double r505547 = r505545 + r505546;
double r505548 = c;
double r505549 = r505538 * r505548;
double r505550 = r505547 / r505549;
return r505550;
}
double f(double x, double y, double z, double t, double a, double b, double c) {
double r505551 = b;
double r505552 = z;
double r505553 = c;
double r505554 = r505552 * r505553;
double r505555 = r505551 / r505554;
double r505556 = 9.0;
double r505557 = x;
double r505558 = y;
double r505559 = r505557 * r505558;
double r505560 = r505559 / r505554;
double r505561 = r505556 * r505560;
double r505562 = r505555 + r505561;
double r505563 = 4.0;
double r505564 = a;
double r505565 = t;
double r505566 = r505565 / r505553;
double r505567 = r505564 * r505566;
double r505568 = r505563 * r505567;
double r505569 = r505562 - r505568;
return r505569;
}




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.4 |
|---|---|
| Target | 14.4 |
| Herbie | 11.0 |
if (* (* x 9.0) y) < -3.1282916695166224e+266Initial program 53.4
Taylor expanded around 0 49.4
rmApplied associate-/l*49.3
rmApplied associate-/l*18.8
if -3.1282916695166224e+266 < (* (* x 9.0) y) < -6.460863574212899e-214Initial program 16.7
Taylor expanded around 0 7.2
rmApplied associate-/l*6.6
rmApplied associate-/r/6.8
if -6.460863574212899e-214 < (* (* x 9.0) y) < 2.004469820524379e-80Initial program 16.5
Taylor expanded around 0 7.9
rmApplied *-un-lft-identity7.9
Applied times-frac7.2
Simplified7.2
if 2.004469820524379e-80 < (* (* x 9.0) y) < 6.104875562679851e+222Initial program 17.3
Taylor expanded around 0 7.9
rmApplied associate-/l*6.8
rmApplied div-inv6.8
Applied *-un-lft-identity6.8
Applied times-frac8.0
Simplified8.0
if 6.104875562679851e+222 < (* (* x 9.0) y) Initial program 45.6
Taylor expanded around 0 39.7
rmApplied associate-/l*38.6
rmApplied times-frac10.3
Final simplification11.0
herbie shell --seed 2019304
(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)))