Average Error: 0.0 → 0.0
Time: 539.0ms
Precision: binary64
\[\left(1 + a\right) - x\]
\[\left(1 + a\right) - x\]
\left(1 + a\right) - x
\left(1 + a\right) - x
double code(double a, double x) {
	return ((double) (((double) (1.0 + a)) - x));
}
double code(double a, double x) {
	return ((double) (((double) (1.0 + a)) - x));
}

Error

Bits error versus a

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\left(1 + a\right) - x\]
  2. Final simplification0.0

    \[\leadsto \left(1 + a\right) - x\]

Reproduce

herbie shell --seed 2020153 
(FPCore (a x)
  :name "(- (+ 1 a) x)"
  :precision binary64
  (- (+ 1.0 a) x))