Average Error: 0.1 → 0.1
Time: 3.3s
Precision: 64
\[\frac{22}{7} \cdot x\]
\[\frac{22}{7} \cdot x\]
\frac{22}{7} \cdot x
\frac{22}{7} \cdot x
double f(double x) {
        double r1912193 = 22.0;
        double r1912194 = 7.0;
        double r1912195 = r1912193 / r1912194;
        double r1912196 = x;
        double r1912197 = r1912195 * r1912196;
        return r1912197;
}

double f(double x) {
        double r1912198 = 22.0;
        double r1912199 = 7.0;
        double r1912200 = r1912198 / r1912199;
        double r1912201 = x;
        double r1912202 = r1912200 * r1912201;
        return r1912202;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[\frac{22}{7} \cdot x\]
  2. Final simplification0.1

    \[\leadsto \frac{22}{7} \cdot x\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "(22/7)*x"
  :precision binary64
  (* (/ 22 7) x))