Average Error: 0.0 → 0.0
Time: 657.0ms
Precision: binary64
\[x \cdot x - a\]
\[x \cdot x - a\]
x \cdot x - a
x \cdot x - a
double code(double x, double a) {
	return ((double) (((double) (x * x)) - a));
}
double code(double x, double a) {
	return ((double) (((double) (x * x)) - a));
}

Error

Bits error versus x

Bits error versus a

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[x \cdot x - a\]
  2. Final simplification0.0

    \[\leadsto x \cdot x - a\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x a)
  :name "(- (* x x) a)"
  :precision binary64
  (- (* x x) a))