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

Error

Bits error versus x

Bits error versus b

Bits error versus y

Bits error versus a

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[x \cdot b - y \cdot a\]
  2. Final simplification0.0

    \[\leadsto x \cdot b - y \cdot a\]

Reproduce

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