Average Error: 0 → 0
Time: 642.0ms
Precision: 64
\[\frac{x + y}{2}\]
\[\frac{x + y}{2}\]
\frac{x + y}{2}
\frac{x + y}{2}
double f(double x, double y) {
        double r145916 = x;
        double r145917 = y;
        double r145918 = r145916 + r145917;
        double r145919 = 2.0;
        double r145920 = r145918 / r145919;
        return r145920;
}

double f(double x, double y) {
        double r145921 = x;
        double r145922 = y;
        double r145923 = r145921 + r145922;
        double r145924 = 2.0;
        double r145925 = r145923 / r145924;
        return r145925;
}

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

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

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

Reproduce

herbie shell --seed 2019305 +o rules:numerics
(FPCore (x y)
  :name "Data.Colour.RGB:hslsv from colour-2.3.3, A"
  :precision binary64
  (/ (+ x y) 2))