Average Error: 0.0 → 0.0
Time: 947.0ms
Precision: 64
\[\frac{x + y}{y + 1}\]
\[\frac{x + y}{y + 1}\]
\frac{x + y}{y + 1}
\frac{x + y}{y + 1}
double f(double x, double y) {
        double r250647 = x;
        double r250648 = y;
        double r250649 = r250647 + r250648;
        double r250650 = 1.0;
        double r250651 = r250648 + r250650;
        double r250652 = r250649 / r250651;
        return r250652;
}

double f(double x, double y) {
        double r250653 = x;
        double r250654 = y;
        double r250655 = r250653 + r250654;
        double r250656 = 1.0;
        double r250657 = r250654 + r250656;
        double r250658 = r250655 / r250657;
        return r250658;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\frac{x + y}{y + 1}\]
  2. Final simplification0.0

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

Reproduce

herbie shell --seed 2020046 
(FPCore (x y)
  :name "Data.Colour.SRGB:invTransferFunction from colour-2.3.3"
  :precision binary64
  (/ (+ x y) (+ y 1)))