Average Error: 0.0 → 0.0
Time: 718.0ms
Precision: 64
\[3 + \frac{5}{x}\]
\[3 + \frac{5}{x}\]
3 + \frac{5}{x}
3 + \frac{5}{x}
double f(double x) {
        double r377928 = 3.0;
        double r377929 = 5.0;
        double r377930 = x;
        double r377931 = r377929 / r377930;
        double r377932 = r377928 + r377931;
        return r377932;
}

double f(double x) {
        double r377933 = 3.0;
        double r377934 = 5.0;
        double r377935 = x;
        double r377936 = r377934 / r377935;
        double r377937 = r377933 + r377936;
        return r377937;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[3 + \frac{5}{x}\]
  2. Final simplification0.0

    \[\leadsto 3 + \frac{5}{x}\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "3+5/x"
  :precision binary64
  (+ 3 (/ 5 x)))