Average Error: 0.0 → 0.0
Time: 722.0ms
Precision: binary64
\[\frac{a}{b} - x\]
\[\frac{a}{b} - x\]
\frac{a}{b} - x
\frac{a}{b} - x
double code(double a, double b, double x) {
	return ((double) (((double) (a / b)) - x));
}
double code(double a, double b, double x) {
	return ((double) (((double) (a / b)) - x));
}

Error

Bits error versus a

Bits error versus b

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\frac{a}{b} - x\]
  2. Final simplification0.0

    \[\leadsto \frac{a}{b} - x\]

Reproduce

herbie shell --seed 2020153 
(FPCore (a b x)
  :name "(- (/ a b) x)"
  :precision binary64
  (- (/ a b) x))