Average Error: 0.5 → 0
Time: 1.6s
Precision: 64
\[\sqrt{x} \cdot \sqrt{x}\]
\[x\]
\sqrt{x} \cdot \sqrt{x}
x
double f(double x) {
        double r733750 = x;
        double r733751 = sqrt(r733750);
        double r733752 = r733751 * r733751;
        return r733752;
}

double f(double x) {
        double r733753 = x;
        return r733753;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.5

    \[\sqrt{x} \cdot \sqrt{x}\]
  2. Simplified0

    \[\leadsto \color{blue}{x}\]
  3. Final simplification0

    \[\leadsto x\]

Reproduce

herbie shell --seed 1 
(FPCore (x)
  :name "sqrt(x)*sqrt(x)"
  :precision binary64
  (* (sqrt x) (sqrt x)))