Average Error: 0.0 → 0.0
Time: 2.4s
Precision: binary64
\[\left(\left(x0 \cdot y1 + x1 \cdot y0\right) + x2 \cdot y3\right) - x3 \cdot y2\]
\[\left(\left(x0 \cdot y1 + x1 \cdot y0\right) + x2 \cdot y3\right) - x3 \cdot y2\]
\left(\left(x0 \cdot y1 + x1 \cdot y0\right) + x2 \cdot y3\right) - x3 \cdot y2
\left(\left(x0 \cdot y1 + x1 \cdot y0\right) + x2 \cdot y3\right) - x3 \cdot y2
double code(double x0, double y1, double x1, double y0, double x2, double y3, double x3, double y2) {
	return ((double) (((double) (((double) (((double) (x0 * y1)) + ((double) (x1 * y0)))) + ((double) (x2 * y3)))) - ((double) (x3 * y2))));
}
double code(double x0, double y1, double x1, double y0, double x2, double y3, double x3, double y2) {
	return ((double) (((double) (((double) (((double) (x0 * y1)) + ((double) (x1 * y0)))) + ((double) (x2 * y3)))) - ((double) (x3 * y2))));
}

Error

Bits error versus x0

Bits error versus y1

Bits error versus x1

Bits error versus y0

Bits error versus x2

Bits error versus y3

Bits error versus x3

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(\left(x0 \cdot y1 + x1 \cdot y0\right) + x2 \cdot y3\right) - x3 \cdot y2\]
  2. Final simplification0.0

    \[\leadsto \left(\left(x0 \cdot y1 + x1 \cdot y0\right) + x2 \cdot y3\right) - x3 \cdot y2\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x0 y1 x1 y0 x2 y3 x3 y2)
  :name "(- (+ (+ (* x0 y1) (* x1 y0)) (* x2 y3)) (* x3 y2))"
  :precision binary64
  (- (+ (+ (* x0 y1) (* x1 y0)) (* x2 y3)) (* x3 y2)))