Average Error: 3.6 → 3.1
Time: 1.2m
Precision: 64
Internal Precision: 320
\[\frac{x}{x + y \cdot e^{2.0 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5.0}{6.0}\right) - \frac{2.0}{t \cdot 3.0}\right)\right)}}\]
\[\begin{array}{l} \mathbf{if}\;a \le 3.060148992108571 \cdot 10^{+185}:\\ \;\;\;\;\frac{x}{y \cdot e^{\left(\frac{z}{\frac{t}{\sqrt{a + t}}} - \left(b - c\right) \cdot \left(\left(\frac{5.0}{6.0} + a\right) - \frac{2.0}{3.0 \cdot t}\right)\right) \cdot 2.0} + x}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{e^{\left(c \cdot 0.8333333333333334 - a \cdot \left(b - c\right)\right) \cdot 2.0} \cdot y + x}\\ \end{array}\]

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.060148992108571e+185

    1. Initial program 2.8

      \[\frac{x}{x + y \cdot e^{2.0 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5.0}{6.0}\right) - \frac{2.0}{t \cdot 3.0}\right)\right)}}\]
    2. Using strategy rm
    3. Applied associate-/l*2.1

      \[\leadsto \frac{x}{x + y \cdot e^{2.0 \cdot \left(\color{blue}{\frac{z}{\frac{t}{\sqrt{t + a}}}} - \left(b - c\right) \cdot \left(\left(a + \frac{5.0}{6.0}\right) - \frac{2.0}{t \cdot 3.0}\right)\right)}}\]

    if 3.060148992108571e+185 < a

    1. Initial program 7.3

      \[\frac{x}{x + y \cdot e^{2.0 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5.0}{6.0}\right) - \frac{2.0}{t \cdot 3.0}\right)\right)}}\]
    2. Taylor expanded around inf 12.7

      \[\leadsto \frac{x}{x + y \cdot e^{2.0 \cdot \color{blue}{\left(\left(a \cdot c + 0.8333333333333334 \cdot c\right) - a \cdot b\right)}}}\]
    3. Simplified7.9

      \[\leadsto \frac{x}{x + y \cdot e^{2.0 \cdot \color{blue}{\left(0.8333333333333334 \cdot c - \left(b - c\right) \cdot a\right)}}}\]
  3. Recombined 2 regimes into one program.
  4. Final simplification3.1

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \le 3.060148992108571 \cdot 10^{+185}:\\ \;\;\;\;\frac{x}{y \cdot e^{\left(\frac{z}{\frac{t}{\sqrt{a + t}}} - \left(b - c\right) \cdot \left(\left(\frac{5.0}{6.0} + a\right) - \frac{2.0}{3.0 \cdot t}\right)\right) \cdot 2.0} + x}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{e^{\left(c \cdot 0.8333333333333334 - a \cdot \left(b - c\right)\right) \cdot 2.0} \cdot y + x}\\ \end{array}\]

Runtime

Time bar (total: 1.2m)Debug logProfile

herbie shell --seed 2018225 
(FPCore (x y z t a b c)
  :name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2"
  (/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))