Average Error: 0.2 → 0.2
Time: 15.7s
Precision: 64
\[\frac{x}{1 + \sqrt{x + 1}}\]
\[\frac{x}{1 + \sqrt{x + 1}}\]
\frac{x}{1 + \sqrt{x + 1}}
\frac{x}{1 + \sqrt{x + 1}}
double f(double x) {
        double r149692 = x;
        double r149693 = 1.0;
        double r149694 = r149692 + r149693;
        double r149695 = sqrt(r149694);
        double r149696 = r149693 + r149695;
        double r149697 = r149692 / r149696;
        return r149697;
}

double f(double x) {
        double r149698 = x;
        double r149699 = 1.0;
        double r149700 = r149698 + r149699;
        double r149701 = sqrt(r149700);
        double r149702 = r149699 + r149701;
        double r149703 = r149698 / r149702;
        return r149703;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.2

    \[\frac{x}{1 + \sqrt{x + 1}}\]
  2. Using strategy rm
  3. Applied flip3-+7.1

    \[\leadsto \frac{x}{\color{blue}{\frac{{1}^{3} + {\left(\sqrt{x + 1}\right)}^{3}}{1 \cdot 1 + \left(\sqrt{x + 1} \cdot \sqrt{x + 1} - 1 \cdot \sqrt{x + 1}\right)}}}\]
  4. Applied associate-/r/7.1

    \[\leadsto \color{blue}{\frac{x}{{1}^{3} + {\left(\sqrt{x + 1}\right)}^{3}} \cdot \left(1 \cdot 1 + \left(\sqrt{x + 1} \cdot \sqrt{x + 1} - 1 \cdot \sqrt{x + 1}\right)\right)}\]
  5. Using strategy rm
  6. Applied sum-cubes7.1

    \[\leadsto \frac{x}{\color{blue}{\left(1 \cdot 1 + \left(\sqrt{x + 1} \cdot \sqrt{x + 1} - 1 \cdot \sqrt{x + 1}\right)\right) \cdot \left(1 + \sqrt{x + 1}\right)}} \cdot \left(1 \cdot 1 + \left(\sqrt{x + 1} \cdot \sqrt{x + 1} - 1 \cdot \sqrt{x + 1}\right)\right)\]
  7. Applied associate-/r*0.2

    \[\leadsto \color{blue}{\frac{\frac{x}{1 \cdot 1 + \left(\sqrt{x + 1} \cdot \sqrt{x + 1} - 1 \cdot \sqrt{x + 1}\right)}}{1 + \sqrt{x + 1}}} \cdot \left(1 \cdot 1 + \left(\sqrt{x + 1} \cdot \sqrt{x + 1} - 1 \cdot \sqrt{x + 1}\right)\right)\]
  8. Simplified0.1

    \[\leadsto \frac{\color{blue}{\frac{x}{\left(\left(1 \cdot 1 + \left(x + 1\right)\right) - 1 \cdot \sqrt{x + 1}\right) \cdot 1}}}{1 + \sqrt{x + 1}} \cdot \left(1 \cdot 1 + \left(\sqrt{x + 1} \cdot \sqrt{x + 1} - 1 \cdot \sqrt{x + 1}\right)\right)\]
  9. Final simplification0.2

    \[\leadsto \frac{x}{1 + \sqrt{x + 1}}\]

Reproduce

herbie shell --seed 2019303 
(FPCore (x)
  :name "Numeric.Log:$clog1p from log-domain-0.10.2.1, B"
  :precision binary64
  (/ x (+ 1 (sqrt (+ x 1)))))