\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}\begin{array}{l}
\mathbf{if}\;t \leq -5.158297158568585 \cdot 10^{+36} \lor \neg \left(t \leq 1.0664574295631435 \cdot 10^{-280}\right):\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z}{\sqrt[3]{t} \cdot \sqrt[3]{t}} \cdot \frac{\sqrt{t + a}}{\sqrt[3]{t}} - \left(b - c\right) \cdot \left(\left(a + 0.8333333333333334\right) - \frac{2}{t \cdot 3}\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{\left(z \cdot \sqrt{t + a}\right) \cdot \left(\left(t \cdot 3\right) \cdot \left(a - 0.8333333333333334\right)\right) - t \cdot \left(\left(b - c\right) \cdot \left(\left(t \cdot 3\right) \cdot \left(a \cdot a - 0.6944444444444444\right) - 2 \cdot \left(a - 0.8333333333333334\right)\right)\right)}{t \cdot \left(\left(t \cdot 3\right) \cdot \left(a - 0.8333333333333334\right)\right)}}}\\
\end{array}(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))(FPCore (x y z t a b c)
:precision binary64
(if (or (<= t -5.158297158568585e+36) (not (<= t 1.0664574295631435e-280)))
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(* (/ z (* (cbrt t) (cbrt t))) (/ (sqrt (+ t a)) (cbrt t)))
(* (- b c) (- (+ a 0.8333333333333334) (/ 2.0 (* t 3.0))))))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(/
(-
(* (* z (sqrt (+ t a))) (* (* t 3.0) (- a 0.8333333333333334)))
(*
t
(*
(- b c)
(-
(* (* t 3.0) (- (* a a) 0.6944444444444444))
(* 2.0 (- a 0.8333333333333334))))))
(* t (* (* t 3.0) (- a 0.8333333333333334)))))))))))double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp(2.0 * (((z * sqrt(t + a)) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))));
}
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((t <= -5.158297158568585e+36) || !(t <= 1.0664574295631435e-280)) {
tmp = x / (x + (y * exp(2.0 * (((z / (cbrt(t) * cbrt(t))) * (sqrt(t + a) / cbrt(t))) - ((b - c) * ((a + 0.8333333333333334) - (2.0 / (t * 3.0))))))));
} else {
tmp = x / (x + (y * exp(2.0 * ((((z * sqrt(t + a)) * ((t * 3.0) * (a - 0.8333333333333334))) - (t * ((b - c) * (((t * 3.0) * ((a * a) - 0.6944444444444444)) - (2.0 * (a - 0.8333333333333334)))))) / (t * ((t * 3.0) * (a - 0.8333333333333334)))))));
}
return tmp;
}




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 | 3.8 |
|---|---|
| Target | 3.0 |
| Herbie | 3.0 |
if t < -5.15829715856858492e36 or 1.06645742956314352e-280 < t Initial program 2.9
rmApplied add-cube-cbrt_binary642.9
Applied times-frac_binary641.5
if -5.15829715856858492e36 < t < 1.06645742956314352e-280Initial program 7.2
rmApplied flip-+_binary649.8
Applied frac-sub_binary6410.0
Applied associate-*r/_binary6410.0
Applied frac-sub_binary648.3
Simplified8.3
Simplified8.3
Final simplification3.0
herbie shell --seed 2020224
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:herbie-target
(if (< t -2.118326644891581e-50) (/ x (+ x (* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b))))))) (if (< t 5.196588770651547e-123) (/ x (+ x (* y (exp (* 2.0 (/ (- (* (* z (sqrt (+ t a))) (* (* 3.0 t) (- a (/ 5.0 6.0)))) (* (- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0) (* (- a (/ 5.0 6.0)) (* (- b c) t)))) (* (* (* t t) 3.0) (- a (/ 5.0 6.0))))))))) (/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))