Average Error: 0.0 → 0.0
Time: 1.4s
Precision: binary64
\[{ax}^{2} + {by}^{2}\]
\[{ax}^{2} + {by}^{2}\]
{ax}^{2} + {by}^{2}
{ax}^{2} + {by}^{2}
double code(double ax, double by) {
	return ((double) (((double) pow(ax, 2.0)) + ((double) pow(by, 2.0))));
}
double code(double ax, double by) {
	return ((double) (((double) pow(ax, 2.0)) + ((double) pow(by, 2.0))));
}

Error

Bits error versus ax

Bits error versus by

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[{ax}^{2} + {by}^{2}\]
  2. Final simplification0.0

    \[\leadsto {ax}^{2} + {by}^{2}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (ax by)
  :name "(+ (pow ax 2) (pow by 2))"
  :precision binary64
  (+ (pow ax 2.0) (pow by 2.0)))