Average Error: 20.0 → 0.4
Time: 3.0s
Precision: binary64
\[\]
\[\]
double code(double x, double y) {
	return ((double) (((double) (x * y)) / ((double) (((double) (((double) (x + y)) * ((double) (x + y)))) * ((double) (((double) (x + y)) + 1.0))))));
}
double code(double x, double y) {
	return ((double) (((double) (x / ((double) (x + y)))) * ((double) (1.0 / ((double) (((double) (((double) (x + y)) / y)) * ((double) (y + ((double) (x + 1.0))))))))));
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original20.0
Target0.1
Herbie0.4
\[\]

Derivation

  1. Initial program 20.0

    \[\]
  2. Simplified11.8

    \[\leadsto \]
  3. Using strategy rm
  4. Applied *-un-lft-identity11.8

    \[\leadsto \]
  5. Applied times-frac6.2

    \[\leadsto \]
  6. Applied associate-*r*4.5

    \[\leadsto \]
  7. Simplified4.4

    \[\leadsto \]
  8. Using strategy rm
  9. Applied clear-num4.6

    \[\leadsto \]
  10. Simplified0.4

    \[\leadsto \]
  11. Final simplification0.4

    \[\leadsto \]

Reproduce

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

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

  (/ (* x y) (* (* (+ x y) (+ x y)) (+ (+ x y) 1.0))))