Average Error: 16.1 → 16.1
Time: 850.0ms
Precision: binary64
\[x \cdot x - {x}^{2}\]
\[x \cdot x - {x}^{2}\]
x \cdot x - {x}^{2}
x \cdot x - {x}^{2}
double code(double x) {
	return ((double) (((double) (x * x)) - ((double) pow(x, 2.0))));
}
double code(double x) {
	return ((double) (((double) (x * x)) - ((double) 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 16.1

    \[x \cdot x - {x}^{2}\]
  2. Final simplification16.1

    \[\leadsto x \cdot x - {x}^{2}\]

Reproduce

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