Average Error: 0.0 → 0.0
Time: 1.1s
Precision: binary64
\[\left(1 - x1 \cdot y1\right) - x2 \cdot y2\]
\[\left(1 - x1 \cdot y1\right) - x2 \cdot y2\]
\left(1 - x1 \cdot y1\right) - x2 \cdot y2
\left(1 - x1 \cdot y1\right) - x2 \cdot y2
double code(double x1, double y1, double x2, double y2) {
	return ((double) (((double) (1.0 - ((double) (x1 * y1)))) - ((double) (x2 * y2))));
}
double code(double x1, double y1, double x2, double y2) {
	return ((double) (((double) (1.0 - ((double) (x1 * y1)))) - ((double) (x2 * y2))));
}

Error

Bits error versus x1

Bits error versus y1

Bits error versus x2

Bits error versus y2

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\left(1 - x1 \cdot y1\right) - x2 \cdot y2\]
  2. Final simplification0.0

    \[\leadsto \left(1 - x1 \cdot y1\right) - x2 \cdot y2\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x1 y1 x2 y2)
  :name "(- (- 1 (* x1 y1)) (* x2 y2))"
  :precision binary64
  (- (- 1.0 (* x1 y1)) (* x2 y2)))