Average Error: 0 → 0
Time: 738.0ms
Precision: binary64
\[{b}^{2}\]
\[{b}^{2}\]
{b}^{2}
{b}^{2}
double code(double b) {
	return ((double) pow(b, 2.0));
}
double code(double b) {
	return ((double) pow(b, 2.0));
}

Error

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[{b}^{2}\]
  2. Final simplification0

    \[\leadsto {b}^{2}\]

Reproduce

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