Average Error: 0 → 0
Time: 592.0ms
Precision: binary64
\[\left|x\right| - \left|y\right|\]
\[\left|x\right| - \left|y\right|\]
\left|x\right| - \left|y\right|
\left|x\right| - \left|y\right|
double code(double x, double y) {
	return ((double) (((double) fabs(x)) - ((double) fabs(y))));
}
double code(double x, double y) {
	return ((double) (((double) fabs(x)) - ((double) fabs(y))));
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0

    \[\left|x\right| - \left|y\right|\]
  2. Final simplification0

    \[\leadsto \left|x\right| - \left|y\right|\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x y)
  :name "(- (fabs x) (fabs y))"
  :precision binary64
  (- (fabs x) (fabs y)))