Average Error: 3.8 → 1.6
Time: 7.7s
Precision: 64
\[\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}\;a \le 3.7163425386581422 \cdot 10^{33}:\\ \;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \mathsf{fma}\left(\frac{z}{1}, \frac{\sqrt{t + a}}{t}, -\left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\mathsf{fma}\left(a + \left(\frac{5}{6} - \frac{2}{t \cdot 3}\right), -\left(b - c\right), \frac{z \cdot \sqrt{t + a}}{t}\right) + \left(a + \left(\frac{5}{6} - \frac{2}{t \cdot 3}\right)\right) \cdot \left(\left(-\left(b - c\right)\right) + \left(b - c\right)\right)\right)}}\\ \end{array}\]
\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}\;a \le 3.7163425386581422 \cdot 10^{33}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \mathsf{fma}\left(\frac{z}{1}, \frac{\sqrt{t + a}}{t}, -\left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}\\

\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\mathsf{fma}\left(a + \left(\frac{5}{6} - \frac{2}{t \cdot 3}\right), -\left(b - c\right), \frac{z \cdot \sqrt{t + a}}{t}\right) + \left(a + \left(\frac{5}{6} - \frac{2}{t \cdot 3}\right)\right) \cdot \left(\left(-\left(b - c\right)\right) + \left(b - c\right)\right)\right)}}\\

\end{array}
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 VAR;
	if ((a <= 3.716342538658142e+33)) {
		VAR = (x / (x + (y * exp((2.0 * fma((z / 1.0), (sqrt((t + a)) / t), -((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))));
	} else {
		VAR = (x / (x + (y * exp((2.0 * (fma((a + ((5.0 / 6.0) - (2.0 / (t * 3.0)))), -(b - c), ((z * sqrt((t + a))) / t)) + ((a + ((5.0 / 6.0) - (2.0 / (t * 3.0)))) * (-(b - c) + (b - c)))))))));
	}
	return VAR;
}

Error

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

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Split input into 2 regimes
  2. if a < 3.716342538658142e+33

    1. Initial program 2.6

      \[\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)}}\]
    2. Using strategy rm
    3. Applied *-un-lft-identity2.6

      \[\leadsto \frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{\color{blue}{1 \cdot t}} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}\]
    4. Applied times-frac1.3

      \[\leadsto \frac{x}{x + y \cdot e^{2 \cdot \left(\color{blue}{\frac{z}{1} \cdot \frac{\sqrt{t + a}}{t}} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}\]
    5. Applied fma-neg0.4

      \[\leadsto \frac{x}{x + y \cdot e^{2 \cdot \color{blue}{\mathsf{fma}\left(\frac{z}{1}, \frac{\sqrt{t + a}}{t}, -\left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}}\]

    if 3.716342538658142e+33 < a

    1. Initial program 5.8

      \[\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)}}\]
    2. Using strategy rm
    3. Applied log1p-expm1-u15.7

      \[\leadsto \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) - \color{blue}{\mathsf{log1p}\left(\mathsf{expm1}\left(\frac{2}{t \cdot 3}\right)\right)}\right)\right)}}\]
    4. Using strategy rm
    5. Applied add-sqr-sqrt39.5

      \[\leadsto \frac{x}{x + y \cdot e^{2 \cdot \left(\color{blue}{\sqrt{\frac{z \cdot \sqrt{t + a}}{t}} \cdot \sqrt{\frac{z \cdot \sqrt{t + a}}{t}}} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \mathsf{log1p}\left(\mathsf{expm1}\left(\frac{2}{t \cdot 3}\right)\right)\right)\right)}}\]
    6. Applied prod-diff56.4

      \[\leadsto \frac{x}{x + y \cdot e^{2 \cdot \color{blue}{\left(\mathsf{fma}\left(\sqrt{\frac{z \cdot \sqrt{t + a}}{t}}, \sqrt{\frac{z \cdot \sqrt{t + a}}{t}}, -\left(\left(a + \frac{5}{6}\right) - \mathsf{log1p}\left(\mathsf{expm1}\left(\frac{2}{t \cdot 3}\right)\right)\right) \cdot \left(b - c\right)\right) + \mathsf{fma}\left(-\left(\left(a + \frac{5}{6}\right) - \mathsf{log1p}\left(\mathsf{expm1}\left(\frac{2}{t \cdot 3}\right)\right)\right), b - c, \left(\left(a + \frac{5}{6}\right) - \mathsf{log1p}\left(\mathsf{expm1}\left(\frac{2}{t \cdot 3}\right)\right)\right) \cdot \left(b - c\right)\right)\right)}}}\]
    7. Simplified49.4

      \[\leadsto \frac{x}{x + y \cdot e^{2 \cdot \left(\color{blue}{\mathsf{fma}\left(a + \left(\frac{5}{6} - \frac{2}{t \cdot 3}\right), -\left(b - c\right), \frac{z \cdot \sqrt{t + a}}{t}\right)} + \mathsf{fma}\left(-\left(\left(a + \frac{5}{6}\right) - \mathsf{log1p}\left(\mathsf{expm1}\left(\frac{2}{t \cdot 3}\right)\right)\right), b - c, \left(\left(a + \frac{5}{6}\right) - \mathsf{log1p}\left(\mathsf{expm1}\left(\frac{2}{t \cdot 3}\right)\right)\right) \cdot \left(b - c\right)\right)\right)}}\]
    8. Simplified3.5

      \[\leadsto \frac{x}{x + y \cdot e^{2 \cdot \left(\mathsf{fma}\left(a + \left(\frac{5}{6} - \frac{2}{t \cdot 3}\right), -\left(b - c\right), \frac{z \cdot \sqrt{t + a}}{t}\right) + \color{blue}{\left(a + \left(\frac{5}{6} - \frac{2}{t \cdot 3}\right)\right) \cdot \left(\left(-\left(b - c\right)\right) + \left(b - c\right)\right)}\right)}}\]
  3. Recombined 2 regimes into one program.
  4. Final simplification1.6

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \le 3.7163425386581422 \cdot 10^{33}:\\ \;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \mathsf{fma}\left(\frac{z}{1}, \frac{\sqrt{t + a}}{t}, -\left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\mathsf{fma}\left(a + \left(\frac{5}{6} - \frac{2}{t \cdot 3}\right), -\left(b - c\right), \frac{z \cdot \sqrt{t + a}}{t}\right) + \left(a + \left(\frac{5}{6} - \frac{2}{t \cdot 3}\right)\right) \cdot \left(\left(-\left(b - c\right)\right) + \left(b - c\right)\right)\right)}}\\ \end{array}\]

Reproduce

herbie shell --seed 2020100 +o rules:numerics
(FPCore (x y z t a b c)
  :name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2"
  :precision binary64
  (/ x (+ x (* y (exp (* 2 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5 6)) (/ 2 (* t 3)))))))))))