Average Error: 29.7 → 29.7
Time: 749.0ms
Precision: binary64
Cost: 19520
\[\sqrt{{x}^{2} + {x}^{2}}\]
\[\sqrt{{x}^{2} + {x}^{2}}\]
\sqrt{{x}^{2} + {x}^{2}}
\sqrt{{x}^{2} + {x}^{2}}
(FPCore (x) :precision binary64 (sqrt (+ (pow x 2.0) (pow x 2.0))))
(FPCore (x) :precision binary64 (sqrt (+ (pow x 2.0) (pow x 2.0))))
double code(double x) {
	return sqrt(pow(x, 2.0) + pow(x, 2.0));
}
double code(double x) {
	return sqrt(pow(x, 2.0) + pow(x, 2.0));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 29.7

    \[\sqrt{{x}^{2} + {x}^{2}}\]

Reproduce

herbie shell --seed 2021042 
(FPCore (x)
  :name "sqrt E"
  :precision binary64
  (sqrt (+ (pow x 2.0) (pow x 2.0))))