Average Error: 19.8 → 0.2
Time: 4.1s
Precision: 64
\[\frac{x \cdot y}{\left(\left(x + y\right) \cdot \left(x + y\right)\right) \cdot \left(\left(x + y\right) + 1\right)}\]
\[\frac{\frac{1}{\frac{x + y}{x}} \cdot \frac{y}{\left(x + y\right) + 1}}{x + y} \cdot \left(\sqrt[3]{1} \cdot \sqrt[3]{1}\right)\]
\frac{x \cdot y}{\left(\left(x + y\right) \cdot \left(x + y\right)\right) \cdot \left(\left(x + y\right) + 1\right)}
\frac{\frac{1}{\frac{x + y}{x}} \cdot \frac{y}{\left(x + y\right) + 1}}{x + y} \cdot \left(\sqrt[3]{1} \cdot \sqrt[3]{1}\right)
double f(double x, double y) {
        double r397934 = x;
        double r397935 = y;
        double r397936 = r397934 * r397935;
        double r397937 = r397934 + r397935;
        double r397938 = r397937 * r397937;
        double r397939 = 1.0;
        double r397940 = r397937 + r397939;
        double r397941 = r397938 * r397940;
        double r397942 = r397936 / r397941;
        return r397942;
}

double f(double x, double y) {
        double r397943 = 1.0;
        double r397944 = x;
        double r397945 = y;
        double r397946 = r397944 + r397945;
        double r397947 = r397946 / r397944;
        double r397948 = r397943 / r397947;
        double r397949 = 1.0;
        double r397950 = r397946 + r397949;
        double r397951 = r397945 / r397950;
        double r397952 = r397948 * r397951;
        double r397953 = r397952 / r397946;
        double r397954 = cbrt(r397943);
        double r397955 = r397954 * r397954;
        double r397956 = r397953 * r397955;
        return r397956;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original19.8
Target0.1
Herbie0.2
\[\frac{\frac{\frac{x}{\left(y + 1\right) + x}}{y + x}}{\frac{1}{\frac{y}{y + x}}}\]

Derivation

  1. Initial program 19.8

    \[\frac{x \cdot y}{\left(\left(x + y\right) \cdot \left(x + y\right)\right) \cdot \left(\left(x + y\right) + 1\right)}\]
  2. Using strategy rm
  3. Applied times-frac8.0

    \[\leadsto \color{blue}{\frac{x}{\left(x + y\right) \cdot \left(x + y\right)} \cdot \frac{y}{\left(x + y\right) + 1}}\]
  4. Using strategy rm
  5. Applied *-un-lft-identity8.0

    \[\leadsto \frac{\color{blue}{1 \cdot x}}{\left(x + y\right) \cdot \left(x + y\right)} \cdot \frac{y}{\left(x + y\right) + 1}\]
  6. Applied times-frac0.2

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

    \[\leadsto \color{blue}{\frac{1}{x + y} \cdot \left(\frac{x}{x + y} \cdot \frac{y}{\left(x + y\right) + 1}\right)}\]
  8. Using strategy rm
  9. Applied *-un-lft-identity0.2

    \[\leadsto \frac{1}{\color{blue}{1 \cdot \left(x + y\right)}} \cdot \left(\frac{x}{x + y} \cdot \frac{y}{\left(x + y\right) + 1}\right)\]
  10. Applied add-cube-cbrt0.2

    \[\leadsto \frac{\color{blue}{\left(\sqrt[3]{1} \cdot \sqrt[3]{1}\right) \cdot \sqrt[3]{1}}}{1 \cdot \left(x + y\right)} \cdot \left(\frac{x}{x + y} \cdot \frac{y}{\left(x + y\right) + 1}\right)\]
  11. Applied times-frac0.2

    \[\leadsto \color{blue}{\left(\frac{\sqrt[3]{1} \cdot \sqrt[3]{1}}{1} \cdot \frac{\sqrt[3]{1}}{x + y}\right)} \cdot \left(\frac{x}{x + y} \cdot \frac{y}{\left(x + y\right) + 1}\right)\]
  12. Applied associate-*l*0.2

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

    \[\leadsto \frac{\sqrt[3]{1} \cdot \sqrt[3]{1}}{1} \cdot \color{blue}{\frac{\frac{x}{x + y} \cdot \frac{y}{\left(x + y\right) + 1}}{x + y}}\]
  14. Using strategy rm
  15. Applied clear-num0.2

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

    \[\leadsto \frac{\frac{1}{\frac{x + y}{x}} \cdot \frac{y}{\left(x + y\right) + 1}}{x + y} \cdot \left(\sqrt[3]{1} \cdot \sqrt[3]{1}\right)\]

Reproduce

herbie shell --seed 2020024 
(FPCore (x y)
  :name "Numeric.SpecFunctions:incompleteBetaApprox from math-functions-0.1.5.2, A"
  :precision binary64

  :herbie-target
  (/ (/ (/ x (+ (+ y 1) x)) (+ y x)) (/ 1 (/ y (+ y x))))

  (/ (* x y) (* (* (+ x y) (+ x y)) (+ (+ x y) 1))))