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

Error

Bits error versus d

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

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

    \[\leadsto d - x \cdot x\]

Reproduce

herbie shell --seed 2020153 
(FPCore (d x)
  :name "(- d (* x x))"
  :precision binary64
  (- d (* x x)))