Average Error: 0.0 → 0.0
Time: 1.0s
Precision: binary64
\[a \cdot d - b \cdot c\]
\[a \cdot d - b \cdot c\]
a \cdot d - b \cdot c
a \cdot d - b \cdot c
double code(double a, double d, double b, double c) {
	return ((double) (((double) (a * d)) - ((double) (b * c))));
}
double code(double a, double d, double b, double c) {
	return ((double) (((double) (a * d)) - ((double) (b * c))));
}

Error

Bits error versus a

Bits error versus d

Bits error versus b

Bits error versus c

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[a \cdot d - b \cdot c\]
  2. Final simplification0.0

    \[\leadsto a \cdot d - b \cdot c\]

Reproduce

herbie shell --seed 2020153 
(FPCore (a d b c)
  :name "(- (* a d) (* b c))"
  :precision binary64
  (- (* a d) (* b c)))