Average Error: 30.7 → 30.7
Time: 497.0ms
Precision: binary64
\[\sqrt{\left(2 \cdot x\right) \cdot x}\]
\[\sqrt{\left(2 \cdot x\right) \cdot x}\]
\sqrt{\left(2 \cdot x\right) \cdot x}
\sqrt{\left(2 \cdot x\right) \cdot x}
double code(double x) {
	return ((double) sqrt(((double) (((double) (2.0 * x)) * x))));
}
double code(double x) {
	return ((double) sqrt(((double) (((double) (2.0 * x)) * x))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 30.7

    \[\sqrt{\left(2 \cdot x\right) \cdot x}\]
  2. Final simplification30.7

    \[\leadsto \sqrt{\left(2 \cdot x\right) \cdot x}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(sqrt (* (* 2 x) x))"
  :precision binary64
  (sqrt (* (* 2.0 x) x)))