Average Error: 0.0 → 0.0
Time: 1.4s
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 r212820 = x;
        double r212821 = y;
        double r212822 = r212820 + r212821;
        double r212823 = 1.0;
        double r212824 = r212821 + r212823;
        double r212825 = r212822 / r212824;
        return r212825;
}

double f(double x, double y) {
        double r212826 = x;
        double r212827 = y;
        double r212828 = r212826 + r212827;
        double r212829 = 1.0;
        double r212830 = r212827 + r212829;
        double r212831 = r212828 / r212830;
        return r212831;
}

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 2020039 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.SRGB:invTransferFunction from colour-2.3.3"
  :precision binary64
  (/ (+ x y) (+ y 1)))